Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
Libnids is a library that provides the function of one of the NIDS
(Network Intrusion Detection System) components, namely E-component. The
libnids code watches all local network traffic, processes received
datagrams a bit, and provides convenient information on them to analyzing
modules. Libnids performs:
a) assembly of TCP segments into TCP streams
b) IP defragmentation
c) TCP port scan detection
+26
View File
@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.33 2013/02/06 19:30:58 jperkin Exp $
#
DISTNAME= libnids-1.23
PKGREVISION= 6
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libnids/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://libnids.sourceforge.net/
COMMENT= Network monitoring library with TCP/IP reassembly
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
BUILDLINK_DEPMETHOD.libpcap= build
INSTALL_MAKE_FLAGS+= install_prefix=${DESTDIR}
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+4
View File
@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:56:03 zuntum Exp $
include/nids.h
lib/libnids.a
man/man3/libnids.3
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: buildlink3.mk,v 1.12 2012/09/15 10:06:04 obache Exp $
BUILDLINK_TREE+= libnids
.if !defined(LIBNIDS_BUILDLINK3_MK)
LIBNIDS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libnids+= libnids>=1.18
BUILDLINK_ABI_DEPENDS.libnids+= libnids>=1.23nb5
BUILDLINK_PKGSRCDIR.libnids?= ../../net/libnids
BUILDLINK_DEPMETHOD.libnids?= build
pkgbase := libnids
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.libnids:Mglib)
.include "../../devel/glib2/buildlink3.mk"
# This is needed because libnids is a static library
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \
-lglib-2.0 -lgthread-2.0
.endif
.endif # LIBNIDS_BUILDLINK3_MK
BUILDLINK_TREE+= -libnids
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.11 2012/04/17 17:45:35 joerg Exp $
SHA1 (libnids-1.23.tar.gz) = 105bff0d0d35ab95ec90cce98cfb409f64ed44b4
RMD160 (libnids-1.23.tar.gz) = 38994ad04f688291315bfcde38d8795e7a4c4226
Size (libnids-1.23.tar.gz) = 140975 bytes
SHA1 (patch-src_killtcp.c) = 77977d660cb55405b3501375185200bc37b702b1
SHA1 (patch-src_util.c) = 1308beb64054caadb69ac7ba4e82b4bd15d07a4b
SHA1 (patch-src_util.h) = 808a0b9e926ac3aab753123b621933c85797e643
+37
View File
@@ -0,0 +1,37 @@
# $NetBSD: options.mk,v 1.8 2009/12/09 12:27:28 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libnids
PKG_OPTIONS_REQUIRED_GROUPS= libnet
PKG_OPTIONS_GROUP.libnet= libnet10 libnet11
PKG_SUPPORTED_OPTIONS= glib
PKG_SUGGESTED_OPTIONS= libnet10 glib
.include "../../mk/bsd.options.mk"
###
### libnet 1.0.x branch support
###
.if !empty(PKG_OPTIONS:Mlibnet10)
. include "../../devel/libnet10/buildlink3.mk"
BUILDLINK_DEPMETHOD.libnet10+= build
.endif
###
### libnet 1.1.x branch support
###
.if !empty(PKG_OPTIONS:Mlibnet11)
. include "../../devel/libnet11/buildlink3.mk"
BUILDLINK_DEPMETHOD.libnet11+= build
.endif
###
### glib support
###
.if !empty(PKG_OPTIONS:Mglib)
.include "../../devel/glib2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libglib
.endif
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-src_killtcp.c,v 1.1 2011/11/26 17:17:53 joerg Exp $
--- src/killtcp.c.orig 2011-11-26 02:33:07.000000000 +0000
+++ src/killtcp.c
@@ -118,6 +118,6 @@ void nids_killtcp(struct tcp_stream *a_t
if (initialized)
abort();
}
-#elif
+#else
#error Something wrong with LIBNET_VER
#endif
+23
View File
@@ -0,0 +1,23 @@
$NetBSD: patch-src_util.c,v 1.1 2012/04/17 17:45:36 joerg Exp $
--- src/util.c.orig 2012-04-16 22:20:17.000000000 +0000
+++ src/util.c
@@ -29,18 +29,6 @@ test_malloc(int x)
return ret;
}
-inline int
-before(u_int seq1, u_int seq2)
-{
- return ((int)(seq1 - seq2) < 0);
-}
-
-inline int
-after(u_int seq1, u_int seq2)
-{
- return ((int)(seq2 - seq1) < 0);
-}
-
void
register_callback(struct proc_node **procs, void (*x))
{
+26
View File
@@ -0,0 +1,26 @@
$NetBSD: patch-src_util.h,v 1.1 2012/04/17 17:45:36 joerg Exp $
--- src/util.h.orig 2012-04-16 22:20:32.000000000 +0000
+++ src/util.h
@@ -23,9 +23,19 @@ struct lurker_node {
void nids_no_mem(char *);
char *test_malloc(int);
-inline int before(u_int seq1, u_int seq2);
-inline int after(u_int seq1, u_int seq2);
void register_callback(struct proc_node **procs, void (*x));
void unregister_callback(struct proc_node **procs, void (*x));
+static inline int
+before(u_int seq1, u_int seq2)
+{
+ return ((int)(seq1 - seq2) < 0);
+}
+
+static inline int
+after(u_int seq1, u_int seq2)
+{
+ return ((int)(seq2 - seq1) < 0);
+}
+
#endif /* _NIDS_UTIL_H */