View | Details | Raw Unified | Return to bug 136843
Collapse All | Expand All

(-)Makefile (-11 / +2 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	cvsync
8
PORTNAME=	cvsync
9
PORTVERSION=	0.24.19
9
PORTVERSION=	0.24.19
10
PORTREVISION=	0
10
PORTREVISION=	1
11
CATEGORIES=	net ipv6
11
CATEGORIES=	net ipv6
12
MASTER_SITES=	ftp://ftp.cvsync.org/pub/cvsync/ \
12
MASTER_SITES=	ftp://ftp.cvsync.org/pub/cvsync/ \
13
		ftp://ftp.allbsd.org/pub/cvsync/
13
		ftp://ftp.allbsd.org/pub/cvsync/
Lines 16-30 Link Here
16
COMMENT=	A portable CVS repository synchronization utility
16
COMMENT=	A portable CVS repository synchronization utility
17
17
18
USE_GMAKE=	yes
18
USE_GMAKE=	yes
19
USE_RC_SUBR=	yes
19
USE_RC_SUBR=	cvsyncd
20
20
21
MAN1=		cvscan.1 cvsup2cvsync.1 cvsync.1 cvsync2cvsup.1 cvsyncd.1 \
21
MAN1=		cvscan.1 cvsup2cvsync.1 cvsync.1 cvsync2cvsup.1 cvsyncd.1 \
22
		rcscan.1 rcscmp.1
22
		rcscan.1 rcscmp.1
23
DOCS=		doc/COPYRIGHT doc/ChangeLog doc/FAQ doc/TODO
23
DOCS=		doc/COPYRIGHT doc/ChangeLog doc/FAQ doc/TODO
24
EXAMPLES=	samples/cvsync.conf samples/cvsyncd-FreeBSD.conf \
24
EXAMPLES=	samples/cvsync.conf samples/cvsyncd-FreeBSD.conf \
25
		samples/cvsyncd-NetBSD.conf samples/cvsyncd-OpenBSD.conf
25
		samples/cvsyncd-NetBSD.conf samples/cvsyncd-OpenBSD.conf
26
STARTUPDIR=	etc/rc.d
27
STARTUPFILES=	cvsyncd.sh
28
26
29
MAKE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
27
MAKE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
30
MAKE_FLAGS=	OSVER="${OSVERSION}"
28
MAKE_FLAGS=	OSVER="${OSVERSION}"
Lines 33-47 Link Here
33
USE_OPENSSL=	yes
31
USE_OPENSSL=	yes
34
MAKE_FLAGS+=	HASH_TYPE=openssl
32
MAKE_FLAGS+=	HASH_TYPE=openssl
35
.endif
33
.endif
36
PLIST_SUB=	STARTUPDIR=${STARTUPDIR}
37
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
38
34
39
post-install:
35
post-install:
40
.for file in ${STARTUPFILES}
41
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
42
		${FILESDIR}/${file} > ${WRKDIR}/${file}
43
	${INSTALL_SCRIPT} ${WRKDIR}/${file} ${PREFIX}/${STARTUPDIR}/${file}
44
.endfor
45
	@${MKDIR} ${EXAMPLESDIR}
36
	@${MKDIR} ${EXAMPLESDIR}
46
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
37
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
47
.if !defined(NOPORTDOCS)
38
.if !defined(NOPORTDOCS)
(-)pkg-plist (-1 lines)
Lines 15-19 Link Here
15
%%EXAMPLESDIR%%/cvsyncd-FreeBSD.conf
15
%%EXAMPLESDIR%%/cvsyncd-FreeBSD.conf
16
%%EXAMPLESDIR%%/cvsyncd-NetBSD.conf
16
%%EXAMPLESDIR%%/cvsyncd-NetBSD.conf
17
%%EXAMPLESDIR%%/cvsyncd-OpenBSD.conf
17
%%EXAMPLESDIR%%/cvsyncd-OpenBSD.conf
18
%%STARTUPDIR%%/cvsyncd.sh
19
@dirrm %%EXAMPLESDIR%%
18
@dirrm %%EXAMPLESDIR%%
(-)files/cvsyncd.in (+42 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/net/cvsync/files/cvsyncd.sh,v 1.3 2006/02/20 20:47:21 dougb Exp $
4
#
5
# PROVIDE: cvsyncd
6
# REQUIRE: LOGIN
7
#
8
cvsyncd_enable=${cvsyncd_enable-"NO"}
9
cvsyncd_pidfile=${cvsyncd_pidfile-"/var/run/cvsyncd.pid"}
10
cvsyncd_conffile=${cvsyncd_conffile-"%%PREFIX%%/etc/cvsyncd.conf"}
11
12
. %%RC_SUBR%%
13
14
name=cvsyncd
15
rcvar=`set_rcvar`
16
command=%%PREFIX%%/bin/${name}
17
18
load_rc_config ${name}
19
20
case "${cvsyncd_flags}" in
21
*-p\ *)
22
	echo "Warning: \$cvsyncd_flags includes -p option." \
23
		"Please use \$cvsyncd_pidfile instead."
24
	;;
25
*)
26
	cvsyncd_flags="-p ${cvsyncd_pidfile} ${cvsyncd_flags}" ;;
27
esac
28
29
case "${cvsyncd_flags}" in
30
*-c\ *)
31
	echo "Warning: \$cvsyncd_flags includes -c option." \
32
		"Please use \$cvsyncd_conffile instead."
33
	;;
34
*)
35
	cvsyncd_flags="-c ${cvsyncd_conffile} ${cvsyncd_flags}" ;;
36
esac
37
38
pidfile=${cvsyncd_pidfile}
39
required_files=${cvsyncd_conffile}
40
41
run_rc_command "$1"
42
(-)files/cvsyncd.sh (-42 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/net/cvsync/files/cvsyncd.sh,v 1.3 2006/02/20 20:47:21 dougb Exp $
4
#
5
# PROVIDE: cvsyncd
6
# REQUIRE: LOGIN
7
#
8
cvsyncd_enable=${cvsyncd_enable-"NO"}
9
cvsyncd_pidfile=${cvsyncd_pidfile-"/var/run/cvsyncd.pid"}
10
cvsyncd_conffile=${cvsyncd_conffile-"%%PREFIX%%/etc/cvsyncd.conf"}
11
12
. %%RC_SUBR%%
13
14
name=cvsyncd
15
rcvar=`set_rcvar`
16
command=%%PREFIX%%/bin/${name}
17
18
load_rc_config ${name}
19
20
case "${cvsyncd_flags}" in
21
*-p\ *)
22
	echo "Warning: \$cvsyncd_flags includes -p option." \
23
		"Please use \$cvsyncd_pidfile instead."
24
	;;
25
*)
26
	cvsyncd_flags="-p ${cvsyncd_pidfile} ${cvsyncd_flags}" ;;
27
esac
28
29
case "${cvsyncd_flags}" in
30
*-c\ *)
31
	echo "Warning: \$cvsyncd_flags includes -c option." \
32
		"Please use \$cvsyncd_conffile instead."
33
	;;
34
*)
35
	cvsyncd_flags="-c ${cvsyncd_conffile} ${cvsyncd_flags}" ;;
36
esac
37
38
pidfile=${cvsyncd_pidfile}
39
required_files=${cvsyncd_conffile}
40
41
run_rc_command "$1"
42

Return to bug 136843