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

Package-Manager: portage-2.2.26

net-misc/linux-identd/files/identd.init
net-misc/linux-identd/linux-identd-1.3-r2.ebuild [new file with mode: 0644]

index d5ffc5d1a391048497c15d917b200f1d695c7aca..1e4629c1eed86297d4bd0e26499046bd9798c384 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/linux-identd/linux-identd-1.3-r2.ebuild b/net-misc/linux-identd/linux-identd-1.3-r2.ebuild
new file mode 100644 (file)
index 0000000..2bf2394
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A real IDENT daemon for linux"
+HOMEPAGE="http://www.fukt.bsnet.se/~per/identd/"
+SRC_URI="http://www.fukt.bsnet.se/~per/identd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc sparc x86"
+IUSE="xinetd"
+
+DEPEND=""
+RDEPEND="xinetd? ( sys-apps/xinetd )"
+
+src_compile() {
+       emake CC="$(tc-getCC)" CEXTRAS="${CFLAGS}"
+}
+
+src_install() {
+       dodir /etc/init.d /usr/sbin /usr/share/man/man8
+       dodoc README ChangeLog
+       emake install DESTDIR="${D}" MANDIR=/usr/share/man
+
+       if use xinetd; then
+               insinto /etc/xinetd.d
+               newins "${FILESDIR}"/identd.xinetd identd
+       else
+               newinitd "${FILESDIR}"/identd.init identd
+       fi
+}