diff options
author | Michael Haro <mharo@FreeBSD.org> | 2004-08-29 00:45:49 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 2004-08-29 00:45:49 +0000 |
commit | 4a12a31aa1b4b2ee32389fbecb0b3ef196f99633 (patch) | |
tree | 8e2665b75fd297a5ae2ad97449c238b5d8fbbd3b | |
parent | Add slaves ports for Aspell's new dictionaries. (diff) |
Add opieprint
output postscript with 100 OPIE passwords credit card sized
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/opieprint/Makefile | 22 | ||||
-rw-r--r-- | security/opieprint/distinfo | 4 | ||||
-rw-r--r-- | security/opieprint/files/patch-opieprint | 25 | ||||
-rw-r--r-- | security/opieprint/pkg-plist | 5 |
5 files changed, 40 insertions, 17 deletions
diff --git a/security/Makefile b/security/Makefile index a16ba30e0f3b..86139e5aa718 100644 --- a/security/Makefile +++ b/security/Makefile @@ -218,6 +218,7 @@ SUBDIR += openssl SUBDIR += openssl-beta SUBDIR += openvpn + SUBDIR += opieprint SUBDIR += osiris SUBDIR += outguess SUBDIR += p5-Authen-Captcha diff --git a/security/opieprint/Makefile b/security/opieprint/Makefile index 54bae7d02f44..17a689a9cecc 100644 --- a/security/opieprint/Makefile +++ b/security/opieprint/Makefile @@ -5,27 +5,27 @@ # $FreeBSD$ # -PORTNAME= keyprint +PORTNAME= opieprint PORTVERSION= 1.0 CATEGORIES= security -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= mharo +MASTER_SITES= http://www.inner.net/pub/opie/contrib/ +DISTNAME= ${PORTNAME} +EXTRACT_SUFX= .gz MAINTAINER= mharo@FreeBSD.org -COMMENT= Print S/Key keys on a piece of paper, twice the size of a credit card +COMMENT= Output postscript with 100 OPIE passwords credit card sized NO_BUILD= yes +NO_WRKSUBDIR= yes USE_REINPLACE= yes +USE_PERL5_RUN= yes + +EXTRACT_AFTER_ARGS= > ${WRKSRC}/${PORTNAME} post-patch: - ${REINPLACE_CMD} -e 's,__PREFIX__,${PREFIX},' ${WRKSRC}/keyprint + ${REINPLACE_CMD} -e 's,/usr/local/bin/perl,${PERL},' ${WRKSRC}/opieprint do-install: - ${MKDIR} ${PREFIX}/share/keyprint - ${INSTALL_DATA} ${WRKSRC}/keyblank.ps ${PREFIX}/share/keyprint - ${INSTALL_SCRIPT} ${WRKSRC}/keyprint ${PREFIX}/bin -.if !defined(NOPORTDOCS) - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/keyprint -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/opieprint ${PREFIX}/bin .include <bsd.port.mk> diff --git a/security/opieprint/distinfo b/security/opieprint/distinfo index efe2f71653d8..4672ac7e1313 100644 --- a/security/opieprint/distinfo +++ b/security/opieprint/distinfo @@ -1,2 +1,2 @@ -MD5 (keyprint-1.0.tar.gz) = e142a207c6c33a60b5940a8050dc9ea9 -SIZE (keyprint-1.0.tar.gz) = 8779 +MD5 (opieprint.gz) = 02925616a6ccb9277f59e10bff69761b +SIZE (opieprint.gz) = 2716 diff --git a/security/opieprint/files/patch-opieprint b/security/opieprint/files/patch-opieprint new file mode 100644 index 000000000000..f59b43f0289e --- /dev/null +++ b/security/opieprint/files/patch-opieprint @@ -0,0 +1,25 @@ +--- opieprint.orig Sat Aug 28 13:15:12 2004 ++++ opieprint Sat Aug 28 13:20:52 2004 +@@ -25,11 +25,11 @@ + + ########################## Configurable Parameters ####################### + +-$dir="/usr/local/bin"; # dir containing opieinfo & opiekey ++$dir="/usr/bin"; # dir containing opieinfo & opiekey + + ########################################################################## + +-$ENV{'PATH'}='/bin:/usr/bin:/usr/ucb'; ++$ENV{'PATH'}='/bin:/usr/bin'; + $|=1; # unbuffer stdout + + $max = 100; # default max seq number is 100 +@@ -49,7 +49,7 @@ + } + + # get user from: cmdline or ENV or getlogin +-$username = $ARGV[0] || $ENV{'USER'} || $ENV{'LOGNAME'} || getlogin(); ++$username = $ARGV[0]; # || $ENV{'USER'} || $ENV{'LOGNAME'} || getlogin(); + $username =~ /(\w+)/; + $username = $1; + diff --git a/security/opieprint/pkg-plist b/security/opieprint/pkg-plist index 8c721589ccc4..1b65010cd0cd 100644 --- a/security/opieprint/pkg-plist +++ b/security/opieprint/pkg-plist @@ -1,4 +1 @@ -bin/keyprint -share/keyprint/README -share/keyprint/keyblank.ps -@dirrm share/keyprint +bin/opieprint |