summaryrefslogtreecommitdiffstats
path: root/main/bonding/APKBUILD
blob: 236240408eeada6885fe54effcc4d283c45803ff (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

# those scripts are based on debians ifenslave-2.6 scripts

pkgname=bonding
pkgver=2.6
pkgrel=3
pkgdesc="Scripts for network interface bonding"
url="http://wiki.alpinelinux.org/wiki/Bonding"
arch="noarch"
license="GPL"
depends=""
makedepends=""
install=""
subpackages=""
source="bonding.pre-up bonding.up bonding.post-down"

_builddir=
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	return 0
}

package() {
	cd "$srcdir"
	for i in pre-up up post-down; do
		install -Dm755 bonding.$i "$pkgdir"/etc/network/if-$i.d/bonding
	done
}

md5sums="e5b1ba826edd950bcf7bedf8cd550e9e  bonding.pre-up
68e64f483be3f8730a4c522f1e63e92d  bonding.up
f94e3a116adf466f6b801a320bdc53ca  bonding.post-down"
sha256sums="d8613d3ca76bc69545487fd9d50eb3f6b6c2e81e22c170236531d8e3f04d9eb9  bonding.pre-up
237a571c9a1e36d9871764ea3415d7ab0d6718718a22549a0a4b14576ed21b6f  bonding.up
d24e1061ffd123d10cd9d19b00a70a46e54b7f98ee56cc1eb4b04c1fc2d72b8e  bonding.post-down"
sha512sums="88d0566242b172c60b66bd62ce1b5c9f01e5d3b79a2caa7eea8f2ec0255158f449392a54348dd5c375d14f4d8fa6182333c2154582c7eab7f3e8f4a7adce900a  bonding.pre-up
5c81b2891c281df2df4c98a560f776b857e4b6b20ac733858683d87fb7b1ac57423f57003cfdcfac24c8257de31062c4596270e9482b8d35d517e29f2bac0951  bonding.up
c6b6f06d1c0a7be1022feb18cdcc55780cad2200ac0121f276527442becb7d75a7850b809ae9c6d5b914a1a03f791bd65c088f1289ce0e28b5a02bd86e3868de  bonding.post-down"