net-misc/mdidentd: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:07:50 +0000 (19:07 -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/mdidentd/files/mdidentd.init.d
net-misc/mdidentd/mdidentd-1.04c-r1.ebuild [new file with mode: 0644]

index a21e287d6fe15e646739bffe9d862eba1acf1272..8144c09c94beeab04463ebe36a8de7fb2fb54e3c 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/mdidentd/mdidentd-1.04c-r1.ebuild b/net-misc/mdidentd/mdidentd-1.04c-r1.ebuild
new file mode 100644 (file)
index 0000000..8dd559e
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit user
+
+DESCRIPTION="This is an identd with provides registering of idents"
+HOMEPAGE="http://druglord.freelsd.org/ezbounce/"
+SRC_URI="http://druglord.freelsd.org/ezbounce/files/ezbounce-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/ezbounce-${PV}
+
+pkg_setup() {
+       enewgroup mdidentd
+       enewuser mdidentd -1 -1 /dev/null mdidentd
+}
+
+src_prepare() {
+       eapply "${FILESDIR}"/1.04a-security.patch
+       eapply -p0 "${FILESDIR}"/1.04a-pidfile.patch
+       eapply -p1 "${FILESDIR}"/1.04a-glibc210.patch
+
+       default
+}
+
+src_configure() {
+       econf $(use_with ssl)
+}
+
+src_compile() {
+       emake CXX="$(tc-getCXX)" -C mdidentd CXX_OPTIMIZATIONS="${CXXFLAGS}"
+}
+
+src_install() {
+       dosbin mdidentd/mdidentd
+       dodoc mdidentd/README
+
+       newinitd "${FILESDIR}"/mdidentd.init.d mdidentd
+       newconfd "${FILESDIR}"/mdidentd.conf.d mdidentd
+}