aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-02-19 05:36:06 +0800
committerdinoex <dinoex@FreeBSD.org>2013-02-19 05:36:06 +0800
commit3f434488504fbf2ce4107dc93d7475237624e4d0 (patch)
treeacb35b7d86285deffc8f1344405de77d2a7cfced
parent197ce9363526b211f5098f58511b184b601ba8ff (diff)
downloadfreebsd-ports-gnome-3f434488504fbf2ce4107dc93d7475237624e4d0.tar.gz
freebsd-ports-gnome-3f434488504fbf2ce4107dc93d7475237624e4d0.tar.zst
freebsd-ports-gnome-3f434488504fbf2ce4107dc93d7475237624e4d0.zip
- fix option SPOOF
- move from libnet-devel -> libnet - use LIB_DEPENDS for libnet
-rw-r--r--sysutils/syslog-ng-devel/Makefile6
-rw-r--r--sysutils/syslog-ng/Makefile6
2 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile
index 3b3153508198..5dc2197bd537 100644
--- a/sysutils/syslog-ng-devel/Makefile
+++ b/sysutils/syslog-ng-devel/Makefile
@@ -81,8 +81,8 @@ CONFIGURE_ARGS+= --disable-tcp-wrapper
.endif
.if defined(WITH_SPOOF)
-BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet-devel
-LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet116-config
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
CONFIGURE_ARGS+= --enable-spoof-source --with-libnet=${LOCALBASE}/bin
CFLAGS+= `${LIBNET_CONFIG} --cflags` -I${LOCALBASE}/include
LDFLAGS+= `${LIBNET_CONFIG} --libs`
@@ -142,7 +142,7 @@ CONFIGURE_ARGS+= --disable-linux-caps
.endif
post-patch:
- @${REINPLACE_CMD} -e 's:libnet-config:libnet115-config:g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure
@${LN} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
post-install:
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index 0961fee934c0..ab981d1d4e32 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -74,8 +74,8 @@ CONFIGURE_ARGS+= --disable-tcp-wrapper
.endif
.if defined(WITH_SPOOF)
-BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet-devel
-LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet116-config
+LIB_DEPENDS+= net:${PORTSDIR}/net/libnet
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
CONFIGURE_ARGS+= --enable-spoof-source --with-libnet=${LOCALBASE}/bin
CFLAGS+= -g `${LIBNET_CONFIG} --cflags` -I${LOCALBASE}/include
LDFLAGS+= -g `${LIBNET_CONFIG} --libs`
@@ -130,7 +130,7 @@ PLIST_FILES+= sbin/syslog2ng
.endif
post-patch:
- @${REINPLACE_CMD} -e 's:libnet-config:libnet116-config:g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure
@${LN} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
@${FIND} ${WRKSRC} -name "*.orig" -delete