aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipvsadm/APKBUILD
blob: eb84649b0fb96974679116e5b470c165ccbcdb3c (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
# Contributor: Leonardo Arena <rnalrd@gmail.com>
pkgname=ipvsadm
pkgver=1.27
pkgrel=0
pkgdesc="The IP Virtual Server administration utility"
url="http://www.linuxvirtualserver.org/software/ipvs.html"
arch="all"
license="GPL2"
depends=
depends_dev="libnl-dev popt-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="https://kernel.org/pub/linux/utils/kernel/ipvsadm/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	make -j1 BUILD_ROOT="$pkgdir" \
		MANDIR=usr/share/man \
		SBIN="$pkgdir/usr/sbin" \
		INIT="$pkgdir/etc/init.d" \
		|| return 1
}

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
}

md5sums="9decaaaad2fd637ed06cffd954e66cf3  ipvsadm-1.27.tar.xz"
sha256sums="d360fb4dcf591e0a8a918831e2c02b1dc03e3c17ee1e60d0d70de9455238b3f8  ipvsadm-1.27.tar.xz"
sha512sums="cf982b7981674c91d1b7516de7b55cf378b306ce4a53e13976b8eeb8610015c4fa4aa9d251bc4d329db8e05c1862863160af2d3c63b76263f290087cffdf1b80  ipvsadm-1.27.tar.xz"