[Midnightbsd-cvs] mports [20076] trunk/security: add apg port based on freebsd port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Aug 27 19:44:51 EDT 2015


Revision: 20076
          http://svnweb.midnightbsd.org/mports/?rev=20076
Author:   laffer1
Date:     2015-08-27 19:44:50 -0400 (Thu, 27 Aug 2015)
Log Message:
-----------
add apg port based on freebsd port

Modified Paths:
--------------
    trunk/security/Makefile

Added Paths:
-----------
    trunk/security/apg/
    trunk/security/apg/Makefile
    trunk/security/apg/distinfo
    trunk/security/apg/files/
    trunk/security/apg/files/patch-Makefile
    trunk/security/apg/files/patch-apg.c
    trunk/security/apg/files/patch-doc_man_apg.1
    trunk/security/apg/files/patch-doc_man_apgd.8
    trunk/security/apg/pkg-descr
    trunk/security/apg/pkg-plist

Modified: trunk/security/Makefile
===================================================================
--- trunk/security/Makefile	2015-08-27 23:43:08 UTC (rev 20075)
+++ trunk/security/Makefile	2015-08-27 23:44:50 UTC (rev 20076)
@@ -3,6 +3,7 @@
 COMMENT = Security tools
 
 SUBDIR += aide
+SUBDIR += apg
 SUBDIR += autossh
 SUBDIR += barnyard2
 SUBDIR += ca_root_nss

Added: trunk/security/apg/Makefile
===================================================================
--- trunk/security/apg/Makefile	                        (rev 0)
+++ trunk/security/apg/Makefile	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,37 @@
+# Created by: Peter Pentchev <roam at FreeBSD.org>
+# $MidnightBSD$
+# $FreeBSD: head/security/apg/Makefile 386507 2015-05-16 09:30:34Z matthew $
+
+PORTNAME=	apg
+PORTVERSION=	2.3.0b
+CATEGORIES=	security
+MASTER_SITES=	http://www.adel.nursat.kz/apg/download/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Automated password generator
+
+LICENSE=	bsd3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+DOCS=		APG_TIPS pronun.txt rfc0972.txt rfc1750.txt
+
+OPTIONS_DEFINE=	CRACKLIB DOCS
+CRACKLIB_DESC=	CrackLib support for password quality
+CRACKLIB_LIB_DEPENDS=	libcrack.so:${PORTSDIR}/security/cracklib
+CRACKLIB_MAKE_ARGS=	-DWITH_CRACKLIB
+
+post-extract:
+	@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} u+wx
+	@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} u+w
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/apg ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/apgbfm ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/apgd ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/doc/man/apg.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/doc/man/apgbfm.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/doc/man/apgd.8 ${STAGEDIR}${MANPREFIX}/man/man8
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>


Property changes on: trunk/security/apg/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/distinfo
===================================================================
--- trunk/security/apg/distinfo	                        (rev 0)
+++ trunk/security/apg/distinfo	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,2 @@
+SHA256 (apg-2.3.0b.tar.gz) = d1e52029709e2d7f9cb99bedce3e02ee7a63cff7b8e2b4c2bc55b3dc03c28b92
+SIZE (apg-2.3.0b.tar.gz) = 109995


Property changes on: trunk/security/apg/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/files/patch-Makefile
===================================================================
--- trunk/security/apg/files/patch-Makefile	                        (rev 0)
+++ trunk/security/apg/files/patch-Makefile	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,43 @@
+--- Makefile.orig	2003-08-07 15:40:39 UTC
++++ Makefile
+@@ -44,10 +44,12 @@ APG_CLIBS += -lcrypt
+ # 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 @@ APG_CLIBS += -lcrypt
+ ##################################################################
+ # You can modify CC variable if you have compiler other than GCC
+ # But the code was designed and tested with GCC
+-CC = gcc
++CC ?= gcc
+ 
+ ##################################################################
+ # Compilation flags
+ # You should comment the line below for AIX+native cc
+-CFLAGS = -Wall
++CFLAGS ?= -Wall
+ 
+ ####################################################################
+ # If you plan to install APG daemon you should look at lines below #
+@@ -135,7 +137,7 @@ apgd:
+ 	${CC} ${CFLAGS} -DCLISERV ${CLISERV_OPTIONS} -o ${CS_PROGNAME} ${SOURCES} ${APG_CS_CLIBS}
+ 
+ apgbfm:
+-	${CC} ${FLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS}
++	${CC} ${CFLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS}
+ 
+ strip:
+ 	strip ${PROGNAME}


Property changes on: trunk/security/apg/files/patch-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/files/patch-apg.c
===================================================================
--- trunk/security/apg/files/patch-apg.c	                        (rev 0)
+++ trunk/security/apg/files/patch-apg.c	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,11 @@
+--- apg.c.orig	2003-08-07 15:40:39 UTC
++++ apg.c
+@@ -709,7 +709,7 @@ print_help (void)
+ */
+ char * crypt_passstring (const char *p)
+ {
+- char salt[10];
++ char salt[11];
+  gen_rand_pass (salt, 10, 10, S_SL|S_CL|S_NB);
+  return (crypt(p, salt));
+ }


Property changes on: trunk/security/apg/files/patch-apg.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/files/patch-doc_man_apg.1
===================================================================
--- trunk/security/apg/files/patch-doc_man_apg.1	                        (rev 0)
+++ trunk/security/apg/files/patch-doc_man_apg.1	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,20 @@
+--- doc/man/apg.1.orig	2003-08-07 15:40:39 UTC
++++ doc/man/apg.1
+@@ -151,7 +151,7 @@ length.
+ .PP
+ .B Note:
+ .br
+-Usage of L, M, N, C will slow down password generation process.
++Usage of L, S, N, C will slow down password generation process.
+ .PP
+ .B Examples:
+ .br
+@@ -233,7 +233,7 @@ print generated passwords and crypted pa
+ quiet mode (do not print warnings)
+ .TP
+ .B -l
+-spell genetated passwords. Useful when you want to read generated password by telephone.
++spell generated passwords. Useful when you want to read generated password by telephone.
+ .RS
+ .B WARNING:
+ Think twice before read your password by phone.


Property changes on: trunk/security/apg/files/patch-doc_man_apg.1
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/files/patch-doc_man_apgd.8
===================================================================
--- trunk/security/apg/files/patch-doc_man_apgd.8	                        (rev 0)
+++ trunk/security/apg/files/patch-doc_man_apgd.8	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,20 @@
+--- doc/man/apgd.8.orig	2003-08-07 15:40:39 UTC
++++ doc/man/apgd.8
+@@ -187,7 +187,7 @@ length.
+ .PP
+ .B Note:
+ .br
+-Usage of L, M, N, C will slow down password generation process.
++Usage of L, S, N, C will slow down password generation process.
+ .PP
+ .B Examples:
+ .br
+@@ -248,7 +248,7 @@ This option is active only if \fB-b\fP o
+ .SS "Password output options"
+ .TP
+ .B -l
+-spell genetated passwords. Useful when you want to read generated password by telephone.
++spell generated passwords. Useful when you want to read generated password by telephone.
+ .RS
+ .B WARNING:
+ Think twice before read your password by phone.


Property changes on: trunk/security/apg/files/patch-doc_man_apgd.8
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/pkg-descr
===================================================================
--- trunk/security/apg/pkg-descr	                        (rev 0)
+++ trunk/security/apg/pkg-descr	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,5 @@
+An automated password generator, using several strong algorithms
+for random and/or pronounceable password generation, and a built-in
+pseudo-random number generator.
+
+WWW: http://www.adel.nursat.kz/apg/


Property changes on: trunk/security/apg/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/apg/pkg-plist
===================================================================
--- trunk/security/apg/pkg-plist	                        (rev 0)
+++ trunk/security/apg/pkg-plist	2015-08-27 23:44:50 UTC (rev 20076)
@@ -0,0 +1,10 @@
+bin/apg
+bin/apgbfm
+sbin/apgd
+man/man1/apg.1.gz
+man/man1/apgbfm.1.gz
+man/man8/apgd.8.gz
+%%PORTDOCS%%%%DOCSDIR%%/APG_TIPS
+%%PORTDOCS%%%%DOCSDIR%%/pronun.txt
+%%PORTDOCS%%%%DOCSDIR%%/rfc0972.txt
+%%PORTDOCS%%%%DOCSDIR%%/rfc1750.txt


Property changes on: trunk/security/apg/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list