Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/kea/
Date: Wed, 14 Feb 2018 16:10:03
Message-Id: 1518605145.a12a18c62f948cdc281f801596f84c6a7fd485b9.polynomial-c@gentoo
1 commit: a12a18c62f948cdc281f801596f84c6a7fd485b9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 10:45:45 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 10:45:45 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a12a18c6
7
8 net-misc/kea: Added live ebuild.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-misc/kea/kea-9999.ebuild | 68 ++++++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 68 insertions(+)
14
15 diff --git a/net-misc/kea/kea-9999.ebuild b/net-misc/kea/kea-9999.ebuild
16 new file mode 100644
17 index 00000000000..527f6a89804
18 --- /dev/null
19 +++ b/net-misc/kea/kea-9999.ebuild
20 @@ -0,0 +1,68 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit toolchain-funcs user
27 +
28 +MY_PV="${PV//_alpha/a}"
29 +MY_PV="${MY_PV//_beta/b}"
30 +MY_PV="${MY_PV//_rc/rc}"
31 +MY_PV="${MY_PV//_p/-P}"
32 +MY_P="${PN}-${MY_PV}"
33 +DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server"
34 +HOMEPAGE="http://www.isc.org/kea/"
35 +if [[ ${PV} = 9999* ]] ; then
36 + inherit autotools git-r3
37 + EGIT_REPO_URI="https://github.com/isc-projects/kea.git"
38 +else
39 + SRC_URI="ftp://ftp.isc.org/isc/kea/${MY_P}.tar.gz
40 + ftp://ftp.isc.org/isc/kea/${MY_PV}/${MY_P}.tar.gz"
41 + KEYWORDS="~amd64"
42 +fi
43 +
44 +LICENSE="ISC BSD SSLeay GPL-2" # GPL-2 only for init script
45 +SLOT="0"
46 +IUSE="openssl samples"
47 +
48 +DEPEND="
49 + dev-libs/boost:=
50 + dev-cpp/gtest
51 + dev-libs/log4cplus
52 + !openssl? ( dev-libs/botan:0= )
53 + openssl? ( dev-libs/openssl:= )
54 +"
55 +RDEPEND="${DEPEND}"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +src_prepare() {
60 + default
61 + [[ ${PV} = 9999* ]] && eautoreconf
62 + # Brand the version with Gentoo
63 + sed -i \
64 + -e "/VERSION=/s:'$: Gentoo-${PR}':" \
65 + configure || die
66 +}
67 +
68 +src_configure() {
69 + local myeconfargs=(
70 + $(use_with openssl)
71 + $(use_enable samples install-configurations)
72 + --disable-static
73 + --without-werror
74 + )
75 + econf "${myeconfargs[@]}"
76 +}
77 +
78 +src_install() {
79 + default
80 + newconfd "${FILESDIR}"/${PN}-confd ${PN}
81 + newinitd "${FILESDIR}"/${PN}-initd ${PN}
82 + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
83 +}
84 +
85 +pkg_preinst() {
86 + enewgroup dhcp
87 + enewuser dhcp -1 -1 /var/lib/dhcp dhcp
88 +}