summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libpcap/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/libpcap/PKGBUILD
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core-testing/libpcap/PKGBUILD')
-rw-r--r--abs/core-testing/libpcap/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/core-testing/libpcap/PKGBUILD b/abs/core-testing/libpcap/PKGBUILD
new file mode 100644
index 0000000..0a586db
--- /dev/null
+++ b/abs/core-testing/libpcap/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: dorphell <dorphell@archlinux.org>
+
+pkgname=libpcap
+pkgver=0.9.8
+pkgrel=11
+pkgdesc="A system-independent interface for user-level packet capture"
+arch=(i686 x86_64)
+url="http://www.tcpdump.org/"
+license=('BSD')
+groups=('base')
+depends=('glibc')
+makedepends=('flex')
+source=(http://www.sfr-fresh.com/unix/misc/libpcap-${pkgver}.tar.gz
+ libpcap-shared.patch)
+md5sums=('5208f24d0328ee7c20b52c43eaa9aa0e'
+ 'b8a9c5e5cea0b89a8a7456c6c4d59db4')
+
+# This package has a strict SONAME that changes in EVERY MINOR
+# release. Whenever you feel like updating this package, DON'T,
+# it will break a number of essential system tools.
+# Again, for dummies: IF YOU UPDATE THIS PACKAGE DIRECTLY TO CORE,
+# I WILL PERSONALLY CHOP YOUR HEAD OFF!
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ patch -Np1 -i ${startdir}/libpcap-shared.patch || return 1
+ sed -i -e "s/@MAJOR@/`awk -F '.' '{ print $1 }' VERSION`/" \
+ -e "s/@MINOR@/`awk -F '.' '{ print $2 }' VERSION`/" \
+ -e "s/@SUBMINOR@/`awk -F '.' '{ print $3 }' VERSION`/" \
+ -e "s/@VERSION@/`cat VERSION`/" Makefile.in
+
+ ./configure --prefix=/usr --enable-ipv6
+ DEFS="-g -D_U_=\"\" -fPIC -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
+ make -j1 DEFS="${DEFS}" || return 1
+ make DESTDIR=${startdir}/pkg install
+# # backwards compatibility, programs often look for net/bpf.h
+ mkdir -p ${startdir}/pkg/usr/include/net
+ cd ${startdir}/pkg/usr/include/net
+ ln -s ../pcap-bpf.h bpf.h
+
+ #install the license
+ install -D -m644 $startdir/src/$pkgname-$pkgver/LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+}