2013-03-15 02:59:39 +01:00
|
|
|
# Created by: kris@FreeBSD.org
|
2000-01-09 04:10:32 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= libnids
|
2010-06-11 17:05:41 +02:00
|
|
|
PORTVERSION= 1.24
|
2000-04-24 09:42:58 +02:00
|
|
|
CATEGORIES= net security
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF
|
2000-01-09 04:10:32 +01:00
|
|
|
|
2012-02-25 17:19:58 +01:00
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
2013-05-17 04:00:55 +02:00
|
|
|
COMMENT?= Network monitoring library with TCP/IP reassembly
|
2000-01-09 04:10:32 +01:00
|
|
|
|
2010-06-11 17:05:41 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-05-17 04:00:55 +02:00
|
|
|
CONFLICTS?= libnids-libnet11-[0-9]*
|
|
|
|
|
2013-03-15 02:59:39 +01:00
|
|
|
OPTIONS_DEFINE= LIBNET10 LIBNET11 GLIB2
|
|
|
|
LIBNET10_DESC= Use libnet 1.0.x
|
|
|
|
LIBNET11_DESC= Use libnet 1.1.x
|
2012-11-19 19:28:56 +01:00
|
|
|
GLIB2_DESC= Use GLIB2 for multiprocessing support
|
2013-05-17 04:00:55 +02:00
|
|
|
.if defined(WITH_LIBNET11)
|
|
|
|
OPTIONS_DEFAULT= LIBNET11 GLIB2
|
|
|
|
.else
|
2013-05-11 04:29:48 +02:00
|
|
|
OPTIONS_DEFAULT= LIBNET10 GLIB2
|
2013-05-17 04:00:55 +02:00
|
|
|
.endif
|
2006-06-12 15:28:05 +02:00
|
|
|
|
2008-03-25 16:53:08 +01:00
|
|
|
WANT_GNOME= yes
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= pkgconfig
|
2006-06-12 15:28:05 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-01-31 15:09:55 +01:00
|
|
|
MAN3= libnids.3
|
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2012-11-19 16:17:56 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-06-12 15:28:05 +02:00
|
|
|
|
2012-11-19 16:17:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-05-11 04:29:48 +02:00
|
|
|
PLIST_SUB+= PORTDOCS=""
|
2006-09-27 14:50:34 +02:00
|
|
|
.else
|
2013-05-11 04:29:48 +02:00
|
|
|
PLIST_SUB+= PORTDOCS="@comment "
|
2012-11-19 16:17:56 +01:00
|
|
|
.endif
|
|
|
|
|
2013-03-15 02:59:39 +01:00
|
|
|
.if ${PORT_OPTIONS:MLIBNET10}
|
|
|
|
LIBNET_VERSION= 10
|
|
|
|
BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet${LIBNET_VERSION}
|
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet${LIBNET_VERSION}-config
|
|
|
|
LIBNET_LIB= "-L${LOCALBASE}/include/libnet${LIBNET_VERSION} \
|
|
|
|
${LOCALBASE}/lib/libnet${LIBNET_VERSION}/libnet.a"
|
|
|
|
.elif ${PORT_OPTIONS:MLIBNET11}
|
|
|
|
LIBNET_VERSION= 11
|
2007-01-31 15:09:55 +01:00
|
|
|
BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
|
2013-03-15 02:59:39 +01:00
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet${LIBNET_VERSION}-config
|
|
|
|
LIBNET_LIB= "`${LIBNET_CONFIG} --libs`"
|
2003-10-29 15:13:08 +01:00
|
|
|
.else
|
2006-06-12 15:28:05 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-libnet
|
2003-10-29 15:13:08 +01:00
|
|
|
.endif
|
2000-01-09 04:10:32 +01:00
|
|
|
|
2012-11-19 16:17:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MGLIB2}
|
2008-03-25 16:53:08 +01:00
|
|
|
USE_GNOME+= glib20
|
2006-06-12 15:28:05 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libglib
|
|
|
|
.endif
|
2000-01-28 06:58:50 +01:00
|
|
|
|
2007-01-31 15:09:55 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
's|(LNET_CFLAGS=).*|\1"`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"|; \
|
2013-03-15 02:59:39 +01:00
|
|
|
s|(LNETLIB=).*|\1${LIBNET_LIB}|' \
|
2007-01-31 15:09:55 +01:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2000-01-28 06:58:50 +01:00
|
|
|
|
2000-01-09 04:10:32 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/nids.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/libnids.a ${PREFIX}/lib
|
2003-10-29 15:13:08 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/libnids.3 ${PREFIX}/man/man3
|
|
|
|
|
|
|
|
post-install:
|
2012-11-19 16:17:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-10-29 15:13:08 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in README doc/*
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
2000-01-09 04:10:32 +01:00
|
|
|
|
2012-11-19 16:17:56 +01:00
|
|
|
.include <bsd.port.mk>
|