blob: 94a0e668ca12d006e5a99856b2774f997e6ba63f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $Id: PKGBUILD 66312 2012-02-23 14:03:04Z allan $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=ipvsadm
pkgver=1.26
pkgrel=3
pkgdesc='The IP Virtual Server administration utility'
arch=('i686' 'x86_64')
url='http://www.linuxvirtualserver.org/software/ipvs.html'
license=('GPL2')
depends=('libnl1' 'popt')
backup=('etc/conf.d/ipvsadm')
#options=('!makeflags')
source=("http://www.linuxvirtualserver.org/software/kernel-2.6/$pkgname-$pkgver.tar.gz"
'ipvsadm.rc'
'ipvsadm.conf'
'ipvsadm.rules'
'01-fix-not-showing-all-server.patch')
md5sums=('eac3ba3f62cd4dea2da353aeddd353a8'
'0e106fce0675e014bea0f9355b947bd6'
'cd358130967a9cc0d31fc61282df43e7'
'cd6649c647e495d4d6f981542ce5a93b'
'e9fb77d2fbe2d3f41d60257316338543')
build() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../01-fix-not-showing-all-server.patch
make INCLUDE="-I/usr/src/linux-`uname -r`/include -I.. -I." || return 1
}
package() {
cd ${pkgname}-${pkgver}
make BUILD_ROOT=${pkgdir} MANDIR=usr/share/man INIT="$pkgdir/etc/rc.d" install
cd "$srcdir"
# add initscripts
install -D -m 755 $pkgname.rc "${pkgdir}/etc/rc.d/$pkgname"
install -D -m 644 $pkgname.conf "${pkgdir}/etc/conf.d/$pkgname"
# add ipvsadm rules
install -D -m 644 $pkgname.rules "${pkgdir}/etc/$pkgname.rules"
}
# vim:set ts=2 sw=2 ft=sh et:
|