diff options
author | William Pitcock <nenolod@dereferenced.org> | 2014-07-26 01:19:17 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2014-07-26 01:19:49 -0500 |
commit | f83b029d684a1118cc3018df2b55ee8744ebfbb2 (patch) | |
tree | 8dbb9bbfe03048a4bf29834cb751db63a276ed52 /main/zmap | |
parent | ce706a4181da7617972d10915b502017d8f046c0 (diff) | |
download | aports-f83b029d684a1118cc3018df2b55ee8744ebfbb2.tar.bz2 aports-f83b029d684a1118cc3018df2b55ee8744ebfbb2.tar.xz |
main/zmap: new aport
Diffstat (limited to 'main/zmap')
-rw-r--r-- | main/zmap/APKBUILD | 58 | ||||
-rw-r--r-- | main/zmap/byacc.patch | 11 |
2 files changed, 69 insertions, 0 deletions
diff --git a/main/zmap/APKBUILD b/main/zmap/APKBUILD new file mode 100644 index 0000000000..61ebe83b92 --- /dev/null +++ b/main/zmap/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=zmap +pkgver=1.2.0 +pkgrel=0 +pkgdesc="high performance internet scanner" +url="http://www.zmap.io/" +arch="all" +license="Apache-2" +depends="" +depends_dev="gengetopt-dev libpcap-dev" +makedepends="$depends_dev cmake flex byacc" +install="" +subpackages="$pkgname-dev $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 +prepare() { + local i + mkdir "$_builddir" + cd "$_srcdir" + 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 "$_srcdir" || 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 + + for file in AUTHORS CHANGELOG INSTALL README; do + install -Dm644 "$file" "$pkgdir"/usr/share/doc/zmap/"$file" + done + + cp -a examples "$pkgdir"/usr/share/doc/zmap +} + +md5sums="d21d0fc65b585e0711adc4df6fcdf724 zmap-1.2.0.tar.gz +32db538a125a3b38c14960c87cfdcf60 byacc.patch" +sha256sums="7658aef8338c592bebef82336f58598b2fa305d56779f6c81bffeef8c90472b0 zmap-1.2.0.tar.gz +c143c2569293a934daadbb60d65896a10ececec2b54f78761c456e01350c671a byacc.patch" +sha512sums="68fa49647444f18adfc86b4ee85ed3e93945611ca75687eedc259504e0d66edcded267b4fba9a975299984551c88193feacb850f46432d3f3f22f1430ed7c9bd zmap-1.2.0.tar.gz +b83e8c6f94c3782da82d4eec2a5f25092067684254cd9f93ac1b7dbc8b2128dbeb63a67fc4329722d48c3628f2d5b3efd4c75335c440754c76776504aeb05700 byacc.patch" diff --git a/main/zmap/byacc.patch b/main/zmap/byacc.patch new file mode 100644 index 0000000000..aaf28d4d10 --- /dev/null +++ b/main/zmap/byacc.patch @@ -0,0 +1,11 @@ +--- zmap-1.2.0.orig/src/CMakeLists.txt ++++ zmap-1.2.0/src/CMakeLists.txt +@@ -96,7 +96,7 @@ + ) + + add_custom_command(OUTPUT parser.c +- COMMAND byacc -d -o "${CMAKE_CURRENT_BINARY_DIR}/parser.c" "${CMAKE_CURRENT_SOURCE_DIR}/parser.y" ++ COMMAND yacc -d -o "${CMAKE_CURRENT_BINARY_DIR}/parser.c" "${CMAKE_CURRENT_SOURCE_DIR}/parser.y" + DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/parser.y" + ) + |