blob: 954dbd8deec98741300ad1105dc56477ac238056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: nanpuyue <nanpuyue@gmail.com>
pkgname=rpcapd
_srcname=libpcap
pkgver=1.10.5
pkgrel=1
pkgdesc='A remote packet capture daemon'
arch=('x86_64' 'aarch64' 'armv7h')
url='http://www.tcpdump.org/'
license=('BSD')
makedepends=('bison')
source=("http://www.tcpdump.org/release/libpcap-${pkgver}.tar.xz"{,.sig})
validpgpkeys=('1F166A5742ABB9E0249A8D30E089DEF1D9C15D0D')
sha256sums=('84fa89ac6d303028c1c5b754abff77224f45eca0a94eb1a34ff0aa9ceece3925'
'SKIP')
build() {
cd $_srcname-$pkgver
./configure --prefix=/usr \
--enable-remote
make
}
package() {
cd $_srcname-$pkgver
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd $pkgname
make DESTDIR="$pkgdir" install
mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
install -d -m755 "$pkgdir/usr/lib/systemd/system"
sed -i 's#local/##' rpcapd@.service
install -Dm644 rpcapd.socket rpcapd@.service "$pkgdir/usr/lib/systemd/system"
}
|