mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-13 10:51:03 +00:00
clean up in debian dir
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@245 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
62cbdf15d9
commit
2047e8d973
11 changed files with 158 additions and 37 deletions
30
debian/control-ssl
vendored
Normal file
30
debian/control-ssl
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
Source: linkchecker-ssl
|
||||
Section: non-US/main
|
||||
Priority: optional
|
||||
Maintainer: Bastian Kleineidam <calvin@debian.org>
|
||||
Build-Depends: python2-base, python2-dev, debhelper (>= 3.0.0), libssl-dev
|
||||
Build-Depends-Indep: gettext
|
||||
Standards-Version: 3.5.2
|
||||
|
||||
Package: linkchecker-ssl
|
||||
Architecture: any
|
||||
Depends: python2-base
|
||||
Recommends: linkchecker (>= ${Source-Version})
|
||||
Description: HTTPS modules for linkchecker
|
||||
Includes the Python module 'linkcheckerssl' to support https://
|
||||
links for linkchecker.
|
||||
.
|
||||
Linkchecker features:
|
||||
o recursive checking
|
||||
o multithreaded
|
||||
o output can be colored or normal text, HTML, SQL, CSV or a sitemap
|
||||
graph in GML or XML
|
||||
o HTTP/1.1, FTP, mailto:, nntp:, news:, Gopher, Telnet and local
|
||||
file links are supported
|
||||
o restrict link checking with regular expression filters for URLs
|
||||
o proxy support
|
||||
o give username/password for HTTP and FTP authorization
|
||||
o robots.txt exclusion protocol support
|
||||
o i18n support
|
||||
o command line interface
|
||||
o (Fast)CGI web interface (requires HTTP server)
|
||||
2
debian/dirs
vendored
2
debian/dirs
vendored
|
|
@ -1,2 +0,0 @@
|
|||
etc
|
||||
usr/share/doc/linkchecker
|
||||
5
debian/docs
vendored
5
debian/docs
vendored
|
|
@ -1,5 +0,0 @@
|
|||
INSTALL
|
||||
README
|
||||
TODO
|
||||
FAQ
|
||||
draft-gilman-news-url-00.txt
|
||||
3
debian/linkchecker-ssl.files
vendored
3
debian/linkchecker-ssl.files
vendored
|
|
@ -1,3 +0,0 @@
|
|||
usr/lib/python2.0/site-packages/linkcheckssl/httpslib.py
|
||||
usr/lib/python2.0/site-packages/linkcheckssl/ssl.so
|
||||
usr/lib/python2.0/site-packages/linkcheckssl/__init__.py
|
||||
14
debian/postinst → debian/linkchecker-ssl.postinst
vendored
Executable file → Normal file
14
debian/postinst → debian/linkchecker-ssl.postinst
vendored
Executable file → Normal file
|
|
@ -3,21 +3,21 @@
|
|||
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
|
||||
# used by Bastian Kleineidam for LinkChecker
|
||||
|
||||
DIRLIST="/usr/lib/python1.5/site-packages/linkcheck"
|
||||
FILELIST="linkcheckerConf.py"
|
||||
SITEPACKAGES="/usr/lib/python1.5/site-packages"
|
||||
FILELIST=
|
||||
SITEPACKAGES="/usr/lib/python2.0/site-packages"
|
||||
DIRLIST="linkcheckssl"
|
||||
COMMAND="'import sys,py_compile;py_compile.compile(sys.argv[1])'"
|
||||
|
||||
case "$1" in
|
||||
configure|abort-upgrade|abort-remove|abort-deconfigure)
|
||||
for i in $DIRLIST; do
|
||||
python -O /usr/lib/python1.5/compileall.py -q $i
|
||||
python /usr/lib/python1.5/compileall.py -q $i
|
||||
python2 -O /usr/lib/python2.0/compileall.py -q $SITEPACKAGES/$i
|
||||
python2 /usr/lib/python2.0/compileall.py -q $SITEPACKAGES/$i
|
||||
done
|
||||
# use /bin/sh -c, otherwise I get a SyntaxError from Python
|
||||
for i in $FILELIST; do
|
||||
/bin/sh -c "python -O -c $COMMAND $SITEPACKAGES/$i"
|
||||
/bin/sh -c "python -c $COMMAND $SITEPACKAGES/$i"
|
||||
/bin/sh -c "python2 -O -c $COMMAND $SITEPACKAGES/$i"
|
||||
/bin/sh -c "python2 -c $COMMAND $SITEPACKAGES/$i"
|
||||
done
|
||||
;;
|
||||
*)
|
||||
7
debian/linkchecker-ssl.postinst.debhelper
vendored
7
debian/linkchecker-ssl.postinst.debhelper
vendored
|
|
@ -1,7 +0,0 @@
|
|||
# Automatically added by dh_installdocs
|
||||
if [ "$1" = "configure" ]; then
|
||||
if [ -d /usr/doc -a ! -e /usr/doc/linkchecker-ssl -a -d /usr/share/doc/linkchecker-ssl ]; then
|
||||
ln -sf ../share/doc/linkchecker-ssl /usr/doc/linkchecker-ssl
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
||||
4
debian/prerm → debian/linkchecker-ssl.prerm
vendored
Executable file → Normal file
4
debian/prerm → debian/linkchecker-ssl.prerm
vendored
Executable file → Normal file
|
|
@ -3,13 +3,13 @@
|
|||
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
|
||||
# used by Bastian Kleineidam for LinkChecker
|
||||
|
||||
PACKAGE=linkchecker
|
||||
PACKAGE=linkchecker-ssl
|
||||
|
||||
dpkg --listfiles $PACKAGE |
|
||||
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
|
||||
xargs rm -f >&2
|
||||
|
||||
rmdir /usr/lib/python1.5/site-packages/linkcheck 2>/dev/null || true
|
||||
rmdir /usr/lib/python2.0/site-packages/linkcheckssl 2>/dev/null || true
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
5
debian/linkchecker-ssl.prerm.debhelper
vendored
5
debian/linkchecker-ssl.prerm.debhelper
vendored
|
|
@ -1,5 +0,0 @@
|
|||
# Automatically added by dh_installdocs
|
||||
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/linkchecker-ssl ]; then
|
||||
rm -f /usr/doc/linkchecker-ssl
|
||||
fi
|
||||
# End automatically added section
|
||||
8
debian/linkchecker.postinst
vendored
8
debian/linkchecker.postinst
vendored
|
|
@ -3,16 +3,16 @@
|
|||
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
|
||||
# used by Bastian Kleineidam for LinkChecker
|
||||
|
||||
DIRLIST="/usr/lib/python2.0/site-packages/linkcheck"
|
||||
FILELIST="_linkchecker_configdata.py"
|
||||
SITEPACKAGES="/usr/lib/python2.0/site-packages"
|
||||
DIRLIST="linkcheck"
|
||||
FILELIST="_linkchecker_configdata.py"
|
||||
COMMAND="'import sys,py_compile;py_compile.compile(sys.argv[1])'"
|
||||
|
||||
case "$1" in
|
||||
configure|abort-upgrade|abort-remove|abort-deconfigure)
|
||||
for i in $DIRLIST; do
|
||||
python2 -O /usr/lib/python2.0/compileall.py -q $i
|
||||
python2 /usr/lib/python2.0/compileall.py -q $i
|
||||
python2 -O /usr/lib/python2.0/compileall.py -q $SITEPACKAGES/$i
|
||||
python2 /usr/lib/python2.0/compileall.py -q $SITEPACKAGES/$i
|
||||
done
|
||||
# use /bin/sh -c, otherwise I get a SyntaxError from Python
|
||||
for i in $FILELIST; do
|
||||
|
|
|
|||
21
debian/rules
vendored
21
debian/rules
vendored
|
|
@ -8,11 +8,27 @@ DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
|
|||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatability version to use.
|
||||
export DH_COMPAT=2
|
||||
export DH_COMPAT=3
|
||||
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS
|
||||
|
||||
nossl:
|
||||
@echo already nossl version environments
|
||||
|
||||
|
||||
ssl:
|
||||
@echo change to ssl version...
|
||||
@cd debian && for i in *-ssl; do \
|
||||
f=`echo $$i | sed -e 's/-ssl//'`; \
|
||||
mv $$f $$f-nossl; \
|
||||
mv $$i $$f; \
|
||||
echo -n "$$f "; \
|
||||
done
|
||||
@chmod +x debian/rules
|
||||
@echo done
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
|
|
@ -43,6 +59,8 @@ install: build
|
|||
rm -rf debian/$(PACKAGE)/usr/man
|
||||
# remove example files, we install them with dh_installexamples
|
||||
rm -rf debian/$(PACKAGE)/usr/share/linkchecker
|
||||
# remove any SSL related files
|
||||
rm -rf debian/$(PACKAGE)/usr/lib/python2.0/site-lib/linkchecker-ssl
|
||||
# install additional doc files
|
||||
install -c -m 644 DNS/README $(DOCDIR)/README_DNS.txt
|
||||
install -c -m 644 test/*.py $(DOCDIR)/test
|
||||
|
|
@ -67,7 +85,6 @@ binary-indep: build install
|
|||
dh_installman linkchecker.1
|
||||
# dh_installinfo
|
||||
# dh_undocumented linkchecker.1
|
||||
dh_movefiles -p"linkchecker-ssl" --sourcedir debian/linkchecker
|
||||
dh_installchangelogs
|
||||
# dh_link
|
||||
dh_strip
|
||||
|
|
|
|||
96
debian/rules-ssl
vendored
Normal file
96
debian/rules-ssl
vendored
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
#!/usr/bin/make -f
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
PACKAGE=linkchecker-ssl
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatability version to use.
|
||||
export DH_COMPAT=3
|
||||
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS
|
||||
|
||||
nossl:
|
||||
@echo change to nossl version...
|
||||
@cd debian && for i in *-nossl; do \
|
||||
f=`echo $$i | sed -e 's/-nossl//'`; \
|
||||
mv $$f $$f-ssl; \
|
||||
mv $$i $$f; \
|
||||
echo -n "$$f "; \
|
||||
done
|
||||
@chmod +x debian/rules
|
||||
@echo done
|
||||
|
||||
ssl:
|
||||
@echo already ssl version environments
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
./setup.py config -lcrypto
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: configure-stamp build-stamp
|
||||
build-stamp:
|
||||
dh_testdir
|
||||
rm -rf debian/$(PACKAGE) debian/$(PACKAGE)-ssl
|
||||
./setup.py build
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
rm -f build-stamp configure-stamp
|
||||
$(MAKE) clean
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
$(MAKE) locale
|
||||
./setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
||||
# remove everything but the ssl modules
|
||||
rm -rf debian/$(PACKAGE)/usr/man
|
||||
rm -rf debian/$(PACKAGE)/usr/bin
|
||||
rm -rf debian/$(PACKAGE)/usr/share
|
||||
rm -rf debian/$(PACKAGE)/usr/lib/python2.0/site-lib/linkchecker
|
||||
rm -rf debian/$(PACKAGE)/usr/lib/python2.0/site-lib/*.py
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
# dh_installdebconf
|
||||
# dh_installdocs
|
||||
# dh_installexamples lc.* lconline/*.html
|
||||
# dh_installmenu
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installman linkchecker.1
|
||||
# dh_installinfo
|
||||
# dh_undocumented linkchecker.1
|
||||
dh_installchangelogs
|
||||
# dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_perl
|
||||
# dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
Loading…
Reference in a new issue