ports/59081: Update port: security/makepasswd
Toni Viemero
toni.viemero at iki.fi
Sun Nov 9 15:20:21 UTC 2003
>Number: 59081
>Category: ports
>Synopsis: Update port: security/makepasswd
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 09 07:20:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Toni Viemerö
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD iso.egotaivas.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Sun Nov 9 02:41:54 EET 2003 root at iso.egotaivas.com:/usr/src/sys/compile/ISO i386
>Description:
Update port to latest patchlevel and make it use /dev/urandom instead
of /dev/random for entropy.
>How-To-Repeat:
>Fix:
diff -ruN makepasswd.org/Makefile makepasswd/Makefile
--- makepasswd.org/Makefile Sun Nov 9 16:14:36 2003
+++ makepasswd/Makefile Sun Nov 9 17:05:27 2003
@@ -7,21 +7,37 @@
PORTNAME= makepasswd
PORTVERSION= 1.10
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_DEBIAN}
-MASTER_SITE_SUBDIR= dists/potato/main/source/admin/
+MASTER_SITE_SUBDIR= pool/main/m/makepasswd
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
+PATCHFILES= ${PORTNAME}_${PORTVERSION}-2.diff.gz
+PATCH_SITES= ${MASTER_SITES}
+PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
+PATCH_DIST_STRIP= -p1
+
MAINTAINER= toni.viemero at iki.fi
COMMENT= Random password generator
NO_BUILD= yes
USE_PERL5_RUN= yes
+USE_REINPLACE= yes
+
+RUN_DEPENDS+= ${SITE_PERL}/Crypt/PasswdMD5.pm:${PORTSDIR}/security/p5-Crypt-PasswdMD5
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= makepasswd.1
DOCS= CHANGES README
+.include <bsd.port.pre.mk>
+
+pre-patch:
+ ${REINPLACE_CMD} -e "s/\/dev\/random/\/dev\/urandom/" ${WRKSRC}/makepasswd
+ ${REINPLACE_CMD} -e "s/\/dev\/random/\/dev\/urandom/" ${WRKSRC}/makepasswd.1
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/makepasswd ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
@@ -32,4 +48,4 @@
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN makepasswd.org/distinfo makepasswd/distinfo
--- makepasswd.org/distinfo Sun Nov 9 16:14:36 2003
+++ makepasswd/distinfo Sun Nov 9 16:22:24 2003
@@ -1 +1,2 @@
MD5 (makepasswd_1.10.orig.tar.gz) = 55842bb4c064ebcdedffb4afd5f0945a
+MD5 (makepasswd_1.10-2.diff.gz) = 3525498bf730e11c3aa14721556110fb
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list