aboutsummaryrefslogtreecommitdiffstats
path: root/net/cvsup-mirror/Makefile
blob: eb1d7d2bde29b820a5e39b4a73c3935881749725 (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
# New ports collection makefile for:    cvsup-mirror
# Version required: none
# Date created:     01 February 1997
# Whom:         jdp
#
# $Id: Makefile,v 1.4 1998/06/27 05:19:58 asami Exp $
#

DISTNAME=   cvsup-mirror-1.0
CATEGORIES= net
DISTFILES=

MAINTAINER= jdp@FreeBSD.org

RUN_DEPENDS=    ${PREFIX}/sbin/cvsupd:${PORTSDIR}/net/cvsup

NO_WRKSUBDIR=   true
NO_CHECKSUM=    true
NO_BUILD=   true
IS_INTERACTIVE= true
NO_PACKAGE= too interactive
SCRIPTS_ENV=    USA_RESIDENT=${USA_RESIDENT}

base=${PREFIX}/etc/cvsup
rc=${PREFIX}/etc/rc.d

do-extract:
    @test -d ${WRKSRC} || ${MKDIR} ${WRKSRC}

do-install:
    @echo "Installing files"
    @test -d ${base} || ${MKDIR} ${base}
    @test -d ${rc} || ${MKDIR} ${rc}
    @${INSTALL_DATA} ${WRKSRC}/config.sh ${base}
    @${INSTALL_SCRIPT} ${FILESDIR}/update.sh ${base}
    @${INSTALL_DATA} ${FILESDIR}/supfile ${base}
    @${INSTALL_DATA} ${FILESDIR}/supfile.crypto ${base}
    @${INSTALL_DATA} ${FILESDIR}/supfile.non-crypto ${base}
    @${INSTALL_SCRIPT} ${FILESDIR}/cvsupd.sh ${rc}
    @${CP} /dev/null ${base}/.start_server

post-install:
    @PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>