summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-12-04 10:23:32 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-12-04 10:23:32 +0000
commit55a91db0d9a478d789d6230ce2c8f3b47bebb578 (patch)
tree85c5a6f9e5cc5321ec0e6fa5be9616d726684aea /net-misc/dibbler/dibbler-0.8.0.ebuild
parentmove reload to extra_started_commands (diff)
downloadgentoo-2-55a91db0d9a478d789d6230ce2c8f3b47bebb578.tar.gz
gentoo-2-55a91db0d9a478d789d6230ce2c8f3b47bebb578.tar.bz2
gentoo-2-55a91db0d9a478d789d6230ce2c8f3b47bebb578.zip
non-maintainer version bump. Bug #382173
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/dibbler/dibbler-0.8.0.ebuild')
-rw-r--r--net-misc/dibbler/dibbler-0.8.0.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/dibbler/dibbler-0.8.0.ebuild b/net-misc/dibbler/dibbler-0.8.0.ebuild
new file mode 100644
index 000000000000..9eddb0fc2b61
--- /dev/null
+++ b/net-misc/dibbler/dibbler-0.8.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dibbler/dibbler-0.8.0.ebuild,v 1.1 2011/12/04 10:23:32 hwoarang Exp $
+
+EAPI="4"
+
+inherit autotools eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="Portable DHCPv6 implementation (server, client and relay)"
+HOMEPAGE="http://klub.com.pl/dhcpv6/"
+
+SRC_URI="http://klub.com.pl/dhcpv6/dibbler/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~mips ~x86"
+IUSE="doc"
+DEPEND=""
+RDEPEND=""
+
+DIBBLER_DOCDIR=${S}/doc
+
+src_prepare() {
+ # TODO: FIX ME!
+ append-ldflags $(no-as-needed)
+ sed -i \
+ -e "s#CC ?= gcc#CC ?= $(tc-getCC)#g" \
+ -e "s#CXX ?= g++#CXX ?= $(tc-getCXX)#g" \
+ Makefile.inc || die "Patching Makefile.inc failed"
+ cd "${S}"/poslib
+ eautoreconf
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ dosbin dibbler-server
+ dosbin dibbler-client
+ dosbin dibbler-relay
+ doman doc/man/dibbler-server.8 doc/man/dibbler-client.8 \
+ doc/man/dibbler-relay.8
+ dodoc CHANGELOG RELNOTES
+
+ insinto /etc/dibbler
+ doins *.conf
+ dodir /var/lib/dibbler
+
+ use doc && dodoc ${DIBBLER_DOCDIR}/dibbler-user.pdf \
+ ${DIBBLER_DOCDIR}/dibbler-devel.pdf
+
+ insinto /etc/init.d
+ doins "${FILESDIR}/dibbler-server" "${FILESDIR}/dibbler-client" \
+ "${FILESDIR}/dibbler-relay"
+ fperms 755 /etc/init.d/dibbler-server
+ fperms 755 /etc/init.d/dibbler-client
+ fperms 755 /etc/init.d/dibbler-relay
+}
+
+pkg_postinst() {
+ einfo "Make sure that you modify client.conf, server.conf and/or relay.conf "
+ einfo "to suit your needs. They are stored in /etc/dibbler."
+}