aboutsummaryrefslogtreecommitdiffstats
path: root/main/bridge/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:36:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:36:27 +0000
commitaa875936d99eee357006dc5a8a9547adc6aac845 (patch)
treedb7f35aa4048e1610e62e7c63b89a44ef8f9a9df /main/bridge/APKBUILD
parent86c2c6527c68246b409ecb163074dafc1a222551 (diff)
downloadaports-aa875936d99eee357006dc5a8a9547adc6aac845.tar.bz2
aports-aa875936d99eee357006dc5a8a9547adc6aac845.tar.xz
main/bridge: moved from testing
Diffstat (limited to 'main/bridge/APKBUILD')
-rw-r--r--main/bridge/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/bridge/APKBUILD b/main/bridge/APKBUILD
new file mode 100644
index 0000000000..72b901e630
--- /dev/null
+++ b/main/bridge/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=bridge
+pkgver=1.5
+pkgrel=0
+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="ba87e0186cd37bcf6e3515207141bc4e bridge.pre-up"