1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- fix option SPOOF

- move from libnet-devel -> libnet
- use LIB_DEPENDS for libnet
This commit is contained in:
Dirk Meyer 2013-02-18 21:36:06 +00:00
parent 9f6bef8829
commit 5a8a783609
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312530
2 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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