blob: df129e8deb41e1f455743856d0305dc98511f7fa (
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
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 97090 2013-09-12 12:47:32Z seblu $
# Maintainer: Sébastien Luttringer
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=ipvsadm
pkgver=1.27
pkgrel=1
pkgdesc='The IP Virtual Server administration utility'
arch=('i686' 'x86_64')
url='http://www.linuxvirtualserver.org/software/ipvs.html'
license=('GPL2')
depends=('libnl1' 'popt' 'bash')
backup=("etc/$pkgname.conf")
options=('!makeflags')
install=$pkgname.install
source=("https://kernel.org/pub/linux/utils/kernel/ipvsadm/$pkgname-$pkgver.tar.xz"
"$pkgname.systemd"
"$pkgname.service")
# upstream provides sha256sums of release
sha256sums=('d360fb4dcf591e0a8a918831e2c02b1dc03e3c17ee1e60d0d70de9455238b3f8'
'4960ea254128347b03665d51817f29cb643cf2ebca13f5f46649257552ad3ceb'
'25506d07f412cccab6f2f3a2a1900d5eeda27bc58602d14f44910c4e036b5341')
#prepare() {
#patch -p1 -d $pkgname-$pkgver < 01-fix-not-showing-all-server.patch
#}
build() {
cd $pkgname-$pkgver
make
}
package() {
pushd $pkgname-$pkgver
make \
BUILD_ROOT="$pkgdir" \
MANDIR=usr/share/man \
SBIN="$pkgdir/usr/bin" \
INIT="$pkgdir/etc/rc.d" \
install
popd
# systemd
install -Dm 755 $pkgname.systemd \
"$pkgdir/usr/lib/systemd/scripts/$pkgname"
install -Dm 644 $pkgname.service \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
# remove legacy init system
rm -rf "$pkgdir/etc/rc.d"
# default config file
install -Dm 644 /dev/null "$pkgdir/etc/$pkgname.conf"
}
# vim:set ts=2 sw=2 et:
|