diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-11-20 14:43:08 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-11-20 14:43:08 +0000 |
commit | 7727ff40c2021a83cab41a92c66453878c4328d0 (patch) | |
tree | 5c65357e49b9622c30aa3124b5830ec923c56dae /net-nntp | |
parent | amd64 stable wrt #199740 (diff) | |
download | historical-7727ff40c2021a83cab41a92c66453878c4328d0.tar.gz historical-7727ff40c2021a83cab41a92c66453878c4328d0.tar.bz2 historical-7727ff40c2021a83cab41a92c66453878c4328d0.zip |
import debian patchset: bind rpc to localhost by default, fix config file searching. Add a fix from tonfa to fix display in non daemon mode when multiple hosts are used
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'net-nntp')
-rw-r--r-- | net-nntp/hellanzb/ChangeLog | 13 | ||||
-rw-r--r-- | net-nntp/hellanzb/Manifest | 44 | ||||
-rw-r--r-- | net-nntp/hellanzb/files/digest-hellanzb-0.13-r2 (renamed from net-nntp/hellanzb/files/digest-hellanzb-0.13-r1) | 0 | ||||
-rw-r--r-- | net-nntp/hellanzb/files/hellanzb-0.13-Choose_interface_to_bind_on.patch | 52 | ||||
-rw-r--r-- | net-nntp/hellanzb/files/hellanzb-0.13-Fix_conf_file_search_path.patch | 31 | ||||
-rw-r--r-- | net-nntp/hellanzb/files/hellanzb-0.13-fix_multiples_hosts.diff | 81 | ||||
-rw-r--r-- | net-nntp/hellanzb/hellanzb-0.13-r2.ebuild (renamed from net-nntp/hellanzb/hellanzb-0.13-r1.ebuild) | 5 |
7 files changed, 213 insertions, 13 deletions
diff --git a/net-nntp/hellanzb/ChangeLog b/net-nntp/hellanzb/ChangeLog index db8ba1ce1339..cc24afb8a9b3 100644 --- a/net-nntp/hellanzb/ChangeLog +++ b/net-nntp/hellanzb/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-nntp/hellanzb # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.2 2007/04/11 17:53:10 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.3 2007/11/20 14:43:07 aballier Exp $ + +*hellanzb-0.13-r2 (20 Nov 2007) + + 20 Nov 2007; Alexis Ballier <aballier@gentoo.org> + +files/hellanzb-0.13-Choose_interface_to_bind_on.patch, + +files/hellanzb-0.13-Fix_conf_file_search_path.patch, + +files/hellanzb-0.13-fix_multiples_hosts.diff, -hellanzb-0.13-r1.ebuild, + +hellanzb-0.13-r2.ebuild: + import debian patchset: bind rpc to localhost by default, fix config file + searching. Add a fix from tonfa to fix display in non daemon mode when + multiple hosts are used *hellanzb-0.13-r1 (05 Apr 2007) diff --git a/net-nntp/hellanzb/Manifest b/net-nntp/hellanzb/Manifest index fc1f9ca4954f..5ea1abfd9054 100644 --- a/net-nntp/hellanzb/Manifest +++ b/net-nntp/hellanzb/Manifest @@ -1,7 +1,22 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX hellanzb-0.13-Choose_interface_to_bind_on.patch 2665 RMD160 dc643177cd8414e408a71fdea591b3c6bfc39923 SHA1 e02f905297606f46f9a17d9714fab0790e3d3790 SHA256 b87f5448f40442f6e315ea5ce3985ae1b7dd51b312783e612386c0e4f8240ffb +MD5 f0e9b4ddae04cc02e7fb1dcc5722a4a8 files/hellanzb-0.13-Choose_interface_to_bind_on.patch 2665 +RMD160 dc643177cd8414e408a71fdea591b3c6bfc39923 files/hellanzb-0.13-Choose_interface_to_bind_on.patch 2665 +SHA256 b87f5448f40442f6e315ea5ce3985ae1b7dd51b312783e612386c0e4f8240ffb files/hellanzb-0.13-Choose_interface_to_bind_on.patch 2665 +AUX hellanzb-0.13-Fix_conf_file_search_path.patch 1222 RMD160 6e8d07055658ca45403555ce339bc2fa01d9eb9c SHA1 712a3221f1af9747cb24ae685c7b32501f6da1d3 SHA256 84f7020663ec9f17cbef7cbe22c46fa04dbb22bb62089e4090ce9ee564b39172 +MD5 1bea7d8690e385dff4ae03a1ec5ba49f files/hellanzb-0.13-Fix_conf_file_search_path.patch 1222 +RMD160 6e8d07055658ca45403555ce339bc2fa01d9eb9c files/hellanzb-0.13-Fix_conf_file_search_path.patch 1222 +SHA256 84f7020663ec9f17cbef7cbe22c46fa04dbb22bb62089e4090ce9ee564b39172 files/hellanzb-0.13-Fix_conf_file_search_path.patch 1222 AUX hellanzb-0.13-datafiles.patch 629 RMD160 2a62f28f6fd1414b0bd4bc30a25067caff5b281d SHA1 6162353cc47927acabe0b466b03662a1762ebe89 SHA256 720b42a6bebcc68275fc54af0d92034b0ac143bb319790745754d71f75ad319e MD5 d6c32baee32a06e0da5ebbb13dcf372a files/hellanzb-0.13-datafiles.patch 629 RMD160 2a62f28f6fd1414b0bd4bc30a25067caff5b281d files/hellanzb-0.13-datafiles.patch 629 SHA256 720b42a6bebcc68275fc54af0d92034b0ac143bb319790745754d71f75ad319e files/hellanzb-0.13-datafiles.patch 629 +AUX hellanzb-0.13-fix_multiples_hosts.diff 3518 RMD160 b931a79742f2c6e115e593d2bd3368849f30f361 SHA1 1134961f54082ba0804568a03269398748c4d6c8 SHA256 fbf5abd788ed45f00916162956cfec9a9d02c89875428e207d7179b788d06391 +MD5 2bcb3932930f9b11998037ca4e92f0cb files/hellanzb-0.13-fix_multiples_hosts.diff 3518 +RMD160 b931a79742f2c6e115e593d2bd3368849f30f361 files/hellanzb-0.13-fix_multiples_hosts.diff 3518 +SHA256 fbf5abd788ed45f00916162956cfec9a9d02c89875428e207d7179b788d06391 files/hellanzb-0.13-fix_multiples_hosts.diff 3518 AUX hellanzb.conf 700 RMD160 b1a897c502b143a58713d171d98642dab911c91b SHA1 f1de67993fcca92245e04e6892e4bfbed990e9fd SHA256 6bbed7f6aa0bfd42d75b47518569617db27ccc0baacecb17fa9cd6b5f28f8901 MD5 fce05c36588455045fda7c1494d78f35 files/hellanzb.conf 700 RMD160 b1a897c502b143a58713d171d98642dab911c91b files/hellanzb.conf 700 @@ -11,18 +26,25 @@ MD5 72d20f6c22d4901f5fb1ab923378fc58 files/hellanzb.init 771 RMD160 281b4319989e5d824dbdf46c0e1e596f01986947 files/hellanzb.init 771 SHA256 e96ec63ae43f13be54030f695cc2cf7d757848d3dddba7e6d911eb966aeff781 files/hellanzb.init 771 DIST hellanzb-0.13.tar.gz 163698 RMD160 2ec3069cd0c9cb6c9fdaa4a4edc4f311a86d944c SHA1 4ada7268ccb9c8f85d8de8d34fda92c3e2d84b5f SHA256 565b08725eb92ac1e278fa7df2c7b27b21588c4e24c140fddbec4a5625159127 -EBUILD hellanzb-0.13-r1.ebuild 1455 RMD160 d38d7ca48985687237ff35fe1ade622734a9d882 SHA1 68b6ca1d0ed578f3a6e51982a5bd872aa014e98c SHA256 cdcd08cc1646cdf8ffa1ffd428434a64cda790fe2e0615b18cb4a797fcc352a2 -MD5 5b921ed41de918e47bf55f1bcf26b8a3 hellanzb-0.13-r1.ebuild 1455 -RMD160 d38d7ca48985687237ff35fe1ade622734a9d882 hellanzb-0.13-r1.ebuild 1455 -SHA256 cdcd08cc1646cdf8ffa1ffd428434a64cda790fe2e0615b18cb4a797fcc352a2 hellanzb-0.13-r1.ebuild 1455 -MISC ChangeLog 739 RMD160 beeeaf0b30c28717115218fb8f1b32b7a4c48e32 SHA1 7d071e435b95058923aed18f987bd00fd4f8693a SHA256 bdcb18a0f29693a2a31dd2382e0737e41eb4c9f942ddade02cc75a7649f9ba0d -MD5 8dfbe17b2c171a8e9cf34bc8f5e5a0b2 ChangeLog 739 -RMD160 beeeaf0b30c28717115218fb8f1b32b7a4c48e32 ChangeLog 739 -SHA256 bdcb18a0f29693a2a31dd2382e0737e41eb4c9f942ddade02cc75a7649f9ba0d ChangeLog 739 +EBUILD hellanzb-0.13-r2.ebuild 1627 RMD160 3bb715b0f79a6cd89ef60b68f40ed79412a53767 SHA1 6d6e98e9ae209ee11357da4d260f8a6ea1719c7d SHA256 538b4c22b4d7579c9c8e0f23db016f9e4a8efdca621ee5dcc6a28a63dd97ac07 +MD5 a7206d7e5c2188f268199fe33c6f43bd hellanzb-0.13-r2.ebuild 1627 +RMD160 3bb715b0f79a6cd89ef60b68f40ed79412a53767 hellanzb-0.13-r2.ebuild 1627 +SHA256 538b4c22b4d7579c9c8e0f23db016f9e4a8efdca621ee5dcc6a28a63dd97ac07 hellanzb-0.13-r2.ebuild 1627 +MISC ChangeLog 1217 RMD160 2dbfda6aba6b83ad63b9b118c44bc34d9eb63938 SHA1 2bd8c21e9b1e2c7468832e968db21fde6ddacb3c SHA256 d9aa3f08dac8554fbd5f7c3c0c835d8bb3925e0af31bd06195566d05a47086ee +MD5 67a87e4ab9188d1f288e844304ef698c ChangeLog 1217 +RMD160 2dbfda6aba6b83ad63b9b118c44bc34d9eb63938 ChangeLog 1217 +SHA256 d9aa3f08dac8554fbd5f7c3c0c835d8bb3925e0af31bd06195566d05a47086ee ChangeLog 1217 MISC metadata.xml 706 RMD160 7f3ebb6d6e55352055197e008a86428ac1a3d1f7 SHA1 48a67cea318c18afa7fd6b802834719843feceef SHA256 1cec98091461e56458cfafa8a79f05d8bf18da85e6f4355263b25c19f500257b MD5 76d9e359bdc7ba3e8a9dc0e16d211ec4 metadata.xml 706 RMD160 7f3ebb6d6e55352055197e008a86428ac1a3d1f7 metadata.xml 706 SHA256 1cec98091461e56458cfafa8a79f05d8bf18da85e6f4355263b25c19f500257b metadata.xml 706 -MD5 68661df5513ccd5d913adfbd07037663 files/digest-hellanzb-0.13-r1 241 -RMD160 98fe49a05962c5a71709076c36ab8f862a4db027 files/digest-hellanzb-0.13-r1 241 -SHA256 c87858ec1e5244601ca7deb5282897f8d9761607d7e8220f642773425811f6f9 files/digest-hellanzb-0.13-r1 241 +MD5 68661df5513ccd5d913adfbd07037663 files/digest-hellanzb-0.13-r2 241 +RMD160 98fe49a05962c5a71709076c36ab8f862a4db027 files/digest-hellanzb-0.13-r2 241 +SHA256 c87858ec1e5244601ca7deb5282897f8d9761607d7e8220f642773425811f6f9 files/digest-hellanzb-0.13-r2 241 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFHQvKFvFcC4BYPU0oRArIPAKCZ2NGIidfIm0B4TTtceH4rcNgYzwCgk+tC +Hl/1qy1uW4wf4Jm5gWt/57A= +=M1MS +-----END PGP SIGNATURE----- diff --git a/net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 b/net-nntp/hellanzb/files/digest-hellanzb-0.13-r2 index 49b039d674c3..49b039d674c3 100644 --- a/net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 +++ b/net-nntp/hellanzb/files/digest-hellanzb-0.13-r2 diff --git a/net-nntp/hellanzb/files/hellanzb-0.13-Choose_interface_to_bind_on.patch b/net-nntp/hellanzb/files/hellanzb-0.13-Choose_interface_to_bind_on.patch new file mode 100644 index 000000000000..a254a9d23c9a --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb-0.13-Choose_interface_to_bind_on.patch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001-Choose_interface_to_bind_on +## by Adam Cécile (Le_Vert) <gandalf@le-vert.net> +## +## DP: Add a Hellanzb.XMLRPC_SERVER option which allowusers to set on which +## DP: IP address XMLRPC server will be binded. + +@DPATCH@ +diff -u hellanzb-0.11/Hellanzb/HellaXMLRPC/__init__.py hellanzb-0.11/Hellanzb/HellaXMLRPC/__init__.py.new +--- hellanzb-0.11/Hellanzb/HellaXMLRPC/__init__.py 2007-01-30 03:51:05.000000000 +0100 ++++ hellanzb-0.11/Hellanzb/HellaXMLRPC/__init__.py.new 2007-02-10 15:19:14.000000000 +0100 +@@ -597,9 +597,9 @@ + try: + if SECURE: + secure = HtPasswdWrapper(hxmlrpcs, 'hellanzb', Hellanzb.XMLRPC_PASSWORD, 'hellanzb XML RPC') +- reactor.listenTCP(Hellanzb.XMLRPC_PORT, Site(secure)) ++ reactor.listenTCP(Hellanzb.XMLRPC_PORT, Site(secure), 50, Hellanzb.XMLRPC_SERVER_BIND) + else: +- reactor.listenTCP(Hellanzb.XMLRPC_PORT, Site(hxmlrpcs)) ++ reactor.listenTCP(Hellanzb.XMLRPC_PORT, Site(hxmlrpcs), 50, Hellanzb.XMLRPC_SERVER_BIND) + except CannotListenError, cle: + error(str(cle)) + raise FatalError('Cannot bind to XML RPC port, is another hellanzb queue daemon already running?') + +diff -u hellanzb-0.11/etc/hellanzb.conf.sample hellanzb-0.11/etc/hellanzb.conf.sample.new +--- hellanzb-0.11/etc/hellanzb.conf.sample 2007-01-30 03:51:05.000000000 +0100 ++++ hellanzb-0.11/etc/hellanzb.conf.sample.new 2007-02-10 15:18:10.000000000 +0100 +@@ -151,6 +151,10 @@ + # Hostname for the XMLRPC client to connect to. By default, localhost + Hellanzb.XMLRPC_SERVER = 'localhost' + ++# IP address on which the XMLRPC Server will be binded to. ++# Type '0.0.0.0' for any interfaces, '127.0.0.1' will disable remote access ++Hellanzb.XMLRPC_SERVER_BIND = '127.0.0.1' ++ + # Port number the XML RPC server will listen on, and the client will connect to. + # Set to 'None' (without the quotes!) for no XML RPC server + Hellanzb.XMLRPC_PORT = 8760 +diff -u hellanzb-0.11/Hellanzb/Core.py hellanzb-0.11/Hellanzb/Core.py.new +--- hellanzb-0.11/Hellanzb/Core.py 2007-01-30 03:51:05.000000000 +0100 ++++ hellanzb-0.11/Hellanzb/Core.py.new 2007-02-10 15:18:10.000000000 +0100 +@@ -113,7 +106,9 @@ + + if not hasattr(Hellanzb, 'SKIP_UNRAR') or Hellanzb.SKIP_UNRAR is None: + Hellanzb.SKIP_UNRAR = False +- ++ if not hasattr(Hellanzb, 'XMLRPC_SERVER_BIND') or Hellanzb.XMLRPC_SERVER_BIND is None: ++ print 'Warning: Hellanzb.XMLRPC_SERVER_BIND is not set, bind to 127.0.0.1' ++ Hellanzb.XMLRPC_SERVER_BIND = '127.0.0.1' + + if not hasattr(Hellanzb, 'SMART_PAR'): + Hellanzb.SMART_PAR = True diff --git a/net-nntp/hellanzb/files/hellanzb-0.13-Fix_conf_file_search_path.patch b/net-nntp/hellanzb/files/hellanzb-0.13-Fix_conf_file_search_path.patch new file mode 100644 index 000000000000..ee22dd20c1ed --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb-0.13-Fix_conf_file_search_path.patch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 000-Fix_conf_file_search_path by +## Adam Cécile (Le_Vert) <gandalf@le-vert.net> +## +## DP: Search for configuration file in $HOME/.hellanzb/ or /etc/ + +@DPATCH@ + +diff -u hellanzb-0.11/Hellanzb/Core.py hellanzb-0.11/Hellanzb/Core.py.new +--- hellanzb-0.11/Hellanzb/Core.py 2007-02-10 15:01:50.000000000 +0100 ++++ hellanzb-0.11/Hellanzb/Core.py.new 2007-02-10 15:05:48.000000000 +0100 +@@ -33,16 +33,9 @@ + else: + error('Unable to load specified config file: ' + optionalConfigFile) + sys.exit(1) +- +- # look for conf in this order: sys.prefix, ./, or ./etc/ +- confDirs = [os.path.join(sys.prefix, 'etc')] +- try: +- confDirs.append(os.path.join(os.getcwd(), 'etc')) +- confDirs.append(os.getcwd()) +- except OSError, ose: +- if ose.errno != 2: +- raise +- # OSError: [Errno 2] No such file or directory. cwd doesn't exist ++ ++ # Look for conf file in /etc or $HOME/.hellanzb ++ confDirs = [ os.path.expanduser('~') + '/.hellanzb', '/etc' ] + + # hard coding preferred Darwin config file location, kind of lame. but I'd rather do + # this then make an etc dir in os x's Python.framework directory diff --git a/net-nntp/hellanzb/files/hellanzb-0.13-fix_multiples_hosts.diff b/net-nntp/hellanzb/files/hellanzb-0.13-fix_multiples_hosts.diff new file mode 100644 index 000000000000..695c62ce3bc4 --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb-0.13-fix_multiples_hosts.diff @@ -0,0 +1,81 @@ +diff -r bdbcba80e0fa Hellanzb/NZBLeecher/Protocol.py +--- a/Hellanzb/NZBLeecher/Protocol.py Wed Nov 14 10:00:29 2007 +0100 ++++ b/Hellanzb/NZBLeecher/Protocol.py Wed Nov 14 10:01:07 2007 +0100 +@@ -27,18 +27,14 @@ PHI = 1.6180339887498948 # (1 + math.sqr + PHI = 1.6180339887498948 # (1 + math.sqrt(5)) / 2 + class NZBLeecherFactory(ReconnectingClientFactory): + +- def __init__(self, username, password, activeTimeout, antiIdleTimeout, hostname, ++ def __init__(self, username, password, activeTimeout, antiIdleTimeout, + serverPoolName, skipGroupCmd, fillServerPriority = 0, color = None): + self.username = username + self.password = password + self.antiIdleTimeout = antiIdleTimeout + self.activeTimeout = activeTimeout +- self.hostname = hostname + self.serverPoolName = serverPoolName + self.fillServerPriority = fillServerPriority +- +- self.host = None +- self.port = None + + # statistics for the current session (sessions end when downloading stops on all + # clients). sessionReadBytes and sessionStartime are used to calculate the average +diff -r bdbcba80e0fa Hellanzb/NZBLeecher/__init__.py +--- a/Hellanzb/NZBLeecher/__init__.py Wed Nov 14 10:00:29 2007 +0100 ++++ b/Hellanzb/NZBLeecher/__init__.py Wed Nov 14 10:01:07 2007 +0100 +@@ -122,30 +122,28 @@ def connectServer(serverName, serverDict + connectionCount = 0 + hosts = serverDict['hosts'] + connections = int(serverDict['connections']) ++ antiIdle = int(setWithDefault(serverDict, 'antiIdle', defaultAntiIdle)) ++ idleTimeout = int(setWithDefault(serverDict, 'idleTimeout', defaultIdleTimeout)) ++ skipGroupCmd = setWithDefault(serverDict, 'skipGroupCmd', False) ++ fillServer = setWithDefault(serverDict, 'fillserver', 0) ++ useSSL = setWithDefault(serverDict, 'ssl', False) ++ ++ nsf = NZBLeecherFactory(serverDict['username'], serverDict['password'], ++ idleTimeout, antiIdle, serverName, skipGroupCmd, ++ fillServer) ++ color = nsf.color ++ Hellanzb.nsfs.append(nsf) ++ ++ preWrappedNsf = nsf ++ nsf = HellaThrottlingFactory(nsf) + + for host in hosts: +- antiIdle = int(setWithDefault(serverDict, 'antiIdle', defaultAntiIdle)) +- idleTimeout = int(setWithDefault(serverDict, 'idleTimeout', defaultIdleTimeout)) +- skipGroupCmd = setWithDefault(serverDict, 'skipGroupCmd', False) +- fillServer = setWithDefault(serverDict, 'fillserver', 0) +- useSSL = setWithDefault(serverDict, 'ssl', False) +- +- nsf = NZBLeecherFactory(serverDict['username'], serverDict['password'], +- idleTimeout, antiIdle, host, serverName, skipGroupCmd, +- fillServer) +- color = nsf.color +- Hellanzb.nsfs.append(nsf) +- + split = host.split(':') + host = split[0] + if len(split) == 2: + port = int(split[1]) + else: + port = 119 +- nsf.host, nsf.port = host, port +- +- preWrappedNsf = nsf +- nsf = HellaThrottlingFactory(nsf) + + ctxf = None + if useSSL: +@@ -195,7 +193,8 @@ def connectServer(serverName, serverDict + if antiIdle == 0: + preWrappedNsf.leecherConnectors.append(connector) + connectionCount += 1 +- preWrappedNsf.setConnectionCount(connectionCount) ++ ++ preWrappedNsf.setConnectionCount(connectionCount) + + if antiIdle == 0: + action = '' diff --git a/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild b/net-nntp/hellanzb/hellanzb-0.13-r2.ebuild index 16ee7aca43bd..a7e73ebbcd07 100644 --- a/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild +++ b/net-nntp/hellanzb/hellanzb-0.13-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild,v 1.1 2007/04/05 18:35:25 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/hellanzb-0.13-r2.ebuild,v 1.1 2007/11/20 14:43:07 aballier Exp $ inherit distutils eutils @@ -29,6 +29,9 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}/${P}-datafiles.patch" + epatch "${FILESDIR}/${P}-Fix_conf_file_search_path.patch" + epatch "${FILESDIR}/${P}-Choose_interface_to_bind_on.patch" + epatch "${FILESDIR}/${P}-fix_multiples_hosts.diff" } src_install() { |