File: rules

package info (click to toggle)
libsnmp-session-perl 1.16-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 984 kB
  • sloc: perl: 11,929; ansic: 25; makefile: 15
file content (27 lines) | stat: -rwxr-xr-x 872 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

PACKAGE=libsnmp-session-perl
DEBDIR=`pwd`/debian/$(PACKAGE)

%:
	dh $@

execute_after_dh_testdir:
#	Workaround for faketime/quilt/reprotest file time problem,
#	modified in debian/patches/*
#	see https://lists.reproducible-builds.org/pipermail/rb-general/2022-April/002553.html
	touch lib/SNMP_Session.pm index.html

override_dh_installdocs:
	dh_installdocs

	mkdir -p $(DEBDIR)/usr/share/doc/$(PACKAGE)
	cp -a index.html $(DEBDIR)/usr/share/doc/$(PACKAGE)/snmp-session.html

# 	Now we do the examples
	cp -a test $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples
#	Now we fix up the path to perl in the examples
	perl -pi -e 's%/usr/(local|sepp|)/bin/perl5?%/usr/bin/perl%;' \
		$(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/*
	chmod 755 $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/*.pl
	chmod 755 $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/sun-find-process