Merge pull request #135291 from Mic92/apg

authored by Sandro and committed by GitHub da85d133 4b60f7d9

+10 -72
-44
pkgs/tools/security/apg/apg.patch
··· 1 - diff -rc apg-2.2.3/Makefile apg-2.2.3-new/Makefile 2 - *** apg-2.2.3/Makefile 2003-08-07 17:40:30.000000000 +0200 3 - --- apg-2.2.3-new/Makefile 2013-07-24 12:25:31.159938436 +0200 4 - *************** 5 - *** 113,131 **** 6 - if test -x ./apg; then \ 7 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 8 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 9 - ! ./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 10 - ./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 11 - fi 12 - if test -x ./apgd; then \ 13 - ./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 14 - ./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \ 15 - ! ./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 16 - ./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \ 17 - fi 18 - if test -x ./apgbfm; then \ 19 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 20 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 21 - ! ./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 22 - ./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 23 - fi 24 - 25 - --- 113,131 ---- 26 - if test -x ./apg; then \ 27 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 28 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 29 - ! ./install-sh -c -m 0755 ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 30 - ./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 31 - fi 32 - if test -x ./apgd; then \ 33 - ./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 34 - ./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \ 35 - ! ./install-sh -c -m 0755 ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 36 - ./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \ 37 - fi 38 - if test -x ./apgbfm; then \ 39 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 40 - ./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 41 - ! ./install-sh -c -m 0755 ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 42 - ./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 43 - fi 44 -
···
+10 -17
pkgs/tools/security/apg/default.nix
··· 1 - { lib, stdenv, fetchurl, openssl }: 2 stdenv.mkDerivation rec { 3 pname = "apg"; 4 - version = "2.3.0b"; 5 6 - src = fetchurl { 7 - url = "http://www.adel.nursat.kz/apg/download/apg-${version}.tar.gz"; 8 - sha256 = "14lbq81xrcsmpk1b9qmqyz7n6ypf08zcxvcvp6f7ybcyf0lj1rfi"; 9 }; 10 - configurePhase = '' 11 - substituteInPlace Makefile --replace /usr/local "$out" 12 - ''; 13 - makeFlags = ["CC=${stdenv.cc.targetPrefix}cc"]; 14 15 - patches = [ 16 - ./apg.patch 17 - ./phony-install-target.patch 18 - ]; 19 20 - postPatch = lib.optionalString stdenv.isDarwin '' 21 - sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile 22 - ''; 23 24 meta = { 25 description = "Tools for random password generation"; ··· 66 * Ability to enforce remote users to use only allowed type of 67 password generation 68 ''; 69 - homepage = "http://www.adel.nursat.kz/apg/"; 70 license = lib.licenses.bsd3; 71 maintainers = with lib.maintainers; [ astsmtl ]; 72 platforms = lib.platforms.unix;
··· 1 + { lib, stdenv, fetchFromGitHub, openssl, autoreconfHook }: 2 stdenv.mkDerivation rec { 3 pname = "apg"; 4 + version = "unstable-2015-01-29"; 5 6 + src = fetchFromGitHub { 7 + owner = "wilx"; 8 + repo = "apg"; 9 + rev = "7ecdbac79156c8864fa3ff8d61e9f1eb264e56c2"; 10 + sha256 = "sha256-+7TrJACdm/i/pc0dsp8edEIOjx8cip+x0Qc2gONajSE="; 11 }; 12 13 + nativeBuildInputs = [ autoreconfHook ]; 14 15 + buildInputs = [ openssl ]; 16 17 meta = { 18 description = "Tools for random password generation"; ··· 59 * Ability to enforce remote users to use only allowed type of 60 password generation 61 ''; 62 + homepage = "https://github.com/wilx/apg"; 63 license = lib.licenses.bsd3; 64 maintainers = with lib.maintainers; [ astsmtl ]; 65 platforms = lib.platforms.unix;
-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}; \
···