aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/syslog-ng1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/syslog-ng1/Makefile')
-rw-r--r--sysutils/syslog-ng1/Makefile18
1 files changed, 16 insertions, 2 deletions
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