diff options
author | John Polstra <jdp@FreeBSD.org> | 2007-01-29 01:13:35 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 2007-01-29 01:13:35 +0000 |
commit | f83451d8f68072b79c86919e018ddffaa362b262 (patch) | |
tree | 1c1eaeb7855205e3a728798cdad03001863f3767 /net/cvsup-mirror | |
parent | 59dcc3a13d012c7790f3412ad916ebb6c5eeadb7 (diff) | |
download | ports-f83451d8f68072b79c86919e018ddffaa362b262.tar.gz ports-f83451d8f68072b79c86919e018ddffaa362b262.zip |
Notes
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r-- | net/cvsup-mirror/Makefile | 15 | ||||
-rw-r--r-- | net/cvsup-mirror/files/update.sh.in (renamed from net/cvsup-mirror/files/update.sh) | 4 |
2 files changed, 14 insertions, 5 deletions
diff --git a/net/cvsup-mirror/Makefile b/net/cvsup-mirror/Makefile index 9eb1a22215b3..a1113ff81026 100644 --- a/net/cvsup-mirror/Makefile +++ b/net/cvsup-mirror/Makefile @@ -7,7 +7,7 @@ PORTNAME= cvsup-mirror PORTVERSION= 1.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net DISTFILES= @@ -23,10 +23,19 @@ NO_PACKAGE= too interactive SCRIPTS_ENV= USA_RESIDENT=${USA_RESIDENT} USE_RC_SUBR= cvsupd.sh +SUB_FILES= update.sh base=${PREFIX}/etc/cvsup distrib=${base}/sup.client/distrib +.include <bsd.port.pre.mk> + +.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101)) +SUB_LIST+= CVSUPD="cvsupd" +.else +SUB_LIST+= CVSUPD="cvsupd.sh" +.endif + do-extract: @test -d ${WRKSRC} || ${MKDIR} ${WRKSRC} @@ -35,7 +44,7 @@ do-install: @test -d ${distrib} || ${MKDIR} ${distrib} @${INSTALL_DATA} ${WRKSRC}/config.sh ${base} @${INSTALL_DATA} ${WRKSRC}/cvsupd.access ${base} - @${INSTALL_SCRIPT} ${FILESDIR}/update.sh ${base} + @${INSTALL_SCRIPT} ${WRKSRC}/update.sh ${base} @${INSTALL_DATA} ${FILESDIR}/supfile ${base} @${INSTALL_DATA} ${FILESDIR}/refuse.self ${distrib} @${CP} /dev/null ${base}/.start_server @@ -43,4 +52,4 @@ do-install: post-install: @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh.in index f0af07111bd7..46b78b275390 100644 --- a/net/cvsup-mirror/files/update.sh +++ b/net/cvsup-mirror/files/update.sh.in @@ -45,9 +45,9 @@ su -f -m ${cuser} -c \ if [ ${ok} = yes ]; then if [ -f ${base}/.start_server ]; then - if [ -x ${startup}/cvsupd.sh ]; then + if [ -x ${startup}/%%CVSUPD%% ]; then echo -n "Starting the server:" - /bin/sh ${startup}/cvsupd.sh start + /bin/sh ${startup}/%%CVSUPD%% start echo "." fi rm -f ${base}/.start_server |