public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/, net-nntp/inn/
@ 2022-01-06 14:14 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-01-06 14:14 UTC (permalink / raw
  To: gentoo-commits

commit:     d6482d5f54daf37101c0e4f56eb8f06d4de77fa5
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Jan  6 14:09:34 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Jan  6 14:10:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d6482d5f

net-nntp/inn: revbump

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-nntp/inn/files/30inn                           |  1 +
 net-nntp/inn/files/cnfsstat.confd                  |  8 +++
 net-nntp/inn/files/cnfsstat.initd                  |  7 ++
 net-nntp/inn/files/innd.confd                      |  8 +++
 net-nntp/inn/files/innd.initd                      | 81 ++++++++++++++++++++++
 net-nntp/inn/files/innd.service                    | 27 ++++++++
 net-nntp/inn/files/innwatch.confd                  |  8 +++
 net-nntp/inn/files/innwatch.initd                  | 11 +++
 net-nntp/inn/files/ovdb.initd                      | 16 +++++
 .../inn/{inn-2.6.4.ebuild => inn-2.6.4-r1.ebuild}  | 50 +++++++++----
 10 files changed, 205 insertions(+), 12 deletions(-)

diff --git a/net-nntp/inn/files/30inn b/net-nntp/inn/files/30inn
new file mode 100644
index 000000000..747f31d15
--- /dev/null
+++ b/net-nntp/inn/files/30inn
@@ -0,0 +1 @@
+CONFIG_PROTECT=/var/db/news

diff --git a/net-nntp/inn/files/cnfsstat.confd b/net-nntp/inn/files/cnfsstat.confd
new file mode 100644
index 000000000..82ff22305
--- /dev/null
+++ b/net-nntp/inn/files/cnfsstat.confd
@@ -0,0 +1,8 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Initial sleep at startup (in seconds)
+#CNFSSTAT_DELAY=60
+
+# Options for cnfsstat
+#CNFSSTAT_OPTS=""

diff --git a/net-nntp/inn/files/cnfsstat.initd b/net-nntp/inn/files/cnfsstat.initd
new file mode 100644
index 000000000..51f84d056
--- /dev/null
+++ b/net-nntp/inn/files/cnfsstat.initd
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/opt/inn/bin/cnfsstat
+command_args="-i ${CNFSSTAT_DELAY:=60} -s -l -P ${CNFSSTAT_OPTS}"
+pidfile=/run/news/cnfsstat.pid

diff --git a/net-nntp/inn/files/innd.confd b/net-nntp/inn/files/innd.confd
new file mode 100644
index 000000000..e9080ebb0
--- /dev/null
+++ b/net-nntp/inn/files/innd.confd
@@ -0,0 +1,8 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Options for innd
+#INND_OPTS=""
+
+# Options for news.daily
+#INND_NEWSDAILY_OPTS=""

diff --git a/net-nntp/inn/files/innd.initd b/net-nntp/inn/files/innd.initd
new file mode 100644
index 000000000..e0643146e
--- /dev/null
+++ b/net-nntp/inn/files/innd.initd
@@ -0,0 +1,81 @@
+#!/sbin/openrc-run
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+# Derived from the rc.news shell script.
+# shellcheck shell=bash
+
+extra_commands="daily"
+extra_started_commands="reload"
+
+description_reload="Reload the INN configuration."
+description_daily="Perform daily Usenet maintenance tasks."
+
+command=/opt/inn/bin/innd
+command_args="${INND_OPTS}"
+pidfile=/run/news/innd.pid
+
+depend() {
+	need net
+	use ovdb innwatch cnfsstat
+}
+
+daily() {
+	ebegin "Executing news.daily"
+	/opt/inn/bin/news.daily ${INND_NEWSDAILY_OPTS}
+	eend $?
+}
+
+expirerm() {
+	local rmfile=/var/log/news/expire.rm
+	for f in ${rmfile} ${rmfile}.*; do
+		if [[ -s ${f} ]]; then
+			/opt/inn/bin/expirerm "${f}"
+		fi
+	done
+}
+
+start_pre() {
+	local active=/var/db/news/active
+	local old_newsdaily=$(find /var/db/news/.news.daily -mtime +1 -print 2>/dev/null)
+	if [[ ! -f /var/db/news/.news.daily ]] || [[ -n ${old_newsdaily} ]]; then
+		daily
+	fi
+
+	if [[ -f ${pidfile} ]] || [[ -f /run/news/.rebuildoverview ]] || [[ ! -s ${active} ]] ; then
+		# active needs to be renumbered
+		command_args+=" -r"
+	fi
+
+	# active file recovery
+	if [[ ! -s ${active} ]] ; then
+		if [[ -s ${active}.tmp ]]; then
+			mv ${active}.tmp ${active} || return 1
+		elif [[ -s ${active}.old ]]; then
+			cp ${active}.old ${active} || return 1
+		else
+			eerror "${RC_SVCNAME} failed to start: ${active} does not exist"
+			return 1
+		fi
+	fi
+
+	# remove temporary batchfiles and lock files
+	rm -f /var/spool/news/outgoing/bch*
+	rm -f /run/news/LOCK*
+	rm -f /run/news/{control,nntpin,.rebuildoverview}
+
+	expirerm
+}
+
+stop() {
+	ebegin "Stopping ${RC_SVCNAME}"
+	/opt/inn/bin/ctlinnd throttle "OpenRC service stop"
+	/opt/inn/bin/ctlinnd shutdown "OpenRC service stop"
+	eend $?
+}
+
+reload() {
+	ebegin "Reloading innd configuration"
+	/opt/inn/bin/ctlinnd -t 20 reload "" "OpenRC service reload"
+	eend $?
+}

diff --git a/net-nntp/inn/files/innd.service b/net-nntp/inn/files/innd.service
new file mode 100644
index 000000000..ae7db3a44
--- /dev/null
+++ b/net-nntp/inn/files/innd.service
@@ -0,0 +1,27 @@
+[Unit]
+Description=InterNetNews News Server
+Documentation=https://www.eyrie.org/~eagle/software/inn/
+After=network-online.target
+Wants=network-online.target
+ConditionPathExists=/etc/news/inn.conf
+
+[Service]
+Type=notify
+Restart=on-abort
+ExecStart=/opt/inn/bin/rc.news
+ExecReload=/opt/inn/bin/ctlinnd -t 20 reload '' 'systemd unit reload'
+ExecStop=/opt/inn/bin/rc.news stop
+PIDFile=/run/news/innd.pid
+User=news
+Group=news
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+PrivateTmp=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectSystem=full
+RuntimeDirectory=news
+LimitNOFILE=infinity
+ReadWritePaths=/var/spool/news
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-nntp/inn/files/innwatch.confd b/net-nntp/inn/files/innwatch.confd
new file mode 100644
index 000000000..2abb56a1d
--- /dev/null
+++ b/net-nntp/inn/files/innwatch.confd
@@ -0,0 +1,8 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Initial sleep at startup (in seconds)
+#INNWATCH_DELAY=60
+
+# Options for cnfsstat
+#INNWATCH_OPTS=""

diff --git a/net-nntp/inn/files/innwatch.initd b/net-nntp/inn/files/innwatch.initd
new file mode 100644
index 000000000..20eedda98
--- /dev/null
+++ b/net-nntp/inn/files/innwatch.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/opt/inn/bin/innwatch
+command_args="-i ${INNWATCH_DELAY:-60} ${INNWATCH_OPTS}"
+pidfile=/run/news/innwatch.pid
+
+stop_pre() {
+	rm -f /run/news/LOCK.innwatch
+}

diff --git a/net-nntp/inn/files/ovdb.initd b/net-nntp/inn/files/ovdb.initd
new file mode 100644
index 000000000..84e17e2a9
--- /dev/null
+++ b/net-nntp/inn/files/ovdb.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/opt/inn/bin/ovdb_init
+pidfile=/run/news/ovdb_server.pid
+
+stop() {
+	ebegin "Stopping ovdb_server"
+	start-stop-daemon --stop --pidfile /run/news/ovdb_server.pid
+	eend $?
+
+	ebegin "Stopping ovdb_monitor"
+	start-stop-daemon --stop --pidfile /run/news/ovdb_monitor.pid
+	ewend $?
+}

diff --git a/net-nntp/inn/inn-2.6.4.ebuild b/net-nntp/inn/inn-2.6.4-r1.ebuild
similarity index 62%
rename from net-nntp/inn/inn-2.6.4.ebuild
rename to net-nntp/inn/inn-2.6.4-r1.ebuild
index 5b0671696..64951fc42 100644
--- a/net-nntp/inn/inn-2.6.4.ebuild
+++ b/net-nntp/inn/inn-2.6.4-r1.ebuild
@@ -5,14 +5,14 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
 
-inherit optfeature python-single-r1 verify-sig
+inherit optfeature perl-functions python-single-r1 systemd verify-sig
 
 DESCRIPTION="InterNetNews -- the Internet meets Netnews"
 HOMEPAGE="https://www.eyrie.org/~eagle/software/inn/"
 SRC_URI="https://archives.eyrie.org/software/${PN}/${P}.tar.gz
 	verify-sig? ( https://archives.eyrie.org/software/${PN}/${P}.tar.gz.sha256.asc )"
 
-LICENSE="ISC"
+LICENSE="BSD BSD-2 BSD-4 GPL-2+ ISC MIT RSA powell public-domain"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="berkdb gzip kerberos keywords largefile low-memory +perl +python sasl ssl systemd zlib"
@@ -25,7 +25,6 @@ DEPEND="
 	app-crypt/gnupg
 	sys-libs/pam
 	virtual/libcrypt:=
-	virtual/sendmail
 	!berkdb? ( sys-libs/gdbm:= )
 	berkdb? ( sys-libs/db:* )
 	kerberos? ( app-crypt/mit-krb5 )
@@ -36,19 +35,16 @@ DEPEND="
 	systemd? ( sys-apps/systemd:= )
 	zlib? ( sys-libs/zlib:= )
 "
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+	virtual/sendmail
+"
 BDEPEND="
 	sys-devel/flex
 	virtual/yacc
 	verify-sig? ( sec-keys/openpgp-keys-russallbery )
 "
 
-DOCS=(
-	ChangeLog CONTRIBUTORS HACKING INSTALL NEWS README TODO
-	doc/{checklist,external-auth,FAQ} doc/history{,-innfeed}
-	doc/hook-{perl,python} doc/{IPv6-info,sample-control}
-	doc/config-{design,semantics,syntax}
-)
+DOCS=( ChangeLog CONTRIBUTORS HACKING INSTALL NEWS README TODO )
 
 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/russallbery.asc"
 
@@ -65,7 +61,20 @@ src_unpack() {
 
 src_configure() {
 	econf_args=(
-		--prefix=/opt/${PN}
+		--prefix="${EPREFIX}"/opt/${PN}
+		--libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}
+		--includedir="${EPREFIX}"/usr/include
+		--sysconfdir="${EPREFIX}"/etc/news
+
+		--with-db-dir="${EPREFIX}"/var/db/news
+		--with-doc-dir="${EPREFIX}"/usr/share/doc/${PF}
+		--with-http-dir="${EPREFIX}"/usr/share/${PN}/http
+		--with-libperl-dir=$(perl_get_vendorlib)
+		--with-log-dir="${EPREFIX}"/var/log/${PN}
+		--with-run-dir="${EPREFIX}"/run/news
+		--with-spool-dir="${EPREFIX}"/var/spool/news
+		--with-tmp-dir="${EPREFIX}"/var/tmp/news
+
 		$(use_enable keywords)
 		$(use_enable largefile largefiles)
 		$(use_enable low-memory tagged-hash)
@@ -80,6 +89,8 @@ src_configure() {
 
 	if use gzip; then
 		econf_args+=( --with-log-compress=gzip )
+	# elif use bzip2; then
+	#	econf_args+=( --with-log-compress=bzip2 )
 	else
 		econf_args+=( --with-log-compress=cat )
 	fi
@@ -98,10 +109,25 @@ src_test() {
 src_install() {
 	default
 
+	keepdir /var/log/inn/OLD
+	keepdir /var/tmp/news
+	keepdir /var/spool/news/{archive,articles,incoming/bad,innfeed,outgoing,overview}
+
+	find "${ED}" -name '*.la' -delete || die
+	rm "${ED}"/usr/share/doc/${PF}/{GPL,LICENSE} || die
+	rm -r "${ED}"/{run} || die
+
 	# collision with sys-apps/man-pages
 	mv "${ED}"/usr/share/man/man3/{list,inn-list}.3 || die
 
-	rm -r "${ED}"/opt/${PN}/{db,doc} || die
+	doenvd "${FILESDIR}"/30inn
+	newinitd "${FILESDIR}"/ovdb.initd ovdb
+	for svc in cnfsstat innd innwatch; do
+		newinitd "${FILESDIR}"/${svc}.initd ${svc}
+		newconfd "${FILESDIR}"/${svc}.confd ${svc}
+	done
+
+	systemd_dounit "${FILESDIR}"/innd.service
 }
 
 pkg_postinst() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/, net-nntp/inn/
@ 2022-03-18  4:04 Anna Vyalkova
  0 siblings, 0 replies; 2+ messages in thread
From: Anna Vyalkova @ 2022-03-18  4:04 UTC (permalink / raw
  To: gentoo-commits

commit:     b468dcd243ecbb0648eecaeed5da40875396ca69
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Mar  8 17:31:36 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Fri Mar 18 03:31:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b468dcd2

net-nntp/inn: add 2.6.5

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-nntp/inn/Manifest           |   2 +
 net-nntp/inn/files/inn.tmpfiles |   1 +
 net-nntp/inn/files/innd.service |   9 ++-
 net-nntp/inn/inn-2.6.5.ebuild   | 118 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 129 insertions(+), 1 deletion(-)

diff --git a/net-nntp/inn/Manifest b/net-nntp/inn/Manifest
index 86209df86..fd460e738 100644
--- a/net-nntp/inn/Manifest
+++ b/net-nntp/inn/Manifest
@@ -1,2 +1,4 @@
 DIST inn-2.6.4.tar.gz 2610659 BLAKE2B 0cabe90b941f47d759179f71de10212ffb71c1955452ab1b04018a3f7dbb2f8fa0f2f3c534bda9fc08768b4ffa1034fcf2d59077fa1a5bb77801c74d11a6cab5 SHA512 0b1e4add9fe1f2a423f372adbce9622ffe943c75865427f30b18f5a5b8c2dae158d5bfa4d611631cb993757523bc858ca6ad907463bd5f91c60a851359a70c57
 DIST inn-2.6.4.tar.gz.sha256.asc 620 BLAKE2B e21d72effaf090a7a8bbc6f1b6fc8f2b6a604dfbc594ae1bba5f559e93e0b352bd255a2b12880dabbd038f6204003064b9744def43ea6cfc0cd52aec0779f279 SHA512 17ab70d3df9500f3fbe0ee2e359bbaf8d54fcd4337000b44ab7e74f87c65617740b052d942f9e0adcb901e017ed64367f55e4dbb07075ae734fd05fcd5d21396
+DIST inn-2.6.5.tar.gz 2646269 BLAKE2B a7ac0016be44480a57a2603494f236d5cbfb40b2056768331b873c7ee4cc9845da7831d6ae0431dbbbc23d44561f8faadce6869a9af8f7b25235b824683814fc SHA512 7200880e179ac10dcb04ed534d2f3119ad4045e912016342e2552e3fc129a2b2d4360615bc03bc9f4e17c440cf07c8017c55f4c17400af140a8bf7b96dc52a2f
+DIST inn-2.6.5.tar.gz.asc 488 BLAKE2B 1c4899f85831ab40f359097d77c740f343c76542678753b961ff8dafb79c0277a67186163396568623c5af5fc0d1918ce7b1c0c73d936d65120039c2c72dd73a SHA512 f488554d90dcb8a4251113d7a7cc76899616797374e8e9703fffb5dd77ab83870fe6626564fe52ad6fc40b96c8b37f3aec125181008f7c2771a83715eaa06ea2

diff --git a/net-nntp/inn/files/inn.tmpfiles b/net-nntp/inn/files/inn.tmpfiles
new file mode 100644
index 000000000..791146741
--- /dev/null
+++ b/net-nntp/inn/files/inn.tmpfiles
@@ -0,0 +1 @@
+d /run/news 0755 news news -

diff --git a/net-nntp/inn/files/innd.service b/net-nntp/inn/files/innd.service
index ae7db3a44..dc5891882 100644
--- a/net-nntp/inn/files/innd.service
+++ b/net-nntp/inn/files/innd.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=InterNetNews News Server
 Documentation=https://www.eyrie.org/~eagle/software/inn/
+Documentation=man:innd(8)
 After=network-online.target
 Wants=network-online.target
 ConditionPathExists=/etc/news/inn.conf
@@ -9,11 +10,17 @@ ConditionPathExists=/etc/news/inn.conf
 Type=notify
 Restart=on-abort
 ExecStart=/opt/inn/bin/rc.news
-ExecReload=/opt/inn/bin/ctlinnd -t 20 reload '' 'systemd unit reload'
 ExecStop=/opt/inn/bin/rc.news stop
+ExecReload=/opt/inn/bin/ctlinnd -t 20 reload all 'by systemd'
 PIDFile=/run/news/innd.pid
 User=news
 Group=news
+ConfigurationDirectory=news
+LogsDirectory=news
+LogsDirectoryMode=775
+RuntimeDirectory=news
+StateDirectory=news
+StateDirectoryMode=775
 AmbientCapabilities=CAP_NET_BIND_SERVICE
 PrivateTmp=true
 ProtectControlGroups=true

diff --git a/net-nntp/inn/inn-2.6.5.ebuild b/net-nntp/inn/inn-2.6.5.ebuild
new file mode 100644
index 000000000..cb5f1511d
--- /dev/null
+++ b/net-nntp/inn/inn-2.6.5.ebuild
@@ -0,0 +1,118 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit optfeature perl-functions python-single-r1 systemd tmpfiles verify-sig
+
+DESCRIPTION="InterNetNews -- the Internet meets Netnews"
+HOMEPAGE="https://www.eyrie.org/~eagle/software/inn/"
+SRC_URI="https://archives.eyrie.org/software/${PN}/${P}.tar.gz
+	verify-sig? ( https://archives.eyrie.org/software/${PN}/${P}.tar.gz.asc )"
+
+LICENSE="BSD BSD-2 BSD-4 GPL-2+ ISC MIT RSA powell public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="berkdb gzip kerberos keywords largefile low-memory +perl +python sasl ssl systemd zlib"
+REQUIRED_USE="
+	python? ( ${PYTHON_REQUIRED_USE} )
+	?? ( low-memory largefile )
+" # ?? ( bzip2 gzip )
+
+DEPEND="
+	app-crypt/gnupg
+	sys-libs/pam
+	virtual/libcrypt:=
+	!berkdb? ( sys-libs/gdbm:= )
+	berkdb? ( sys-libs/db:* )
+	kerberos? ( app-crypt/mit-krb5 )
+	perl? ( dev-lang/perl:= )
+	python? ( ${PYTHON_DEPS} )
+	sasl? ( dev-libs/cyrus-sasl:2 )
+	ssl? ( dev-libs/openssl:= )
+	systemd? ( sys-apps/systemd:= )
+	zlib? ( sys-libs/zlib:= )
+"
+RDEPEND="${DEPEND}
+	virtual/sendmail
+"
+BDEPEND="
+	sys-devel/flex
+	virtual/yacc
+	verify-sig? ( sec-keys/openpgp-keys-russallbery )
+"
+
+DOCS=( CONTRIBUTORS HACKING INSTALL NEWS README TODO )
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/russallbery.asc"
+
+src_configure() {
+	econf_args=(
+		--prefix="${EPREFIX}"/opt/${PN}
+		--libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}
+		--includedir="${EPREFIX}"/usr/include
+		--sysconfdir="${EPREFIX}"/etc/news
+
+		--with-db-dir="${EPREFIX}"/var/db/news
+		--with-doc-dir="${EPREFIX}"/usr/share/doc/${PF}
+		--with-http-dir="${EPREFIX}"/usr/share/${PN}/http
+		--with-libperl-dir=$(perl_get_vendorlib)
+		--with-log-dir="${EPREFIX}"/var/log/news
+		--with-run-dir="${EPREFIX}"/run/news
+		--with-spool-dir="${EPREFIX}"/var/spool/news
+		--with-tmp-dir="${EPREFIX}"/var/tmp/news
+
+		$(use_enable keywords)
+		$(use_enable largefile largefiles)
+		$(use_enable low-memory tagged-hash)
+		$(use_with berkdb bdb)
+		$(use_with kerberos krb5)
+		$(use_with perl)
+		$(use_with python)
+		$(use_with sasl)
+		$(use_with ssl openssl)
+		$(use_with zlib)
+	)
+
+	if use gzip; then
+		econf_args+=( --with-log-compress=gzip )
+	# elif use bzip2; then
+	#	econf_args+=( --with-log-compress=bzip2 )
+	else
+		econf_args+=( --with-log-compress=cat )
+	fi
+
+	econf "${econf_args[@]}"
+}
+
+src_install() {
+	default
+
+	keepdir /var/log/inn/OLD
+	keepdir /var/tmp/news
+	keepdir /var/spool/news/{archive,articles,incoming/bad,innfeed,outgoing,overview}
+
+	find "${ED}" -name '*.la' -delete || die
+	rm "${ED}"/usr/share/doc/${PF}/{GPL,LICENSE} || die
+	rm -r "${ED}"/run || die
+
+	doenvd "${FILESDIR}"/30inn
+	newinitd "${FILESDIR}"/ovdb.initd ovdb
+	for svc in cnfsstat innd innwatch; do
+		newinitd "${FILESDIR}"/${svc}.initd ${svc}
+		newconfd "${FILESDIR}"/${svc}.confd ${svc}
+	done
+
+	systemd_dounit "${FILESDIR}"/innd.service
+	newtmpfiles "${FILESDIR}"/inn.tmpfiles inn.conf
+}
+
+pkg_postinst() {
+	if use perl; then
+		optfeature "controlchan program" dev-perl/MIME-tools
+		optfeature "innreport script" dev-perl/GD
+		optfeature "send-uucp backend" net-misc/taylor-uucp
+	fi
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-18  4:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-06 14:14 [gentoo-commits] repo/proj/guru:dev commit in: net-nntp/inn/files/, net-nntp/inn/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2022-03-18  4:04 Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox