24 lines
778 B
Bash
24 lines
778 B
Bash
# Template file for 'ipvsadm'
|
|
pkgname=ipvsadm
|
|
version=1.31
|
|
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=1a0a5e25b5a1226435d2fb76341656f83a710183aebb0d204db39c0ec3bedfdb
|
|
|
|
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
|
|
}
|