freebsd-ports/sysutils/portsnap/Makefile
Colin Percival af2e077589 Update to version 0.3.1 in order to fix a bug which breaks `portsnap
extract`.

Bug noticed by:	Dru Lavigne
With hats:	pointy, maintainer
2004-12-09 02:45:44 +00:00

52 lines
1.5 KiB
Makefile

# New ports collection makefile for: Ports tree snapshot utility
# Date created: 29 October 2004
# Whom: cperciva@daemonology.net
#
# $FreeBSD$
#
PORTNAME= portsnap
PORTVERSION= 0.3.1
CATEGORIES= sysutils net
MASTER_SITES= http://www.daemonology.net/portsnap/
MAINTAINER= cperciva@daemonology.net
COMMENT= Provides secure snapshots of the ports directory
RUN_DEPENDS= bspatch:${PORTSDIR}/misc/bsdiff \
freebsd-update-verify:${PORTSDIR}/security/freebsd-update
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 491101 || ( ${OSVERSION} > 499999 && ${OSVERSION} < 502114 )
RUN_DEPENDS+= sha1:${PORTSDIR}/sysutils/freebsd-sha1
.endif
MAN5= portsnap.conf.5
MAN8= portsnap.8
PLIST_FILES= etc/portsnap.conf.sample sbin/portsnap \
portsnap/.package.this.directory
PLIST_DIRS= portsnap
PKGMESSAGE= ${WRKDIR}/pkg-message
post-extract:
${SED} -e "s#PREFIX=/usr/local#PREFIX=${PREFIX}#g" \
${WRKSRC}/portsnap > ${WRKSRC}/portsnap.new
${MV} ${WRKSRC}/portsnap.new ${WRKSRC}/portsnap
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${PKGDIR}/pkg-message \
> ${PKGMESSAGE}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/portsnap.conf.5 ${PREFIX}/man/man5/
${INSTALL_MAN} ${WRKSRC}/portsnap.8 ${PREFIX}/man/man8/
${INSTALL_DATA} ${WRKSRC}/portsnap.conf \
${PREFIX}/etc/portsnap.conf.sample
${MKDIR} ${PREFIX}/portsnap
${TOUCH} ${PREFIX}/portsnap/.package.this.directory
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>