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
|