void-packages/srcpkgs/zmap/template
2018-03-19 08:11:20 -03:00

31 lines
832 B
Bash

# Template file for 'zmap'
pkgname=zmap
version=2.1.1
revision=3
build_style=cmake
conf_files="/etc/zmap/blacklist.conf /etc/zmap/zmap.conf"
hostmakedepends="flex byacc gengetopt pkg-config"
makedepends="libpcap-devel gmp-devel json-c-devel"
short_desc="Fast network scanner designed for Internet-wide network surveys"
maintainer="Duncaen <mail@duncano.de>"
license="Apache"
homepage="https://zmap.io"
distfiles="https://github.com/zmap/zmap/archive/v${version}.tar.gz"
checksum=29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399
do_configure() {
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR="$DESTDIR" install
vmkdir usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
vmkdir etc/zmap
vcopy conf/* etc/zmap
vlicense LICENSE
}