net-misc/midentd: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:09:58 +0000 (19:09 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:09:58 +0000 (19:09 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-misc/midentd/files/midentd.rc
net-misc/midentd/midentd-2.3.1-r2.ebuild [new file with mode: 0644]

index ed89ba4d0fa03d97ab23c94b3c3bc2b3f86c5bc3..12ed1a6cc7c7a5b7c403416cb4c067468b738d47 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
diff --git a/net-misc/midentd/midentd-2.3.1-r2.ebuild b/net-misc/midentd/midentd-2.3.1-r2.ebuild
new file mode 100644 (file)
index 0000000..07d4e6d
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="ident daemon with masquerading and fake replies support"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl"
+
+src_prepare() {
+       default
+
+       eapply "${FILESDIR}"/${PV}-pidfile.patch
+       sed -i \
+               -e 's:/usr/local:/usr:' \
+               -e 's:service ident:service auth:' \
+               -e 's:disable = no:disable = yes:' \
+               midentd.xinetd || die
+}
+
+src_install() {
+       dosbin midentd midentd.logcycle
+
+       insinto /etc/xinetd.d
+       newins midentd.xinetd midentd
+       newinitd "${FILESDIR}"/midentd.rc midentd
+       newconfd "${FILESDIR}"/midentd.conf.d midentd
+
+       dodoc CHANGELOG README
+
+       dodir /var/log
+       touch "${D}"/var/log/midentd.log
+       fowners nobody:nobody /var/log/midentd.log
+}