Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/kea/
Date: Mon, 08 May 2017 11:30:12
Message-Id: 1494243003.065d8dc0c4910542899a2a029c2111e174058c33.chainsaw@gentoo
1 commit: 065d8dc0c4910542899a2a029c2111e174058c33
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 8 11:28:52 2017 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Mon May 8 11:30:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=065d8dc0
7
8 net-misc/kea: Version bump to 1.2.0; OpenSSL/Botan switching & conditional sample configuration installation by Kim B. Sindalsen in bug #581976.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-misc/kea/Manifest | 1 +
13 net-misc/kea/kea-1.2.0.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++++
14 net-misc/kea/metadata.xml | 6 ++++-
15 3 files changed, 64 insertions(+), 1 deletion(-)
16
17 diff --git a/net-misc/kea/Manifest b/net-misc/kea/Manifest
18 index 0788df86021..c55febf52d9 100644
19 --- a/net-misc/kea/Manifest
20 +++ b/net-misc/kea/Manifest
21 @@ -1 +1,2 @@
22 DIST kea-1.1.0.tar.gz 4934875 SHA256 c3d97aee4faa19653ffe6d37e797e2fbf632124cd0b98bb502f9b97b5a383c2d SHA512 4ccc2ac493e8ce31d8a0574acac430137965aef11c7dd98a5e11ee88a157503a6efbdbf39e89b04cf7349474051affa993dd0aa65420bd783209e0a8a1d253ea WHIRLPOOL e666a81b8e645f503acefbdc4a9ca79da12eb7028d6d03d4ca1e03debfdc642f633d6ef4910692f30edf1193a0c74bd65378fa75abed596bcdac1e29371c1553
23 +DIST kea-1.2.0.tar.gz 5720941 SHA256 22d15945b13600b56c37213797ca1f3ee9851e6119120aeae08033c4cc52d129 SHA512 d90571027edbce9eeb75d9ac889865dc24c2fd3ab17e44e23337ff623ca098ffd02560f01273da3c28f13734d95d5950110bc116bed527a295a9dc70addcc240 WHIRLPOOL 0a91707b70396354abebba6807f44f509d95eaa8c4a4a4766fe8cea953a7c73d36d0cbea85588ec0d88d1cce0e4bc91c1ae10de92de756295b4595ec890b2e74
24
25 diff --git a/net-misc/kea/kea-1.2.0.ebuild b/net-misc/kea/kea-1.2.0.ebuild
26 new file mode 100644
27 index 00000000000..6fd49878587
28 --- /dev/null
29 +++ b/net-misc/kea/kea-1.2.0.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +
36 +inherit eutils toolchain-funcs user
37 +
38 +MY_PV="${PV//_alpha/a}"
39 +MY_PV="${MY_PV//_beta/b}"
40 +MY_PV="${MY_PV//_rc/rc}"
41 +MY_PV="${MY_PV//_p/-P}"
42 +MY_P="${PN}-${MY_PV}"
43 +DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server"
44 +HOMEPAGE="http://www.isc.org/kea/"
45 +SRC_URI="ftp://ftp.isc.org/isc/kea/${MY_P}.tar.gz
46 + ftp://ftp.isc.org/isc/kea/${MY_PV}/${MY_P}.tar.gz"
47 +
48 +LICENSE="ISC BSD SSLeay GPL-2" # GPL-2 only for init script
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE="openssl samples"
52 +
53 +DEPEND="
54 + dev-libs/boost
55 + dev-cpp/gtest
56 + dev-libs/log4cplus
57 + !openssl? ( dev-libs/botan:= )
58 + openssl? ( dev-libs/openssl:= )
59 +"
60 +RDEPEND="${DEPEND}"
61 +
62 +S="${WORKDIR}/${MY_P}"
63 +
64 +src_prepare() {
65 + # Brand the version with Gentoo
66 + sed -i \
67 + -e "/VERSION=/s:'$: Gentoo-${PR}':" \
68 + configure || die
69 + default
70 +}
71 +
72 +src_configure() {
73 + econf \
74 + $(use_with openssl) \
75 + $(use_enable samples install-configurations) \
76 + --disable-static \
77 + --without-werror
78 +}
79 +
80 +src_install() {
81 + default
82 + prune_libtool_files --all
83 +}
84 +
85 +pkg_preinst() {
86 + enewgroup dhcp
87 + enewuser dhcp -1 -1 /var/lib/dhcp dhcp
88 +}
89
90 diff --git a/net-misc/kea/metadata.xml b/net-misc/kea/metadata.xml
91 index 33e420089b5..0d2b93d2ea0 100644
92 --- a/net-misc/kea/metadata.xml
93 +++ b/net-misc/kea/metadata.xml
94 @@ -5,8 +5,12 @@
95 <email>chainsaw@g.o</email>
96 <name>Tony Vroon</name>
97 </maintainer>
98 -<maintainer type="project">
99 + <maintainer type="project">
100 <email>base-system@g.o</email>
101 <name>Gentoo Base System</name>
102 </maintainer>
103 + <use>
104 + <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> instead of Botan</flag>
105 + <flag name="samples">Install sample configuration files</flag>
106 + </use>
107 </pkgmetadata>