summaryrefslogtreecommitdiff
path: root/data/_libpcap
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-04-08 16:25:09 -1000
committerSam Bingner <sam@bingner.com>2019-04-09 23:20:42 -1000
commitc35429d14374ec35ce24517d9f8ff6188a279f27 (patch)
treea4a69678d4790221474d41699666f9570d1a0fad /data/_libpcap
parente5e75d7240df475a7ee062cd93ef49e36aab57ca (diff)
Update libpcap to not fight shared cache
Diffstat (limited to 'data/_libpcap')
-rw-r--r--data/_libpcap/_metadata/description1
l---------data/_libpcap/_metadata/license1
l---------data/_libpcap/_metadata/maintainer1
-rw-r--r--data/_libpcap/_metadata/priority1
-rw-r--r--data/_libpcap/_metadata/role1
-rw-r--r--data/_libpcap/_metadata/section1
-rw-r--r--data/_libpcap/_metadata/tags1
-rw-r--r--data/_libpcap/_metadata/version1
-rw-r--r--data/_libpcap/dyld_cache.diff32
-rw-r--r--data/_libpcap/libpcap-1.9.0.tar.gzbin0 -> 832079 bytes
-rw-r--r--data/_libpcap/make.sh7
11 files changed, 47 insertions, 0 deletions
diff --git a/data/_libpcap/_metadata/description b/data/_libpcap/_metadata/description
new file mode 100644
index 000000000..aed941faa
--- /dev/null
+++ b/data/_libpcap/_metadata/description
@@ -0,0 +1 @@
+low-level network capture library
diff --git a/data/_libpcap/_metadata/license b/data/_libpcap/_metadata/license
new file mode 120000
index 000000000..8a4bc1936
--- /dev/null
+++ b/data/_libpcap/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/modified-bsd \ No newline at end of file
diff --git a/data/_libpcap/_metadata/maintainer b/data/_libpcap/_metadata/maintainer
new file mode 120000
index 000000000..573d7ebef
--- /dev/null
+++ b/data/_libpcap/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/sbingner \ No newline at end of file
diff --git a/data/_libpcap/_metadata/priority b/data/_libpcap/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/_libpcap/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/_libpcap/_metadata/role b/data/_libpcap/_metadata/role
new file mode 100644
index 000000000..8d0320866
--- /dev/null
+++ b/data/_libpcap/_metadata/role
@@ -0,0 +1 @@
+developer
diff --git a/data/_libpcap/_metadata/section b/data/_libpcap/_metadata/section
new file mode 100644
index 000000000..8708e4b54
--- /dev/null
+++ b/data/_libpcap/_metadata/section
@@ -0,0 +1 @@
+Networking
diff --git a/data/_libpcap/_metadata/tags b/data/_libpcap/_metadata/tags
new file mode 100644
index 000000000..a8928cec8
--- /dev/null
+++ b/data/_libpcap/_metadata/tags
@@ -0,0 +1 @@
+purpose::library
diff --git a/data/_libpcap/_metadata/version b/data/_libpcap/_metadata/version
new file mode 100644
index 000000000..f8e233b27
--- /dev/null
+++ b/data/_libpcap/_metadata/version
@@ -0,0 +1 @@
+1.9.0
diff --git a/data/_libpcap/dyld_cache.diff b/data/_libpcap/dyld_cache.diff
new file mode 100644
index 000000000..f3fee537e
--- /dev/null
+++ b/data/_libpcap/dyld_cache.diff
@@ -0,0 +1,32 @@
+diff -ur libpcap-1.9.0/Makefile.in libpcap-1.9.0+iPhone/Makefile.in
+--- libpcap-1.9.0/Makefile.in 2018-07-22 07:08:39.000000000 -1000
++++ libpcap-1.9.0+iPhone/Makefile.in 2019-04-08 14:13:56.000000000 -1000
+@@ -414,8 +414,8 @@
+ libpcap.dylib: $(OBJ)
+ rm -f libpcap*.dylib
+ VER=`cat $(srcdir)/VERSION`; \
+- MAJOR_VER=A; \
+- COMPAT_VER=1; \
++ MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
++ COMPAT_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
+ CURRENT_VER=`sed 's/[^0-9.].*$$//' $(srcdir)/VERSION`; \
+ $(CC) -dynamiclib -undefined error $(LDFLAGS) \
+ -o libpcap.$$VER.dylib $(OBJ) $(ADDLOBJS) $(LIBS) \
+@@ -626,7 +626,7 @@
+ [ -d $(DESTDIR)$(libdir) ] || \
+ (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
+ VER=`cat $(srcdir)/VERSION`; \
+- MAJOR_VER=A; \
++ MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
+ $(INSTALL_PROGRAM) libpcap.$$VER.dylib $(DESTDIR)$(libdir)/libpcap.$$VER.dylib; \
+ ln -sf libpcap.$$VER.dylib $(DESTDIR)$(libdir)/libpcap.$$MAJOR_VER.dylib; \
+ ln -sf libpcap.$$MAJOR_VER.dylib $(DESTDIR)$(libdir)/libpcap.dylib
+@@ -706,7 +706,7 @@
+ rm -f $(DESTDIR)$(libdir)/libpcap.so
+ uninstall-shared-dylib:
+ VER=`cat $(srcdir)/VERSION`; \
+- MAJOR_VER=A; \
++ MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' $(srcdir)/VERSION`; \
+ rm -f $(DESTDIR)$(libdir)/libpcap.$$VER.dylib; \
+ rm -f $(DESTDIR)$(libdir)/libpcap.$$MAJOR_VER.dylib; \
+ rm -f $(DESTDIR)$(libdir)/libpcap.dylib
diff --git a/data/_libpcap/libpcap-1.9.0.tar.gz b/data/_libpcap/libpcap-1.9.0.tar.gz
new file mode 100644
index 000000000..32ab5c6a8
--- /dev/null
+++ b/data/_libpcap/libpcap-1.9.0.tar.gz
Binary files differ
diff --git a/data/_libpcap/make.sh b/data/_libpcap/make.sh
new file mode 100644
index 000000000..e8cb96def
--- /dev/null
+++ b/data/_libpcap/make.sh
@@ -0,0 +1,7 @@
+pkg:setup
+pkg:configure --with-pcap=bpf --disable-universal CFLAGS="-O2 -fno-common -D__APPLE__ -DPRIVATE"
+make
+mkdir -p "${PKG_DEST}/usr/lib"
+pkg: mkdir -p /usr/bin
+make install install-shared DESTDIR="${PKG_DEST}"
+pkg: rm -f /usr/lib/libpcap.a