summaryrefslogtreecommitdiffstats
path: root/main/bonding/APKBUILD
blob: 4cdb755f25eff308415c904c190e3f646ea42cc7 (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
# 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=2
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
c5f6d07415118aa21d8e4730f9f18cab  bonding.post-down"