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
|
2008-04-08 21:24:06 +02:00
|
|
|
PORTVERSION= 3.0.2
|
2008-05-31 12:34:41 +02:00
|
|
|
PORTREVISION= 1
|
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%/ \
|
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
|
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
|
2008-06-02 10:11:52 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2004-08-12 12:45:27 +02:00
|
|
|
|
2006-05-10 00:27:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
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
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
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 \
|
2008-03-06 23:12:12 +01:00
|
|
|
SSH "Use SSH instead of RSH" on \
|
|
|
|
FLAGS "File system flags support patch, adds --fileflags" off \
|
2008-03-12 15:09:22 +01:00
|
|
|
ACL "Add backward-compatibility for the --acls option" off \
|
|
|
|
ICONV "Add iconv support" off
|
2006-05-10 00:27:08 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-26 13:36:47 +01:00
|
|
|
.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum)
|
|
|
|
DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2008-03-12 15:09:22 +01:00
|
|
|
.if defined(WITH_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGUREDCFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" 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
|
|
|
|
|
2008-03-06 23:12:12 +01:00
|
|
|
.if defined(WITH_FLAGS)
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/fileflags.diff
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ACL)
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff
|
|
|
|
.endif
|
|
|
|
|
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
|
2008-05-07 14:32:17 +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-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:
|
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
|
1996-08-16 09:23:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
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
|
|
|
|
2000-01-26 10:22:00 +01:00
|
|
|
.include <bsd.port.post.mk>
|