summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/ifupdown/APKBUILD8
-rw-r--r--testing/ifupdown/ifupdown-alpine-ifstate.patch13
2 files changed, 18 insertions, 3 deletions
diff --git a/testing/ifupdown/APKBUILD b/testing/ifupdown/APKBUILD
index 9c4719724..8b95ff99a 100644
--- a/testing/ifupdown/APKBUILD
+++ b/testing/ifupdown/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=ifupdown
pkgver=0.6.10
-pkgrel=1
+pkgrel=2
pkgdesc="high level tools to configure network interfaces"
url="http://packages.debian.org/ifupdown"
arch="all"
@@ -13,7 +13,8 @@ makedepends=
install="$pkgname.post-deinstall $pkgname.post-upgrade"
subpackages=
source="http://ftp.debian.org/pool/main/i/$pkgname/${pkgname}_$pkgver.tar.gz
- ifupdown-busybox-compat.patch"
+ ifupdown-busybox-compat.patch
+ ifupdown-alpine-ifstate.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
@@ -37,4 +38,5 @@ package() {
}
md5sums="70db0d8caf06a17d65b612fa8919732b ifupdown_0.6.10.tar.gz
-b0f42f7ce1a4f416eddaa304db2d270e ifupdown-busybox-compat.patch"
+b0f42f7ce1a4f416eddaa304db2d270e ifupdown-busybox-compat.patch
+486600edad1d9bf5b1a05bde421345e9 ifupdown-alpine-ifstate.patch"
diff --git a/testing/ifupdown/ifupdown-alpine-ifstate.patch b/testing/ifupdown/ifupdown-alpine-ifstate.patch
new file mode 100644
index 000000000..ae0095081
--- /dev/null
+++ b/testing/ifupdown/ifupdown-alpine-ifstate.patch
@@ -0,0 +1,13 @@
+--- ifupdown-0.6.10.orig/main.c
++++ ifupdown-0.6.10/main.c
+@@ -17,8 +17,8 @@
+ #line 3166 "ifupdown.nw"
+ int no_act = 0;
+ int verbose = 0;
+-char *statefile = "/etc/network/run/ifstate";
+-char *tmpstatefile = "/etc/network/run/.ifstate.tmp";
++char *statefile = "/var/run/ifstate";
++char *tmpstatefile = "/var/run/.ifstate.tmp";
+ #line 3185 "ifupdown.nw"
+ static void usage(char *execname);
+ static void help(char *execname);