kea: 1.5.0-P1 -> 1.8.2

Enables kea-shell and perfdhcp, drops several unused dependencies.

+36 -18
+26 -10
pkgs/tools/networking/kea/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan2, log4cplus 2 - , boost, python3, postgresql, libmysqlclient, gmp, bzip2 }: 3 - 4 - let inherit (stdenv) lib; in 5 6 stdenv.mkDerivation rec { 7 pname = "kea"; 8 - version = "1.5.0-P1"; 9 10 src = fetchurl { 11 url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz"; 12 - sha256 = "0bqxzp3f7cmraa5davj2az1hx1gbbchqzlz3ai26c802agzafyhz"; 13 }; 14 15 patches = [ ./dont-create-var.patch ]; ··· 20 ''; 21 22 configureFlags = [ 23 "--localstatedir=/var" 24 - "--with-pgsql=${postgresql}/bin/pg_config" 25 "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config" 26 ]; 27 28 - nativeBuildInputs = [ autoreconfHook pkgconfig ]; 29 buildInputs = [ 30 - openssl log4cplus boost python3 libmysqlclient 31 - botan2 gmp bzip2 32 ]; 33 34 enableParallelBuilding = true;
··· 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , autoreconfHook 5 + , pkg-config 6 + , boost 7 + , botan2 8 + , libmysqlclient 9 + , log4cplus 10 + , postgresql 11 + , python3 }: 12 13 stdenv.mkDerivation rec { 14 pname = "kea"; 15 + version = "1.8.2"; 16 17 src = fetchurl { 18 url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz"; 19 + sha256 = "0f8x1blfmbcak0cd21jm1zpz4w8iimldhjilwkwgvmmrxnmsfv28"; 20 }; 21 22 patches = [ ./dont-create-var.patch ]; ··· 27 ''; 28 29 configureFlags = [ 30 + "--enable-perfdhcp" 31 + "--enable-shell" 32 "--localstatedir=/var" 33 "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config" 34 + "--with-pgsql=${postgresql}/bin/pg_config" 35 ]; 36 37 + nativeBuildInputs = [ 38 + autoreconfHook 39 + pkg-config 40 + ]; 41 + 42 buildInputs = [ 43 + boost 44 + botan2 45 + libmysqlclient 46 + log4cplus 47 + python3 48 ]; 49 50 enableParallelBuilding = true;
+10 -8
pkgs/tools/networking/kea/dont-create-var.patch
··· 1 diff --git a/Makefile.am b/Makefile.am 2 - index 2c0733c..974bb5e 100644 3 --- a/Makefile.am 4 +++ b/Makefile.am 5 - @@ -135,11 +135,6 @@ cppcheck: 6 - --template '{file}:{line}: check_fail: {message} ({severity},{id})' \ 7 - src 8 9 -# These steps are necessary during installation 10 -install-exec-hook: 11 - mkdir -p $(DESTDIR)${localstatedir}/log/ 12 - - mkdir -p $(DESTDIR)${localstatedir}/run/${PACKAGE_NAME} 13 - 14 EXTRA_DIST = tools/path_replacer.sh 15 EXTRA_DIST += tools/mk_cfgrpt.sh 16 17 diff --git a/src/lib/dhcpsrv/Makefile.am b/src/lib/dhcpsrv/Makefile.am 18 - index 564f623..7cea9f2 100644 19 --- a/src/lib/dhcpsrv/Makefile.am 20 +++ b/src/lib/dhcpsrv/Makefile.am 21 - @@ -352,5 +352,3 @@ libkea_dhcpsrv_parsers_include_HEADERS = \ 22 parsers/simple_parser6.h 23 - 24 25 -install-data-local: 26 - $(mkinstalldirs) $(DESTDIR)$(dhcp_data_dir)
··· 1 diff --git a/Makefile.am b/Makefile.am 2 + index 10708e7..d4efd73 100644 3 --- a/Makefile.am 4 +++ b/Makefile.am 5 + @@ -150,13 +150,6 @@ cppcheck: 6 + docs: 7 + $(MAKE) -C doc/sphinx 8 9 + - 10 -# These steps are necessary during installation 11 -install-exec-hook: 12 - mkdir -p $(DESTDIR)${localstatedir}/log/ 13 + - mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME} 14 + - mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME} 15 - 16 EXTRA_DIST = tools/path_replacer.sh 17 EXTRA_DIST += tools/mk_cfgrpt.sh 18 19 diff --git a/src/lib/dhcpsrv/Makefile.am b/src/lib/dhcpsrv/Makefile.am 20 + index a0a0289..ba42f8a 100644 21 --- a/src/lib/dhcpsrv/Makefile.am 22 +++ b/src/lib/dhcpsrv/Makefile.am 23 + @@ -408,5 +408,3 @@ libkea_dhcpsrv_parsers_include_HEADERS = \ 24 + parsers/simple_parser4.h \ 25 parsers/simple_parser6.h 26 27 -install-data-local: 28 - $(mkinstalldirs) $(DESTDIR)$(dhcp_data_dir)