diff options
Diffstat (limited to 'net-misc/dhcpv6/dhcpv6-1.0.19.ebuild')
-rw-r--r-- | net-misc/dhcpv6/dhcpv6-1.0.19.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net-misc/dhcpv6/dhcpv6-1.0.19.ebuild b/net-misc/dhcpv6/dhcpv6-1.0.19.ebuild new file mode 100644 index 000000000000..56b9be19f7ab --- /dev/null +++ b/net-misc/dhcpv6/dhcpv6-1.0.19.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpv6/dhcpv6-1.0.19.ebuild,v 1.1 2008/06/26 23:54:53 darkside Exp $ + +inherit flag-o-matic + +DESCRIPTION="Server and client for DHCPv6" +HOMEPAGE="https://fedorahosted.org/dhcpv6/" +SRC_URI="http://dcantrel.fedorapeople.org/dhcpv6/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="static" + +DEPEND="${RDEPEND}" #configure bails if libnl isn't present +RDEPEND="dev-libs/libnl" + +src_compile() { + use static && append-ldflags -static + econf || die + emake || die +} + +mkd() { + local x=$1 X=$2 i=$3 + sed \ + -e "s:6x:6${x}:g" \ + -e "s:6X:6${X}:g" \ + "${FILESDIR}"/dhcp6x.${i}d.in > dhcp6${x}.${i}d + new${i}d dhcp6${x}.${i}d dhcp6${x} +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog README TODO RFC* + dodir /var/lib/dhcpv6 + + rm -rf "${D}"/etc/{rc.d,sysconfig} + mkd s S init + mkd s S conf + mkd r R init + mkd r R conf +} |