diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-06-14 13:43:44 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-06-14 13:43:44 +0800 |
commit | b2bcfcf0780b2c84c1cb3a83c548ad2aba9f1c8c (patch) | |
tree | b8ad87d7696be7f9e90ef5480f0dad448ff6b77f /misc/shuffle/Makefile | |
parent | afce509c671f8e933783fdfcbedaa663019076de (diff) | |
download | freebsd-ports-gnome-b2bcfcf0780b2c84c1cb3a83c548ad2aba9f1c8c.tar.gz freebsd-ports-gnome-b2bcfcf0780b2c84c1cb3a83c548ad2aba9f1c8c.tar.zst freebsd-ports-gnome-b2bcfcf0780b2c84c1cb3a83c548ad2aba9f1c8c.zip |
Add, shuffle(1) from NetBSD, a program that prints a random
permutation of its input lines
PR: 28089
Submitted by: dd
Obtained from: NetBSD
Diffstat (limited to 'misc/shuffle/Makefile')
-rw-r--r-- | misc/shuffle/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/misc/shuffle/Makefile b/misc/shuffle/Makefile new file mode 100644 index 000000000000..e8bb6e889eff --- /dev/null +++ b/misc/shuffle/Makefile @@ -0,0 +1,68 @@ +# New ports collection makefile for: shuffle +# Date created: 3 June 2001 +# Whom: Dima Dorfman <dima@unixfreak.org> +# +# $FreeBSD$ +# + +PORTNAME= shuffle +PORTVERSION= 20010603 +CATEGORIES= misc +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + http://www.unixfreak.org/~dima/distfiles/ +MASTER_SITE_SUBDIR= dd + +MAINTAINER= dima@unixfreak.org + +MAN1= shuffle.1 +MANCOMPRESSED= maybe + +# This isn't very scalable, but I'm lazy.. +.if defined(NOMANCOMPRESS) +MANNAME= shuffle.1 +.else +MANNAME= shuffle.1.gz +.endif + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/bin/shuffle + @${INSTALL_MAN} ${WRKSRC}/${MANNAME} ${PREFIX}/man/man1 + +# +# Ports build/install stuff stops here. Tarball creation stuff begins here. +# +.include <bsd.port.pre.mk> +CVS_CMD?= cvs -z3 +CVS_DATE= Sun Jun 3 15:58:14 PDT 2001 +CVS_SITES?= anoncvs@anoncvs.netbsd.org:/cvsroot +CVS_MODULE= basesrc/usr.bin/shuffle + +# +# CVS checkout stuff mostly stolen from security/openssh-askpass port by +# kris@freebsd.org +# +tarball: + @${MKDIR} ${DISTDIR}/${PKGNAME} && \ + cd ${DISTDIR}/${PKGNAME}; \ + for CVS_SITE in ${CVS_SITES}; do \ + ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \ + if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \ + ${CVS_MODULE}; then \ + cd ${DISTDIR}; \ + ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \ + ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \ + ${MV} ${PKGNAME}/${CVS_MODULE} \ + ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \ + ${TAR} -cz \ + -X ${FILESDIR}/tarignore \ + -f ${PKGNAME}.tar.gz \ + -C ${PKGNAME}/${CVS_MODULE:H} \ + ${PKGNAME}; \ + exit; \ + fi \ + done; \ + ${RMDIR} ${DISTDIR}/${PKGNAME}; \ + ${ECHO_MSG} ">> CVS checkout failed."; \ + exit 1; + +.include <bsd.port.post.mk> |