New package: ipvsadm-1.28.
This commit is contained in:
parent
3f835b28d4
commit
26c21e38e0
3 changed files with 30 additions and 0 deletions
2
srcpkgs/ipvsadm/files/ipvsadm/finish
Normal file
2
srcpkgs/ipvsadm/files/ipvsadm/finish
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ipvsadm -C
|
6
srcpkgs/ipvsadm/files/ipvsadm/run
Normal file
6
srcpkgs/ipvsadm/files/ipvsadm/run
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
: ${CONF_FILE:=/etc/ipvsadm.conf}
|
||||||
|
[ -r conf ] && . ./conf
|
||||||
|
[ -s $CONF_FILE ] || exit 0
|
||||||
|
ipvsadm-restore < $CONF_FILE
|
||||||
|
exec chpst -b ipvsadm pause
|
22
srcpkgs/ipvsadm/template
Normal file
22
srcpkgs/ipvsadm/template
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# 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"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue