2000-02-13 04:25:05 +01:00
|
|
|
# Ports collection makefile for: rsync
|
|
|
|
# Date created: Sat Aug 3, 1996
|
|
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
1996-08-16 09:23:01 +02:00
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1996-08-16 09:23:01 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= rsync
|
2006-11-22 11:05:47 +01:00
|
|
|
PORTVERSION= 2.6.9
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= net ipv6
|
2004-04-27 23:59:18 +02:00
|
|
|
MASTER_SITES= http://rsync.samba.org/ftp/%SUBDIR%/ \
|
2006-07-28 16:42:54 +02:00
|
|
|
ftp://ftp.samba.org/pub/%SUBDIR%/ \
|
2004-04-27 23:59:18 +02:00
|
|
|
ftp://sunsite.auc.dk/pub/unix/%SUBDIR%/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/admin/%SUBDIR%/ \
|
2004-08-12 12:45:27 +02:00
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/network/%SUBDIR%/ \
|
2006-06-01 15:30:54 +02:00
|
|
|
http://www.mirrorservice.org/sites/rsync.samba.org/
|
2004-04-27 23:59:18 +02:00
|
|
|
MASTER_SITE_SUBDIR= rsync
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2005-06-06 14:39:39 +02:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2003-02-18 11:50:48 +01:00
|
|
|
COMMENT= A network file distribution/synchronization utility
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2005-05-16 23:07:54 +02:00
|
|
|
USE_RC_SUBR= rsyncd.sh
|
2006-05-10 00:27:08 +02:00
|
|
|
SUB_LIST= NAME=rsyncd
|
2004-08-12 12:45:27 +02:00
|
|
|
|
2006-05-10 00:27:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-11-22 11:05:47 +01:00
|
|
|
CONFIGURE_ARGS= --disable-debug --enable-ipv6 --mandir=${PREFIX}/man \
|
2004-04-27 23:59:18 +02:00
|
|
|
--with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-05-30 18:39:49 +02:00
|
|
|
PATCH_STRIP= -p1
|
2003-01-28 17:50:01 +01:00
|
|
|
|
2006-05-10 00:27:08 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= NEWS README csprotocol.txt tech_report.tex
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN1= rsync.1
|
|
|
|
MAN5= rsyncd.conf.5
|
|
|
|
|
|
|
|
OPTIONS= POPT_PORT "Use popt from devel/popt instead of bundled one" off \
|
|
|
|
TIMELIMIT "Time limit patch" on \
|
2006-11-22 11:05:47 +01:00
|
|
|
FLAGSP "File system flags support patch, adds --flags" off \
|
|
|
|
ACLSP "ACL support patch, adds --acls" off \
|
2006-05-10 00:27:08 +02:00
|
|
|
SSH "Use SSH instead of RSH" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-08-31 08:20:26 +02:00
|
|
|
.if defined(WITH_POPT_PORT)
|
2006-05-10 00:27:08 +02:00
|
|
|
LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
|
2007-04-27 10:00:51 +02:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2002-04-26 20:40:14 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2002-08-31 08:20:26 +02:00
|
|
|
.else
|
2003-01-28 17:50:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-included-popt
|
2002-08-31 08:20:26 +02:00
|
|
|
.endif
|
2000-01-26 10:22:00 +01:00
|
|
|
|
2004-04-29 16:36:39 +02:00
|
|
|
.if !defined(WITHOUT_TIMELIMIT)
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff
|
|
|
|
.endif
|
|
|
|
|
2006-11-22 11:05:47 +01:00
|
|
|
.if defined(WITH_FLAGSP)
|
2006-05-10 00:27:08 +02:00
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/flags.diff
|
|
|
|
.endif
|
2003-11-17 00:08:12 +01:00
|
|
|
|
2006-11-22 11:05:47 +01:00
|
|
|
.if defined(WITH_ACLSP)
|
2007-04-09 15:55:32 +02:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patches-acls.diff ${WRKSRC}/patches/acls.diff
|
2006-05-10 00:27:08 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-acl-support
|
2006-11-22 11:05:47 +01:00
|
|
|
|
2006-12-17 16:58:02 +01:00
|
|
|
.if defined(WITH_FLAGSP)
|
2006-11-22 11:05:47 +01:00
|
|
|
IGNORE= can't be built: Flags and ACLs patches can't be both enabled at the same time. Please rerun 'make config' and disable one of them
|
|
|
|
.endif
|
2006-05-10 15:29:22 +02:00
|
|
|
.endif
|
2001-03-08 12:40:26 +01:00
|
|
|
|
2004-01-19 23:32:43 +01:00
|
|
|
.if defined(WITHOUT_SSH)
|
|
|
|
CONFIGURE_ARGS+= --with-rsh=rsh
|
2001-03-08 12:40:26 +01:00
|
|
|
.endif
|
|
|
|
|
2006-09-02 10:00:16 +02:00
|
|
|
# guard against CFLAGS damage by MAKE_ENV
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS|CONFIGUREDCFLAGS|' ${WRKSRC}/Makefile.in
|
|
|
|
|
1998-12-18 10:06:29 +01:00
|
|
|
pre-configure:
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/:g' \
|
2001-01-07 18:49:52 +01:00
|
|
|
${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \
|
2002-04-03 23:52:38 +02:00
|
|
|
${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h
|
1998-12-18 10:06:29 +01:00
|
|
|
|
1996-08-16 09:23:01 +02:00
|
|
|
post-install:
|
2004-08-12 12:45:27 +02:00
|
|
|
@${STRIP_CMD} ${DESTDIR}${PREFIX}/bin/rsync
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${DESTDIR}${PREFIX}/etc/
|
|
|
|
@[ -f ${DESTDIR}${PREFIX}/etc/rsyncd.conf ] || \
|
|
|
|
${CP} ${DESTDIR}${PREFIX}/etc/rsyncd.conf.sample \
|
|
|
|
${DESTDIR}${PREFIX}/etc/rsyncd.conf
|
1996-08-16 09:23:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-12 12:45:27 +02:00
|
|
|
@${MKDIR} ${DESTDIR}${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DESTDIR}${DOCSDIR}
|
1996-08-16 09:23:01 +02:00
|
|
|
.endif
|
|
|
|
|
2003-11-17 00:08:12 +01:00
|
|
|
test: build
|
2004-10-12 01:25:38 +02:00
|
|
|
@cd ${WRKSRC} && ${MAKE} check
|
2003-11-17 00:08:12 +01:00
|
|
|
|
2000-01-26 10:22:00 +01:00
|
|
|
.include <bsd.port.post.mk>
|