mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
8ca9f0d689
PR: ports/136065 ports/127469 Submitted by: N.J. Mann <njm@njm.me.uk> and Aldis Berjoza <killasmurf86@gmail.com> - Early identify port CONFLICTS PR: 137855 Submitted by: Piotr Smyrak <smyru@heron.pl> - Add --no-same-permissions to the EXTRACT_AFTER_ARGS command. Tijl Coosemans has been reported an issue that when root is extracting from the tarball, and the tarball contains world writable files (sysutils/policykit as an example), there is a chance that the files gets changed by malicious third parties right after the extraction, which makes it possible to inject code into the package thus compromise the system. Submitted by: Tijl Coosemans <tijl@coosemans.org> Xin LI (delphij@) - Fix some whitespaces Tested with: exp-run
76 lines
1.8 KiB
Makefile
76 lines
1.8 KiB
Makefile
# 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}
|
|
MASTER_SITE_SUBDIR= dd
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Produce random permutations
|
|
|
|
MANSECTS= 1
|
|
MAN1= shuffle.1
|
|
MANCOMPRESSED= maybe
|
|
|
|
# MAN page COMPression SUFFIX
|
|
.if !defined(NO_MANCOMPRESS)
|
|
MANCOMPSUFFIX= .gz
|
|
.else
|
|
MANCOMPSUFFIX=
|
|
.endif
|
|
|
|
PLIST_FILES= bin/shuffle
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/bin/shuffle
|
|
.for __s in ${MANSECTS}
|
|
.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
|
|
@${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
|
|
.endfor
|
|
.endfor
|
|
|
|
#
|
|
# 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>
|