blob: 046b05b521eebf8176a085028429a5e156a552c0 (
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
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpv6/dhcpv6-1.2.0-r2.ebuild,v 1.1 2010/10/26 11:06:22 hwoarang Exp $
EAPI=3
inherit flag-o-matic
DESCRIPTION="Server and client for DHCPv6"
HOMEPAGE="https://fedorahosted.org/dhcpv6/"
SRC_URI="https://fedorahosted.org/releases/d/h/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="static"
DEPEND=">=dev-libs/libnl-1.1"
RDEPEND="${DEPEND}"
src_prepare() {
has_version "<sys-kernel/linux-headers-2.6.35" &&
epatch "${FILESDIR}/fix-gnusource-collisions-${PV}.patch"
}
src_configure() {
use static && append-ldflags -static
econf "--localstatedir=/var" || 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
dodir /var/run/dhcpv6
rm -rf "${D}"/etc/{rc.d,sysconfig}
mkd s S init
mkd s S conf
mkd r R init
mkd r R conf
}
|