summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild')
-rw-r--r--net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild b/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild
new file mode 100644
index 000000000000..6b2098748b9f
--- /dev/null
+++ b/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild
@@ -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
+}