24 lines
778 B
Bash
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
|
|
}
|