summaryrefslogtreecommitdiff
path: root/net-misc/kea
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/kea
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/kea')
-rw-r--r--net-misc/kea/Manifest8
-rw-r--r--net-misc/kea/files/kea-confd4
-rw-r--r--net-misc/kea/files/kea-initd78
-rw-r--r--net-misc/kea/kea-1.1.0.ebuild55
-rw-r--r--net-misc/kea/kea-1.2.0-r1.ebuild62
-rw-r--r--net-misc/kea/metadata.xml16
6 files changed, 223 insertions, 0 deletions
diff --git a/net-misc/kea/Manifest b/net-misc/kea/Manifest
new file mode 100644
index 000000000000..d1ca1f01a222
--- /dev/null
+++ b/net-misc/kea/Manifest
@@ -0,0 +1,8 @@
+AUX kea-confd 87 SHA256 1be5baf13ec4a9f0f2c2b1cbd6897200f48f1cf573d0f1e4c107c64bb7a0d21c SHA512 14a95add77a5190475ca698d5981fbf2e07a15c998004af518c2d51c3327c8b059b574a7e8485af61359a814c1b57f8f406902999515c975d81d6ff3e2e00fab WHIRLPOOL 2079e9787b4b1a2e816deeda2f92f7bbe93731d66355aeb3cb516e5f3b023a4008d877b03ea987e92a657791746b8f8058abeb60fb9fe451dcc58a6dbd26c15b
+AUX kea-initd 1814 SHA256 95836d7a015d701dce79027649e85c79c726a0b6bf86ab26040c98cce31730cc SHA512 7247df003b2083728f57dac0669b72de41c3c2838ccf601198eca84c2e605efe088d091b6a78fa8cf2705514b7307178914225d209ab8fcc450d63a1951abd31 WHIRLPOOL 4676d62cdf06438e6df7e11528f666f8369ed3d2229c7c70ad7924bec4c7bb03006a3646e5197e44d22413973c88613d460167da4ff2bed5d6de3247c56cb417
+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
+EBUILD kea-1.1.0.ebuild 1063 SHA256 fbe3cf0a4c51f03c69f7f8e3f135747542f8f806541121bc37056c25e936a2fe SHA512 3b18dfe146e9c4c86ab78ee03d561e0a3a882eca0c990acfe3efcce01ff7c2ea914aa9e50c9b5b39531a7525efdc70adb046e7bbb9c35a331f443fb8564676be WHIRLPOOL f963f58098b36dddd93613fd00a7c6b9e86f109403a63fbdc946417c271b032038107f7445309e0dc91ae5780ff31d384ea75a999b00e09038cd5801fd62afd1
+EBUILD kea-1.2.0-r1.ebuild 1318 SHA256 721410da2c1c65c3c2848330122e9db2f466d5ab9078d1103132b086c4f50efb SHA512 f2696db0fc768b9522d00051720ee03ea41c7c30b031eccab289ae37ed7200516ad42b024079a0dd5174c8369a3ecd099f40226095501a38e6ed2275df6e5bfa WHIRLPOOL 6c28b4ddd153621554caae28dd48c2b7d4978a8a0cf0ce695b3a81ace1777b18225eac1350bd13a7fc2b8279908f065b32f4836b202759ac4dce92be75a1b7b5
+MISC ChangeLog 1116 SHA256 74cf1d7d499e411048291938dcd2dc3147515047b2cb73532ca464a44c3721d9 SHA512 4650b641143f72d20de5cf44efbc8c4d2fbabbf38c235c5406737b4a359155dd9bfa6ebd058aa15f2b2c075d2c646d87dcd2447be4f1668ada613afee9c1a754 WHIRLPOOL 6042cd4ecfadf49f7274a70a1b69c1f1ec775ceeb45245374d0ff9e9030bd105a62e71011b9ac2f7c271c554dcb106e147ac57cb0769fb0ff2616f44fbde3d79
+MISC metadata.xml 522 SHA256 4f5cf303a5f21a1a300b7788fa37ef0736391587730fe79b58153512c2a2f17d SHA512 f879683f8d58f4367e72d623b95915257218926405e83baae3ef1610dba2c14c347f23157c2d99835663409b14ff909e586eba53b4455de763afc36a38fb8975 WHIRLPOOL 4370903ee0094234593957f3389444fd732944ac631faaca49ec6b0b63b4ad2639ff9c65588f7af6a67320e90c7c5ca41e5c7b3ea2168fb993b840429bc8d022
diff --git a/net-misc/kea/files/kea-confd b/net-misc/kea/files/kea-confd
new file mode 100644
index 000000000000..568468eb3a1d
--- /dev/null
+++ b/net-misc/kea/files/kea-confd
@@ -0,0 +1,4 @@
+# Which services should be taken into account?
+DHCP4="true"
+DHCP6="false"
+DDNS="false"
diff --git a/net-misc/kea/files/kea-initd b/net-misc/kea/files/kea-initd
new file mode 100644
index 000000000000..85fdd56b9ec2
--- /dev/null
+++ b/net-misc/kea/files/kea-initd
@@ -0,0 +1,78 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="kea dhcp services"
+
+dhcp4_command="/usr/sbin/kea-dhcp4"
+dhcp6_command="/usr/sbin/kea-dhcp6"
+ddns_command="/usr/sbin/kea-dhcp-ddns"
+config_file="/etc/kea/kea.conf"
+dhcp4_pidfile="/run/kea-dhcp4.pid"
+dhcp6_pidfile="/run/kea-dhcp6.pid"
+ddns_pidfile="/run/kea-ddns.pid"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ ! -f "${config_file}" ] ; then
+ eerror "Please create a ${config_file} config file."
+ return 1
+ fi
+
+ if ${DHCP4:-false} ; then
+ if ! ${dhcp4_command} -t ${config_file} 1>/dev/null 2>/dev/null ; then
+ eerror "Error in config file."
+ return 1
+ fi
+ fi
+ if ${DHCP6:-false} ; then
+ if ! ${dhcp6_command} -t ${config_file} 1>/dev/null 2>/dev/null ; then
+ eerror "Error in config file."
+ return 1
+ fi
+ fi
+ if ${DDNS:-false} ; then
+ if ! ${ddns_command} -t ${config_file} 1>/dev/null 2>/dev/null ; then
+ eerror "Error in config file."
+ return 1
+ fi
+ fi
+}
+
+start() {
+ einfo "Starting kea dhcp services"
+ if ${DHCP4:-false} ; then
+ start-stop-daemon -m -b -p ${dhcp4_pidfile} \
+ -x ${dhcp4_command} -- -c ${config_file} \
+ || return 1
+ fi
+ if ${DHCP6:-false} ; then
+ start-stop-daemon -m -b -p ${dhcp6_pidfile} \
+ -x ${dhcp6_command} -- -c ${config_file} \
+ || return 1
+ fi
+ if ${DDNS:-false} ; then
+ start-stop-daemon -m -b -p ${ddns_pidfile} \
+ -x ${ddns_command} -- -c ${config_file} \
+ || return 1
+ fi
+}
+
+stop() {
+ einfo "Stopping kea dhcp services"
+ if ${DHCP4:-false} ; then
+ start-stop-daemon --stop -p ${dhcp4_pidfile} \
+ || return 1
+ fi
+ if ${DHCP6:-false} ; then
+ start-stop-daemon --stop -p ${dhcp6_pidfile} \
+ || return 1
+ fi
+ if ${DDNS:-false} ; then
+ start-stop-daemon --stop -p ${ddns_pidfile} \
+ || return 1
+ fi
+}
diff --git a/net-misc/kea/kea-1.1.0.ebuild b/net-misc/kea/kea-1.1.0.ebuild
new file mode 100644
index 000000000000..21512a24568c
--- /dev/null
+++ b/net-misc/kea/kea-1.1.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+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=""
+
+DEPEND="
+ dev-cpp/gtest
+ dev-libs/boost
+ dev-libs/botan:0
+ dev-libs/log4cplus
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Brand the version with Gentoo
+ sed -i \
+ -e "/VERSION=/s:'$: Gentoo-${PR}':" \
+ configure || die
+}
+
+src_configure() {
+ econf \
+ --disable-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/kea-1.2.0-r1.ebuild b/net-misc/kea/kea-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..3000688d7291
--- /dev/null
+++ b/net-misc/kea/kea-1.2.0-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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:0= )
+ 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() {
+ local myeconfargs=(
+ $(use_with openssl)
+ $(use_enable samples install-configurations)
+ --disable-static
+ --without-werror
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ newconfd "${FILESDIR}"/${PN}-confd ${PN}
+ newinitd "${FILESDIR}"/${PN}-initd ${PN}
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}
+
+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
new file mode 100644
index 000000000000..0d2b93d2ea0e
--- /dev/null
+++ b/net-misc/kea/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <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>