From owner-svn-ports-all@FreeBSD.ORG Tue Sep 11 15:38:25 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33F2C106566C; Tue, 11 Sep 2012 15:38:25 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2238FC17; Tue, 11 Sep 2012 15:38:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8BFcOOL076690; Tue, 11 Sep 2012 15:38:24 GMT (envelope-from ehaupt@svn.freebsd.org) Received: (from ehaupt@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8BFcOIA076688; Tue, 11 Sep 2012 15:38:24 GMT (envelope-from ehaupt@svn.freebsd.org) Message-Id: <201209111538.q8BFcOIA076688@svn.freebsd.org> From: Emanuel Haupt Date: Tue, 11 Sep 2012 15:38:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304101 - head/net/rsync X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 15:38:25 -0000 Author: ehaupt Date: Tue Sep 11 15:38:24 2012 New Revision: 304101 URL: http://svn.freebsd.org/changeset/ports/304101 Log: - Use OPTIONSng - Remove deprecated header information Modified: head/net/rsync/Makefile Modified: head/net/rsync/Makefile ============================================================================== --- head/net/rsync/Makefile Tue Sep 11 15:30:31 2012 (r304100) +++ head/net/rsync/Makefile Tue Sep 11 15:38:24 2012 (r304101) @@ -1,9 +1,4 @@ -# Ports collection makefile for: rsync -# Date created: Sat Aug 3, 1996 -# Whom: David O'Brien (obrien@cs.ucdavis.edu) -# # $FreeBSD$ -# PORTNAME= rsync PORTVERSION= 3.0.9 @@ -38,42 +33,44 @@ PORTDOCS= NEWS README csprotocol.txt tec MAN1= rsync.1 MAN5= rsyncd.conf.5 -OPTIONS= POPT_PORT "Use popt from devel/popt instead of bundled one" off \ - SSH "Use SSH instead of RSH" on \ - FLAGS "File system flags support patch, adds --fileflags" off \ - ATIMES "Preserve access times, adds --atimes" off \ - ACL "Add backward-compatibility for the --acls option" off \ - ICONV "Add iconv support" off \ - TIMELIMIT "Time limit patch" off \ - RENAMED "Add support for renamed file detection" off +OPTIONS_DEFINE= POPT_PORT SSH FLAGS ATIMES ACL ICONV TIMELIMIT RENAMED +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 -.include +OPTIONS_DEFAULT=SSH -.if !defined(WITHOUT_TIMELIMIT) +.include + +.if ${PORT_OPTIONS:MTIMELIMIT} PATCH_STRIP= -p1 EXTRA_PATCHES+= ${WRKSRC}/patches/time-limit.diff -.if defined(WITH_FLAGS) -IGNORE= flags and timelimit can't be both enabled at the same time. Please rerun 'make config' and disable one of them +.if ${PORT_OPTIONS:MFLAGS} +IGNORE= flags and timelimit can't be enabled simultaneously. Please rerun 'make config' and disable one of them .endif -.if defined(WITH_ATIMES) +.if ${PORT_OPTIONS:MATIMES} IGNORE= atimes and timelimit can't be enabled simultaneously. Please rerun 'make config' and disable one of them .endif .endif -.if !defined(WITHOUT_ATIMES) +.if ${PORT_OPTIONS:MATIMES} PATCH_STRIP= -p1 EXTRA_PATCHES+= ${WRKSRC}/patches/atimes.diff -.if defined(WITH_FLAGS) +.if ${PORT_OPTIONS:MFLAGS} IGNORE= flags and atimes can't be enabled simultaneously. Please rerun 'make config' and disable one of them .endif .endif -.if defined(WITH_ICONV) || defined(WITH_FLAGS) || defined(WITH_ACL) || make(makesum) || defined(WITH_TIMELIMIT) || defined(WITH_ATIMES) || defined(WITH_RENAMED) +.if ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS} || ${PORT_OPTIONS:MACL} || make(makesum) || ${PORT_OPTIONS:MTIMELIMIT} || ${PORT_OPTIONS:MATIMES} || ${PORT_OPTIONS:MRENAMED} DISTFILES+= ${PORTNAME}-patches-${PORTVERSION}${EXTRACT_SUFX} CFLAGS+= -I${LOCALBASE}/include .endif -.if defined(WITH_ICONV) +.if ${PORT_OPTIONS:MICONV} USE_ICONV= yes CONFIGUREDCFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -84,31 +81,31 @@ CONFIGURE_ENV+= ac_cv_search_libiconv_o CONFIGURE_ENV+= ac_cv_header_iconv_h=no .endif -.if defined(WITH_FLAGS) +.if ${PORT_OPTIONS:MFLAGS} PATCH_STRIP= -p1 EXTRA_PATCHES+= ${WRKSRC}/patches/fileflags.diff .endif -.if defined(WITH_RENAMED) +.if ${PORT_OPTIONS:MRENAMED} PATCH_STRIP= -p1 #EXTRA_PATCHES+= ${WRKSRC}/patches/detect-renamed.diff EXTRA_PATCHES+= ${FILESDIR}/extrapatch-detect-renamed.diff .endif -.if defined(WITH_ACL) +.if ${PORT_OPTIONS:MACL} PATCH_STRIP= -p1 EXTRA_PATCHES+= ${WRKSRC}/patches/acls.diff .endif -.if defined(WITH_POPT_PORT) -LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt +.if ${PORT_OPTIONS:MPOPT_PORT} +LIB_DEPENDS+= popt:${PORTSDIR}/devel/popt CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" CFLAGS+= -I${LOCALBASE}/include .else CONFIGURE_ARGS+= --with-included-popt .endif -.if defined(WITHOUT_SSH) +.if ${PORT_OPTIONS:MSSH} CONFIGURE_ARGS+= --with-rsh=rsh .endif @@ -138,4 +135,4 @@ post-install: test: build @cd ${WRKSRC} && ${MAKE} check -.include +.include