From 71220bfa3618fcffdf8463cedbaebcfcbd88939f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Sun, 3 Feb 2019 15:59:19 +0100 Subject: [PATCH] [net-misc/oidentd] drop, its in tree --- net-misc/oidentd/Manifest | 1 - net-misc/oidentd/files/oidentd-2.0.7-init | 40 ---------------- net-misc/oidentd/files/oidentd-2.2.2-confd | 4 -- net-misc/oidentd/metadata.xml | 18 ------- net-misc/oidentd/oidentd-2.3.2.ebuild | 55 ---------------------- 5 files changed, 118 deletions(-) delete mode 100644 net-misc/oidentd/Manifest delete mode 100644 net-misc/oidentd/files/oidentd-2.0.7-init delete mode 100644 net-misc/oidentd/files/oidentd-2.2.2-confd delete mode 100644 net-misc/oidentd/metadata.xml delete mode 100644 net-misc/oidentd/oidentd-2.3.2.ebuild diff --git a/net-misc/oidentd/Manifest b/net-misc/oidentd/Manifest deleted file mode 100644 index 76b3374..0000000 --- a/net-misc/oidentd/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST oidentd-2.3.2.tar.xz 187772 BLAKE2B 460d2959cf9f1f125a76191f8b67a083a7d9bce84c706c76f6e8da6113b12eb6e760345774d15079ff449c153ac54805d4bfa8b057c1238ff703474e118b8458 SHA512 7293339897149a990928105e6cdd77aef7cd273f625496fcc674a414764ebfe835d2a9525e518a7215fc93537c48b70d15999d5669227dbb7fbf5cefb3d04e14 diff --git a/net-misc/oidentd/files/oidentd-2.0.7-init b/net-misc/oidentd/files/oidentd-2.0.7-init deleted file mode 100644 index 5b1ae44..0000000 --- a/net-misc/oidentd/files/oidentd-2.0.7-init +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net -} - -check_config() { - if [ -z "${USER}" ] - then - eerror "Please set \$USER in /etc/conf.d/oidentd!" - return 1 - fi - if [ -z "${GROUP}" ] - then - eerror "Please set \$GROUP in /etc/conf.d/oidentd!" - return 1 - fi - - if [ "$(sysctl -n security.bsd.see_other_uids 2>/dev/null)" = "0" ]; then - eerror "${SVCNAME} cannot work if the sysctl security.bsd.see_other_uids is 0" - return 1 - fi -} - - -start() { - check_config || return 1 - ebegin "Starting oidentd" - OPTIONS="${OPTIONS} -u ${USER} -g ${GROUP}" - start-stop-daemon --start --quiet --exec /usr/sbin/oidentd -- $OPTIONS - eend $? -} - -stop() { - ebegin "Stopping oidentd" - start-stop-daemon --stop --quiet --exec /usr/sbin/oidentd - eend $? -} diff --git a/net-misc/oidentd/files/oidentd-2.2.2-confd b/net-misc/oidentd/files/oidentd-2.2.2-confd deleted file mode 100644 index 215b62d..0000000 --- a/net-misc/oidentd/files/oidentd-2.2.2-confd +++ /dev/null @@ -1,4 +0,0 @@ -# oidentd start-up options -USER="oidentd" -GROUP="oidentd" -OPTIONS="" diff --git a/net-misc/oidentd/metadata.xml b/net-misc/oidentd/metadata.xml deleted file mode 100644 index ed7fbe1..0000000 --- a/net-misc/oidentd/metadata.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Dessa@gmake.de - Robert Förster - - - proxy-maint@gentoo.org - Proxy Maintainers - - - Enable support for masqueraded/NAT connections - - - janikrabe/oidentd - - diff --git a/net-misc/oidentd/oidentd-2.3.2.ebuild b/net-misc/oidentd/oidentd-2.3.2.ebuild deleted file mode 100644 index 3c995fd..0000000 --- a/net-misc/oidentd/oidentd-2.3.2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit systemd user - -DESCRIPTION="Another (RFC1413 compliant) ident daemon" -HOMEPAGE="https://oidentd.janikrabe.com/" -SRC_URI="https://files.janikrabe.com/pub/${PN}/releases/${PV}/${P}.tar.xz" - -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() { - enewgroup oidentd - enewuser oidentd -1 -1 -1 oidentd -} - -src_prepare() { - sed -i '/ExecStart/ s|$| -u oidentd -g oidentd|' contrib/systemd/*.service || die - - default -} - -src_configure() { - local myconf=( - $(use_enable debug) - $(use_enable ipv6) - $(use_enable masquerade libnfct) - $(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_dounit contrib/systemd/${PN}@.service - systemd_dounit contrib/systemd/${PN}.socket - systemd_dounit contrib/systemd/${PN}.service -}