summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Förster <Dessa@gmake.de>2018-03-07 23:06:54 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-15 17:05:12 +0100
commit55294d236f95c6c668686559ef11daed0e59d821 (patch)
tree20fe1f0f83d8ad4d158885ede1386333b1a6ef40 /net-misc/oidentd
parentsys-apps/lm_sensors: arm stable wrt bug #643028 (diff)
downloadgentoo-55294d236f95c6c668686559ef11daed0e59d821.tar.gz
gentoo-55294d236f95c6c668686559ef11daed0e59d821.tar.bz2
gentoo-55294d236f95c6c668686559ef11daed0e59d821.zip
net-misc/oidentd: bump to 2.2.2 from new upstream, create own user
Closes: https://github.com/gentoo/gentoo/pull/7387 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-misc/oidentd')
-rw-r--r--net-misc/oidentd/Manifest1
-rw-r--r--net-misc/oidentd/files/oidentd-2.2.2-confd4
-rw-r--r--net-misc/oidentd/files/oidentd.service-r19
-rw-r--r--net-misc/oidentd/files/oidentd_at.service-r17
-rw-r--r--net-misc/oidentd/metadata.xml2
-rw-r--r--net-misc/oidentd/oidentd-2.2.2.ebuild52
6 files changed, 74 insertions, 1 deletions
diff --git a/net-misc/oidentd/Manifest b/net-misc/oidentd/Manifest
index 342efb7a1d8c..f5561f79d57b 100644
--- a/net-misc/oidentd/Manifest
+++ b/net-misc/oidentd/Manifest
@@ -1 +1,2 @@
DIST oidentd-2.0.8.tar.gz 212354 BLAKE2B 46f4c4478822e832885f5f38a2ab5b2132ff5c1e5071fd1dc6050e55992d50bd96be096064996853af69d16316e6aff648c5320714b53b60c038cc9aaedfedda SHA512 86229a4ef9892121c25a7140616e180f862ca34b73ea3ad9f0fbb008f657abb17e9f14c2c25ae14c14bfc14bf1ea10b50fd68318631a9c52227bbfd6e6d43288
+DIST oidentd-2.2.2.tar.gz 260185 BLAKE2B a719413751280d44e134245793c4a88d93dd573d7d85895e341040c2d83a7b201f21f499b931c27e5c0f1d7d0957d730b2cda698ef98b74755e2ca1958457579 SHA512 c5c5040f8955e61e8a7cddd310501d24c3b2a3818e0cd122db85c03dc5b2b18ca7ea4e7edb420df3ad81558a25d4b31c1fea97684a9f53c71c9159014f84678d
diff --git a/net-misc/oidentd/files/oidentd-2.2.2-confd b/net-misc/oidentd/files/oidentd-2.2.2-confd
new file mode 100644
index 000000000000..215b62d88803
--- /dev/null
+++ b/net-misc/oidentd/files/oidentd-2.2.2-confd
@@ -0,0 +1,4 @@
+# oidentd start-up options
+USER="oidentd"
+GROUP="oidentd"
+OPTIONS=""
diff --git a/net-misc/oidentd/files/oidentd.service-r1 b/net-misc/oidentd/files/oidentd.service-r1
new file mode 100644
index 000000000000..af426eed6175
--- /dev/null
+++ b/net-misc/oidentd/files/oidentd.service-r1
@@ -0,0 +1,9 @@
+[Unit]
+Description=TCP/IP IDENT protocol server
+
+[Service]
+ExecStart=/usr/sbin/oidentd -i -S -u oidentd -g oidentd
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-misc/oidentd/files/oidentd_at.service-r1 b/net-misc/oidentd/files/oidentd_at.service-r1
new file mode 100644
index 000000000000..dac0e70fd79c
--- /dev/null
+++ b/net-misc/oidentd/files/oidentd_at.service-r1
@@ -0,0 +1,7 @@
+[Unit]
+Description=Ident (RFC 1413) per-connection server
+
+[Service]
+ExecStart=/usr/sbin/oidentd -I -S -u oidentd -g oidentd
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
diff --git a/net-misc/oidentd/metadata.xml b/net-misc/oidentd/metadata.xml
index 3be9f1f5f13d..ed7fbe111de7 100644
--- a/net-misc/oidentd/metadata.xml
+++ b/net-misc/oidentd/metadata.xml
@@ -13,6 +13,6 @@
<flag name="masquerade">Enable support for masqueraded/NAT connections</flag>
</use>
<upstream>
- <remote-id type="sourceforge">ojnk</remote-id>
+ <remote-id type="github">janikrabe/oidentd</remote-id>
</upstream>
</pkgmetadata>
diff --git a/net-misc/oidentd/oidentd-2.2.2.ebuild b/net-misc/oidentd/oidentd-2.2.2.ebuild
new file mode 100644
index 000000000000..73fc0be4d052
--- /dev/null
+++ b/net-misc/oidentd/oidentd-2.2.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info systemd user
+
+DESCRIPTION="Another (RFC1413 compliant) ident daemon"
+HOMEPAGE="https://oidentd.janikrabe.com/"
+SRC_URI="https://ftp.janikrabe.com/pub/${PN}/releases/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="debug ipv6 masquerade selinux"
+
+DEPEND="masquerade? (
+ net-libs/libnetfilter_conntrack
+ sys-libs/libcap-ng )"
+
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-oident )"
+
+pkg_setup() {
+ local CONFIG_CHECK="~INET_TCP_DIAG"
+
+ linux-info_pkg_setup
+
+ enewgroup oidentd
+ enewuser oidentd -1 -1 -1 oidentd
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable debug)
+ $(use_enable ipv6)
+ $(use_enable masquerade masq)
+ $(use_enable masquerade nat)
+ )
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}-2.0.7-init ${PN}
+ newconfd "${FILESDIR}"/${PN}-2.2.2-confd ${PN}
+
+ systemd_newunit "${FILESDIR}"/${PN}_at.service-r1 ${PN}@.service
+ systemd_dounit "${FILESDIR}"/${PN}.socket
+ systemd_dounit "${FILESDIR}"/${PN}.service-r1
+}