aboutsummaryrefslogtreecommitdiffstats
path: root/testing/connman/APKBUILD
blob: 13e8cef44d58fe2536dee076b8ff5e0bd2ae8722 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=connman
pkgver=1.31
pkgrel=0
pkgdesc="A daemon for managing internet connections"
url="http://connman.net/"
arch="all"
license="GPLv2"
depends="wpa_supplicant"
depends_dev=""
makedepends="$depends_dev autoconf automake libtool
	glib-dev iptables-dev readline-dev dbus-dev
	"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.kernel.org/pub/linux/network/$pkgname/$pkgname-$pkgver.tar.xz
	musl-fixes.patch
	libresolv.patch
	connman.initd
	"

_builddir="$srcdir"/connman-$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
	update_config_sub
	autoreconf -vif || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-wispr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 src/main.conf "$pkgdir"/etc/$pkgname/main.conf
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="cb1c413fcc4f49430294bbd7a92f5f3c  connman-1.31.tar.xz
3cabe0cec49b0fedc0e2109ecf115060  musl-fixes.patch
7ce81d8578903db13b92aae7479f0624  libresolv.patch
d4ff58c635f7864de60714f429108870  connman.initd"
sha256sums="88fcf0b6df334796b90e2fd2e434d6f5b36cd6f13b886a119b8c90276b72b8e2  connman-1.31.tar.xz
ec3efdc3dfade4b683730017e6d36862e9617b76c5775c3e30a041c1a21e8844  musl-fixes.patch
6a36a7d85d12d5ce927c741ca41ddb40a4eb5351dd0112cebc93134113641edb  libresolv.patch
8abb764e8c0f370df17f81a253acb3905468f419c8dfdc508ffdd0429266608b  connman.initd"
sha512sums="f9871ead096ead37d3bc524fb143ec8c88125e9c18b5eb1f451581b9a2061719e90361e5b7f3e09901701707d977c42c630457b0ead8e76e04e964a7542c7bbd  connman-1.31.tar.xz
6bcf633e299b8034efa801d678163c61edf1d35e286f2bf10cc94d85e268f9a6aa5c91bd3c18e90991ccacade00b01fcc72bedae191a2051321649bb3d678f13  musl-fixes.patch
c258e747e13b86c81ae96ac1743abf0c1461b9053c5b386d594a49f0b1890f10d89bea92610762ff609a4cc5fea04a43fab83894702f552b05af400f01cb011e  libresolv.patch
42b45d44f5eed966ba003683fcb54ffb4e9a0331599ff1c8e5e64c4c06b42d380c3852b7c73881a1be1eaca887906cac9aede1f5579e8e139fdf90ca8d7adf15  connman.initd"