Bug 49008 - New port: makepasswd, random password generator
Summary: New port: makepasswd, random password generator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 17:20 UTC by Toni Viemerö
Modified: 2003-04-01 09:04 UTC (History)
0 users

See Also:


Attachments
file.shar (2.24 KB, text/plain)
2003-03-07 17:20 UTC, Toni Viemerö
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Viemerö 2003-03-07 17:20:17 UTC
Random password generator.
Comment 1 corecode@corecode.ath.cx 2003-03-07 19:31:39 UTC
Lately Toni Viemero told:

> sed 's/^X//' >makepasswd/Makefile << 'END-of-makepasswd/Makefile'
[...]
> XMASTER_SITES=  http://ftp.debian.org/debian/dists/potato/main/source/admin/

i think you want
MASTER_SITES=	${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR=	dists/potato/main/source/admin/

> XDISTNAME=      ${PORTNAME}_${PORTVERSION}.orig
[...]
> XWRKSRC=                ${WRKDIR}/${PORTNAME}-${PORTVERSION}

i know that portlint isn't happy with that solution but i'd do

DISTFILES=	${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
and remove the WRKSRC definition

> X.include <bsd.port.pre.mk>

what for?

> X       ${INSTALL_DATA} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1

${INSTALL_MAN}.

you forgot
USE_PERL5_RUN=	yes

cheers
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Comment 2 Toni Viemerö 2003-03-08 07:49:09 UTC
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       makepasswd
#       makepasswd/Makefile
#       makepasswd/distinfo
#       makepasswd/pkg-plist
#       makepasswd/pkg-descr
#
echo c - makepasswd
mkdir -p makepasswd > /dev/null 2>&1
echo x - makepasswd/Makefile
sed 's/^X//' >makepasswd/Makefile << 'END-of-makepasswd/Makefile'
X# New ports collection makefile for:   makepasswd
X# Date created:                                7 March 2003
X# Whom:                                        Toni Viemerö <toni.viemero@iki.fi>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      makepasswd
XPORTVERSION=   1.10
XCATEGORIES=    security
XMASTER_SITES=  ${MASTER_SITE_DEBIAN}
XMASTER_SITE_SUBDIR=    dists/potato/main/source/admin/
XDISTFILES=     ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
X
XMAINTAINER=    ports@FreeBSD.org
XCOMMENT=       Random password generator
X
XNO_BUILD=      yes
XUSE_PERL5_RUN= yes
X
XMAN1=          makepasswd.1
XDOCS=          CHANGES README
X
Xdo-install:
X       ${INSTALL_SCRIPT} ${WRKSRC}/makepasswd ${PREFIX}/bin
X       ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
X.if !defined(NOPORTDOCS)
X       @${MKDIR} ${DOCSDIR}
X.for file in ${DOCS}
X       ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-makepasswd/Makefile
echo x - makepasswd/distinfo
sed 's/^X//' >makepasswd/distinfo << 'END-of-makepasswd/distinfo'
XMD5 (makepasswd_1.10.orig.tar.gz) = 55842bb4c064ebcdedffb4afd5f0945a
END-of-makepasswd/distinfo
echo x - makepasswd/pkg-plist
sed 's/^X//' >makepasswd/pkg-plist << 'END-of-makepasswd/pkg-plist'
Xbin/makepasswd
END-of-makepasswd/pkg-plist
echo x - makepasswd/pkg-descr
sed 's/^X//' >makepasswd/pkg-descr << 'END-of-makepasswd/pkg-descr'
XGenerates true random passwords by using the /dev/random feature of
Linux,
Xwith the emphasis on security over pronounceability. It can also
encrypt
Xplaintext passwords given on the command line.
X
XWWW: http://packages.debian.org/stable/admin/makepasswd.html
END-of-makepasswd/pkg-descr
exit
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2003-04-01 09:04:24 UTC
State Changed
From-To: open->closed

Commited, thanks!