From 4a12a31aa1b4b2ee32389fbecb0b3ef196f99633 Mon Sep 17 00:00:00 2001 From: Michael Haro Date: Sun, 29 Aug 2004 00:45:49 +0000 Subject: Add opieprint output postscript with 100 OPIE passwords credit card sized --- security/opieprint/Makefile | 22 +++++++++++----------- security/opieprint/distinfo | 4 ++-- security/opieprint/files/patch-opieprint | 25 +++++++++++++++++++++++++ security/opieprint/pkg-plist | 5 +---- 4 files changed, 39 insertions(+), 17 deletions(-) create mode 100644 security/opieprint/files/patch-opieprint (limited to 'security/opieprint') 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 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 -- cgit v1.2.3