~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-aports] [PATCH] main/zmap: upgrade to 2.1.1

Details
Message ID
<1444453638-19644-1-git-send-email-soeren+git@soeren-tempel.net>
Sender timestamp
1444453638
DKIM signature
missing
Download raw message
Patch: +37 -31
---
 main/zmap/APKBUILD    | 51 ++++++++++++++++++++++++++++-----------------------
 main/zmap/byacc.patch | 17 +++++++++--------
 2 files changed, 37 insertions(+), 31 deletions(-)

diff --git a/main/zmap/APKBUILD b/main/zmap/APKBUILD
index fbbbeba..940bad1 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"
diff --git a/main/zmap/byacc.patch b/main/zmap/byacc.patch
index aaf28d4..7fa594c 100644
--- a/main/zmap/byacc.patch
+++ b/main/zmap/byacc.patch
@@ -1,11 +1,12 @@
--- zmap-1.2.0.orig/src/CMakeLists.txt
+++ zmap-1.2.0/src/CMakeLists.txt
@@ -96,7 +96,7 @@
 	)
diff -upr zmap-2.1.1.orig/src/CMakeLists.txt zmap-2.1.1/src/CMakeLists.txt
--- zmap-2.1.1.orig/src/CMakeLists.txt	2015-10-10 06:59:56.963317056 +0200
+++ zmap-2.1.1/src/CMakeLists.txt	2015-10-10 07:01:05.206393054 +0200
@@ -122,7 +122,7 @@ add_custom_command(OUTPUT lexer.c
 )
 
 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"
 	)
-    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"
 )
 
-- 
2.6.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20151012134937.56a78341@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1444453638-19644-1-git-send-email-soeren+git@soeren-tempel.net> (view parent)
Sender timestamp
1444650577
DKIM signature
missing
Download raw message
On Sat, 10 Oct 2015 07:07:18 +0200
Sören Tempel <soeren+git@soeren-tempel.net> wrote:

> ---
>  main/zmap/APKBUILD    | 51 ++++++++++++++++++++++++++++-----------------------
>  main/zmap/byacc.patch | 17 +++++++++--------
>  2 files changed, 37 insertions(+), 31 deletions(-)

I get build error:

[ 21%] Linking C static library libzmaplib.a
[ 21%] Built target zmaplib
[ 23%] Generating zbopt.h
/bin/sh: [ 25%] Generating topt.hgengetopt: not found

src/CMakeFiles/zblacklist.dir/build.make:61: recipe for target 'src/zbopt.h' failed
make[2]: *** [src/zbopt.h] Error 127
CMakeFiles/Makefile2:144: recipe for target 'src/CMakeFiles/zblacklist.dir/all' failed
make[1]: *** [src/CMakeFiles/zblacklist.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: gengetopt: not found
src/CMakeFiles/ztee.dir/build.make:61: recipe for target 'src/topt.h' failed
[ 26%] Generating parser.cmake[2]: *** [src/topt.h] Error 127

CMakeFiles/Makefile2:218: recipe for target 'src/CMakeFiles/ztee.dir/all' failed
make[1]: *** [src/CMakeFiles/ztee.dir/all] Error 2
[ 30%] Generating zopt.h
[ 30%] Generating lexer.c
/bin/sh: gengetopt: not found
src/CMakeFiles/zmap.dir/build.make:61: recipe for target 'src/zopt.h' failed
make[2]: *** [src/zopt.h] Error 127
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:181: recipe for target 'src/CMakeFiles/zmap.dir/all' failed
make[1]: *** [src/CMakeFiles/zmap.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
>>> ERROR: zmap: all failed



-nc


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)