2015-02-16 16:21:54 +01:00
|
|
|
# Template file for 'ipvsadm'
|
|
|
|
pkgname=ipvsadm
|
|
|
|
version=1.28
|
|
|
|
revision=1
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libnl3-devel popt-devel"
|
|
|
|
short_desc="The IP Virtual Server administration utility"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-02-16 16:21:54 +01:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.linuxvirtualserver.org/software/ipvs.html"
|
|
|
|
distfiles="${KERNEL_SITE}/utils/kernel/ipvsadm/$pkgname-$version.tar.xz"
|
|
|
|
checksum=90e0e49cad5acb9db1c04ed4cdadf7933152a472c2f694039b9d7a291c37f3ab
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
sed -i "s,ar rv,${AR} rv," libipvs/Makefile
|
|
|
|
make CC=$CC AR=$AR CFLAGS="$CFLAGS -fPIC"
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make BUILD_ROOT=${DESTDIR} MANDIR=usr/share/man SBIN=${DESTDIR}/usr/bin install
|
|
|
|
rm -rf ${DESTDIR}/etc/rc.d
|
|
|
|
vsv ipvsadm
|
|
|
|
}
|