uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/tools/networking/kea/default.nix
Normal file
71
pkgs/tools/networking/kea/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, boost
|
||||
, botan2
|
||||
, libmysqlclient
|
||||
, log4cplus
|
||||
, postgresql
|
||||
, python3
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kea";
|
||||
version = "2.0.2"; # only even minor versions are stable
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-jSghO9yOK7hwo4OzCsHlPVTh66Q9L4blFRsItmqmzzI=";
|
||||
};
|
||||
|
||||
patches = [ ./dont-create-var.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-perfdhcp"
|
||||
"--enable-shell"
|
||||
"--localstatedir=/var"
|
||||
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
|
||||
"--with-pgsql=${postgresql}/bin/pg_config"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
botan2
|
||||
libmysqlclient
|
||||
log4cplus
|
||||
python3
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) kea;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://kea.isc.org/";
|
||||
description = "High-performance, extensible DHCP server by ISC";
|
||||
longDescription = ''
|
||||
Kea is a new open source DHCPv4/DHCPv6 server being developed by
|
||||
Internet Systems Consortium. The objective of this project is to
|
||||
provide a very high-performance, extensible DHCP server engine for
|
||||
use by enterprises and service providers, either as is or with
|
||||
extensions and modifications.
|
||||
'';
|
||||
license = licenses.mpl20;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ fpletz hexa ];
|
||||
};
|
||||
}
|
||||
28
pkgs/tools/networking/kea/dont-create-var.patch
Normal file
28
pkgs/tools/networking/kea/dont-create-var.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 10708e7..d4efd73 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -150,13 +150,6 @@ cppcheck:
|
||||
docs:
|
||||
$(MAKE) -C doc/sphinx
|
||||
|
||||
-
|
||||
-# These steps are necessary during installation
|
||||
-install-exec-hook:
|
||||
- mkdir -p $(DESTDIR)${localstatedir}/log/
|
||||
- mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME}
|
||||
- mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME}
|
||||
-
|
||||
EXTRA_DIST = tools/path_replacer.sh
|
||||
EXTRA_DIST += tools/mk_cfgrpt.sh
|
||||
|
||||
diff --git a/src/lib/dhcpsrv/Makefile.am b/src/lib/dhcpsrv/Makefile.am
|
||||
index a0a0289..ba42f8a 100644
|
||||
--- a/src/lib/dhcpsrv/Makefile.am
|
||||
+++ b/src/lib/dhcpsrv/Makefile.am
|
||||
@@ -408,5 +408,3 @@ libkea_dhcpsrv_parsers_include_HEADERS = \
|
||||
parsers/simple_parser4.h \
|
||||
parsers/simple_parser6.h
|
||||
|
||||
-install-data-local:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(dhcp_data_dir)
|
||||
Loading…
Add table
Add a link
Reference in a new issue