diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/syslog-ng/Makefile | 18 | ||||
-rw-r--r-- | sysutils/syslog-ng/pkg-plist | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng1/Makefile | 18 | ||||
-rw-r--r-- | sysutils/syslog-ng1/pkg-plist | 1 |
4 files changed, 34 insertions, 4 deletions
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile index 3d36ef5a846..6a5c23ba46e 100644 --- a/sysutils/syslog-ng/Makefile +++ b/sysutils/syslog-ng/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 1.6.12 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src/ @@ -18,7 +19,8 @@ PKGMESSAGE= ${WRKDIR}/MESSAGE 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 +33,23 @@ MAN8= syslog-ng.8 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 --git a/sysutils/syslog-ng/pkg-plist b/sysutils/syslog-ng/pkg-plist index 77d694c14d4..6ca3b6c2a31 100644 --- a/sysutils/syslog-ng/pkg-plist +++ b/sysutils/syslog-ng/pkg-plist @@ -8,6 +8,7 @@ sbin/syslog-ng %%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 diff --git a/sysutils/syslog-ng1/Makefile b/sysutils/syslog-ng1/Makefile index 3d36ef5a846..6a5c23ba46e 100644 --- a/sysutils/syslog-ng1/Makefile +++ b/sysutils/syslog-ng1/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 1.6.12 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src/ @@ -18,7 +19,8 @@ PKGMESSAGE= ${WRKDIR}/MESSAGE 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 +33,23 @@ MAN8= syslog-ng.8 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 --git a/sysutils/syslog-ng1/pkg-plist b/sysutils/syslog-ng1/pkg-plist index 77d694c14d4..6ca3b6c2a31 100644 --- a/sysutils/syslog-ng1/pkg-plist +++ b/sysutils/syslog-ng1/pkg-plist @@ -8,6 +8,7 @@ sbin/syslog-ng %%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 |