void-packages/srcpkgs/zmap/template
2021-07-04 17:52:16 -03:00

31 lines
861 B
Bash

# Template file for 'zmap'
pkgname=zmap
version=2.1.1
revision=5
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-2.0"
homepage="https://zmap.io"
distfiles="https://github.com/zmap/zmap/archive/v${version}.tar.gz"
checksum=29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399
make_check=no # does not define any checks
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
}