apg: Fix build on case insensitive filesystems

+15 -1
+4 -1
pkgs/tools/security/apg/default.nix
··· 10 10 ''; 11 11 makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"]; 12 12 13 - patches = [ ./apg.patch ]; 13 + patches = [ 14 + ./apg.patch 15 + ./phony-install-target.patch 16 + ]; 14 17 15 18 postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 16 19 sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile
+11
pkgs/tools/security/apg/phony-install-target.patch
··· 1 + diff -ur a/Makefile b/Makefile 2 + --- a/Makefile 2003-08-08 00:40:39.000000000 +0900 3 + +++ b/Makefile 2018-04-05 22:29:39.284191020 +0900 4 + @@ -142,6 +142,7 @@ 5 + strip ${CS_PROGNAME} 6 + strip ${BFM_PROGNAME} 7 + 8 + +.PHONY: install 9 + install: 10 + if test -x ./apg; then \ 11 + ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \