# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=vlan pkgver=1.9 pkgrel=1 pkgdesc="Scripts for configuring VLAN network interfaces" url="http://wiki.alpinelinux.org/wiki/Vlan" arch="noarch" license="GPL" depends="" makedepends="" install="" subpackages="" source="mvlan.post-down mvlan.pre-up vlan.post-down vlan.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 "$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="3cd966ebd44036bd5a50e5a80292d2fca3a24e851f5231c57c07418f5d36d2ab06e9ef07dd097be2a7585906cfc1c8d52f18ab5b4ba595028287e436680762d9 mvlan.post-down 4e75059fbd347427835359842dfc63a19825eaa254539e2a658a5521278b59ae05fba1c2bf83951b8cccbb99cbb5a890a9a1d9069fb39c7d0c1707880652fcce mvlan.pre-up 0219db488ea99aa88018925a3e817c52ccfb95304f0c62fe6e139fc5b8d7b6d1d9919161dc4ba42c51908efa02963ada0972859c83a81cde27c33965de5e54b8 vlan.post-down 99c02b3407bded7f5d971195281d6bbc44df456c046a7462eb49e6291b6611ee70a55af2c6c3c19593f80e4a6b1065af64d95d7c7024b08e024be13f2bdcd8f9 vlan.pre-up"