void-packages/srcpkgs/ipvsadm/template
2019-10-06 23:14:54 +02:00

24 lines
778 B
Bash

# Template file for 'ipvsadm'
pkgname=ipvsadm
version=1.30
revision=1
hostmakedepends="pkg-config"
makedepends="libnl3-devel popt-devel"
short_desc="IP Virtual Server administration utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.linuxvirtualserver.org/software/ipvs.html"
distfiles="${KERNEL_SITE}/utils/kernel/ipvsadm/$pkgname-$version.tar.xz"
checksum=95573d70df473c9f63fc4ac496c044c69e3a6de7ccac119922210c0b44cd7a0c
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
}