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.
|
2001-05-18 19:09:28 +00:00
|
|
|
PACKAGE=linkchecker
|
2002-09-07 13:02:58 +00:00
|
|
|
ROOT=$(CURDIR)/debian/$(PACKAGE)
|
|
|
|
|
DOCDIR = $(ROOT)/usr/share/doc/$(PACKAGE)
|
2003-08-11 11:19:38 +00:00
|
|
|
PYTHON=python
|
2002-10-31 13:55:50 +00:00
|
|
|
CGIDIR=$(ROOT)/usr/lib/cgi-bin/lconline
|
2002-11-03 00:53:19 +00:00
|
|
|
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-04-03 19:32:11 +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
|
2002-11-03 00:53:19 +00:00
|
|
|
install -c -m 644 lconline/*.html $(HTMLDIR)
|
2002-12-31 00:45:22 +00:00
|
|
|
install -c -m 644 lconline/*.de $(HTMLDIR)
|
2002-12-31 00:59:18 +00:00
|
|
|
install -c -m 644 lconline/*.en $(HTMLDIR)
|
2003-01-05 01:56:13 +00:00
|
|
|
install -c -m 644 lconline/check.js $(HTMLDIR)
|
2002-10-31 13:55:50 +00:00
|
|
|
cat lc.cgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.cgi
|
2002-11-04 18:56:21 +00:00
|
|
|
cat lc.fcgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.fcgi
|
|
|
|
|
cat lc.sz_fcgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.sz_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
|
|
|
|
|
chmod 755 $(CGIDIR)/lc.sz_fcgi
|
2004-01-29 14:07:36 +00:00
|
|
|
# install system wide configuration file in etc
|
|
|
|
|
install -m644 $(ROOT)/usr/share/linkchecker/linkcheckerrc $(ROOT)/etc
|
|
|
|
|
# install bash_completion script
|
|
|
|
|
install -m644 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-01-29 19:12:14 +00:00
|
|
|
dh_installexamples 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
|