aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipvsadm/APKBUILD
blob: 9931eb5b1a7ae391659598261f9d545eaefe7db8 (plain) (blame)
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
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipvsadm
pkgver=1.30
pkgrel=0
pkgdesc="The IP Virtual Server administration utility"
url="http://www.linuxvirtualserver.org/software/ipvs.html"
arch="all"
license="GPL-2.0"
depends_dev="libnl3-dev popt-dev"
makedepends="$depends_dev linux-headers"
subpackages="$pkgname-doc"
source="https://kernel.org/pub/linux/utils/kernel/ipvsadm/ipvsadm-$pkgver.tar.xz
	$pkgname.initd
	"

build() {
	cd "$builddir"
	make libs && make BUILD_ROOT="$pkgdir" \
		MANDIR=usr/share/man \
		SBIN="$pkgdir/usr/sbin" \
		INIT="$pkgdir/etc/init.d"
}

package() {
	cd "$builddir"
	make -j1 BUILD_ROOT="$pkgdir" \
		MANDIR=usr/share/man \
		SBIN="$pkgdir/usr/sbin" \
		INIT="$pkgdir/etc/init.d" \
		install

	# remove the 2 lines below (and this) if there is no init.d script
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="e6b46dcaf36ccbd4cef98a57f88c6bb27bbe86c72974ced317336847eabdf3dc20c0d951c452dfb6ec81df7aee912ba37f7311822c29265582195c95d864bc24  ipvsadm-1.30.tar.xz
23d90c882478e2809b5a0e4fa106a02b88033d316405b8c59018491b38ad03652767587f626ce29a476f9db77b458387f545995c9c0a99d04c0ddbdd733f030c  ipvsadm.initd"