From bf0bd94c9908731c43f514f54bf9cd414e6f545d Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Thu, 5 Apr 2007 18:35:25 +0000 Subject: [PATCH] Move from net-news, category net-nntp is more accurate Package-Manager: portage-2.1.2.3 --- net-nntp/hellanzb/ChangeLog | 18 ++++++ net-nntp/hellanzb/Manifest | 38 +++++++++++++ .../hellanzb/files/digest-hellanzb-0.13-r1 | 3 + .../files/hellanzb-0.13-datafiles.patch | 13 +++++ net-nntp/hellanzb/files/hellanzb.conf | 19 +++++++ net-nntp/hellanzb/files/hellanzb.init | 40 +++++++++++++ net-nntp/hellanzb/hellanzb-0.13-r1.ebuild | 57 +++++++++++++++++++ net-nntp/hellanzb/metadata.xml | 18 ++++++ 8 files changed, 206 insertions(+) create mode 100644 net-nntp/hellanzb/ChangeLog create mode 100644 net-nntp/hellanzb/Manifest create mode 100644 net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 create mode 100644 net-nntp/hellanzb/files/hellanzb-0.13-datafiles.patch create mode 100644 net-nntp/hellanzb/files/hellanzb.conf create mode 100644 net-nntp/hellanzb/files/hellanzb.init create mode 100644 net-nntp/hellanzb/hellanzb-0.13-r1.ebuild create mode 100644 net-nntp/hellanzb/metadata.xml diff --git a/net-nntp/hellanzb/ChangeLog b/net-nntp/hellanzb/ChangeLog new file mode 100644 index 000000000000..0bf8c751e99a --- /dev/null +++ b/net-nntp/hellanzb/ChangeLog @@ -0,0 +1,18 @@ +# ChangeLog for net-news/hellanzb +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.1 2007/04/05 18:35:25 aballier Exp $ + +*hellanzb-0.13-r1 (05 Apr 2007) + + 05 Apr 2007; Alexis Ballier + +files/hellanzb-0.13-datafiles.patch, +files/hellanzb.conf, + +files/hellanzb.init, +metadata.xml, +hellanzb-0.13-r1.ebuild: + Move from net-news, category net-nntp is more accurate + +*hellanzb-0.13 (31 Mar 2007) + + 31 Mar 2007; Alexis Ballier + +files/hellanzb-0.13-datafiles.patch, +files/hellanzb.conf, + +files/hellanzb.init, +metadata.xml, +hellanzb-0.13.ebuild: + Initial import, thanks to everybody in bug #119915 + diff --git a/net-nntp/hellanzb/Manifest b/net-nntp/hellanzb/Manifest new file mode 100644 index 000000000000..0fc7beaac4aa --- /dev/null +++ b/net-nntp/hellanzb/Manifest @@ -0,0 +1,38 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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.conf 700 RMD160 b1a897c502b143a58713d171d98642dab911c91b SHA1 f1de67993fcca92245e04e6892e4bfbed990e9fd SHA256 6bbed7f6aa0bfd42d75b47518569617db27ccc0baacecb17fa9cd6b5f28f8901 +MD5 fce05c36588455045fda7c1494d78f35 files/hellanzb.conf 700 +RMD160 b1a897c502b143a58713d171d98642dab911c91b files/hellanzb.conf 700 +SHA256 6bbed7f6aa0bfd42d75b47518569617db27ccc0baacecb17fa9cd6b5f28f8901 files/hellanzb.conf 700 +AUX hellanzb.init 771 RMD160 281b4319989e5d824dbdf46c0e1e596f01986947 SHA1 cc958b1c94fe6d6cdc1c5eab17d83308be3ff587 SHA256 e96ec63ae43f13be54030f695cc2cf7d757848d3dddba7e6d911eb966aeff781 +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 b511834e588c0d82b872274192533d31f4808809 SHA1 c6fea80275c7b55055c05aad92b5d400252e62d8 SHA256 b756f3a1d73cc523216a6745dde7a976ce5896c921b28cd31b3382d30d6b9913 +MD5 97778df711b7024c105841b9caf989d6 ChangeLog 739 +RMD160 b511834e588c0d82b872274192533d31f4808809 ChangeLog 739 +SHA256 b756f3a1d73cc523216a6745dde7a976ce5896c921b28cd31b3382d30d6b9913 ChangeLog 739 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.3 (GNU/Linux) + +iD8DBQFGFUE2vFcC4BYPU0oRApH6AJsFJZf+PFoTKMa8CU47KhNwfFJ4WQCgkAQQ +bjosXk6jOojQgL9kquL3UGE= +=x58x +-----END PGP SIGNATURE----- diff --git a/net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 b/net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 new file mode 100644 index 000000000000..49b039d674c3 --- /dev/null +++ b/net-nntp/hellanzb/files/digest-hellanzb-0.13-r1 @@ -0,0 +1,3 @@ +MD5 d3510c6b1b2c7b935332a469fdc8e7e2 hellanzb-0.13.tar.gz 163698 +RMD160 2ec3069cd0c9cb6c9fdaa4a4edc4f311a86d944c hellanzb-0.13.tar.gz 163698 +SHA256 565b08725eb92ac1e278fa7df2c7b27b21588c4e24c140fddbec4a5625159127 hellanzb-0.13.tar.gz 163698 diff --git a/net-nntp/hellanzb/files/hellanzb-0.13-datafiles.patch b/net-nntp/hellanzb/files/hellanzb-0.13-datafiles.patch new file mode 100644 index 000000000000..88c5899c5b8e --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb-0.13-datafiles.patch @@ -0,0 +1,13 @@ +Index: hellanzb-0.13/setup.py +=================================================================== +--- hellanzb-0.13.orig/setup.py ++++ hellanzb-0.13/setup.py +@@ -38,8 +38,6 @@ def runSetup(): + packages = [ 'Hellanzb', 'Hellanzb.NZBLeecher', 'Hellanzb.HellaXMLRPC', + 'Hellanzb.external', 'Hellanzb.external.elementtree' ], + scripts = [ 'hellanzb.py' ], +- data_files = [ ( 'etc', [ 'etc/hellanzb.conf.sample' ] ), +- ( 'share/doc/hellanzb', [ 'CHANGELOG', 'CREDITS', 'README', 'LICENSE' ] ) ], + ) + py2app_options = dict( + app = [ 'hellanzb.py' ], diff --git a/net-nntp/hellanzb/files/hellanzb.conf b/net-nntp/hellanzb/files/hellanzb.conf new file mode 100644 index 000000000000..fef0001f9a24 --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb.conf @@ -0,0 +1,19 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/files/hellanzb.conf,v 1.1 2007/04/05 18:35:25 aballier Exp $ + +# /etc/conf.d/hellanzb +# Config file for hellanzb init script + +# Which user to run hellanzb as, you should change this. +HELLA_USER="root" +HELLA_GROUP="root" + +# Location of config file, create a copy from /etc/hellanzb.conf for this. +# Make sure the user specified above can read this file. +HELLA_CONFIGFILE="/etc/hellanzb.conf" + +# Specify some other cli-options to hellanzb.py if you want. +HELLA_OPTS="" + +# All the other options to hellanzb can be configured in ${CONFIG_FILE}. diff --git a/net-nntp/hellanzb/files/hellanzb.init b/net-nntp/hellanzb/files/hellanzb.init new file mode 100644 index 000000000000..a5a8b94c68de --- /dev/null +++ b/net-nntp/hellanzb/files/hellanzb.init @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +opts="start stop" + +depend() { + need net +} + +start() { + ebegin "Starting hellanzb" + if ! check_config ; then + eend 1 + return 1 + fi + + export PATH="${PATH}:/opt/bin" + start-stop-daemon --quiet --start -c ${HELLA_USER} \ + -g ${HELLA_GROUP} \ + --exec /usr/bin/hellanzb.py -- \ + -D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null + eend $? +} + +stop() { + ebegin "Stopping hellanzb" + start-stop-daemon --quiet --stop \ + --name hellanzb.py + eend $? +} + +check_config() { + if [ ! -e ${HELLA_CONFIGFILE} ] ; then + eerror "ERROR: can't find ${HELLA_CONFIGFILE}." + return 1 + else + return 0 + fi +} diff --git a/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild b/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild new file mode 100644 index 000000000000..16ee7aca43bd --- /dev/null +++ b/net-nntp/hellanzb/hellanzb-0.13-r1.ebuild @@ -0,0 +1,57 @@ +# 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 $ + +inherit distutils eutils + +DESCRIPTION="Retrieves and processes .nzb files" +HOMEPAGE="http://www.hellanzb.com/" +SRC_URI="http://www.hellanzb.com/distfiles/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="libnotify" + +RDEPEND=">=dev-python/twisted-2.0 + dev-python/twisted-web + || ( app-arch/unrar + app-arch/rar ) + app-arch/par2cmdline + libnotify? ( dev-python/notify-python )" + +DEPEND="" + +DOCS="CHANGELOG CREDITS PKG-INFO README" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-datafiles.patch" +} + +src_install() { + distutils_src_install + + newconfd "${FILESDIR}/hellanzb.conf" hellanzb + newinitd "${FILESDIR}/hellanzb.init" hellanzb + + insinto etc + doins etc/hellanzb.conf.sample +} + +pkg_postinst() { + elog "You can start hellanzb in the background automatically by using" + elog "the init-script. To do this, add it to your default runlevel:" + elog "" + elog " rc-update add hellanzb default" + elog "" + elog "Use this command to start the daemon now:" + elog "" + elog " /etc/init.d/hellanzb start" + elog "" + elog "You will have to config /etc/conf.d/hellanzb before the init-script" + elog "will work. It is recommended that you change the user under which" + elog "the daemon will run." +} diff --git a/net-nntp/hellanzb/metadata.xml b/net-nntp/hellanzb/metadata.xml new file mode 100644 index 000000000000..12beccf5f895 --- /dev/null +++ b/net-nntp/hellanzb/metadata.xml @@ -0,0 +1,18 @@ + + + + net-news + + aballier@gentoo.org + Alexis Ballier + + + hellanzb is a Python application designed for *nix environments that + retrieves nzb files and fully processes them. The goal being to make + getting files from Usenet (e.g.: Giganews Newsgroups) as hands-free as + possible. Once fully installed, all thats required is moving an nzb file + to the queue directory. The rest; fetching, par-checking, un-raring, + etc. is taken care of by hellanzb. + + + -- 2.26.2