blob: 89ff815170991f3867c9a16a170188384c69109f (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=zmap
pkgver=2.1.1
pkgrel=1
pkgdesc="A high performance internet scanner"
url="http://www.zmap.io/"
arch="all"
license="Apache-2"
depends=""
depends_dev=""
makedepends="linux-headers cmake flex byacc json-c-dev gengetopt
libpcap-dev gmp-dev"
install=""
subpackages="$pkgname-doc"
source="zmap-$pkgver.tar.gz::https://github.com/zmap/zmap/archive/v$pkgver.tar.gz
byacc.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER="${CXX:-g++}" \
-DCMAKE_C_COMPILER="${CC:-gcc}" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
for file in AUTHORS CHANGELOG.md INSTALL.md README.md; do
install -Dm644 "$file" "$pkgdir"/usr/share/doc/zmap/"$file"
done
# install examples to /usr/share/doc as well
cp -a examples "$pkgdir"/usr/share/doc/zmap
}
md5sums="a37555ac2beda1dc6f3754b411be545e zmap-2.1.1.tar.gz
34987cd8567e4cf241a2859d3672a731 byacc.patch"
sha256sums="29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399 zmap-2.1.1.tar.gz
07b97732e822498bdbbb2ee8d18641887f1506804c3d89fc04a5836597d35006 byacc.patch"
sha512sums="9d62dceff77fa20ff5945516b0766340366175947130bb844f19c11dac7676e658bcdedd6be29ffc945706aa3cdc0e4ac207bd127b618592769a4d3e75892857 zmap-2.1.1.tar.gz
08cc497d99e388af2c0dd0d8a2337fa901451dd0b256bd4cfcc91a12ff1da503773214d0768077aae56e70cc5c49724be88064dd25eeaa3947f2a993af4215b8 byacc.patch"
|