mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
7fc792b6a6
1. If update.sh failed to determine the PREFIX, it didn't realize it had failed. This is arguably caused by a shell bug in processing the statement export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$") This statement always succeeds even if the "expr" command fails. Moving the "export" to a separate statement makes it work. 2. If the system had no "/home" directory, the pkg-install script would create it with mode 0700, making ~cvsupin inaccessible to its owner. A user ran into this bug when installing cvsup-mirror into a jail.
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# New ports collection makefile for: cvsup-mirror
|
|
# Date created: 01 February 1997
|
|
# Whom: jdp
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cvsup-mirror
|
|
PORTVERSION= 1.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
DISTFILES=
|
|
|
|
MAINTAINER= jdp@FreeBSD.org
|
|
COMMENT= A kit for easily setting up a FreeBSD mirror site using CVSup
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/cvsupd:${PORTSDIR}/net/cvsup-without-gui
|
|
|
|
NO_WRKSUBDIR= true
|
|
NO_BUILD= true
|
|
IS_INTERACTIVE= true
|
|
NO_PACKAGE= too interactive
|
|
SCRIPTS_ENV= USA_RESIDENT=${USA_RESIDENT}
|
|
|
|
base=${PREFIX}/etc/cvsup
|
|
distrib=${base}/sup.client/distrib
|
|
rc=${PREFIX}/etc/rc.d
|
|
|
|
do-extract:
|
|
@test -d ${WRKSRC} || ${MKDIR} ${WRKSRC}
|
|
|
|
do-install:
|
|
@${ECHO_MSG} "Installing files"
|
|
@test -d ${distrib} || ${MKDIR} ${distrib}
|
|
@test -d ${rc} || ${MKDIR} ${rc}
|
|
@${INSTALL_DATA} ${WRKSRC}/config.sh ${base}
|
|
@${INSTALL_DATA} ${WRKSRC}/cvsupd.access ${base}
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/update.sh ${base}
|
|
@${INSTALL_DATA} ${FILESDIR}/supfile ${base}
|
|
@${INSTALL_DATA} ${FILESDIR}/refuse.self ${distrib}
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/cvsupd.sh ${rc}
|
|
@${CP} /dev/null ${base}/.start_server
|
|
|
|
post-install:
|
|
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|