summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-01-26 13:03:59 +0000
committerJay Freeman <saurik@saurik.com>2009-01-26 13:03:59 +0000
commita562df253f12ea3a56749e46d8aa49712d138197 (patch)
tree3a3c5fe718af1f0b4493bb20df5b6a4fefa08a52
parent3052cb36ed4556b7ae0efd615dffb81616abffce (diff)
Added libnids for Collin Mulliner.
git-svn-id: http://svn.telesphoreo.org/trunk@536 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/libnids/_metadata/description1
-rw-r--r--data/libnids/_metadata/homepage1
l---------data/libnids/_metadata/libnet.dep1
l---------data/libnids/_metadata/libpcap.dep1
l---------data/libnids/_metadata/license1
l---------data/libnids/_metadata/maintainer1
-rw-r--r--data/libnids/_metadata/priority1
-rw-r--r--data/libnids/_metadata/role1
-rw-r--r--data/libnids/_metadata/section1
-rw-r--r--data/libnids/_metadata/tags1
-rw-r--r--data/libnids/_metadata/version1
-rw-r--r--data/libnids/common.diff12
-rw-r--r--data/libnids/dylib.diff30
-rw-r--r--data/libnids/libnids-1.23.tar.gzbin0 -> 140975 bytes
-rw-r--r--data/libnids/make.sh4
15 files changed, 57 insertions, 0 deletions
diff --git a/data/libnids/_metadata/description b/data/libnids/_metadata/description
new file mode 100644
index 000000000..353212307
--- /dev/null
+++ b/data/libnids/_metadata/description
@@ -0,0 +1 @@
+NIDS "E-component": Linux 2.0.x IP Stack
diff --git a/data/libnids/_metadata/homepage b/data/libnids/_metadata/homepage
new file mode 100644
index 000000000..73cf3bf5c
--- /dev/null
+++ b/data/libnids/_metadata/homepage
@@ -0,0 +1 @@
+http://libnids.sourceforge.net/
diff --git a/data/libnids/_metadata/libnet.dep b/data/libnids/_metadata/libnet.dep
new file mode 120000
index 000000000..2cacaf11c
--- /dev/null
+++ b/data/libnids/_metadata/libnet.dep
@@ -0,0 +1 @@
+../../libnet \ No newline at end of file
diff --git a/data/libnids/_metadata/libpcap.dep b/data/libnids/_metadata/libpcap.dep
new file mode 120000
index 000000000..6c356a9b8
--- /dev/null
+++ b/data/libnids/_metadata/libpcap.dep
@@ -0,0 +1 @@
+../../libpcap \ No newline at end of file
diff --git a/data/libnids/_metadata/license b/data/libnids/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/libnids/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/libnids/_metadata/maintainer b/data/libnids/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/libnids/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/libnids/_metadata/priority b/data/libnids/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/libnids/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/libnids/_metadata/role b/data/libnids/_metadata/role
new file mode 100644
index 000000000..8d0320866
--- /dev/null
+++ b/data/libnids/_metadata/role
@@ -0,0 +1 @@
+developer
diff --git a/data/libnids/_metadata/section b/data/libnids/_metadata/section
new file mode 100644
index 000000000..8708e4b54
--- /dev/null
+++ b/data/libnids/_metadata/section
@@ -0,0 +1 @@
+Networking
diff --git a/data/libnids/_metadata/tags b/data/libnids/_metadata/tags
new file mode 100644
index 000000000..a8928cec8
--- /dev/null
+++ b/data/libnids/_metadata/tags
@@ -0,0 +1 @@
+purpose::library
diff --git a/data/libnids/_metadata/version b/data/libnids/_metadata/version
new file mode 100644
index 000000000..a1b6e17d6
--- /dev/null
+++ b/data/libnids/_metadata/version
@@ -0,0 +1 @@
+1.23
diff --git a/data/libnids/common.diff b/data/libnids/common.diff
new file mode 100644
index 000000000..77969f04e
--- /dev/null
+++ b/data/libnids/common.diff
@@ -0,0 +1,12 @@
+diff -ru libnids-1.23/src/Makefile.in libnids-1.23+iPhone/src/Makefile.in
+--- libnids-1.23/src/Makefile.in 2008-02-21 10:40:19.000000000 +0000
++++ libnids-1.23+iPhone/src/Makefile.in 2009-01-26 12:16:34.000000000 +0000
+@@ -16,7 +16,7 @@
+ LIBSHARED = libnids.so.1.23
+
+ CC = @CC@
+-CFLAGS = @CFLAGS@ -W -Wall -DLIBNET_VER=@LIBNET_VER@ -DHAVE_ICMPHDR=@ICMPHEADER@ -DHAVE_TCP_STATES=@TCPSTATES@ -DHAVE_BSD_UDPHDR=@HAVE_BSD_UDPHDR@
++CFLAGS = @CFLAGS@ -W -Wall -DLIBNET_VER=@LIBNET_VER@ -DHAVE_ICMPHDR=@ICMPHEADER@ -DHAVE_TCP_STATES=@TCPSTATES@ -DHAVE_BSD_UDPHDR=@HAVE_BSD_UDPHDR@ -fno-common
+ LDFLAGS = @LDFLAGS@
+
+ PCAP_CFLAGS = @PCAP_CFLAGS@
diff --git a/data/libnids/dylib.diff b/data/libnids/dylib.diff
new file mode 100644
index 000000000..1f0c6c024
--- /dev/null
+++ b/data/libnids/dylib.diff
@@ -0,0 +1,30 @@
+diff -ru libnids-1.23/src/Makefile.in libnids-1.23+iPhone/src/Makefile.in
+--- libnids-1.23/src/Makefile.in 2008-02-21 10:40:19.000000000 +0000
++++ libnids-1.23+iPhone/src/Makefile.in 2009-01-26 12:14:17.000000000 +0000
+@@ -13,7 +13,7 @@
+ libdir = @libdir@
+ mandir = @mandir@
+ LIBSTATIC = libnids.a
+-LIBSHARED = libnids.so.1.23
++LIBSHARED = libnids.1.23.dylib
+
+ CC = @CC@
+ CFLAGS = @CFLAGS@ -W -Wall -DLIBNET_VER=@LIBNET_VER@ -DHAVE_ICMPHDR=@ICMPHEADER@ -DHAVE_TCP_STATES=@TCPSTATES@ -DHAVE_BSD_UDPHDR=@HAVE_BSD_UDPHDR@
+@@ -65,7 +65,7 @@
+ ar -cr $@ $(OBJS)
+ $(RANLIB) $@
+ $(LIBSHARED): $(OBJS_SHARED)
+- $(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)
++ $(CC) -shared -install_name $(libdir)/$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)
+
+ _install install: $(LIBSTATIC)
+ ../mkinstalldirs $(install_prefix)$(libdir)
+@@ -76,7 +76,7 @@
+ $(INSTALL) -c -m 644 libnids.3 $(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
++ ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.dylib
+
+ clean:
+ rm -f *.o *~ $(LIBSTATIC) $(LIBSHARED)
diff --git a/data/libnids/libnids-1.23.tar.gz b/data/libnids/libnids-1.23.tar.gz
new file mode 100644
index 000000000..80c44ed1d
--- /dev/null
+++ b/data/libnids/libnids-1.23.tar.gz
Binary files differ
diff --git a/data/libnids/make.sh b/data/libnids/make.sh
new file mode 100644
index 000000000..943c3249b
--- /dev/null
+++ b/data/libnids/make.sh
@@ -0,0 +1,4 @@
+pkg:setup
+pkg:configure --disable-libglib
+make
+make install install_prefix="${PKG_DEST}"