lib32-libpcap-git
LOW
maintainer Orion-zhen
0 votes
scanned 2026-09-08 13:17:19.099707
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Orion-zhen <https://github.com/Orion-zhen>
2
# Contributor: David Runge <dvzrv@archlinux.org>
3
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
4
# Contributor: Christian Hesse <mail@eworm.de>
5
# Contributor: Bill Fraser <wfraser@codewise.org>
6
# Contributor: Thomas Bächler <thomas@archlinux.org>
7
8
pkgname=lib32-libpcap-git
9
_pkgname=libpcap
10
pkgver=1.10.7.r2149.g84f140f
11
pkgrel=1
12
pkgdesc="A system-independent interface for user-level packet capture (32-bit)"
13
arch=(x86_64)
14
url="http://www.tcpdump.org/"
15
_url=https://github.com/the-tcpdump-group/libpcap
16
license=(BSD-3-Clause)
17
depends=(
18
lib32-glibc
19
lib32-libnl
20
$_pkgname
21
)
22
makedepends=(
23
bluez-libs
24
git
25
lib32-dbus
26
)
27
provides=(
28
lib32-libpcap
29
libpcap.so
30
)
31
conflicts=(lib32-libpcap)
32
options=(!staticlibs)
33
source=("$_pkgname::git+$_url.git")
34
sha512sums=('SKIP')
35
36
pkgver() {
37
cd "$_pkgname"
38
39
local _tag _rev _hash
40
_tag=$(git tag -l --sort=-version:refname | grep -E '^libpcap-[0-9]+(\.[0-9]+)*$' | head -n1)
41
_rev=$(git rev-list --count "$_tag"..HEAD)
42
_hash=$(git rev-parse --short=7 HEAD)
43
printf '%s.r%s.g%s\n' "${_tag#libpcap-}" "$_rev" "$_hash"
44
}
45
46
prepare() {
47
cd "$_pkgname"
48
autoreconf -fiv
49
}
50
51
build() {
52
local configure_options=(
53
--prefix=/usr
54
--libdir=/usr/lib32
55
--enable-ipv6
56
--enable-bluetooth
57
--enable-usb
58
--with-libnl
59
)
60
export CC="gcc -m32"
61
export CXX="g++ -m32"
62
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
63
64
cd "$_pkgname"
65
./configure "${configure_options[@]}"
66
make
67
}
68
69
package() {
70
depends+=(
71
lib32-dbus libdbus-1.so
72
)
73
74
cd "$_pkgname"
75
76
make DESTDIR="$pkgdir" install
77
78
# remove files provided by libpcap
79
rm -rf "$pkgdir/usr/"{include,share,bin}
80
81
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
82
install -vDm 644 {CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/"
83
}
84
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-08 13:17:19 | Low | 1 |