void-packages/srcpkgs/ipvsadm/template

23 lines
718 B
Bash
Raw Normal View History

2015-02-16 15:21:54 +00:00
# Template file for 'ipvsadm'
pkgname=ipvsadm
version=1.28
2016-05-26 05:41:37 +00:00
revision=3
2015-02-16 15:21:54 +00:00
hostmakedepends="pkg-config"
makedepends="libnl3-devel popt-devel"
short_desc="The IP Virtual Server administration utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-02-16 15:21:54 +00: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
2016-05-26 05:41:37 +00:00
make CC=$CC AR=$AR CFLAGS="$CFLAGS -fPIC $LDFLAGS"
2015-02-16 15:21:54 +00:00
}
do_install() {
make BUILD_ROOT=${DESTDIR} MANDIR=usr/share/man SBIN=${DESTDIR}/usr/bin install
rm -rf ${DESTDIR}/etc/rc.d
vsv ipvsadm
}