summaryrefslogtreecommitdiff
path: root/security/apg
diff options
context:
space:
mode:
Diffstat (limited to 'security/apg')
-rw-r--r--security/apg/Makefile23
-rw-r--r--security/apg/files/md53
-rw-r--r--security/apg/files/patch-sum4
-rw-r--r--security/apg/patches/patch-aa23
-rw-r--r--security/apg/patches/patch-ab14
-rw-r--r--security/apg/pkg/DESCR3
-rw-r--r--security/apg/pkg/MESSAGE1
-rw-r--r--security/apg/pkg/PLIST6
8 files changed, 77 insertions, 0 deletions
diff --git a/security/apg/Makefile b/security/apg/Makefile
new file mode 100644
index 00000000000..c30ebb568cf
--- /dev/null
+++ b/security/apg/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+#
+
+DISTNAME= apg-1.2.12
+CATEGORIES= security
+MASTER_SITES= http://www.adel.nursat.kz/apg/download/
+
+MAINTAINER= zuntum@eik.pl
+HOMEPAGE= http://www.adel.nursat.kz/apg/
+COMMENT= Tool set for random password generation
+
+MAKE_ENV+= "CC=${CC}" \
+ "FLAGS=${CFLAGS}" \
+ "INSTALL_PREFIX=${PREFIX}"
+
+post-patch:
+ ${SED} "s|/usr/bin/perl|${LOCALBASE}/bin/perl|g" \
+ ${WRKSRC}/perl/apgcli.pl > ${WRKDIR}/apgcli.pl
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/apgcli.pl ${PREFIX}/bin/apgcli
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/apg/files/md5 b/security/apg/files/md5
new file mode 100644
index 00000000000..27b8f3db1b3
--- /dev/null
+++ b/security/apg/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+
+MD5 (apg-1.2.12.tar.gz) = 02f183cd1170aef922e90c75e81e041d
diff --git a/security/apg/files/patch-sum b/security/apg/files/patch-sum
new file mode 100644
index 00000000000..e457ac3aab7
--- /dev/null
+++ b/security/apg/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+
+MD5 (patch-aa) = b7b4403483a8c7f9f38bcee2736fbb9a
+MD5 (patch-ab) = 6dea5f12ef3b1f42a5b3a04bdfe814e9
diff --git a/security/apg/patches/patch-aa b/security/apg/patches/patch-aa
new file mode 100644
index 00000000000..3daae35129c
--- /dev/null
+++ b/security/apg/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+
+--- Makefile.orig Thu Feb 22 12:00:10 2001
++++ Makefile
+@@ -1,10 +1,8 @@
+ # You can modify CC variable if you have compiler other than GCC
+ # But the code was designed and tested with GCC
+-CC = gcc
+
+ # compilation flags
+ # You should comment the line below for AIX+native cc
+-FLAGS = -Wall
+
+ # libraries
+ LIBS = -lcrypt
+@@ -15,7 +13,6 @@
+ CRYPTED_PASS = APG_USE_CRYPT
+
+ # Install dirs
+-INSTALL_PREFIX = /usr/local
+ APG_BIN_DIR = /bin
+ APG_MAN_DIR = /man/man1
+ APGD_BIN_DIR = /sbin
diff --git a/security/apg/patches/patch-ab b/security/apg/patches/patch-ab
new file mode 100644
index 00000000000..74aae0965ca
--- /dev/null
+++ b/security/apg/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+
+--- apg.c.orig Thu Feb 22 12:00:10 2001
++++ apg.c
+@@ -35,6 +35,9 @@
+ #include <strings.h>
+ #include <string.h>
+ #include <time.h>
++#ifdef __NetBSD__
++#include <unistd.h>
++#endif
+ #define MAX_MODE_LENGTH 5
+
+ #ifndef _XOPEN_SOURCE
diff --git a/security/apg/pkg/DESCR b/security/apg/pkg/DESCR
new file mode 100644
index 00000000000..f60a0c92f42
--- /dev/null
+++ b/security/apg/pkg/DESCR
@@ -0,0 +1,3 @@
+An automated password generator, using several strong algorithms
+for random and/or pronounceable password generation, and a built-in
+pseudo-random number generator.
diff --git a/security/apg/pkg/MESSAGE b/security/apg/pkg/MESSAGE
new file mode 100644
index 00000000000..9974e07766b
--- /dev/null
+++ b/security/apg/pkg/MESSAGE
@@ -0,0 +1 @@
+You will need perl to use ${PREFIX}/bin/apgcli
diff --git a/security/apg/pkg/PLIST b/security/apg/pkg/PLIST
new file mode 100644
index 00000000000..5acfdc63449
--- /dev/null
+++ b/security/apg/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/05 23:21:03 hubertf Exp $
+bin/apg
+bin/apgcli
+sbin/apgd
+man/man1/apg.1
+man/man8/apgd.8