summaryrefslogtreecommitdiffstats
path: root/testing/networkmanager/APKBUILD
blob: ebb430e97950185ea7e35df75b84bafe71911904 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=networkmanager
pkgver=0.9.0
pkgrel=2
pkgdesc="network management tool"
url="http://projects.gnome.org/NetworkManager/"
arch="all"
license="GPL"
depends="dhcpcd iptables"
depends_dev="dbus-glib-dev udev-dev libnl-dev util-linux-dev 
	polkit-dev ppp-dev zlib-dev libiconv-dev wireless-tools-dev
	nss-dev nspr-dev"
makedepends="$depends_dev intltool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/${pkgver%.*}/NetworkManager-$pkgver.tar.bz2
	networkmanager.initd"

_builddir="$srcdir"/NetworkManager-$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"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-distro=debian \
		--with-dhcpcd=yes \
		|| return 1
	make || return 1
}

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

	install -m755 -D "$srcdir"/networkmanager.initd \
		"$pkgdir"/etc/init.d/networkmanager || return 1

	# stupid make install installs a custom init script, yuck
	rm "$pkgdir"/etc/init.d/NetworkManager \
		"$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/NetworkManager/*.la \
		"$pkgdir"/usr/lib/pppd/*/nm-pppd-plugin.la
}

md5sums="f807102109e63ec708d4fd7a7f3f7deb  NetworkManager-0.9.0.tar.bz2
c1c4609f415d7288e223d8c99e2d52d3  networkmanager.initd"