2000-02-26 10:24:46 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
2004-08-28 09:51:59 +00:00
|
|
|
PACKAGE = linkchecker
|
|
|
|
|
ROOT = $(CURDIR)/debian/$(PACKAGE)
|
2002-09-07 13:02:58 +00:00
|
|
|
DOCDIR = $(ROOT)/usr/share/doc/$(PACKAGE)
|
2004-08-28 09:51:59 +00:00
|
|
|
PYTHON = python
|
|
|
|
|
CGIDIR = $(ROOT)/usr/lib/cgi-bin/lconline
|
|
|
|
|
HTMLDIR = $(ROOT)/var/www/lconline
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
configure: configure-stamp
|
|
|
|
|
configure-stamp:
|
|
|
|
|
dh_testdir
|
|
|
|
|
touch configure-stamp
|
2001-05-18 19:09:28 +00:00
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
build: configure-stamp build-stamp
|
|
|
|
|
build-stamp:
|
|
|
|
|
dh_testdir
|
|
|
|
|
touch build-stamp
|
2001-04-03 19:32:11 +00:00
|
|
|
|
2001-05-24 15:48:07 +00:00
|
|
|
clean:
|
|
|
|
|
dh_testdir
|
|
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
|
$(MAKE) clean
|
|
|
|
|
dh_clean
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
install: build
|
|
|
|
|
dh_testdir
|
|
|
|
|
dh_clean -k
|
2000-03-19 14:24:33 +00:00
|
|
|
dh_installdirs
|
2000-11-09 12:02:38 +00:00
|
|
|
$(MAKE) locale
|
2002-09-07 13:02:58 +00:00
|
|
|
$(PYTHON) setup.py install --root=$(ROOT) --no-compile
|
2004-01-29 14:07:36 +00:00
|
|
|
# remove example files, we install them below
|
2002-09-07 13:02:58 +00:00
|
|
|
rm -r $(ROOT)/usr/share/linkchecker/examples
|
2004-01-29 14:07:36 +00:00
|
|
|
# install CGI files
|
2004-08-28 09:51:59 +00:00
|
|
|
install -c -m 644 cgi/lconline/*.html $(HTMLDIR)
|
|
|
|
|
install -c -m 644 cgi/lconline/*.de $(HTMLDIR)
|
|
|
|
|
install -c -m 644 cgi/lconline/*.en $(HTMLDIR)
|
|
|
|
|
install -c -m 644 cgi/lconline/check.js $(HTMLDIR)
|
|
|
|
|
cat cgi/lc.cgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.cgi
|
|
|
|
|
cat cgi/lc.fcgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.fcgi
|
2002-10-31 13:55:50 +00:00
|
|
|
chmod 755 $(CGIDIR)/lc.cgi
|
2002-11-26 23:34:50 +00:00
|
|
|
chmod 755 $(CGIDIR)/lc.fcgi
|
2004-08-28 11:38:47 +00:00
|
|
|
# install system wide configuration files in etc
|
|
|
|
|
install -m644 $(ROOT)/usr/share/linkchecker/linkcheckerrc $(ROOT)/etc/linkchecker
|
|
|
|
|
install -m644 $(ROOT)/usr/share/linkchecker/logging.conf $(ROOT)/etc/linkchecker
|
2004-01-29 14:07:36 +00:00
|
|
|
# install bash_completion script
|
2004-08-28 09:51:59 +00:00
|
|
|
install -m644 config/linkchecker-completion $(ROOT)/etc/bash_completion.d
|
2004-05-27 07:06:38 +00:00
|
|
|
# install lintian overrides
|
|
|
|
|
install -m644 debian/linkchecker.lintian $(ROOT)/usr/share/lintian/overrides/linkchecker
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
|
binary-indep: build install
|
2002-11-28 10:18:19 +00:00
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
|
binary-arch: build install
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_testdir
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_testroot
|
2001-05-01 13:54:27 +00:00
|
|
|
dh_installdocs
|
2004-08-28 09:52:41 +00:00
|
|
|
dh_installexamples config/linkcheck-cron.sh
|
2004-01-29 14:07:36 +00:00
|
|
|
# dh_installman linkchecker.1
|
2004-01-12 00:57:56 +00:00
|
|
|
dh_installchangelogs ChangeLog
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_link
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_strip
|
2003-08-11 11:19:38 +00:00
|
|
|
dh_python
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_compress
|
|
|
|
|
dh_fixperms
|
|
|
|
|
dh_installdeb
|
|
|
|
|
dh_gencontrol
|
|
|
|
|
dh_md5sums
|
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
2000-11-09 12:02:38 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|