Put WSGI script into separate .deb package.

This commit is contained in:
Bastian Kleineidam 2012-04-18 21:53:04 +02:00
parent 1ef9a022ca
commit 9a69051ea2
11 changed files with 75 additions and 24 deletions

1
debian/.gitignore vendored
View file

@ -3,6 +3,7 @@
/*.debhelper.log
/linkchecker
/linkchecker-gui
/linkchecker-web
/tmp
/*.substvars
/python-module-stampdir

4
debian/changelog vendored
View file

@ -1,6 +1,10 @@
linkchecker (7.7-1) unstable; urgency=low
* New upstream release.
* Add new package linkchecker-web which provides the
web interface. Do not bundle it with the command line
client because then linkchecker would depend on web
servers and the PyQt libraries.
-- Bastian Kleineidam <calvin@debian.org> Tue, 03 Apr 2012 07:41:57 +0200

26
debian/control vendored
View file

@ -18,10 +18,9 @@ Architecture: any
Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
Provides: ${python:Provides}
Conflicts: python-dnspython
Suggests: apache2 | httpd,
libapache2-mod-wsgi,
clamav-daemon,
Suggests: clamav-daemon,
linkchecker-gui,
linkchecker-web,
python-cssutils,
python-gconf,
python-geoip (>= 1.2.1-2),
@ -50,6 +49,27 @@ Description: check websites and HTML documents for broken links
Users preferring a graphical interface can install the linkchecker-gui
package.
Package: linkchecker-web
Architecture: all
Depends: linkchecker,
python-qt4 (>= 4.5),
apache2 | httpd,
libapache2-mod-wsgi | httpd-wsgi,
${misc:Depends},
${python:Depends}
Conflicts: linkchecker (<< 7.7)
Description: check websites and HTML documents for broken links (web client)
Provides a web interface to check links of websites and HTML documents.
Features:
o recursive checking
o multithreaded
o HTTP/1.1, HTTPS, FTP, mailto:, news:, nntp:, Telnet and local file
links support
o proxy support
o username/password authorization for HTTP, FTP and Telnet
o robots.txt exclusion protocol support
o i18n support
Package: linkchecker-gui
Architecture: all
Depends: libqt4-sql-sqlite,

3
debian/linkchecker-web.dirs vendored Normal file
View file

@ -0,0 +1,3 @@
etc/apache2/conf.d
usr/lib/cgi-bin
usr/share/linkchecker/lconline

1
debian/linkchecker-web.docs vendored Normal file
View file

@ -0,0 +1 @@
debian/README.Debian

6
debian/linkchecker-web.install vendored Normal file
View file

@ -0,0 +1,6 @@
usr/bin/linkchecker-gui
usr/lib/python*/dist-packages/linkcheck/gui
usr/share/linkchecker/lccollection.qhc
usr/share/linkchecker/lcdoc.qch
usr/share/man/de/man1/linkchecker-gui.1
usr/share/man/man1/linkchecker-gui.1

22
debian/linkchecker-web.postinst vendored Normal file
View file

@ -0,0 +1,22 @@
#!/bin/sh -e
# postinst script for linkchecker-web
#
# see: dh_installdeb(1)
case "$1" in
configure|reconfigure|abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
# reload apache configuration
if [ "$1" = "configure" -a -x /etc/init.d/apache2 ]; then
invoke-rc.d apache2 reload || true
fi
exit 0

View file

@ -1,6 +1,3 @@
etc/apache2/conf.d
etc/bash_completion.d
etc/linkchecker
usr/lib/cgi-bin
usr/share/locale/de/LC_MESSAGES
usr/share/linkchecker/lconline

View file

@ -1,4 +1,3 @@
debian/README.Debian
doc/upgrading.txt
doc/html/index.html
doc/html/logo64x64.png

View file

@ -28,9 +28,4 @@ dpkg-maintscript-helper rm_conffile /etc/linkchecker/logging.conf 7.3 -- "$@"
#DEBHELPER#
# reload apache configuration
if [ "$1" = "configure" -a -x /etc/init.d/apache2 ]; then
invoke-rc.d apache2 reload || true
fi
exit 0

27
debian/rules vendored
View file

@ -21,29 +21,32 @@ override_dh_installchangelogs:
ROOTDIR=$(CURDIR)/debian/linkchecker
HTMLDIR=$(ROOTDIR)/usr/share/linkchecker/lconline
CGIDIR=$(ROOTDIR)/usr/lib/cgi-bin
LOCALEDIR=$(ROOTDIR)/usr/share/locale
ETCDIR=$(ROOTDIR)/etc
ROOTDIRWEB=$(CURDIR)/debian/linkchecker-web
HTMLDIRWEB=$(ROOTDIRWEB)/usr/share/linkchecker/lconline
CGIDIRWEB=$(ROOTDIRWEB)/usr/lib/cgi-bin
ETCDIRWEB=$(ROOTDIRWEB)/etc
override_dh_auto_install:
dh_auto_install --buildsystem python_distutils
# install system wide configuration files in etc
install -m 644 config/linkcheckerrc $(ETCDIR)/linkchecker/
# install CGI files
install -m 644 cgi-bin/lconline/*.html $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.de $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.en $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.js $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.css $(HTMLDIR)
install -m 644 cgi-bin/lconline/*.ico $(HTMLDIR)
install -m 755 cgi-bin/lc.wsgi $(CGIDIR)
# install bash_completion script
install -m 644 config/linkchecker-completion $(ETCDIR)/bash_completion.d
# install .mo files
install -m 644 build/share/locale/de/LC_MESSAGES/LinkChecker.mo $(LOCALEDIR)/de/LC_MESSAGES/
install -m 644 build/share/locale/de/LC_MESSAGES/linkchecker.mo $(LOCALEDIR)/de/LC_MESSAGES/
# install CGI files in web package
install -m 644 cgi-bin/lconline/*.html $(HTMLDIRWEB)
install -m 644 cgi-bin/lconline/*.de $(HTMLDIRWEB)
install -m 644 cgi-bin/lconline/*.en $(HTMLDIRWEB)
install -m 644 cgi-bin/lconline/*.js $(HTMLDIRWEB)
install -m 644 cgi-bin/lconline/*.css $(HTMLDIRWEB)
install -m 644 cgi-bin/lconline/*.ico $(HTMLDIRWEB)
install -m 755 cgi-bin/lc.wsgi $(CGIDIRWEB)
# apache configuration
install -m 644 config/linkchecker.apache2.conf $(ETCDIR)/apache2/conf.d/linkchecker
install -m 644 config/linkchecker.apache2.conf $(ETCDIRWEB)/apache2/conf.d/linkchecker
# clean generated files
override_dh_clean: