Fri Feb 14 04:14:41 2014 UTC ()
Updated to apg-2.3.0b, released 09/08/2003. From CHANGES:
    Added support for cracklib
    Improved Makefile structure


(rodent)
diff -r1.16 -r1.17 pkgsrc/security/apg/Makefile
diff -r1.6 -r1.7 pkgsrc/security/apg/distinfo
diff -r1.3 -r1.4 pkgsrc/security/apg/patches/patch-aa

cvs diff -r1.16 -r1.17 pkgsrc/security/apg/Makefile (expand / switch to unified diff)

--- pkgsrc/security/apg/Makefile 2013/05/31 12:41:50 1.16
+++ pkgsrc/security/apg/Makefile 2014/02/14 04:14:40 1.17
@@ -1,29 +1,31 @@ @@ -1,29 +1,31 @@
1# $NetBSD: Makefile,v 1.16 2013/05/31 12:41:50 wiz Exp $ 1# $NetBSD: Makefile,v 1.17 2014/02/14 04:14:40 rodent Exp $
2# 2#
3 3
4DISTNAME= apg-2.2.3 4DISTNAME= apg-2.3.0b
5PKGREVISION= 2 
6CATEGORIES= security 5CATEGORIES= security
7MASTER_SITES= http://www.adel.nursat.kz/apg/download/ 6MASTER_SITES= http://www.adel.nursat.kz/apg/download/
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.adel.nursat.kz/apg/ 9HOMEPAGE= http://www.adel.nursat.kz/apg/
11COMMENT= Tool set for random password generation 10COMMENT= Tool set for random password generation
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14MAKE_ENV+= FLAGS=${CFLAGS:M*:Q} INSTALL_PREFIX=${DESTDIR:Q}${PREFIX:Q} 13MAKE_ENV+= FLAGS=${CFLAGS:M*:Q} INSTALL_PREFIX=${DESTDIR:Q}${PREFIX:Q}
15 14
16USE_TOOLS+= perl:run 15USE_TOOLS+= perl:run
17REPLACE_PERL= perl/apgcli.pl 16REPLACE_PERL= perl/apgcli.pl
18 17
19OPSYSVARS+= CS_LIBS 18OPSYSVARS+= CS_LIBS
20CS_LIBS.Linux+= -lnsl 19CS_LIBS.Linux+= -lnsl
21CS_LIBS.SunOS+= -lnsl -lsocket 20CS_LIBS.SunOS+= -lnsl -lsocket
22MAKE_ENV+= CS_LIBS=${CS_LIBS:Q} 21MAKE_ENV+= CS_LIBS=${CS_LIBS:Q}
23 22
24INSTALLATION_DIRS+= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 23INSTALLATION_DIRS+= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
25 24
 25post-extract:
 26 ${CHMOD} -R u+w ${WRKSRC}
 27
26post-install: 28post-install:
27 ${INSTALL_SCRIPT} ${WRKSRC}/perl/apgcli.pl ${DESTDIR}${PREFIX}/bin/apgcli 29 ${INSTALL_SCRIPT} ${WRKSRC}/perl/apgcli.pl ${DESTDIR}${PREFIX}/bin/apgcli
28 30
29.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/security/apg/distinfo (expand / switch to unified diff)

--- pkgsrc/security/apg/distinfo 2006/11/03 09:07:30 1.6
+++ pkgsrc/security/apg/distinfo 2014/02/14 04:14:40 1.7
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.6 2006/11/03 09:07:30 joerg Exp $ 1$NetBSD: distinfo,v 1.7 2014/02/14 04:14:40 rodent Exp $
2 2
3SHA1 (apg-2.2.3.tar.gz) = 7bdbc931ef8477717186dc3ab3a2d3c25012b4ca 3SHA1 (apg-2.3.0b.tar.gz) = d729c939adb659c05fd0ea3d9c03842c6fe86fed
4RMD160 (apg-2.2.3.tar.gz) = ccc1d8a90fcac90717a9ee16fcc85de53d5ef90d 4RMD160 (apg-2.3.0b.tar.gz) = 18f9955d6fdb721bec26613860b312d7fea6fba7
5Size (apg-2.2.3.tar.gz) = 108186 bytes 5Size (apg-2.3.0b.tar.gz) = 109995 bytes
6SHA1 (patch-aa) = 51679c0a3a6440ddcca12b4c5d6ebaa7c18a5935 6SHA1 (patch-aa) = 59d5537da45c7fb05480d12d1e73b04d19eed63f

cvs diff -r1.3 -r1.4 pkgsrc/security/apg/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/security/apg/patches/patch-aa 2006/11/03 09:07:30 1.3
+++ pkgsrc/security/apg/patches/patch-aa 2014/02/14 04:14:40 1.4
@@ -1,39 +1,41 @@ @@ -1,39 +1,41 @@
1$NetBSD: patch-aa,v 1.3 2006/11/03 09:07:30 joerg Exp $ 1$NetBSD: patch-aa,v 1.4 2014/02/14 04:14:40 rodent Exp $
2 2
3--- Makefile.orig 2003-08-07 15:40:30.000000000 +0000 3Don't hardcode CC, CFLAGS, PREFIX. Fix installation stage.
 4
 5--- Makefile.orig 2003-08-07 15:40:39.000000000 +0000
4+++ Makefile 6+++ Makefile
5@@ -1,12 +1,10 @@ 7@@ -1,7 +1,6 @@
 8 ##################################################################
 9 # Directories
 10 # Install dirs
 11-INSTALL_PREFIX = /usr/local
 12
 13 # Full default path is /usr/local/bin
 14 APG_BIN_DIR = /bin
 15@@ -60,12 +59,10 @@ APG_CLIBS += -lcrypt
6 ################################################################## 16 ##################################################################
7 # You can modify CC variable if you have compiler other than GCC 17 # You can modify CC variable if you have compiler other than GCC
8 # But the code was designed and tested with GCC 18 # But the code was designed and tested with GCC
9-CC = gcc 19-CC = gcc
10  20
11 ################################################################## 21 ##################################################################
12 # Compilation flags 22 # Compilation flags
13 # You should comment the line below for AIX+native cc 23 # You should comment the line below for AIX+native cc
14-FLAGS = -Wall 24-CFLAGS = -Wall
15  25
16 ################################################################## 26 ####################################################################
17 # Libraries 27 # If you plan to install APG daemon you should look at lines below #
18@@ -39,7 +37,6 @@ USE_SHA = APG_DONOTUSE_SHA 28@@ -143,24 +140,12 @@ strip:
19 ################################################################## 
20 # Directories 
21 # Install dirs 
22-INSTALL_PREFIX = /usr/local 
23 APG_BIN_DIR = /bin 
24 APG_MAN_DIR = /man/man1 
25 APGD_BIN_DIR = /sbin 
26@@ -110,24 +107,12 @@ strip: 
27 strip ${BFM_PROGNAME} 29 strip ${BFM_PROGNAME}
28  30
29 install: 31 install:
30- if test -x ./apg; then \ 32- if test -x ./apg; then \
31-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 33-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
32-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 34-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
33-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \ 35-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
34-./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \ 36-./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
35-fi 37-fi
36- if test -x ./apgd; then \ 38- if test -x ./apgd; then \
37-./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 39-./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
38-./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \ 40-./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
39-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \ 41-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \