| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
# we want to use the system version of included modules, so |
| 10 |
# we move the inc away and move it back afterwards |
| 11 |
override_dh_auto_clean: |
| 12 |
dh_auto_clean |
| 13 |
[ ! -d $(CURDIR)/inc.save ] || mv $(CURDIR)/inc.save $(CURDIR)/inc |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
[ ! -d $(CURDIR)/inc ] || mv $(CURDIR)/inc $(CURDIR)/inc.save |
| 17 |
dh_auto_configure |
| 18 |
|
| 19 |
override_dh_auto_install: |
| 20 |
dh_auto_install |
| 21 |
sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/bin/cpanp-run-perl |