net-misc/fakeidentd: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Tue, 3 May 2016 23:27:07 +0000 (18:27 -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/fakeidentd/fakeidentd-2.6-r1.ebuild [new file with mode: 0644]
net-misc/fakeidentd/files/fakeidentd.rc

diff --git a/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild b/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild
new file mode 100644 (file)
index 0000000..6b20987
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A static, secure identd.  One source file only!"
+HOMEPAGE="http://www.guru-group.fi/~too/sw/"
+SRC_URI="http://www.guru-group.fi/~too/sw/identd.readme -> ${P}.readme
+       http://www.guru-group.fi/~too/sw/releases/identd.c -> ${P}.c"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~sh sparc x86"
+IUSE=""
+
+echoit() {
+       echo "$@"
+       "$@"
+}
+
+src_unpack() {
+       mkdir -p "${S}"
+       echoit cp "${DISTDIR}"/${P}.{c,readme} "${S}" || die
+}
+
+src_compile() {
+       echoit $(tc-getCC) ${CFLAGS} ${LDFLAGS} \
+               -DTRG=\"${PN}\" -DUSE_UNIX_OS -DVERSION=\"${PV}\" \
+               -o ${PN} ${P}.c || die
+}
+
+src_install() {
+       dosbin ${PN}
+       newdoc ${P}.readme identd.readme
+
+       newinitd "${FILESDIR}"/fakeidentd.rc fakeidentd
+       newconfd "${FILESDIR}"/fakeidentd.confd fakeidentd
+}
index 79082f069b8f2584e05ebca2f9dc7cef1626ae36..4510f74507061392e9522de26404e16a1034b02b 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$