kea: init at 1.1.0

+80
+50
pkgs/tools/networking/kea/default.nix
···
··· 1 + { stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan, log4cplus 2 + , boost, python3, postgresql, mysql, gmp, bzip2 }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "${pname}-${version}"; 6 + pname = "kea"; 7 + version = "1.1.0"; 8 + 9 + src = fetchurl { 10 + url = "https://ftp.isc.org/isc/${pname}/${version}/${name}.tar.gz"; 11 + sha256 = "0b9w71d7pfgr0asqpffh9h935xpvwabyfdvdzqzna6da9zp7mnf3"; 12 + }; 13 + 14 + patches = [ ./dont-create-var.patch ]; 15 + 16 + postPatch = '' 17 + substituteInPlace ./src/bin/keactrl/Makefile.am '@sysconfdir@' "$out/etc" 18 + substituteInPlace ./src/bin/keactrl/Makefile.am '@(sysconfdir)@' "$out/etc" 19 + ''; 20 + 21 + configureFlags = [ 22 + "--localstatedir=/var" 23 + "--with-botan-config=${botan}/bin/botan-config-1.10" 24 + "--with-dhcp-pgsql=${postgresql}/bin/pg_config" 25 + "--with-dhcp-mysql=${mysql.client.dev}/bin/mysql_config" 26 + ]; 27 + 28 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 29 + buildInputs = [ 30 + openssl log4cplus boost python3 mysql.client 31 + botan gmp bzip2 32 + ]; 33 + 34 + enableParallelBuilding = true; 35 + 36 + meta = with stdenv.lib; { 37 + homepage = https://kea.isc.org/; 38 + description = "High-performance, extensible DHCP server by ISC"; 39 + longDescription = '' 40 + KEA is a new open source DHCPv4/DHCPv6 server being developed by 41 + Internet Systems Consortium. The objective of this project is to 42 + provide a very high-performance, extensible DHCP server engine for 43 + use by enterprises and service providers, either as is or with 44 + extensions and modifications. 45 + ''; 46 + license = licenses.mpl20; 47 + platforms = platforms.unix; 48 + maintainers = with maintainers; [ fpletz ]; 49 + }; 50 + }
+28
pkgs/tools/networking/kea/dont-create-var.patch
···
··· 1 + diff --git a/Makefile.am b/Makefile.am 2 + index 897be34..b146729 100644 3 + --- a/Makefile.am 4 + +++ b/Makefile.am 5 + @@ -103,11 +103,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 066b410..16d3135 100755 19 + --- a/src/lib/dhcpsrv/Makefile.am 20 + +++ b/src/lib/dhcpsrv/Makefile.am 21 + @@ -210,7 +210,3 @@ EXTRA_DIST += database_backends.dox libdhcpsrv.dox 22 + # Specification file 23 + EXTRA_DIST += logging.spec 24 + 25 + -install-data-local: 26 + - $(mkinstalldirs) $(DESTDIR)$(dhcp_data_dir) 27 + - 28 + -
+2
pkgs/top-level/all-packages.nix
··· 2465 2466 npm2nix = nodePackages.npm2nix; 2467 2468 kindlegen = callPackage ../tools/typesetting/kindlegen { }; 2469 2470 ldapvi = callPackage ../tools/misc/ldapvi { };
··· 2465 2466 npm2nix = nodePackages.npm2nix; 2467 2468 + kea = callPackage ../tools/networking/kea { }; 2469 + 2470 kindlegen = callPackage ../tools/typesetting/kindlegen { }; 2471 2472 ldapvi = callPackage ../tools/misc/ldapvi { };