aboutsummaryrefslogtreecommitdiffstats
path: root/main/bonding/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:35:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-15 13:35:48 +0000
commit86c2c6527c68246b409ecb163074dafc1a222551 (patch)
treed8c126d990c904785bb74cdb8d2f8bb6c5c860cb /main/bonding/APKBUILD
parent9146859d63fb9bc88018664950a7d70086ec51eb (diff)
downloadaports-86c2c6527c68246b409ecb163074dafc1a222551.tar.bz2
aports-86c2c6527c68246b409ecb163074dafc1a222551.tar.xz
main/bonding: moved from testing
Diffstat (limited to 'main/bonding/APKBUILD')
-rw-r--r--main/bonding/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/bonding/APKBUILD b/main/bonding/APKBUILD
new file mode 100644
index 0000000000..f77880b768
--- /dev/null
+++ b/main/bonding/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+# those scripts are based on debians ifenslave-2.6 scripts
+
+pkgname=bonding
+pkgver=2.6
+pkgrel=1
+pkgdesc="Scripts for network interface bonding"
+url="http://wiki.alpinelinux.org/wiki/Bonding"
+arch="noarch"
+license="GPL"
+depends=""
+makedepends=""
+install=""
+subpackages=""
+source="bonding.pre-up bonding.up bonding.post-down"
+
+_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 pre-up up post-down; do
+ install -Dm755 bonding.$i "$pkgdir"/etc/network/if-$i.d/bonding
+ done
+}
+
+md5sums="8feef9949a42f0a84418f785827c1fd2 bonding.pre-up
+68e64f483be3f8730a4c522f1e63e92d bonding.up
+c5f6d07415118aa21d8e4730f9f18cab bonding.post-down"