void-packages/srcpkgs/iproute2/template

38 lines
955 B
Bash

# Template file for 'iproute2'
pkgname=iproute2
version=4.20.0
revision=1
build_style=configure
make_install_args="SBINDIR=/usr/bin"
conf_files="
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables"
hostmakedepends="pkg-config perl flex"
makedepends="libfl-devel libmnl-devel db-devel iptables-devel"
short_desc="IP Routing Utilities"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/$pkgname/$pkgname-$version.tar.xz"
checksum=c8adaa6a40f888476b23acb283cfa30c0dd55f07b5aa20663ed5ba2ef1f6fda8
do_check() {
make -C testsuite
}
post_install() {
rm -r ${DESTDIR}/usr/share/doc
rm -r ${DESTDIR}/usr/share/man/man3
}
iproute2-tc-ipt_package() {
short_desc+=" - tc(8) IPtables support"
pkg_install() {
vmove usr/lib/tc/m_xt.so
}
}