summaryrefslogtreecommitdiffstats
path: root/main/bridge/APKBUILD
blob: f60850b1579d786568d87e05d75aa20489a860d3 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge
pkgver=1.5
pkgrel=2
pkgdesc="Scripts for configuring network bridge interfaces"
url="http://wiki.alpinelinux.org/wiki/Bridge"
arch="noarch"
license="GPL"
depends=""
makedepends=""
install=""
subpackages=""
source="bridge.pre-up"

_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 "$_builddir"
	install -Dm755 "$srcdir"/bridge.pre-up \
		"$pkgdir"/etc/network/if-pre-up.d/bridge
	install -d "$pkgdir"/etc/network/if-post-down.d
	ln -s ../if-pre-up.d/bridge "$pkgdir"/etc/network/if-post-down.d/bridge
}

md5sums="937365c4a3e3e10f51116c7e6717f434  bridge.pre-up"