mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
1.1 KiB
Bash
Executable file
35 lines
1.1 KiB
Bash
Executable file
# Maintainer: Mike Staszel <mikestaszel@plugboxlinux.org>
|
|
|
|
# Plugbox changes:
|
|
# - Commented out 2 ln -s lines
|
|
|
|
pkgname=libpcap
|
|
pkgver=1.1.1
|
|
pkgrel=2
|
|
pkgdesc="A system-independent interface for user-level packet capture"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.tcpdump.org/"
|
|
license=('BSD')
|
|
depends=('glibc' 'libnl')
|
|
makedepends=('flex')
|
|
source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz)
|
|
sha256sums=('508cca15547e55d1318498b838456a21770c450beb2dc7d7d4a96d90816e5a85')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --enable-ipv6
|
|
make || return 1
|
|
make shared || return 1
|
|
|
|
install -d -m755 ${pkgdir}/usr/bin
|
|
make DESTDIR=${pkgdir} install install-shared || return 1
|
|
# ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so.1
|
|
# ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so
|
|
# backwards compatibility, programs often look for net/bpf.h
|
|
mkdir -p ${pkgdir}/usr/include/net
|
|
cd ${pkgdir}/usr/include/net
|
|
ln -s ../pcap-bpf.h bpf.h
|
|
|
|
#install the license
|
|
install -D -m644 ${srcdir}/$pkgname-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
|
|
}
|