2003-03-23 18:41:44 +00:00
|
|
|
# Ports collection makefile for: cvsync
|
|
|
|
# Date created: Thu Mar 6, 2003
|
|
|
|
# Whom: Hiroki Sato <hrs@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cvsync
|
2004-11-26 18:16:23 +00:00
|
|
|
PORTVERSION= 0.24.18
|
2004-10-29 17:57:53 +00:00
|
|
|
PORTREVISION= 0
|
2003-03-23 18:41:44 +00:00
|
|
|
CATEGORIES= net ipv6
|
2003-07-23 05:24:55 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cvsync.org/pub/cvsync/ \
|
2003-03-23 18:41:44 +00:00
|
|
|
ftp://ftp.allbsd.org/pub/cvsync/
|
|
|
|
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
|
|
COMMENT= A portable CVS repository synchronization utility
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2004-05-11 12:13:26 +00:00
|
|
|
USE_RC_SUBR= yes
|
2003-04-16 06:45:07 +00:00
|
|
|
|
2004-04-20 08:04:18 +00:00
|
|
|
MAN1= cvscan.1 cvsup2cvsync.1 cvsync.1 cvsync2cvsup.1 cvsyncd.1 \
|
|
|
|
rcscan.1 rcscmp.1
|
2003-07-03 06:11:38 +00:00
|
|
|
DOCS= doc/COPYRIGHT doc/ChangeLog doc/FAQ doc/TODO
|
2004-04-19 07:07:50 +00:00
|
|
|
EXAMPLES= samples/cvsync.conf samples/cvsyncd-FreeBSD.conf \
|
2003-09-10 05:12:53 +00:00
|
|
|
samples/cvsyncd-NetBSD.conf samples/cvsyncd-OpenBSD.conf
|
2004-05-11 12:13:26 +00:00
|
|
|
STARTUPDIR= etc/rc.d
|
|
|
|
STARTUPFILES= cvsyncd.sh
|
2003-04-16 06:45:07 +00:00
|
|
|
|
2004-02-16 02:52:55 +00:00
|
|
|
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2003-11-03 10:56:02 +00:00
|
|
|
MAKE_FLAGS= OSVER="${OSVERSION}"
|
|
|
|
|
2004-04-10 21:20:15 +00:00
|
|
|
.if !defined(WITHOUT_OPENSSL)
|
2003-11-03 10:56:02 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
MAKE_FLAGS+= HASH_TYPE=openssl
|
|
|
|
.endif
|
2004-05-11 12:13:26 +00:00
|
|
|
PLIST_SUB= STARTUPDIR=${STARTUPDIR}
|
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
2003-11-03 10:56:02 +00:00
|
|
|
|
2003-03-23 18:41:44 +00:00
|
|
|
post-install:
|
2004-05-11 12:13:26 +00:00
|
|
|
.for file in ${STARTUPFILES}
|
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/${file} > ${WRKDIR}/${file}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${file} ${PREFIX}/${STARTUPDIR}/${file}
|
|
|
|
.endfor
|
2003-03-23 18:41:44 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2003-07-03 06:11:38 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2003-03-23 18:41:44 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|