summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2008-07-11 19:14:08 +0000
committerSven Wegener <swegener@gentoo.org>2008-07-11 19:14:08 +0000
commit17c29a7ed2f2c38a8f2c9e95eaa9bf40e8be8a54 (patch)
tree3e09b9eb3e934b21c83aa87313c0c6075fbeb6dd /net-nntp/nzbget
parentold (diff)
downloadgentoo-2-17c29a7ed2f2c38a8f2c9e95eaa9bf40e8be8a54.tar.gz
gentoo-2-17c29a7ed2f2c38a8f2c9e95eaa9bf40e8be8a54.tar.bz2
gentoo-2-17c29a7ed2f2c38a8f2c9e95eaa9bf40e8be8a54.zip
Version bump.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc9-00102-ge5a5816 x86_64)
Diffstat (limited to 'net-nntp/nzbget')
-rw-r--r--net-nntp/nzbget/ChangeLog7
-rw-r--r--net-nntp/nzbget/nzbget-0.4.1.ebuild81
2 files changed, 87 insertions, 1 deletions
diff --git a/net-nntp/nzbget/ChangeLog b/net-nntp/nzbget/ChangeLog
index 0e0e132987a2..04127d0cfd7f 100644
--- a/net-nntp/nzbget/ChangeLog
+++ b/net-nntp/nzbget/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-nntp/nzbget
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.20 2008/06/20 20:48:44 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.21 2008/07/11 19:14:08 swegener Exp $
+
+*nzbget-0.4.1 (11 Jul 2008)
+
+ 11 Jul 2008; Sven Wegener <swegener@gentoo.org> +nzbget-0.4.1.ebuild:
+ Version bump.
20 Jun 2008; Sven Wegener <swegener@gentoo.org>
+files/nzbget-0.4.0-gcc-4.3.patch, nzbget-0.4.0.ebuild,
diff --git a/net-nntp/nzbget/nzbget-0.4.1.ebuild b/net-nntp/nzbget/nzbget-0.4.1.ebuild
new file mode 100644
index 000000000000..b9c657cc5afb
--- /dev/null
+++ b/net-nntp/nzbget/nzbget-0.4.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.4.1.ebuild,v 1.1 2008/07/11 19:14:08 swegener Exp $
+
+EAPI="1"
+
+inherit eutils
+
+DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
+HOMEPAGE="http://nzbget.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86"
+IUSE="debug ncurses parcheck"
+
+DEPEND="dev-libs/libxml2
+ parcheck? (
+ app-arch/libpar2
+ dev-libs/libsigc++:2
+ )
+ ncurses? ( sys-libs/ncurses )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed \
+ -e 's:^$MAINDIR=.*:$MAINDIR=/var/lib/nzbget:' \
+ -e 's:^LockFile=.*:LockFile=/var/run/nzbget/nzbget.pid:' \
+ -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
+ "${S}"/nzbget.conf.example >"${S}"/nzbgetd.conf.example \
+ || die "sed nzbgetd.conf.example failed"
+}
+
+src_compile() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable ncurses curses) \
+ $(use_enable parcheck) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "emake install failed"
+
+ insinto /etc
+ newins nzbget.conf.example nzbget.conf || die "newins failed"
+ newins nzbgetd.conf.example nzbgetd.conf || die "newins failed"
+
+ keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
+ keepdir /var/{log,run}/nzbget
+
+ newinitd "${FILESDIR}"/nzbget.initd nzbget
+ newconfd "${FILESDIR}"/nzbget.confd nzbget
+
+ dodoc AUTHORS ChangeLog README nzbget.conf.example || die "dodoc failed"
+}
+
+pkg_postinst() {
+ enewgroup nzbget
+ enewuser nzbget -1 -1 /var/lib/nzbget nzbget
+
+ chown nzbget:nzbget "${ROOT}"/var/lib/nzbget/{dst,nzb,queue,tmp}
+ chmod 750 "${ROOT}"/var/lib/nzbget/{queue,tmp}
+ chmod 770 "${ROOT}"/var/lib/nzbget/{dst,nzb}
+
+ chown nzbget:nzbget "${ROOT}"/var/{log,run}/nzbget
+ chmod 750 "${ROOT}"/var/{log,run}/nzbget
+
+ chown root:nzbget "${ROOT}"/etc/nzbgetd.conf
+ chmod 640 "${ROOT}"/etc/nzbgetd.conf
+
+ elog
+ elog "Please add users that you want to be able to use the system-wide"
+ elog "nzbget daemon to the nzbget group. To access the daemon run nzbget"
+ elog "with the --configfile /etc/nzbgetd.conf option."
+ elog
+}