tcp-wrappers: patch up crufty code, fix w/musl

This commit is contained in:
Will Dietz
2018-04-24 17:24:39 -05:00
parent 092a4fff40
commit 40be5dd2df
3 changed files with 334 additions and 0 deletions
@@ -25,6 +25,14 @@ in stdenv.mkDerivation rec {
substituteInPlace debian/patches/13_shlib_weaksym --replace STRINGS STRINGDEFS
'';
# Fix __BEGIN_DECLS usage (even if it wasn't non-standard, this doesn't include sys/cdefs.h)
patches = [ ./cdecls.patch ];
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace Makefile \
--replace '-DNETGROUP' '-DUSE_GETDOMAIN'
'';
buildInputs = [ libnsl ];
makeFlags = [ "REAL_DAEMON_DIR=$(out)/bin" "linux" ];