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
|
|
|
|
|
DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
|
|
# This is the debhelper compatability version to use.
|
2001-04-03 19:32:11 +00:00
|
|
|
export DH_COMPAT=3
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2000-11-09 12:02:38 +00:00
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
|
export DH_OPTIONS
|
|
|
|
|
|
2001-04-03 19:32:11 +00:00
|
|
|
nossl:
|
2001-05-18 19:09:28 +00:00
|
|
|
@echo already nossl version environments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ssl:
|
|
|
|
|
@echo change to ssl version...
|
|
|
|
|
@cat debian/changelog | sed '1 s/linkchecker/linkchecker-ssl/' >debian/changelog-ssl
|
|
|
|
|
@cd debian && for i in *-ssl; do \
|
|
|
|
|
f=`echo $$i | sed -e 's/-ssl//'`; \
|
|
|
|
|
mv $$f $$f-nossl; \
|
2001-04-03 19:32:11 +00:00
|
|
|
mv $$i $$f; \
|
|
|
|
|
echo -n "$$f "; \
|
|
|
|
|
done
|
|
|
|
|
@chmod +x debian/rules
|
|
|
|
|
@echo done
|
|
|
|
|
|
|
|
|
|
|
2001-05-18 19:09:28 +00:00
|
|
|
include debian/rules.mk
|
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
|
2001-01-22 23:02:54 +00:00
|
|
|
./setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
2001-05-18 19:09:28 +00:00
|
|
|
# remove man pages, we install them with dh_installman
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/man
|
|
|
|
|
# remove example files, we install them with dh_installexamples
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/share/linkchecker/examples/
|
|
|
|
|
# remove any SSL related files
|
|
|
|
|
rm -r debian/$(PACKAGE)/usr/lib/python2.0/site-packages/linkcheckssl
|
|
|
|
|
# install additional doc files
|
|
|
|
|
install -c -m 644 DNS/README $(DOCDIR)/README_DNS.txt
|
|
|
|
|
install -c -m 644 test/*.py $(DOCDIR)/test
|
|
|
|
|
install -c -m 644 test/html/*.html $(DOCDIR)/test/html
|
|
|
|
|
install -c -m 644 test/output/test_* $(DOCDIR)/test/output
|
|
|
|
|
# install system wide configuration file in etc
|
|
|
|
|
mv debian/$(PACKAGE)/usr/share/linkchecker/linkcheckerrc debian/$(PACKAGE)/etc
|
2000-02-26 10:24:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
dh_testdir
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_testroot
|
2000-10-13 21:58:45 +00:00
|
|
|
# dh_installdebconf
|
2001-05-01 13:54:27 +00:00
|
|
|
dh_installdocs
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_installexamples lc.* lconline/*.html
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installmenu
|
|
|
|
|
# dh_installemacsen
|
|
|
|
|
# dh_installpam
|
|
|
|
|
# dh_installinit
|
|
|
|
|
# dh_installcron
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_installman linkchecker.1
|
2000-02-26 10:24:46 +00:00
|
|
|
# dh_installinfo
|
2000-11-20 22:25:55 +00:00
|
|
|
# dh_undocumented linkchecker.1
|
2001-05-18 19:09:28 +00:00
|
|
|
dh_installchangelogs
|
|
|
|
|
dh_link
|
2000-05-26 22:22:17 +00:00
|
|
|
dh_strip
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_compress
|
|
|
|
|
dh_fixperms
|
|
|
|
|
# dh_makeshlibs
|
|
|
|
|
dh_installdeb
|
|
|
|
|
# dh_perl
|
2000-07-12 20:10:12 +00:00
|
|
|
# dh_shlibdeps
|
2000-02-26 10:24:46 +00:00
|
|
|
dh_gencontrol
|
|
|
|
|
dh_md5sums
|
|
|
|
|
dh_builddeb
|
|
|
|
|
|
2001-05-18 19:09:28 +00:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
|
binary-arch: build install
|
|
|
|
|
|
2000-02-26 10:24:46 +00:00
|
|
|
binary: binary-indep binary-arch
|
2000-11-09 12:02:38 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|