aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/syslog-ng
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2008-03-09 21:25:37 +0800
committerlme <lme@FreeBSD.org>2008-03-09 21:25:37 +0800
commit1fd71f9b10fb84fc8b227f2cfe03dfab01866ada (patch)
tree003b35d4e0679c6b2f15f4c7ee25db7bc601a9c9 /sysutils/syslog-ng
parentf607b7bbdfef0d2361e39ddd112ea48471c188cb (diff)
downloadfreebsd-ports-graphics-1fd71f9b10fb84fc8b227f2cfe03dfab01866ada.tar.gz
freebsd-ports-graphics-1fd71f9b10fb84fc8b227f2cfe03dfab01866ada.tar.zst
freebsd-ports-graphics-1fd71f9b10fb84fc8b227f2cfe03dfab01866ada.zip
- Add spoof-source configuration options
- Bump PORTREVISION PR: ports/121171 Submitted by: Pavel I Volkov <pol (AT) opk.ru>
Diffstat (limited to 'sysutils/syslog-ng')
-rw-r--r--sysutils/syslog-ng/Makefile18
-rw-r--r--sysutils/syslog-ng/pkg-plist1
2 files changed, 17 insertions, 2 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