aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ipvsadm/APKBUILD
blob: 01a36b0011870b7764571dcdd41c5a536ab49205 (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
40
41
42
43
44
45
46
# Contributor: Leonardo Arena <rnalrd@gmail.com>
pkgname=ipvsadm
pkgver=1.27
pkgrel=1
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
	$pkgname.initd"

_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
bebb015ea02ead2a84be2bd5af4eb74c  ipvsadm.initd"
sha256sums="d360fb4dcf591e0a8a918831e2c02b1dc03e3c17ee1e60d0d70de9455238b3f8  ipvsadm-1.27.tar.xz
d18d70c39d5dff6325b7e21fbd61485384b642b15a0dfee935ec9b7d4b9f0b66  ipvsadm.initd"
sha512sums="cf982b7981674c91d1b7516de7b55cf378b306ce4a53e13976b8eeb8610015c4fa4aa9d251bc4d329db8e05c1862863160af2d3c63b76263f290087cffdf1b80  ipvsadm-1.27.tar.xz
43b2186f48f17d43524c1f4e9de06227c6d491845c466cf6f00214b74fcd5e181e8b855fef8c6fa78c62a924ee3cc3317099278f9656183de8678440bb070625  ipvsadm.initd"