summaryrefslogtreecommitdiff
blob: a4a3b7a853eb514a619e6a767bbb07c6d421e893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpv6/dhcpv6-0.10_pre20060828.ebuild,v 1.1 2006/08/28 07:54:27 vapier Exp $

inherit flag-o-matic

MY_P="dhcp-${PV/_pre*}"
SNAP=${PV/*_pre}
DESCRIPTION="Server and client for DHCPv6"
HOMEPAGE="http://sourceforge.net/projects/dhcpv6/"
SRC_URI="mirror://sourceforge/dhcpv6/${MY_P}.tgz
	mirror://gentoo/${PN}-cvs${SNAP}.patch.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="static"

DEPEND=""

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${WORKDIR}"/${PN}-cvs${SNAP}.patch
}

src_compile() {
	econf || die
	use static && append-ldflags -static
	emake -j1 || die
}

src_install() {
	einstall || die
	dodoc Install ReadMe docs/*.txt *.conf
	dodir /var/lib/dhcpv6
	newinitd "${FILESDIR}"/dhcp6s.rc dhcp6s || die
}