| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
override_dh_auto_test: |
| 10 |
#Since debian build systems do not have internet accessuse, we need to avoid all the tests that needs it |
| 11 |
#use NO_NETWORK=0 when the build host does have internet access. |
| 12 |
NO_NETWORK=1 dh_auto_test |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install |
| 16 |
$(RM) -v $(TMP)/usr/bin/bot-basicbot-pluggable-cgi |
| 17 |
$(RM) -v $(TMP)/usr/share/man/man1/bot-basicbot-pluggable-cgi.1p |
| 18 |
$(RM) -v $(TMP)/usr/bin/bot-basicbot-pluggable-cli |
| 19 |
$(RM) -v $(TMP)/usr/bin/bot-basicbot-pluggable-infobot-upgrade |
| 20 |
$(RM) -v $(TMP)/usr/bin/storable2dbi.pl |
| 21 |
|
| 22 |
override_dh_installexamples: |
| 23 |
dh_installexamples |
| 24 |
sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/storable2dbi.pl |
| 25 |
sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl -w|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/bot-basicbot-pluggable-cgi |