Revision: 3625
          http://gar.svn.sourceforge.net/gar/?rev=3625&view=rev
Author:   hson
Date:     2009-03-08 01:55:31 +0000 (Sun, 08 Mar 2009)

Log Message:
-----------
libnids: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/libnids/
    csw/mgar/pkg/libnids/branches/
    csw/mgar/pkg/libnids/tags/
    csw/mgar/pkg/libnids/trunk/
    csw/mgar/pkg/libnids/trunk/Makefile
    csw/mgar/pkg/libnids/trunk/checksums
    csw/mgar/pkg/libnids/trunk/files/
    csw/mgar/pkg/libnids/trunk/files/mainpatch


Property changes on: csw/mgar/pkg/libnids/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/libnids/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libnids/trunk/Makefile                         (rev 0)
+++ csw/mgar/pkg/libnids/trunk/Makefile 2009-03-08 01:55:31 UTC (rev 3625)
@@ -0,0 +1,36 @@
+GARNAME = libnids
+GARVERSION = 1.23
+CATEGORIES = net
+
+DESCRIPTION = implementation of an e-component of network intrusion detection
+define BLURB
+  Long description
+endef
+
+SF_PROJ = $(GARNAME)
+MASTER_SITES = $(SF_MIRRORS)
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+
+SPKG_SOURCEURL = http://libnids.sourceforge.net/
+
+REQUIRED_PKGS += CSWggettextrt CSWglib2 CSWlibnet CSWlibpcap
+
+# We define upstream file regex so we can be notifed of new upstream software 
release
+UPSTREAM_MASTER_SITES = $(SF_PROJECT_SHOWFILE)=92215
+UPSTREAM_USE_SF = 1
+UFILES_REGEX = (\d+(?:\.\d+)*)
+
+# If the url used to check for software update is different of MASTER_SITES, 
then 
+# uncomment the next line. Otherwise it is set by default to the value of 
MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+#GARCOMPILER = GCC3
+
+PATCHFILES = mainpatch
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --enable-shared
+
+TEST_TARGET = 
+
+include gar/category.mk

Added: csw/mgar/pkg/libnids/trunk/checksums
===================================================================
--- csw/mgar/pkg/libnids/trunk/checksums                                (rev 0)
+++ csw/mgar/pkg/libnids/trunk/checksums        2009-03-08 01:55:31 UTC (rev 
3625)
@@ -0,0 +1,2 @@
+af35e8ef403a0ca95df2da94db856428  download/libnids-1.23.tar.gz
+6caaa001bda6528aa6bb464de550b023  download/mainpatch

Added: csw/mgar/pkg/libnids/trunk/files/mainpatch
===================================================================
--- csw/mgar/pkg/libnids/trunk/files/mainpatch                          (rev 0)
+++ csw/mgar/pkg/libnids/trunk/files/mainpatch  2009-03-08 01:55:31 UTC (rev 
3625)
@@ -0,0 +1,87 @@
+diff --speed-large-files --minimal -ru libnids-1.23.orig/src/Makefile.in 
libnids-1.23/src/Makefile.in
+--- libnids-1.23.orig/src/Makefile.in  2008-02-21 11:40:19.000000000 +0100
++++ libnids-1.23/src/Makefile.in       2009-03-08 02:30:29.000000000 +0100
+@@ -16,7 +16,7 @@
+ LIBSHARED      = libnids.so.1.23
+ 
+ CC            = @CC@
+-CFLAGS                = @CFLAGS@ -W -Wall -dlibnet_v...@libnet_ver@ 
-dhave_icmph...@icmpheader@ -dhave_tcp_stat...@tcpstates@ 
-dhave_bsd_udph...@have_bsd_udphdr@
++CFLAGS                = @CFLAGS@ -dlibnet_v...@libnet_ver@ 
-dhave_icmph...@icmpheader@ -dhave_tcp_stat...@tcpstates@ 
-dhave_bsd_udph...@have_bsd_udphdr@
+ LDFLAGS               = @LDFLAGS@
+ 
+ PCAP_CFLAGS   = @PCAP_CFLAGS@
+@@ -40,43 +40,43 @@
+ # How to write the following rules compactly and portably ? 
+ # gmake accepts "%_pic.o: %.c", bsd make does not.
+ checksum_pic.o: checksum.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c checksum.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c checksum.c -o $@
+ ip_fragment_pic.o: ip_fragment.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c ip_fragment.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c ip_fragment.c -o $@
+ ip_options_pic.o: ip_options.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c ip_options.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c ip_options.c -o $@
+ killtcp_pic.o: killtcp.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c killtcp.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c killtcp.c -o $@
+ libnids_pic.o: libnids.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c libnids.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c libnids.c -o $@
+ scan_pic.o: scan.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c scan.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c scan.c -o $@
+ tcp_pic.o: tcp.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c tcp.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c tcp.c -o $@
+ util_pic.o: util.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c util.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c util.c -o $@
+ allpromisc_pic.o: allpromisc.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c allpromisc.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c allpromisc.c -o $@
+ hash_pic.o: hash.c
+-      $(CC) -fPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c hash.c -o $@
++      $(CC) -KPIC $(CFLAGS) -I. $(LIBS_CFLAGS) -c hash.c -o $@
+ 
+ 
+ $(LIBSTATIC): $(OBJS)
+       ar -cr $@ $(OBJS)
+       $(RANLIB) $@
+ $(LIBSHARED): $(OBJS_SHARED)
+-      $(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) 
$(LIBS) $(LNETLIB) $(PCAPLIB)
++      $(LD) -G -h $(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) 
$(LNETLIB) $(PCAPLIB)
+ 
+ _install install: $(LIBSTATIC)
+-      ../mkinstalldirs $(install_prefix)$(libdir)
+-      ../mkinstalldirs $(install_prefix)$(includedir)
+-      ../mkinstalldirs $(install_prefix)$(mandir)/man3
+-      $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir)
+-      $(INSTALL) -c -m 644 nids.h $(install_prefix)$(includedir)
+-      $(INSTALL) -c -m 644 libnids.3 $(install_prefix)$(mandir)/man3
++      ../mkinstalldirs $(DESTDIR)$(install_prefix)$(libdir)
++      ../mkinstalldirs $(DESTDIR)$(install_prefix)$(includedir)
++      ../mkinstalldirs $(DESTDIR)$(install_prefix)$(mandir)/man3
++      $(INSTALL) -c -m 644 libnids.a $(DESTDIR)$(install_prefix)$(libdir)
++      $(INSTALL) -c -m 644 nids.h $(DESTDIR)$(install_prefix)$(includedir)
++      $(INSTALL) -c -m 644 libnids.3 $(DESTDIR)$(install_prefix)$(mandir)/man3
+ _installshared installshared: install $(LIBSHARED)
+-      $(INSTALL) -c -m 755 $(LIBSHARED) $(install_prefix)$(libdir)
+-      ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.so
++      $(INSTALL) -c -m 755 $(LIBSHARED) $(DESTDIR)$(install_prefix)$(libdir)
++      ln -s -f $(LIBSHARED) $(DESTDIR)$(install_prefix)$(libdir)/libnids.so
+  
+ clean:
+       rm -f *.o *~ $(LIBSTATIC) $(LIBSHARED)
+diff --speed-large-files --minimal -ru libnids-1.23.orig/src/ip_options.c 
libnids-1.23/src/ip_options.c
+--- libnids-1.23.orig/src/ip_options.c 2002-08-10 21:07:45.000000000 +0200
++++ libnids-1.23/src/ip_options.c      2009-03-08 02:18:44.000000000 +0100
+@@ -69,7 +69,7 @@
+   unsigned char __pad1;
+   unsigned char __pad2;
+   unsigned char __pad3;
+-  unsigned char __data[0];
++  unsigned char __data[];
+ };
+ 
+ struct iphdr {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to