blob: a1113ff810262a03a25443c8c6a88786f942fbec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: cvsup-mirror
# Date created: 01 February 1997
# Whom: jdp
#
# $FreeBSD$
#
PORTNAME= cvsup-mirror
PORTVERSION= 1.3
PORTREVISION= 6
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}
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}
do-install:
@${ECHO_MSG} "Installing files"
@test -d ${distrib} || ${MKDIR} ${distrib}
@${INSTALL_DATA} ${WRKSRC}/config.sh ${base}
@${INSTALL_DATA} ${WRKSRC}/cvsupd.access ${base}
@${INSTALL_SCRIPT} ${WRKSRC}/update.sh ${base}
@${INSTALL_DATA} ${FILESDIR}/supfile ${base}
@${INSTALL_DATA} ${FILESDIR}/refuse.self ${distrib}
@${CP} /dev/null ${base}/.start_server
post-install:
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|