void-packages/srcpkgs/ipvsadm/template
2016-05-26 07:42:02 +02:00

22 lines
718 B
Bash

# Template file for 'ipvsadm'
pkgname=ipvsadm
version=1.28
revision=3
hostmakedepends="pkg-config"
makedepends="libnl3-devel popt-devel"
short_desc="The IP Virtual Server administration utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.linuxvirtualserver.org/software/ipvs.html"
distfiles="${KERNEL_SITE}/utils/kernel/ipvsadm/$pkgname-$version.tar.xz"
checksum=90e0e49cad5acb9db1c04ed4cdadf7933152a472c2f694039b9d7a291c37f3ab
do_build() {
sed -i "s,ar rv,${AR} rv," libipvs/Makefile
make CC=$CC AR=$AR CFLAGS="$CFLAGS -fPIC $LDFLAGS"
}
do_install() {
make BUILD_ROOT=${DESTDIR} MANDIR=usr/share/man SBIN=${DESTDIR}/usr/bin install
rm -rf ${DESTDIR}/etc/rc.d
vsv ipvsadm
}