Date: Thu, 28 Feb 2008 14:40:20 +0300 (MSK) From: Pavel I Volkov <pol@opk.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: lme@FreeBSD.org Subject: ports/121171: [PATCH] sysutils/syslog-ng: Add spoof-source configuration options Message-ID: <200802281140.m1SBeK8Q030166@pol.iib.ru> Resent-Message-ID: <200802281210.m1SCA1xB029892@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121171 >Category: ports >Synopsis: sysutils/syslog-ng: Add spoof-source configuration options >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: Thu Feb 28 12:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Pavel I Volkov >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD pol.iib.ru 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Oct 8 15:47:19 MSD >Description: Add spoof-source configuration options. Port maintainer (lme@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- syslog-ng-1.6.12.patch begins here --- diff -ruN --exclude=CVS /usr/ports/sysutils/syslog-ng.orig/Makefile /usr/ports/sysutils/syslog-ng/Makefile --- /usr/ports/sysutils/syslog-ng.orig/Makefile 2008-02-13 16:35:21.000000000 +0300 +++ /usr/ports/sysutils/syslog-ng/Makefile 2008-02-28 14:26:55.000000000 +0300 @@ -18,7 +18,8 @@ USE_GCC= 3.3+ USE_RC_SUBR= syslog-ng.sh -OPTIONS= TCP_WRAPPERS "Enable TCP wrapper support" off +OPTIONS= TCP_WRAPPERS "Enable TCP wrapper support" off \ + SPOOF_SOURCE "Enable spoof-source support" off SUB_FILES= pkg-message @@ -31,11 +32,23 @@ CONFIGURE_ARGS+= --enable-tcp-wrapper .endif +.if defined(WITH_SPOOF_SOURCE) +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config +CONFIGURE_ENV= CFLAGS="`${LIBNET_CONFIG} --cflags`" \ + CPPFLAGS="`${LIBNET_CONFIG} --defines`" \ + LDFLAGS="`${LIBNET_CONFIG} --libs`" +CONFIGURE_ARGS+= --enable-spoof-source +BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet +.endif + +post-patch: + @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure + post-install: .if !defined(NOPORTDOCS) ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \ ${DOCSDIR} ${DOCSDIR}/sgml -.for f in AUTHORS COPYING ChangeLog INSTALL NEWS PORTS README +.for f in AUTHORS COPYING ChangeLog INSTALL NEWS PORTS README README.spoof ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor ${INSTALL_DATA} ${WRKSRC}/doc/sgml/${PORTNAME}.* ${DOCSDIR}/sgml diff -ruN --exclude=CVS /usr/ports/sysutils/syslog-ng.orig/pkg-plist /usr/ports/sysutils/syslog-ng/pkg-plist --- /usr/ports/sysutils/syslog-ng.orig/pkg-plist 2008-02-13 16:35:21.000000000 +0300 +++ /usr/ports/sysutils/syslog-ng/pkg-plist 2008-02-13 20:41:58.000000000 +0300 @@ -8,6 +8,7 @@ %%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/PORTS %%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.spoof %%PORTDOCS%%%%DOCSDIR%%/sgml/syslog-ng.xml %%PORTDOCS%%%%DOCSDIR%%/sgml/syslog-ng.html.tar.gz %%PORTDOCS%%%%DOCSDIR%%/sgml/syslog-ng.txt --- syslog-ng-1.6.12.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802281140.m1SBeK8Q030166>