From owner-svn-ports-all@FreeBSD.ORG Thu Oct 31 23:50:59 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AB4056D9; Thu, 31 Oct 2013 23:50:59 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 89B7A2CE7; Thu, 31 Oct 2013 23:50:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9VNox81018911; Thu, 31 Oct 2013 23:50:59 GMT (envelope-from garga@svn.freebsd.org) Received: (from garga@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9VNox27018909; Thu, 31 Oct 2013 23:50:59 GMT (envelope-from garga@svn.freebsd.org) Message-Id: <201310312350.r9VNox27018909@svn.freebsd.org> From: Renato Botelho Date: Thu, 31 Oct 2013 23:50:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332324 - head/www/sarg X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 31 Oct 2013 23:50:59 -0000 Author: garga Date: Thu Oct 31 23:50:58 2013 New Revision: 332324 URL: http://svnweb.freebsd.org/changeset/ports/332324 Log: . Support STAGE . Simplify Makefile Modified: head/www/sarg/Makefile head/www/sarg/pkg-plist (contents, props changed) Modified: head/www/sarg/Makefile ============================================================================== --- head/www/sarg/Makefile Thu Oct 31 23:50:20 2013 (r332323) +++ head/www/sarg/Makefile Thu Oct 31 23:50:58 2013 (r332324) @@ -15,6 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE OPTIONS_DEFINE= GD PHP NLS PCRE LDAP ICONV OPTIONS_DEFAULT=GD PHP NLS PCRE LDAP ICONV +OPTIONS_SUB= PHP NLS PHP_DESC= Install PHP for reporting generating @@ -27,56 +28,20 @@ CONFIGURE_ARGS= CPPFLAGS=-I${LOCALBASE}/ --enable-fontdir="${ETCDIR}/fonts" \ --enable-imagedir="${ETCDIR}/images" -MAN1= sarg.1 - -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MNLS} -PLIST_SUB+= NLS="" -USES+= gettext -EXTRA_LDFLAGS= -lintl -.else -PLIST_SUB+= NLS="@comment " -CONFIGURE_ARGS+=--disable-nls -.endif - -.if ${PORT_OPTIONS:MGD} -CONFIGURE_ARGS+=--with-gd -LIB_DEPENDS+= libgd.so:${PORTSDIR}/graphics/gd -.else -CONFIGURE_ARGS+=--without-gd -.endif - -.if ${PORT_OPTIONS:MPHP} -CONFIGURE_ARGS+=--enable-sargphp="${ETCDIR}" -PLIST_SUB+= PHP="" -.else -CONFIGURE_ARGS+=--disable-sargphp -PLIST_SUB+= PHP="@comment " -.endif - -.if ${PORT_OPTIONS:MPCRE} -CONFIGURE_ARGS+=--with-pcre -LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre -.else -CONFIGURE_ARGS+=--without-pcre -.endif - -.if ${PORT_OPTIONS:MLDAP} -CONFIGURE_ARGS+=--with-ldap -USE_OPENLDAP= yes -.else -CONFIGURE_ARGS+=--without-ldap -.endif - -.if ${PORT_OPTIONS:MICONV} -CONFIGURE_ARGS+=--with-iconv -USES+= iconv -EXTRA_LDFLAGS+= ${ICONV_LIB} -.else -CONFIGURE_ARGS+=--without-iconv -.endif +NLS_USES= gettext +NLS_LDFLAGS= -lintl +NLS_CONFIGURE_ENABLE= nls +GD_CONFIGURE_WITH= gd +GD_LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd +PHP_CONFIGURE_ON= --enable-sargphp="${ETCDIR}" +PHP_CONFIGURE_OFF= --disable-sargphp +PCRE_CONFIGURE_WITH= pcre +PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +LDAP_USE= USE_OPENLDAP=yes +LDAP_CONFIGURE_WITH= ldap +ICONV_USES= iconv +ICONV_CONFIGURE_WITH= iconv +ICONV_LDFLAGS= ${ICONV_LIB} post-extract: @${FIND} ${WRKSRC} -type d -exec ${CHMOD} 0755 {} \; @@ -85,10 +50,6 @@ post-extract: post-patch: @${REINPLACE_CMD} -e '/test .*==/ s/==/=/' \ ${WRKSRC}/configure.in -.if ${PORT_OPTIONS:MNLS} || ${PORT_OPTIONS:MICONV} - @${REINPLACE_CMD} -e '/^LIBS/ s/$$/ ${EXTRA_LDFLAGS}/' \ - ${WRKSRC}/Makefile.in -.endif pre-configure: @(cd ${WRKSRC} && ${AUTORECONF}) Modified: head/www/sarg/pkg-plist ============================================================================== --- head/www/sarg/pkg-plist Thu Oct 31 23:50:20 2013 (r332323) +++ head/www/sarg/pkg-plist Thu Oct 31 23:50:58 2013 (r332324) @@ -12,6 +12,7 @@ etc/sarg/images/datetime.png etc/sarg/images/graph.png etc/sarg/images/sarg-squidguard-block.png etc/sarg/images/sarg.png +man/man1/sarg.1.gz %%PHP%%etc/sarg/sarg-php/COPYING %%PHP%%etc/sarg/sarg-php/INSTALL %%PHP%%etc/sarg/sarg-php/LANGUAGES