summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-07-02 18:00:58 +0000
committerTim Harder <radhermit@gentoo.org>2013-07-02 18:00:58 +0000
commit9a42aec536a5a622ff0595cf52ef9bd542dfc531 (patch)
treef1fa9227a36795f4c1fd6bafbc8e6687d366bc27 /net-nntp
parentVersion bump. (diff)
downloadgentoo-2-9a42aec536a5a622ff0595cf52ef9bd542dfc531.tar.gz
gentoo-2-9a42aec536a5a622ff0595cf52ef9bd542dfc531.tar.bz2
gentoo-2-9a42aec536a5a622ff0595cf52ef9bd542dfc531.zip
Remove old.
(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/nzbget/ChangeLog7
-rw-r--r--net-nntp/nzbget/files/nzbget-0.7.0-openssl-1.patch36
-rw-r--r--net-nntp/nzbget/nzbget-0.8.0.ebuild103
-rw-r--r--net-nntp/nzbget/nzbget-10.1.ebuild110
-rw-r--r--net-nntp/nzbget/nzbget-11.0_pre684.ebuild107
-rw-r--r--net-nntp/nzbget/nzbget-11.0_pre705.ebuild107
-rw-r--r--net-nntp/nzbget/nzbget-11.0_pre711.ebuild107
7 files changed, 6 insertions, 571 deletions
diff --git a/net-nntp/nzbget/ChangeLog b/net-nntp/nzbget/ChangeLog
index dd6653b72390..1d0457fe462a 100644
--- a/net-nntp/nzbget/ChangeLog
+++ b/net-nntp/nzbget/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-nntp/nzbget
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.71 2013/07/02 17:58:00 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.72 2013/07/02 18:00:58 radhermit Exp $
+
+ 02 Jul 2013; Tim Harder <radhermit@gentoo.org> -nzbget-0.8.0.ebuild,
+ -nzbget-10.1.ebuild, -nzbget-11.0_pre684.ebuild, -nzbget-11.0_pre705.ebuild,
+ -nzbget-11.0_pre711.ebuild, -files/nzbget-0.7.0-openssl-1.patch:
+ Remove old.
*nzbget-11.0 (02 Jul 2013)
diff --git a/net-nntp/nzbget/files/nzbget-0.7.0-openssl-1.patch b/net-nntp/nzbget/files/nzbget-0.7.0-openssl-1.patch
deleted file mode 100644
index d57c2647e087..000000000000
--- a/net-nntp/nzbget/files/nzbget-0.7.0-openssl-1.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-http://bugs.gentoo.org/326995
-
---- TLS.cpp
-+++ TLS.cpp
-@@ -908,7 +908,7 @@
- char *buf;
- int bufsize;
- /* needed to get the DNS subjectAltNames: */
-- STACK *subj_alt_names;
-+ STACK_OF(GENERAL_NAME) *subj_alt_names;
- int subj_alt_names_count;
- GENERAL_NAME *subj_alt_name;
- /* did we find a name matching hostname? */
-@@ -960,7 +960,7 @@
- /* Try the DNS subjectAltNames. */
- match_found = 0;
- if ((subj_alt_names =
-- (STACK*)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
-+ (STACK_OF(GENERAL_NAME) *)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
- {
- subj_alt_names_count = sk_GENERAL_NAME_num(subj_alt_names);
- for (i = 0; i < subj_alt_names_count; i++)
-@@ -1104,8 +1104,12 @@
- #endif /* HAVE_LIBGNUTLS */
-
- #ifdef HAVE_OPENSSL
--
-+
-+ #if OPENSSL_VERSION_NUMBER >= 0x10000000L
-+ const SSL_METHOD *ssl_method = NULL;
-+ #else
- SSL_METHOD *ssl_method = NULL;
-+ #endif
-
- ssl_method = force_sslv3 ? SSLv3_client_method() : SSLv23_client_method();
- if (!ssl_method)
diff --git a/net-nntp/nzbget/nzbget-0.8.0.ebuild b/net-nntp/nzbget/nzbget-0.8.0.ebuild
deleted file mode 100644
index 299d9c047010..000000000000
--- a/net-nntp/nzbget/nzbget-0.8.0.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.8.0.ebuild,v 1.5 2012/10/06 16:58:44 armin76 Exp $
-
-EAPI="4"
-
-inherit eutils autotools user
-
-DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
-HOMEPAGE="http://nzbget.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE="debug gnutls ncurses parcheck ssl"
-
-RDEPEND="dev-libs/libxml2
- ncurses? ( sys-libs/ncurses )
- parcheck? (
- app-arch/libpar2
- dev-libs/libsigc++:2
- )
- ssl? (
- gnutls? ( net-libs/gnutls )
- !gnutls? ( dev-libs/openssl )
- )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README nzbget.conf.example )
-
-src_prepare() {
- sed \
- -i \
- -e 's:^PostProcess=.*:#PostProcess=/usr/share/nzbget/postprocess-example.sh:' \
- nzbget.conf.example \
- || die
-
- 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
-
- epatch "${FILESDIR}"/${PN}-0.7.0-openssl-1.patch \
- "${FILESDIR}"/${PN}-0.7.0-underlinking.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable debug) \
- $(use_enable ncurses curses) \
- $(use_enable parcheck) \
- $(use_enable ssl tls) \
- --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
-}
-
-src_install() {
- default
-
- insinto /etc
- newins nzbget.conf.example nzbget.conf
- newins nzbgetd.conf.example nzbgetd.conf
-
- keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
- keepdir /var/{log,run}/nzbget
-
- newinitd "${FILESDIR}"/nzbget.initd nzbget
- newconfd "${FILESDIR}"/nzbget.confd nzbget
-
- exeinto /usr/share/nzbget
- doexe postprocess-example.sh
-
- insinto /usr/share/nzbget
- doins postprocess-example.conf
-}
-
-pkg_preinst() {
- enewgroup nzbget
- enewuser nzbget -1 -1 /var/lib/nzbget nzbget
-
- fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
- fperms 750 /var/lib/nzbget/{queue,tmp}
- fperms 770 /var/lib/nzbget/{dst,nzb}
-
- fowners nzbget:nzbget /var/{log,run}/nzbget
- fperms 750 /var/{log,run}/nzbget
-
- fowners root:nzbget /etc/nzbgetd.conf
- fperms 640 /etc/nzbgetd.conf
-}
-
-pkg_postinst() {
- 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
-}
diff --git a/net-nntp/nzbget/nzbget-10.1.ebuild b/net-nntp/nzbget/nzbget-10.1.ebuild
deleted file mode 100644
index cb164ef057a7..000000000000
--- a/net-nntp/nzbget/nzbget-10.1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-10.1.ebuild,v 1.1 2013/04/01 06:26:09 radhermit Exp $
-
-EAPI=5
-
-inherit eutils autotools user
-
-MY_P=${P/_pre/-testing-r}
-
-DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
-HOMEPAGE="http://nzbget.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug gnutls ncurses parcheck ssl zlib "
-
-RDEPEND="dev-libs/libxml2
- ncurses? ( sys-libs/ncurses )
- parcheck? (
- app-arch/libpar2
- dev-libs/libsigc++:2
- )
- ssl? (
- gnutls? ( net-libs/gnutls )
- !gnutls? ( dev-libs/openssl )
- )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README nzbget.conf )
-
-S=${WORKDIR}/${P/_pre*/-testing}
-
-src_prepare() {
- sed -i 's:^PostProcess=.*:#PostProcess=/usr/share/nzbget/nzbget-postprocess.sh:' \
- nzbget.conf || die
-
- sed -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
- -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \
- -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
- "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die
-
- sed -i "/^dist_doc_DATA/d" Makefile.am || die
-
- epatch "${FILESDIR}"/${PN}-9.0_pre477-buffer-overflows.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable debug) \
- $(use_enable ncurses curses) \
- $(use_enable parcheck) \
- --disable-libpar2-bugfixes-check \
- $(use_enable ssl tls) \
- $(use_enable zlib gzip) \
- --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
-}
-
-src_install() {
- default
-
- # remove unneeded service script
- rm "${D}"/usr/sbin/nzbgetd || die
-
- insinto /etc
- doins nzbget.conf
- doins nzbgetd.conf
-
- exeinto /usr/share/nzbget
- doexe nzbget-postprocess.sh
-
- # remove duplicate script/config
- rm "${D}"/usr/share/nzbget/nzbget.conf
- rm "${D}"/usr/bin/nzbget-postprocess.sh
-
- keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
- keepdir /var/log/nzbget
-
- newinitd "${FILESDIR}"/nzbget.initd nzbget
- newconfd "${FILESDIR}"/nzbget.confd nzbget
-}
-
-pkg_preinst() {
- enewgroup nzbget
- enewuser nzbget -1 -1 /var/lib/nzbget nzbget
-
- fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
- fperms 750 /var/lib/nzbget/{queue,tmp}
- fperms 770 /var/lib/nzbget/{dst,nzb}
-
- fowners nzbget:nzbget /var/log/nzbget
- fperms 750 /var/log/nzbget
-
- fowners root:nzbget /etc/nzbgetd.conf
- fperms 640 /etc/nzbgetd.conf
-}
-
-pkg_postinst() {
- 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
-}
diff --git a/net-nntp/nzbget/nzbget-11.0_pre684.ebuild b/net-nntp/nzbget/nzbget-11.0_pre684.ebuild
deleted file mode 100644
index 1bdf6934f4d7..000000000000
--- a/net-nntp/nzbget/nzbget-11.0_pre684.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-11.0_pre684.ebuild,v 1.1 2013/05/18 07:18:22 radhermit Exp $
-
-EAPI=5
-
-inherit eutils autotools user
-
-MY_P=${P/_pre/-testing-r}
-
-DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
-HOMEPAGE="http://nzbget.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug gnutls ncurses parcheck ssl zlib "
-
-RDEPEND="dev-libs/libxml2
- ncurses? ( sys-libs/ncurses )
- parcheck? (
- app-arch/libpar2
- dev-libs/libsigc++:2
- )
- ssl? (
- gnutls? ( net-libs/gnutls )
- !gnutls? ( dev-libs/openssl )
- )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README nzbget.conf )
-
-S=${WORKDIR}/${P/_pre*/-testing}
-
-src_prepare() {
- sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
-
- sed -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
- -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \
- -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
- "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die
-
- sed -i "/^dist_doc_DATA/d" Makefile.am || die
-
- epatch "${FILESDIR}"/${PN}-9.0_pre477-buffer-overflows.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable debug) \
- $(use_enable ncurses curses) \
- $(use_enable parcheck) \
- --disable-libpar2-bugfixes-check \
- $(use_enable ssl tls) \
- $(use_enable zlib gzip) \
- --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
-}
-
-src_install() {
- default
-
- # remove unneeded service script
- rm "${D}"/usr/sbin/nzbgetd || die
-
- insinto /etc
- doins nzbget.conf
- doins nzbgetd.conf
-
- # remove duplicate script/config
- rm "${D}"/usr/share/nzbget/nzbget.conf || die
-
- keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
- keepdir /var/log/nzbget
-
- newinitd "${FILESDIR}"/nzbget.initd nzbget
- newconfd "${FILESDIR}"/nzbget.confd nzbget
-}
-
-pkg_preinst() {
- enewgroup nzbget
- enewuser nzbget -1 -1 /var/lib/nzbget nzbget
-
- fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
- fperms 750 /var/lib/nzbget/{queue,tmp}
- fperms 770 /var/lib/nzbget/{dst,nzb}
-
- fowners nzbget:nzbget /var/log/nzbget
- fperms 750 /var/log/nzbget
-
- fowners root:nzbget /etc/nzbgetd.conf
- fperms 640 /etc/nzbgetd.conf
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- 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
- fi
-}
diff --git a/net-nntp/nzbget/nzbget-11.0_pre705.ebuild b/net-nntp/nzbget/nzbget-11.0_pre705.ebuild
deleted file mode 100644
index c568f135c647..000000000000
--- a/net-nntp/nzbget/nzbget-11.0_pre705.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-11.0_pre705.ebuild,v 1.1 2013/06/09 04:25:38 radhermit Exp $
-
-EAPI=5
-
-inherit eutils autotools user
-
-MY_P=${P/_pre/-testing-r}
-
-DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
-HOMEPAGE="http://nzbget.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug gnutls ncurses parcheck ssl zlib "
-
-RDEPEND="dev-libs/libxml2
- ncurses? ( sys-libs/ncurses )
- parcheck? (
- app-arch/libpar2
- dev-libs/libsigc++:2
- )
- ssl? (
- gnutls? ( net-libs/gnutls )
- !gnutls? ( dev-libs/openssl )
- )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README nzbget.conf )
-
-S=${WORKDIR}/${P/_pre*/-testing}
-
-src_prepare() {
- sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
-
- sed -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
- -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \
- -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
- "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die
-
- sed -i "/^dist_doc_DATA/d" Makefile.am || die
-
- epatch "${FILESDIR}"/${PN}-9.0_pre477-buffer-overflows.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable debug) \
- $(use_enable ncurses curses) \
- $(use_enable parcheck) \
- --disable-libpar2-bugfixes-check \
- $(use_enable ssl tls) \
- $(use_enable zlib gzip) \
- --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
-}
-
-src_install() {
- default
-
- # remove unneeded service script
- rm "${D}"/usr/sbin/nzbgetd || die
-
- insinto /etc
- doins nzbget.conf
- doins nzbgetd.conf
-
- # remove duplicate script/config
- rm "${D}"/usr/share/nzbget/nzbget.conf || die
-
- keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
- keepdir /var/log/nzbget
-
- newinitd "${FILESDIR}"/nzbget.initd nzbget
- newconfd "${FILESDIR}"/nzbget.confd nzbget
-}
-
-pkg_preinst() {
- enewgroup nzbget
- enewuser nzbget -1 -1 /var/lib/nzbget nzbget
-
- fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
- fperms 750 /var/lib/nzbget/{queue,tmp}
- fperms 770 /var/lib/nzbget/{dst,nzb}
-
- fowners nzbget:nzbget /var/log/nzbget
- fperms 750 /var/log/nzbget
-
- fowners root:nzbget /etc/nzbgetd.conf
- fperms 640 /etc/nzbgetd.conf
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- 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
- fi
-}
diff --git a/net-nntp/nzbget/nzbget-11.0_pre711.ebuild b/net-nntp/nzbget/nzbget-11.0_pre711.ebuild
deleted file mode 100644
index b60a05ace31d..000000000000
--- a/net-nntp/nzbget/nzbget-11.0_pre711.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-11.0_pre711.ebuild,v 1.1 2013/06/18 08:10:19 radhermit Exp $
-
-EAPI=5
-
-inherit eutils autotools user
-
-MY_P=${P/_pre/-testing-r}
-
-DESCRIPTION="A command-line based binary newsgrapper supporting .nzb files"
-HOMEPAGE="http://nzbget.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug gnutls ncurses parcheck ssl zlib "
-
-RDEPEND="dev-libs/libxml2
- ncurses? ( sys-libs/ncurses )
- parcheck? (
- app-arch/libpar2
- dev-libs/libsigc++:2
- )
- ssl? (
- gnutls? ( net-libs/gnutls )
- !gnutls? ( dev-libs/openssl )
- )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-DOCS=( AUTHORS ChangeLog README nzbget.conf )
-
-S=${WORKDIR}/${P/_pre*/-testing}
-
-src_prepare() {
- sed -i 's:^ScriptDir=.*:ScriptDir=/usr/share/nzbget/ppscripts:' nzbget.conf || die
-
- sed -e 's:^MainDir=.*:MainDir=/var/lib/nzbget:' \
- -e 's:^LockFile=.*:LockFile=/run/nzbget/nzbget.pid:' \
- -e 's:^LogFile=.*:LogFile=/var/log/nzbget/nzbget.log:' \
- "${S}"/nzbget.conf > "${S}"/nzbgetd.conf || die
-
- sed -i "/^dist_doc_DATA/d" Makefile.am || die
-
- epatch "${FILESDIR}"/${PN}-9.0_pre477-buffer-overflows.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable debug) \
- $(use_enable ncurses curses) \
- $(use_enable parcheck) \
- --disable-libpar2-bugfixes-check \
- $(use_enable ssl tls) \
- $(use_enable zlib gzip) \
- --with-tlslib=$(usex gnutls GnuTLS OpenSSL)
-}
-
-src_install() {
- default
-
- # remove unneeded service script
- rm "${D}"/usr/sbin/nzbgetd || die
-
- insinto /etc
- doins nzbget.conf
- doins nzbgetd.conf
-
- # remove duplicate script/config
- rm "${D}"/usr/share/nzbget/nzbget.conf || die
-
- keepdir /var/lib/nzbget/{dst,nzb,queue,tmp}
- keepdir /var/log/nzbget
-
- newinitd "${FILESDIR}"/nzbget.initd nzbget
- newconfd "${FILESDIR}"/nzbget.confd nzbget
-}
-
-pkg_preinst() {
- enewgroup nzbget
- enewuser nzbget -1 -1 /var/lib/nzbget nzbget
-
- fowners nzbget:nzbget /var/lib/nzbget/{dst,nzb,queue,tmp}
- fperms 750 /var/lib/nzbget/{queue,tmp}
- fperms 770 /var/lib/nzbget/{dst,nzb}
-
- fowners nzbget:nzbget /var/log/nzbget
- fperms 750 /var/log/nzbget
-
- fowners root:nzbget /etc/nzbgetd.conf
- fperms 640 /etc/nzbgetd.conf
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]] ; then
- 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
- fi
-}