blob: 17a5770d179d008cf9cc8216568a3589b96a4e1a (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dibbler/dibbler-0.8.2.ebuild,v 1.2 2012/07/12 18:54:58 hwoarang Exp $
EAPI="4"
inherit eutils
DESCRIPTION="Portable DHCPv6 implementation (server, client and relay)"
HOMEPAGE="http://klub.com.pl/dhcpv6/"
SRC_URI="http://klub.com.pl/dhcpv6/dibbler/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~mips ~x86"
IUSE="doc"
DEPEND="doc? (
dev-texlive/texlive-latex
dev-tex/floatflt )
"
RDEPEND=""
DIBBLER_DOCDIR=${S}/doc
src_prepare() {
# bug #426342
epatch "${FILESDIR}"/${P}-gcc47.patch
}
src_compile() {
emake
# devel documentation is broken and users should consult the online
# version
# http://klub.com.pl/dhcpv6/doxygen/
use doc && emake -C doc/ user
}
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 doc/examples/*.conf
dodir /var/lib/dibbler
use doc && dodoc ${DIBBLER_DOCDIR}/dibbler-user.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."
}
|