# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vlan
pkgver=2.0
pkgrel=0
pkgdesc="Scripts for configuring VLAN network interfaces"
url="http://wiki.alpinelinux.org/wiki/Vlan"
arch="noarch"
license="GPL"
options="!check"
depends=""
makedepends=""
install=""
subpackages=""
source="mvlan.post-down
	mvlan.pre-up
	vlan.post-down
	vlan.pre-up
	"

build() {
	return 0
}

package() {
	cd "$srcdir"
	for i in vlan mvlan; do
		for j in pre-up post-down; do
			install -Dm755 $i.$j "$pkgdir"/etc/network/if-$j.d/$i || return 1
		done
	done
}
sha512sums="f00c8521830b1472f1e71223943c14446d28f2667f7e2fd3690c8402c7d3f34982bc4d27201b3dc9c1eb9a635e38ea23dee6e044487615cbc68ba519d940c0f7  mvlan.post-down
955ccc68398ed2d515f794d5ef4164fec2dcfc4504e2e29d427c1687c8b9d6ecff1ea7247dc751963bb7be1db5025940fb66efef3fb6287aa19fe014088573ac  mvlan.pre-up
7a6e74957d2fcfb04023d2cf8246e8889a780171f669ec37a56882276d96fb0219180b37cc51ecd87421bcbd0f0d489602423859a6f5605781f703cf143e5bae  vlan.post-down
d4f0c4d838c716c950e553311bf0171997e9a46cb06d5e35feb9a9f52e13dcf4a1553ccc85aaf771057fef6229fcae29ff23c4e2ce384b0ba68a4b8de6a77fec  vlan.pre-up"
