blob: fbfbaafe76536458e889a423d6f22080a33cd40e (
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
36
37
38
39
40
|
pkgname=spoofer
pkgver=1.4.12
pkgrel=1
pkgdesc="client software for the spoofer internet research project on ip spoofing, BCP38 compliance"
url="https://www.caida.org/projects/spoofer/"
arch=('x86_64' 'i686')
license=('GPL3')
depends=("libpcap" "protobuf" "qt5-base")
optdepends=("scamper: advanced traceroute tool")
install=spoofer.install
source=("https://www.caida.org/projects/spoofer/downloads/spoofer-${pkgver}.tar.gz"
"spoofer-gui.desktop"
"spoofer.service"
"Spoofer.conf"
"spoofer.install")
sha1sums=('5a4f7a6946912aca17a4af56a449429a230505b7'
'fe2779dcfaf0e401f3fa8d7226e7fe97a7af5b66'
'ecbb2e4ee11288ca682e68ce5f76da4de42d4117'
'20feb9ceffbb30d45a30d2c5e1908e4dabe2b17c'
'01197fc6c9c8394934f1aa9891b9c5d124aa2b4e')
options=(emptydirs)
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix="/usr"
make
}
package() {
# install binaries
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
# install other files
cd ..
install -Dm644 spoofer-gui.desktop "$pkgdir/usr/share/applications/spoofer.desktop"
install -Dm644 spoofer.service "$pkgdir/usr/lib/systemd/system/spoofer.service"
install -Dm644 Spoofer.conf "$pkgdir/etc/xdg/CAIDA/Spoofer.conf"
mkdir -p "$pkgdir/var/lib/spoofer"
}
|