From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 7 02:20:11 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1671F1065673 for ; Wed, 7 Mar 2012 02:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E144B8FC17 for ; Wed, 7 Mar 2012 02:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q272KALR030240 for ; Wed, 7 Mar 2012 02:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q272KA8f030239; Wed, 7 Mar 2012 02:20:10 GMT (envelope-from gnats) Resent-Date: Wed, 7 Mar 2012 02:20:10 GMT Resent-Message-Id: <201203070220.q272KA8f030239@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Scheidell Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD57B106564A for ; Wed, 7 Mar 2012 02:16:54 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id AAA708FC08 for ; Wed, 7 Mar 2012 02:16:54 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 163B9621C23 for ; Tue, 6 Mar 2012 21:16:54 -0500 (EST) Received: from scanner.secnap.net (unknown [10.70.1.4]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 0B2F0621C22 for ; Tue, 6 Mar 2012 21:16:53 -0500 (EST) Received: by scanner.secnap.net (Postfix, from userid 1001) id 00A911D411; Tue, 6 Mar 2012 21:16:52 -0500 (EST) Message-Id: <20120307021653.00A911D411@scanner.secnap.net> Date: Tue, 6 Mar 2012 21:16:52 -0500 (EST) From: Michael Scheidell To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/165800: [PATCH] security/snort Honor NOPORTEXAMPLES env var X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2012 02:20:11 -0000 >Number: 165800 >Category: ports >Synopsis: [PATCH] security/snort Honor NOPORTEXAMPLES env var >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 02:20:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: FreeBSD 7.4-RELEASE-p3 i386 >Organization: SECNAP Network Security >Environment: >Description: I appoligize for not seeing this earlier when I send in the patches for noportdocs. I had assumed noportdocs also kept examples out. I guess it didn't. anyway, this patch to Makefile and pkg-plist eliminates 270K of examples if OP defines noportexamples in env. it uses the pre-defined %%PORTEXAMPLES%% plist sub from ../Mk/* to help keep the plist_files in order. >How-To-Repeat: make -DNOPORTEXAMPLES install du -ch /usr/local/share/examples/snort 270K /usr/local/share/examples/snort 270K total >Fix: logs: with patch, and portexamples: http://lorie.secnap.net/tb/logs/7-scheidell_I386/snort-2.9.2.1_2.log with patch and noportexamples: http://lorie.secnap.net/tb/logs/7-SECNAP_AMD64/snort-2.9.2.1_2.log - Honor NOPORTEXAMPLES env var - No PORTREVISION bump --- snort.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/security/snort/Makefile,v retrieving revision 1.148 diff -u -r1.148 Makefile --- Makefile 14 Feb 2012 12:45:29 -0000 1.148 +++ Makefile 7 Mar 2012 02:11:30 -0000 @@ -227,17 +227,23 @@ post-install: @${LIBTOOL} --finish ${LOCALBASE}/lib/snort/dynamicpreprocessor [ -d ${CONFIG_DIR} ] || ${MKDIR} ${CONFIG_DIR} +.if !defined(NOPORTEXAMPLES) [ -d ${EXAMPLESDIR} ] || ${MKDIR} ${EXAMPLESDIR} +.endif [ -d ${RULES_DIR} ] || ${MKDIR} ${RULES_DIR} [ -d ${LOGS_DIR} ] || ${MKDIR} ${LOGS_DIR} .for f in ${CONFIG_FILES} ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${CONFIG_DIR}/${f}-sample +.if !defined(NOPORTEXAMPLES) ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${EXAMPLESDIR}/${f}-sample +.endif @if [ ! -f ${CONFIG_DIR}/${f} ]; then \ ${CP} -p ${CONFIG_DIR}/${f}-sample ${CONFIG_DIR}/${f} ; \ fi .endfor +.if !defined(NOPORTEXAMPLES) ${INSTALL_DATA} ${WRKSRC}/schemas/create* ${EXAMPLESDIR} +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/security/snort/pkg-plist,v retrieving revision 1.40 diff -u -r1.40 pkg-plist --- pkg-plist 15 Dec 2011 00:50:34 -0000 1.40 +++ pkg-plist 7 Mar 2012 02:11:30 -0000 @@ -175,18 +175,18 @@ %%DYNAMIC%%lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example.la %%DYNAMIC%%@dirrmtry lib/snort/dynamicpreprocessor %%DYNAMIC%%@dirrmtry lib/snort -%%EXAMPLESDIR%%/classification.config-sample -%%EXAMPLESDIR%%/create_db2 -%%EXAMPLESDIR%%/create_mssql -%%EXAMPLESDIR%%/create_mysql -%%EXAMPLESDIR%%/create_oracle.sql -%%EXAMPLESDIR%%/create_postgresql -%%EXAMPLESDIR%%/gen-msg.map-sample -%%EXAMPLESDIR%%/reference.config-sample -%%EXAMPLESDIR%%/snort.conf-sample -%%EXAMPLESDIR%%/threshold.conf-sample -%%EXAMPLESDIR%%/unicode.map-sample -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/classification.config-sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_db2 +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_mssql +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_mysql +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_oracle.sql +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/create_postgresql +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gen-msg.map-sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/reference.config-sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/snort.conf-sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/threshold.conf-sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unicode.map-sample +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/BUGS %%PORTDOCS%%%%DOCSDIR%%/CREDITS --- snort.patch ends here --- ______________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.spammertrap.com/ ______________________________________________________________________ >Release-Note: >Audit-Trail: >Unformatted: