diff options
author | pav <pav@FreeBSD.org> | 2004-11-06 19:49:36 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-11-06 19:49:36 +0000 |
commit | ffb1e74dad48e685806b89cf6620ddf91c57c3ce (patch) | |
tree | 9b4be5720ff2a8bccd67265f5c2889d742fb4789 /ports-mgmt/portsnap/Makefile | |
parent | 41262905733b3992a7779bd14c6a651a4396b330 (diff) | |
download | FreeBSD-ports-ffb1e74dad48e685806b89cf6620ddf91c57c3ce.zip FreeBSD-ports-ffb1e74dad48e685806b89cf6620ddf91c57c3ce.tar.gz |
- Make freebsd-sha1 dependency conditional on OSVERSION
- Remove hardcoded /usr/local
PR: ports/73625
Submitted by: cperciva (maintainer)
Diffstat (limited to 'ports-mgmt/portsnap/Makefile')
-rw-r--r-- | ports-mgmt/portsnap/Makefile | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ports-mgmt/portsnap/Makefile b/ports-mgmt/portsnap/Makefile index 6305f26..c5ae197 100644 --- a/ports-mgmt/portsnap/Makefile +++ b/ports-mgmt/portsnap/Makefile @@ -7,23 +7,36 @@ PORTNAME= portsnap PORTVERSION= 0.2 +PORTREVISION= 1 CATEGORIES= sysutils net MASTER_SITES= http://www.daemonology.net/portsnap/ MAINTAINER= cperciva@daemonology.net COMMENT= Provides secure snapshots of the ports directory -# The freebsd-sha1 port is marked IGNORE for some versions of FreeBSD, -# but for those sha1 should be found in /sbin/, so this should be safe. RUN_DEPENDS= bspatch:${PORTSDIR}/misc/bsdiff \ - sha1:${PORTSDIR}/sysutils/freebsd-sha1 \ 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 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/ @@ -35,4 +48,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |