60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Toni Viemerö <toni.viemero@iki.fi>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= makepasswd
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 6
|
|
CATEGORIES= security
|
|
MASTER_SITES= DEBIAN_POOL
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
|
|
|
PATCHFILES= ${PORTNAME}_${PORTVERSION}-5.diff.gz
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= toni.viemero@iki.fi
|
|
COMMENT= Random password generator
|
|
|
|
LICENSE= GPLv1
|
|
|
|
NO_BUILD= yes
|
|
USES= perl5 shebangfix
|
|
SHEBANG_FILES= makepasswd
|
|
USE_PERL5= run
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
RUN_DEPENDS+= p5-Crypt-PasswdMD5>=0:${PORTSDIR}/security/p5-Crypt-PasswdMD5 \
|
|
p5-Crypt-OpenSSL-Random>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-Random
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
|
PORTDOCS= CHANGES README
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s/use bytes;/#use bytes;/" ${WRKSRC}/makepasswd
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/makepasswd ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|