24 lines
771 B
Bash
24 lines
771 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.org>"
|
|
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
|
|
}
|