mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 11:54:43 +00:00
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:
parent
e62a2c63bd
commit
0df96ddc69
3 changed files with 6 additions and 10 deletions
2
debian/linkchecker.postinst
vendored
2
debian/linkchecker.postinst
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
debian/linkchecker.prerm
vendored
3
debian/linkchecker.prerm
vendored
|
|
@ -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
11
debian/rules
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue