aboutsummaryrefslogtreecommitdiffstats
path: root/main/vlan/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:35:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:35:13 +0000
commit9146859d63fb9bc88018664950a7d70086ec51eb (patch)
treea03c9c4b7b0944b8042d8e9dff63370e1a023548 /main/vlan/APKBUILD
parent36681224a041c8256f2054f62d7b075743c9c1c6 (diff)
downloadaports-9146859d63fb9bc88018664950a7d70086ec51eb.tar.bz2
aports-9146859d63fb9bc88018664950a7d70086ec51eb.tar.xz
main/vlan: move from testing
Diffstat (limited to 'main/vlan/APKBUILD')
-rw-r--r--main/vlan/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/vlan/APKBUILD b/main/vlan/APKBUILD
new file mode 100644
index 0000000000..30910bcb4a
--- /dev/null
+++ b/main/vlan/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=vlan
+pkgver=1.9
+pkgrel=0
+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
+}
+
+md5sums="3683be24d1fc1d8565e945c349c41571 mvlan.post-down
+5b6232674e83b0dbfc24af523dd5ec03 mvlan.pre-up
+cebaa97c933ed0f4cafd92f864ab4bc8 vlan.post-down
+c9acef8c17d8af19590767f57eb11b6b vlan.pre-up"