summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2017-05-08 12:28:52 +0100
committerTony Vroon <chainsaw@gentoo.org>2017-05-08 12:30:03 +0100
commit065d8dc0c4910542899a2a029c2111e174058c33 (patch)
tree59a33cb4a0318139629fbdee9b066fe4803d9747 /net-misc
parentsys-apps/diffutils: Removed old. (diff)
downloadgentoo-065d8dc0c4910542899a2a029c2111e174058c33.tar.gz
gentoo-065d8dc0c4910542899a2a029c2111e174058c33.tar.bz2
gentoo-065d8dc0c4910542899a2a029c2111e174058c33.zip
net-misc/kea: Version bump to 1.2.0; OpenSSL/Botan switching & conditional sample configuration installation by Kim B. Sindalsen in bug #581976.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/kea/Manifest1
-rw-r--r--net-misc/kea/kea-1.2.0.ebuild58
-rw-r--r--net-misc/kea/metadata.xml6
3 files changed, 64 insertions, 1 deletions
diff --git a/net-misc/kea/Manifest b/net-misc/kea/Manifest
index 0788df860214..c55febf52d91 100644
--- a/net-misc/kea/Manifest
+++ b/net-misc/kea/Manifest
@@ -1 +1,2 @@
DIST kea-1.1.0.tar.gz 4934875 SHA256 c3d97aee4faa19653ffe6d37e797e2fbf632124cd0b98bb502f9b97b5a383c2d SHA512 4ccc2ac493e8ce31d8a0574acac430137965aef11c7dd98a5e11ee88a157503a6efbdbf39e89b04cf7349474051affa993dd0aa65420bd783209e0a8a1d253ea WHIRLPOOL e666a81b8e645f503acefbdc4a9ca79da12eb7028d6d03d4ca1e03debfdc642f633d6ef4910692f30edf1193a0c74bd65378fa75abed596bcdac1e29371c1553
+DIST kea-1.2.0.tar.gz 5720941 SHA256 22d15945b13600b56c37213797ca1f3ee9851e6119120aeae08033c4cc52d129 SHA512 d90571027edbce9eeb75d9ac889865dc24c2fd3ab17e44e23337ff623ca098ffd02560f01273da3c28f13734d95d5950110bc116bed527a295a9dc70addcc240 WHIRLPOOL 0a91707b70396354abebba6807f44f509d95eaa8c4a4a4766fe8cea953a7c73d36d0cbea85588ec0d88d1cce0e4bc91c1ae10de92de756295b4595ec890b2e74
diff --git a/net-misc/kea/kea-1.2.0.ebuild b/net-misc/kea/kea-1.2.0.ebuild
new file mode 100644
index 000000000000..6fd498785874
--- /dev/null
+++ b/net-misc/kea/kea-1.2.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils toolchain-funcs user
+
+MY_PV="${PV//_alpha/a}"
+MY_PV="${MY_PV//_beta/b}"
+MY_PV="${MY_PV//_rc/rc}"
+MY_PV="${MY_PV//_p/-P}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server"
+HOMEPAGE="http://www.isc.org/kea/"
+SRC_URI="ftp://ftp.isc.org/isc/kea/${MY_P}.tar.gz
+ ftp://ftp.isc.org/isc/kea/${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="ISC BSD SSLeay GPL-2" # GPL-2 only for init script
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openssl samples"
+
+DEPEND="
+ dev-libs/boost
+ dev-cpp/gtest
+ dev-libs/log4cplus
+ !openssl? ( dev-libs/botan:= )
+ openssl? ( dev-libs/openssl:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Brand the version with Gentoo
+ sed -i \
+ -e "/VERSION=/s:'$: Gentoo-${PR}':" \
+ configure || die
+ default
+}
+
+src_configure() {
+ econf \
+ $(use_with openssl) \
+ $(use_enable samples install-configurations) \
+ --disable-static \
+ --without-werror
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+}
+
+pkg_preinst() {
+ enewgroup dhcp
+ enewuser dhcp -1 -1 /var/lib/dhcp dhcp
+}
diff --git a/net-misc/kea/metadata.xml b/net-misc/kea/metadata.xml
index 33e420089b5e..0d2b93d2ea0e 100644
--- a/net-misc/kea/metadata.xml
+++ b/net-misc/kea/metadata.xml
@@ -5,8 +5,12 @@
<email>chainsaw@gentoo.org</email>
<name>Tony Vroon</name>
</maintainer>
-<maintainer type="project">
+ <maintainer type="project">
<email>base-system@gentoo.org</email>
<name>Gentoo Base System</name>
</maintainer>
+ <use>
+ <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> instead of Botan</flag>
+ <flag name="samples">Install sample configuration files</flag>
+ </use>
</pkgmetadata>