aboutsummaryrefslogtreecommitdiffstats
path: root/net/rsync
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-05-10 06:27:08 +0800
committerpav <pav@FreeBSD.org>2006-05-10 06:27:08 +0800
commit6783b84d98a50783b49e5dbd3fb968fd65fdf17b (patch)
tree25f14158bf4d233ae15821ca271a77031b4717ae /net/rsync
parent6926f8c82d967cf717e3d5ece763e7940531fcfa (diff)
downloadfreebsd-ports-gnome-6783b84d98a50783b49e5dbd3fb968fd65fdf17b.tar.gz
freebsd-ports-gnome-6783b84d98a50783b49e5dbd3fb968fd65fdf17b.tar.zst
freebsd-ports-gnome-6783b84d98a50783b49e5dbd3fb968fd65fdf17b.zip
- Convert to OPTIONS
- Add an option for ACL support patch, default on - Add an option for file flags support patch, default on - Drop support for < 400014 - Cleanup PR: ports/97050 (based on) Submitted by: Simun Mikecin <numisemis@yahoo.com>
Diffstat (limited to 'net/rsync')
-rw-r--r--net/rsync/Makefile59
1 files changed, 28 insertions, 31 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index 5939f38662b6..51347a9a13de 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -7,6 +7,7 @@
PORTNAME= rsync
PORTVERSION= 2.6.8
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://rsync.samba.org/ftp/%SUBDIR%/ \
ftp://ftp.samba.org//pub/%SUBDIR%/ \
@@ -20,61 +21,57 @@ MASTER_SITE_SUBDIR= rsync
MAINTAINER= pav@FreeBSD.org
COMMENT= A network file distribution/synchronization utility
-.if defined(WITH_POPT_PORT)
-LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
-.endif
-
USE_RC_SUBR= rsyncd.sh
-GNU_CONFIGURE= yes
+SUB_LIST= NAME=rsyncd
-CONFIGURE_ARGS= --disable-debug \
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-debug --enable-ipv6 \
--with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+.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 \
+ FLAGS "File system flags support patch, adds --flags" on \
+ ACLS "ACL support patch, adds --acl" on \
+ SSH "Use SSH instead of RSH" on
+
+.include <bsd.port.pre.mk>
+
.if defined(WITH_POPT_PORT)
+LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
.else
CONFIGURE_ARGS+= --with-included-popt
.endif
-.if !defined(NOPORTDOCS)
-PORTDOCS= NEWS README csprotocol.txt tech_report.tex
-.endif
-
.if !defined(WITHOUT_TIMELIMIT)
EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff
PATCH_STRIP= -p1
.endif
-.include <bsd.port.pre.mk>
-
-SUB_LIST+= NAME=rsyncd
+.if !defined(WITHOUT_FLAGS)
+EXTRA_PATCHES+= ${WRKSRC}/patches/flags.diff
+PATCH_STRIP= -p1
+.endif
-.if ${OSVERSION} < 400016
-WITHOUT_SSH?= yes
+.if !defined(WITHOUT_ACLS)
+EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff
+PATCH_STRIP= -p1
+CONFIGURE_ARGS+=--enable-acl-support
.endif
.if defined(WITHOUT_SSH)
CONFIGURE_ARGS+= --with-rsh=rsh
.endif
-.if ${OSVERSION} >= 400014
-CONFIGURE_ARGS+= --enable-ipv6
-.else
-CONFIGURE_ARGS+= --disable-ipv6
-.endif
-
-MAN1= rsync.1
-MAN5= rsyncd.conf.5
-
-.if !defined(WITH_POPT_PORT)
-pre-everything::
- @${ECHO_CMD} "rsync comes with an included version of popt."
- @${ECHO_CMD} "To build rsync with devel/popt instead,"
- @${ECHO_CMD} "hit Ctrl-C now and define WITH_POPT_PORT"
-.endif
-
pre-configure:
@${REINPLACE_CMD} -e 's:/etc/:${PREFIX}/etc/:g' \
${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5