diff options
author | roam <roam@FreeBSD.org> | 2003-09-02 15:45:45 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2003-09-02 15:45:45 +0000 |
commit | b747c39738c3cd840dcdbf2a29bef552ab18390f (patch) | |
tree | 65d38955321fd6ce596ff8fb97e4a4b224b62686 /security/apg | |
parent | 0d308782e1e270392c12da30f4ea94bc5bcffa6f (diff) | |
download | FreeBSD-ports-b747c39738c3cd840dcdbf2a29bef552ab18390f.zip FreeBSD-ports-b747c39738c3cd840dcdbf2a29bef552ab18390f.tar.gz |
Update to 2.3.0b, enabling cracklib use and installing docfiles.
PR: 55884
Submitted by: Roman Neuhauser <roman@bellavista.cz>
Diffstat (limited to 'security/apg')
-rw-r--r-- | security/apg/Makefile | 26 | ||||
-rw-r--r-- | security/apg/distinfo | 2 | ||||
-rw-r--r-- | security/apg/files/patch-aa | 55 | ||||
-rw-r--r-- | security/apg/pkg-plist | 5 |
4 files changed, 57 insertions, 31 deletions
diff --git a/security/apg/Makefile b/security/apg/Makefile index 24b7dca..29cec68 100644 --- a/security/apg/Makefile +++ b/security/apg/Makefile @@ -6,16 +6,38 @@ # PORTNAME= apg -PORTVERSION= 2.1.0 +PORTVERSION= 2.3.0b CATEGORIES= security MASTER_SITES= http://www.adel.nursat.kz/apg/download/ \ ${MASTER_SITE_PACKETSTORM} MASTER_SITE_SUBDIR= UNIX/misc MAINTAINER= roam@FreeBSD.org -COMMENT= "An automated password generator" +COMMENT= An automated password generator + +.if defined(WITH_CRACKLIB) +BUILD_DEPENDS= ${LOCALBASE}/lib/crack.a:${PORTSDIR}/security/cracklib +MAKE_ARGS= -DWITH_CRACKLIB +.endif MAN1= apg.1 apgbfm.1 MAN8= apgd.8 +DOCS= APG_TIPS pronun.txt rfc0972.txt rfc1750.txt + +post-extract: + ${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} u+wx + ${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} u+w + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/apg ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/apgbfm ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/apgd ${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/doc/man/apg.1 ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/man/apgbfm.1 ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/man/apgd.8 ${MANPREFIX}/man/man8 +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR} +.endif .include <bsd.port.mk> diff --git a/security/apg/distinfo b/security/apg/distinfo index ebd05b4..bf40f19 100644 --- a/security/apg/distinfo +++ b/security/apg/distinfo @@ -1 +1 @@ -MD5 (apg-2.1.0.tar.gz) = 402769cce2c5ffef9806993d93c5b56d +MD5 (apg-2.3.0b.tar.gz) = bd82400a5a731070ce895313576afe24 diff --git a/security/apg/files/patch-aa b/security/apg/files/patch-aa index 89340e1..0a259f8 100644 --- a/security/apg/files/patch-aa +++ b/security/apg/files/patch-aa @@ -1,6 +1,23 @@ ---- Makefile 20 Sep 2002 07:24:50 -0000 1.1.1.4 -+++ Makefile 20 Sep 2002 07:27:21 -0000 1.6 -@@ -1,12 +1,12 @@ +--- Makefile.orig Thu Aug 7 17:40:39 2003 ++++ Makefile Sat Aug 23 00:18:35 2003 +@@ -44,10 +44,12 @@ + # If you want to use cracklib for password quality check then you + # must uncomment the folowing 4 lines (you must not do this for WIN32) + # +-#CRACKLIB_DICTPATH = "/usr/local/lib/pw_dict" +-#STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib +-#APG_CLIBS += -lcrack ++.if defined(WITH_CRACKLIB) ++CRACKLIB_DICTPATH = "${LOCALBASE}/libdata/cracklib/pw_dict" ++STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib ++CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib ++APG_CLIBS += -lcrack ++.endif + + ################################################################## + # Support for ANSI X9.17/SHA1 PRNG +@@ -60,12 +62,12 @@ ################################################################## # You can modify CC variable if you have compiler other than GCC # But the code was designed and tested with GCC @@ -10,35 +27,17 @@ ################################################################## # Compilation flags # You should comment the line below for AIX+native cc --FLAGS = -Wall +-CFLAGS = -Wall +CFLAGS ?= -Wall - ################################################################## - # Libraries -@@ -37,7 +37,8 @@ - ################################################################## - # Directories - # Install dirs --INSTALL_PREFIX = /usr/local -+PREFIX ?= /usr/local -+INSTALL_PREFIX = ${PREFIX} - APG_BIN_DIR = /bin - APG_MAN_DIR = /man/man1 - APGD_BIN_DIR = /sbin -@@ -88,13 +89,13 @@ - cygwin: standalone - - apg: -- ${CC} ${FLAGS} -D${CRYPTED_PASS} -D${USE_SHA} -o ${PROGNAME} ${SOURCES} ${LIBS} ${LIBM} -+ ${CC} ${CFLAGS} -D${CRYPTED_PASS} -D${USE_SHA} -o ${PROGNAME} ${SOURCES} ${LIBS} ${LIBM} - - apgd: -- ${CC} ${FLAGS} -DCLISERV -D${USE_SHA} -o ${CS_PROGNAME} ${SOURCES} ${CS_LIBS} ${LIBM} -+ ${CC} ${CFLAGS} -DCLISERV -D${USE_SHA} -o ${CS_PROGNAME} ${SOURCES} ${CS_LIBS} ${LIBM} + #################################################################### + # If you plan to install APG daemon you should look at lines below # +@@ -135,7 +137,7 @@ + ${CC} ${CFLAGS} -DCLISERV ${CLISERV_OPTIONS} -o ${CS_PROGNAME} ${SOURCES} ${APG_CS_CLIBS} apgbfm: -- ${CC} ${FLAGS} -o ${BFM_PROGNAME} ${BFM_SOURCES} ${LIBM} -+ ${CC} ${CFLAGS} -o ${BFM_PROGNAME} ${BFM_SOURCES} ${LIBM} +- ${CC} ${FLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS} ++ ${CC} ${CFLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS} strip: strip ${PROGNAME} diff --git a/security/apg/pkg-plist b/security/apg/pkg-plist index 87f7236..cb858af 100644 --- a/security/apg/pkg-plist +++ b/security/apg/pkg-plist @@ -1,3 +1,8 @@ bin/apg bin/apgbfm sbin/apgd +%%PORTDOCS%%%%DOCSDIR%%/APG_TIPS +%%PORTDOCS%%%%DOCSDIR%%/pronun.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc0972.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc1750.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%% |