1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
PACKAGE=libsnmp-session-perl
DEBDIR=`pwd`/debian/$(PACKAGE)
%:
dh $@
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
|