From a76ac22ab349e54c853fb1f85fd6a7309d68c5df Mon Sep 17 00:00:00 2001 From: Ben de Groot Date: Wed, 16 Apr 2008 11:09:46 +0000 Subject: Updating hellanzb.init to make it compatible with baselayout-2 and openrc. (Portage version: 2.1.5_rc3) --- net-nntp/hellanzb/ChangeLog | 11 ++++-- net-nntp/hellanzb/files/hellanzb.init | 2 +- net-nntp/hellanzb/hellanzb-0.13-r3.ebuild | 60 ------------------------------- net-nntp/hellanzb/hellanzb-0.13-r4.ebuild | 60 +++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 63 deletions(-) delete mode 100644 net-nntp/hellanzb/hellanzb-0.13-r3.ebuild create mode 100644 net-nntp/hellanzb/hellanzb-0.13-r4.ebuild (limited to 'net-nntp/hellanzb') diff --git a/net-nntp/hellanzb/ChangeLog b/net-nntp/hellanzb/ChangeLog index 7890c6e6fe4b..ced27699f45c 100644 --- a/net-nntp/hellanzb/ChangeLog +++ b/net-nntp/hellanzb/ChangeLog @@ -1,6 +1,13 @@ # 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.4 2007/11/22 23:38:51 aballier Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.5 2008/04/16 11:09:45 yngwin Exp $ + +*hellanzb-0.13-r4 (16 Apr 2008) + + 16 Apr 2008; Ben de Groot files/hellanzb.init, + -hellanzb-0.13-r3.ebuild, +hellanzb-0.13-r4.ebuild: + Updating init script to make it compatible with baselayout-2 and openrc. + Revbump to force upgrade. *hellanzb-0.13-r3 (22 Nov 2007) diff --git a/net-nntp/hellanzb/files/hellanzb.init b/net-nntp/hellanzb/files/hellanzb.init index a5a8b94c68de..005f02b4a1ab 100644 --- a/net-nntp/hellanzb/files/hellanzb.init +++ b/net-nntp/hellanzb/files/hellanzb.init @@ -18,7 +18,7 @@ start() { export PATH="${PATH}:/opt/bin" start-stop-daemon --quiet --start -c ${HELLA_USER} \ -g ${HELLA_GROUP} \ - --exec /usr/bin/hellanzb.py -- \ + --exec /usr/bin/python /usr/bin/hellanzb.py -- \ -D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null eend $? } diff --git a/net-nntp/hellanzb/hellanzb-0.13-r3.ebuild b/net-nntp/hellanzb/hellanzb-0.13-r3.ebuild deleted file mode 100644 index d8e2e93bce33..000000000000 --- a/net-nntp/hellanzb/hellanzb-0.13-r3.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# 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-r3.ebuild,v 1.1 2007/11/22 23:38:51 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" - 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() { - 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/hellanzb-0.13-r4.ebuild b/net-nntp/hellanzb/hellanzb-0.13-r4.ebuild new file mode 100644 index 000000000000..953fc95aba3c --- /dev/null +++ b/net-nntp/hellanzb/hellanzb-0.13-r4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/hellanzb-0.13-r4.ebuild,v 1.1 2008/04/16 11:09:45 yngwin 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="~amd64 ~x86" +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" + 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() { + 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." +} -- cgit v1.2.3-65-gdbad