deb fixes

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@513 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-09-07 13:02:58 +00:00
parent e62a2c63bd
commit 0df96ddc69
3 changed files with 6 additions and 10 deletions

View file

@ -22,8 +22,6 @@ case "$1" in
/bin/sh -c "$PYTHONXY -O -c $COMMAND $SITEPACKAGES/$i"
/bin/sh -c "$PYTHONXY -c $COMMAND $SITEPACKAGES/$i"
done
# for later use of python-central
#/usr/sbin/register-python-package module configure linkchecker ">=2.0"
;;
*)
echo "postinst called with unknown argument \`$1'" >&2

View file

@ -16,7 +16,4 @@ dpkg --listfiles $PACKAGE |
rmdir /usr/lib/$PYTHONXY/site-packages/linkcheck 2>/dev/null || true
# for later use of python-central
#/usr/sbin/register-python-package module remove linkchecker ">=2.0"
exit 0

11
debian/rules vendored
View file

@ -2,7 +2,8 @@
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
PACKAGE=linkchecker
DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
ROOT=$(CURDIR)/debian/$(PACKAGE)
DOCDIR = $(ROOT)/usr/share/doc/$(PACKAGE)
PYTHON=python2.1
# Uncomment this to turn on verbose mode.
@ -38,18 +39,18 @@ install: build
dh_clean -k
dh_installdirs
$(MAKE) locale
$(PYTHON) setup.py install --root=$(CURDIR)/debian/$(PACKAGE) --no-compile
$(PYTHON) setup.py install --root=$(ROOT) --no-compile
# remove example files, we install them below
rm -r debian/$(PACKAGE)/usr/share/linkchecker/examples
rm -r $(ROOT)/usr/share/linkchecker/examples
# install additional doc files
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 CGI files
install -c -m 644 lconline/*.html $(DOCDIR)/lconline
install -c -m 755 lc.cgi debian/$(PACKAGE)/usr/lib/cgi-bin/lconline
cat lc.cgi | sed 's#/usr/bin/python#/usr/bin/python2.1#' > $(ROOT)/usr/lib/cgi-bin/lconline/lc.cgi
# install system wide configuration file in etc
mv debian/$(PACKAGE)/usr/share/linkchecker/linkcheckerrc debian/$(PACKAGE)/etc
mv $(ROOT)/usr/share/linkchecker/linkcheckerrc $(ROOT)/etc
# Build architecture-independent files here.