aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-11-10 00:38:32 +0800
committerkrion <krion@FreeBSD.org>2003-11-10 00:38:32 +0800
commita99d8220ac9db7947489af4a0f5c791b07878f79 (patch)
treeef0e4beb733ae890b365068352ec95f0858dc291 /security
parentf70f82674c96776f972cf9ff324b9c1da9158ed9 (diff)
downloadfreebsd-ports-gnome-a99d8220ac9db7947489af4a0f5c791b07878f79.tar.gz
freebsd-ports-gnome-a99d8220ac9db7947489af4a0f5c791b07878f79.tar.zst
freebsd-ports-gnome-a99d8220ac9db7947489af4a0f5c791b07878f79.zip
- Update to latest patchlevel and
make it use /dev/urandom - Utilize DOCSDIR PR: 59081 Submitted by: maintainer
Diffstat (limited to 'security')
-rw-r--r--security/makepasswd/Makefile20
-rw-r--r--security/makepasswd/distinfo1
-rw-r--r--security/makepasswd/pkg-plist6
3 files changed, 22 insertions, 5 deletions
diff --git a/security/makepasswd/Makefile b/security/makepasswd/Makefile
index 2e69dd8962f0..95f887ed9136 100644
--- a/security/makepasswd/Makefile
+++ b/security/makepasswd/Makefile
@@ -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@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 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/makepasswd/distinfo b/security/makepasswd/distinfo
index cb34811b8248..26826bd39af7 100644
--- a/security/makepasswd/distinfo
+++ b/security/makepasswd/distinfo
@@ -1 +1,2 @@
MD5 (makepasswd_1.10.orig.tar.gz) = 55842bb4c064ebcdedffb4afd5f0945a
+MD5 (makepasswd_1.10-2.diff.gz) = 3525498bf730e11c3aa14721556110fb
diff --git a/security/makepasswd/pkg-plist b/security/makepasswd/pkg-plist
index f4087be20385..4f66536b1d9f 100644
--- a/security/makepasswd/pkg-plist
+++ b/security/makepasswd/pkg-plist
@@ -1,4 +1,4 @@
bin/makepasswd
-share/doc/makepasswd/CHANGES
-share/doc/makepasswd/README
-@dirrm share/doc/makepasswd
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%