2012-11-03 19:01:22 +01:00
|
|
|
# Created by: David O'Brien (obrien@cs.ucdavis.edu)
|
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
|
2011-09-24 01:44:35 +02:00
|
|
|
PORTVERSION= 3.0.9
|
2013-01-11 09:36:23 +01:00
|
|
|
PORTREVISION= 3
|
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://ftp.sunet.se/pub/unix/admin/%SUBDIR%/ \
|
2004-08-12 12:45:27 +02:00
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/network/%SUBDIR%/ \
|
2008-04-04 11:23:05 +02:00
|
|
|
http://www.mirrorservice.org/sites/rsync.samba.org/ \
|
|
|
|
CRITICAL
|
2004-04-27 23:59:18 +02:00
|
|
|
MASTER_SITE_SUBDIR= rsync
|
2008-03-06 23:12:12 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2008-03-06 23:12:12 +01:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2013-03-08 15:00:30 +01:00
|
|
|
COMMENT= Network file distribution/synchronization utility
|
1996-08-16 09:23:01 +02:00
|
|
|
|
2011-09-24 01:44:35 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2009-03-27 10:53:36 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= rsyncd
|
2006-05-10 00:27:08 +02:00
|
|
|
SUB_LIST= NAME=rsyncd
|
2009-03-27 10:53:36 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2004-08-12 12:45:27 +02:00
|
|
|
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --disable-debug --enable-ipv6 \
|
2004-04-27 23:59:18 +02:00
|
|
|
--with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf
|
2003-01-28 17:50:01 +01:00
|
|
|
|
2006-05-10 00:27:08 +02:00
|
|
|
PORTDOCS= NEWS README csprotocol.txt tech_report.tex
|
|
|
|
|
|
|
|
MAN1= rsync.1
|
|
|
|
MAN5= rsyncd.conf.5
|
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
OPTIONS_DEFINE= POPT_PORT SSH FLAGS ATIMES ACL ICONV TIMELIMIT RENAMED DOCS
|
2012-09-11 17:38:24 +02:00
|
|
|
POPT_PORT_DESC= Use popt from devel/popt instead of bundled one
|
|
|
|
SSH_DESC= Use SSH instead of RSH
|
|
|
|
FLAGS_DESC= File system flags support patch, adds --fileflags
|
|
|
|
ATIMES_DESC= Preserve access times, adds --atimes
|
|
|
|
ACL_DESC= Add backward-compatibility for the --acls option
|
|
|
|
TIMELIMIT_DESC= Time limit patch
|
|
|
|
RENAMED_DESC= Add support for renamed file detection
|
2006-05-10 00:27:08 +02:00
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
OPTIONS_DEFAULT=SSH
|
2006-05-10 00:27:08 +02:00
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTIMELIMIT}
|
2008-06-26 16:03:48 +02:00
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MFLAGS}
|
|
|
|
IGNORE= flags and timelimit can't be enabled simultaneously. Please rerun 'make config' and disable one of them
|
2008-06-26 16:03:48 +02:00
|
|
|
.endif
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MATIMES}
|
2008-07-09 14:44:01 +02:00
|
|
|
IGNORE= atimes and timelimit can't be enabled simultaneously. Please rerun 'make config' and disable one of them
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MATIMES}
|
2008-07-09 14:44:01 +02:00
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/atimes.diff
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MFLAGS}
|
2008-07-09 14:44:01 +02:00
|
|
|
IGNORE= flags and atimes can't be enabled simultaneously. Please rerun 'make config' and disable one of them
|
|
|
|
.endif
|
2008-06-26 16:03:48 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS} || ${PORT_OPTIONS:MACL} || make(makesum) || ${PORT_OPTIONS:MTIMELIMIT} || ${PORT_OPTIONS:MATIMES} || ${PORT_OPTIONS:MRENAMED}
|
2008-03-26 13:36:47 +01:00
|
|
|
DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX}
|
2008-09-06 20:40:46 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2008-03-26 13:36:47 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
2008-03-12 15:09:22 +01:00
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGUREDCFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= CONFIGUREDCFLAGS="${CONFIGUREDCFLAGS}"
|
2008-04-08 21:24:06 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-iconv
|
2008-05-07 14:32:17 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_search_libiconv_open=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_iconv_h=no
|
2008-03-12 15:09:22 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MFLAGS}
|
2008-03-06 23:12:12 +01:00
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/fileflags.diff
|
2013-01-11 09:36:23 +01:00
|
|
|
# https://bugzilla.samba.org/show_bug.cgi?id=8941
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-syscall.c
|
2008-03-06 23:12:12 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MRENAMED}
|
2012-04-03 23:08:40 +02:00
|
|
|
PATCH_STRIP= -p1
|
2012-07-17 20:22:14 +02:00
|
|
|
#EXTRA_PATCHES+= ${WRKSRC}/patches/detect-renamed.diff
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-detect-renamed.diff
|
2012-04-03 23:08:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MACL}
|
2008-03-06 23:12:12 +01:00
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff
|
|
|
|
.endif
|
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MPOPT_PORT}
|
|
|
|
LIB_DEPENDS+= popt:${PORTSDIR}/devel/popt
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
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
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.if ${PORT_OPTIONS:MSSH}
|
2012-09-12 07:40:36 +02:00
|
|
|
CONFIGURE_ARGS+= --with-rsh=ssh
|
|
|
|
.else
|
2004-01-19 23:32:43 +01:00
|
|
|
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:
|
2009-09-15 10:30:12 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS|CONFIGUREDCFLAGS|' \
|
|
|
|
-e 's|perl.*|${DO_NADA}|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2006-09-02 10:00:16 +02:00
|
|
|
|
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:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/rsync
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/rsyncd.conf.sample ${PREFIX}/etc/
|
|
|
|
@[ -f ${PREFIX}/etc/rsyncd.conf ] || \
|
|
|
|
${CP} ${PREFIX}/etc/rsyncd.conf.sample \
|
|
|
|
${PREFIX}/etc/rsyncd.conf
|
2013-01-15 14:40:28 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${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
|
|
|
|
2012-09-11 17:38:24 +02:00
|
|
|
.include <bsd.port.mk>
|