aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ifupdown/APKBUILD
blob: 503d92720e5b7d1b75427bdefb6a3918986fdf00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=ifupdown
pkgver=0.6.10
pkgrel=3
pkgdesc="high level tools to configure network interfaces"
url="http://packages.debian.org/ifupdown"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="perl"
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-alpine-ifstate.patch"

_builddir="$srcdir/$pkgname-$pkgver"
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() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make BASEDIR="$pkgdir" install || return 1
}

md5sums="70db0d8caf06a17d65b612fa8919732b  ifupdown_0.6.10.tar.gz
b0f42f7ce1a4f416eddaa304db2d270e  ifupdown-busybox-compat.patch
486600edad1d9bf5b1a05bde421345e9  ifupdown-alpine-ifstate.patch"