| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM) |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --with python3 |
| 8 |
|
| 9 |
override_dh_auto_configure: |
| 10 |
# make sure docs are generated and the manifest is built |
| 11 |
$(MAKE) locale |
| 12 |
dh_auto_configure --buildsystem pybuild |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
# force usage of setup.py over Makefile |
| 16 |
dh_auto_build --buildsystem pybuild |
| 17 |
|
| 18 |
override_dh_installchangelogs: |
| 19 |
# install custom changelog |
| 20 |
dh_installchangelogs doc/changelog.txt |
| 21 |
|
| 22 |
|
| 23 |
ROOTDIR=$(CURDIR)/debian/linkchecker |
| 24 |
LOCALEDIR=$(ROOTDIR)/usr/share/locale |
| 25 |
ETCDIR=$(ROOTDIR)/etc |
| 26 |
|
| 27 |
ROOTDIRWEB=$(CURDIR)/debian/linkchecker-web |
| 28 |
HTMLDIRWEB=$(ROOTDIRWEB)/usr/share/linkchecker/lconline |
| 29 |
CGIDIRWEB=$(ROOTDIRWEB)/usr/lib/cgi-bin |
| 30 |
ETCDIRWEB=$(ROOTDIRWEB)/etc |
| 31 |
|
| 32 |
override_dh_auto_install-arch: |
| 33 |
dh_auto_install --buildsystem pybuild |
| 34 |
# install bash_completion script |
| 35 |
install -m 644 config/linkchecker-completion $(ROOTDIR)/usr/share/bash-completion/completions/ |
| 36 |
|
| 37 |
override_dh_auto_install-indep: |
| 38 |
dh_auto_install --buildsystem pybuild |
| 39 |
# install CGI files in web package |
| 40 |
install -m 644 cgi-bin/lconline/*.html $(HTMLDIRWEB) |
| 41 |
install -m 644 cgi-bin/lconline/*.de $(HTMLDIRWEB) |
| 42 |
install -m 644 cgi-bin/lconline/*.en $(HTMLDIRWEB) |
| 43 |
install -m 644 cgi-bin/lconline/*.js $(HTMLDIRWEB) |
| 44 |
install -m 644 cgi-bin/lconline/*.css $(HTMLDIRWEB) |
| 45 |
install -m 644 cgi-bin/lconline/*.ico $(HTMLDIRWEB) |
| 46 |
install -m 755 cgi-bin/lc.wsgi $(CGIDIRWEB) |
| 47 |
# apache configuration |
| 48 |
install -m 644 config/linkchecker.apache2.conf $(ETCDIRWEB)/apache2/conf-available/linkchecker-web.conf |
| 49 |
|
| 50 |
# clean generated files |
| 51 |
# |
| 52 |
# this also skips the upstream `make clean` target which shells out to |
| 53 |
# git instead of properly cleaning up its own files |
| 54 |
override_dh_auto_clean: |
| 55 |
dh_auto_clean --buildsystem pybuild |
| 56 |
dh_clean doc/html/*.qch doc/html/*.qhc _LinkChecker_configdata.py |
| 57 |
|
| 58 |
# do not run test suite when building |
| 59 |
override_dh_auto_test: |