diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-10-10 07:07:18 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2015-10-12 22:37:59 +0200 |
commit | e6bb38670f0cf12d634feab44d2f4c8beddd3eb0 (patch) | |
tree | 915c7ea9bd0f64f9213956ef8e0fcc15bf6d9ab7 /main/zmap/APKBUILD | |
parent | c53f896dcd1882dc1f3d64ea5893f7b514ef1b09 (diff) | |
download | aports-e6bb38670f0cf12d634feab44d2f4c8beddd3eb0.tar.bz2 aports-e6bb38670f0cf12d634feab44d2f4c8beddd3eb0.tar.xz |
main/zmap: upgrade to 2.1.1
Diffstat (limited to 'main/zmap/APKBUILD')
-rw-r--r-- | main/zmap/APKBUILD | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/main/zmap/APKBUILD b/main/zmap/APKBUILD index fbbbebae55..940bad174e 100644 --- a/main/zmap/APKBUILD +++ b/main/zmap/APKBUILD @@ -1,26 +1,26 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=zmap -pkgver=1.2.1 +pkgver=2.1.1 pkgrel=0 -pkgdesc="high performance internet scanner" +pkgdesc="A high performance internet scanner" url="http://www.zmap.io/" arch="all" license="Apache-2" depends="" -depends_dev="gengetopt-dev libpcap-dev gmp-dev" -makedepends="linux-headers $depends_dev cmake flex byacc" +depends_dev="" +makedepends="linux-headers cmake flex byacc json-c-dev gengetopt-dev + libpcap-dev gmp-dev" install="" -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-doc" source="zmap-$pkgver.tar.gz::https://github.com/zmap/zmap/archive/v$pkgver.tar.gz byacc.patch" -_srcdir="$srcdir"/zmap-$pkgver -_builddir="$srcdir"/_build +_builddir="$srcdir"/$pkgname-$pkgver prepare() { local i - mkdir "$_builddir" - cd "$_srcdir" + cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -30,29 +30,34 @@ prepare() { build() { cd "$_builddir" - cmake -DCMAKE_INSTALL_PREFIX=/usr "$_srcdir" || return 1 + 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"/src - install -D zmap "$pkgdir"/usr/bin/zmap - - cd "$_srcdir" - install -Dm644 src/zmap.1 "$pkgdir"/usr/share/man/man1/zmap.1 - install -d "$pkgdir"/etc/zmap - install -m644 conf/* "$pkgdir"/etc/zmap + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 for file in AUTHORS CHANGELOG INSTALL README; 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="3e740b54c88c29bb03494b986f440b51 zmap-1.2.1.tar.gz -32db538a125a3b38c14960c87cfdcf60 byacc.patch" -sha256sums="ff01f2b139e98a7e64ed2872ae332929c500dd6120888d57900fac82dccfeea8 zmap-1.2.1.tar.gz -c143c2569293a934daadbb60d65896a10ececec2b54f78761c456e01350c671a byacc.patch" -sha512sums="1b3d7fa41bb75c859463f3ec8bcde31778f5d91a6f561aa9638ba93be97dacdba89493574581ce52aebcf093a86b042dcce41cffe6cb0849bb76a6005b714be2 zmap-1.2.1.tar.gz -b83e8c6f94c3782da82d4eec2a5f25092067684254cd9f93ac1b7dbc8b2128dbeb63a67fc4329722d48c3628f2d5b3efd4c75335c440754c76776504aeb05700 byacc.patch" +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" |