linkchecker/debian/rules

55 lines
1.8 KiB
Text
Raw Normal View History

#!/usr/bin/make -f
2009-08-20 21:04:04 +00:00
DEB_PYTHON_SYSTEM:=pycentral
DEB_DH_INSTALLCHANGELOGS_ARGS:=doc/changelog.txt
2009-06-21 18:55:50 +00:00
# workaround for Debian bug #486848
binary-arch binary-indep: install-arch install-indep
common-install-arch::
$(MAKE) locale
2009-08-04 06:00:51 +00:00
$(MAKE) -C doc/html all
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
ROOTDIR=$(CURDIR)/debian/linkchecker
DOCDIR=$(ROOTDIR)/usr/share/doc/linkchecker
SHAREDIR=$(ROOTDIR)/usr/share/linkchecker
HTMLDIR=$(SHAREDIR)/lconline
CGIDIR=$(ROOTDIR)/usr/lib/cgi-bin
LOCALEDIR=$(ROOTDIR)/usr/share/locale
ETCDIR=$(ROOTDIR)/etc
common-configure-arch::
python setup.py sdist --manifest-only
common-install-arch::
# install system wide configuration files in etc
install -m 644 config/linkcheckerrc $(ETCDIR)/linkchecker/
install -m 644 config/logging.conf $(ETCDIR)/linkchecker/
# install CGI files
install -m 644 cgi-bin/lconline/*.html $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.de $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.en $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.js $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.css $(HTMLDIR)
install -m 755 cgi-bin/lc.cgi $(CGIDIR)
# install bash_completion script
install -m 644 config/linkchecker-completion $(ETCDIR)/bash_completion.d
# install .mo files
install -m 644 build/share/locale/de/LC_MESSAGES/LinkChecker.mo $(LOCALEDIR)/de/LC_MESSAGES/
# apache configuration
install -m 644 config/linkchecker.apache2.conf $(ETCDIR)/apache2/conf.d/linkchecker
install/linkchecker::
sed -i '1s,#!/usr/bin/python2\..,#!/usr/bin/python,' $(CURDIR)/debian/tmp/usr/bin/linkchecker
install/linkchecker-gui::
sed -i '1s,#!/usr/bin/python2\..,#!/usr/bin/python,' $(CURDIR)/debian/tmp/usr/bin/linkchecker-gui
# clean generated files
clean::
rm -f doc/html/*.qch doc/html/*.qhc
rm -f _LinkChecker_configdata.py