void-packages/srcpkgs/ipvsadm/template
2016-12-24 09:27:00 +01:00

24 lines
770 B
Bash

# Template file for 'ipvsadm'
pkgname=ipvsadm
version=1.29
revision=1
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=c3de4a21d90a02c621f0c72ee36a7aa27374b6f29fd4178f33fbf71b4c66c149
CFLAGS="-Du_int16_t=uint16_t -Du_int32_t=uint32_t"
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
}