void-packages/srcpkgs/mininet/template

30 lines
734 B
Bash

# Template file for 'mininet'
pkgname=mininet
version=2.2.2
revision=2
build_style=python2-module
hostmakedepends="help2man python-setuptools"
depends="bash inetutils-telnet iperf iputils libcgroup-utils net-tools openvswitch socat"
short_desc="Emulator for rapid prototyping of Software Defined Networks"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:MIT-like"
homepage="http://mininet.org/"
distfiles="https://github.com/mininet/${pkgname}/archive/${version}.tar.gz"
checksum=d0aed2ea7a9096ae975694a4b3d0995259ef79268dd8888ba8be28601c100db5
post_extract() {
sed -i 's/^\tcc /\t$(CC) /' Makefile
}
post_build() {
make mnexec
make man
}
post_install() {
vbin mnexec
vman mn.1
vman mnexec.1
vlicense LICENSE
}