the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: linkchecker
Version: 7.0
Revision: 2
Description: Check websites and HTML docs for broken links
License: GPL
Maintainer: None
# Dependencies:
BuildDepends: fink (>= 0.24.12)
Depends: python26
# Unpack Phase:
Source: mirror:sourceforge:%n/%v/LinkChecker-%v.tar.bz2
Source-MD5: 5823a7798c62c497192a088d3e46195e
# Patch Phase:
PatchFile: %n.patch
PatchFile-MD5: 149cad6aeb3ed61d04400ef3ed39e65f
PatchScript: <<
%{default_script}
### why are only these moved to %p/bin/python2.6 and not the other scripts that also reference /usr/bin/python?
perl -pi.bak -e 's;#!/usr/bin/python;#!%p/bin/python2.6;' cgi-bin/*.cgi
perl -pi.bak -e 's;#!/usr/bin/python;#!%p/bin/python2.6;' cgi-bin/*.fcgi
### do not install these QHelpCollectionProject files or depend on qt4-* to compile them
perl -pi -e "s|linkcheckerrc\', \'config/logging.conf\',|linkcheckerrc\', \'config/logging.conf\'\]\),|g" setup.py
perl -pi -e "s| 'doc/html/lccollection.qhc', 'doc/html/lcdoc.qch'\]\),\n||g" setup.py
mv third_party linkcheck
<<
# Compile Phase:
CompileScript: %p/bin/python2.6 setup.py build
# Install Phase:
InstallScript: <<
%p/bin/python2.6 setup.py install --root=%d
### Install docu and notes
/usr/bin/install -d %i/share
/usr/bin/install -d %i/share/doc
/usr/bin/install -d %i/share/doc/%n
cp -r doc/* %i/share/doc/%n
<<
DocFiles: COPYING doc/changelog.txt doc/install.txt readme.txt doc/todo.txt doc/upgrading.txt linkcheck/third_party/dnspython/changelog.txt:changelog.txt.dnspython
ConfFiles: %p/share/%n/linkcheckerrc %p/share/%n/logging.conf
# Additional Info
DescDetail: <<
Linkchecker features:
* recursive checking
* multithreaded
* output in colored or normal text, HTML, SQL, CSV, XML or a
sitemap graph in different formats
* HTTP/1.1, HTTPS, FTP, mailto:, news:, nntp:, Gopher, Telnet and local
file links support
* restriction of link checking with regular expression filters for URLs
* proxy support
* username/password authorization for HTTP and FTP
* robots.txt exclusion protocol support
* i18n support
* a command line interface
* a (Fast)CGI web interface (requires HTTP server)
<<
DescPackaging: <<
The path to python is adjusted to fink in the example pages.
Previous versions by Ben Hines
Christian Schaffner
Includes a specially patched version of dnspython. Bury it in
linkcheck's own module-hierarchy to avoid colliding with the actual
dnspython module (and update search-path games to find it--prepend
hacked location so it takes precedence over others).
<<
Homepage: http://linkchecker.sourceforge.net/
diff -Nurd -x'*~' LinkChecker-7.0.orig/linkcheck/__init__.py LinkChecker-7.0/linkcheck/__init__.py
--- LinkChecker-7.0.orig/linkcheck/__init__.py 2011-05-28 01:54:11.000000000 -0400
+++ LinkChecker-7.0/linkcheck/__init__.py 2011-07-29 00:47:33.000000000 -0400
@@ -151,9 +151,9 @@
def find_third_party_modules ():
"""Find third party modules and add them to the python path."""
- parent = os.path.dirname(os.path.dirname(__file__))
+ parent = os.path.dirname(__file__)
third_party = os.path.join(parent, "third_party")
if os.path.isdir(third_party):
- sys.path.append(os.path.join(third_party, "dnspython"))
+ sys.path.insert(0,os.path.join(third_party, "dnspython"))
find_third_party_modules()
diff -Nurd -x'*~' LinkChecker-7.0.orig/setup.py LinkChecker-7.0/setup.py
--- LinkChecker-7.0.orig/setup.py 2011-05-28 01:54:11.000000000 -0400
+++ LinkChecker-7.0/setup.py 2011-07-29 00:46:52.000000000 -0400
@@ -754,9 +754,6 @@
'py2app': MyPy2app,
'register': MyRegister,
},
- package_dir = {
- 'dns': 'third_party/dnspython/dns',
- },
packages = [
'linkcheck',
'linkcheck.bookmarks',
@@ -769,10 +766,11 @@
'linkcheck.HtmlParser',
'linkcheck.logger',
'linkcheck.network',
- 'dns',
- 'dns.rdtypes',
- 'dns.rdtypes.ANY',
- 'dns.rdtypes.IN',
+ 'linkcheck.third_party.dnspython.dns',
+ 'linkcheck.third_party.dnspython.dns.rdtypes',
+ 'linkcheck.third_party.dnspython.dns.rdtypes.ANY',
+ 'linkcheck.third_party.dnspython.dns.rdtypes.IN',
+ 'linkcheck.third_party.dnspython.tests',
],
ext_modules = [
Extension('linkcheck.HtmlParser.htmlsax',