blob: 7839477683b61c2ce8b5db5399d25ab8720b4e90 (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=networkmanager
pkgver=0.9.8.6
_ver=0.9
pkgrel=0
pkgdesc="network management tool"
url="http://projects.gnome.org/NetworkManager/"
arch="all"
license="GPL"
depends="dhcpcd iptables dbus"
depends_dev="dbus-glib-dev udev-dev libnl3-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 $pkgname-lang"
source="http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/$_ver/NetworkManager-$pkgver.tar.xz
nm-policy-hostname.patch
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 \
--enable-ifupdown \
--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
rm "$pkgdir"/usr/lib/*.la \
"$pkgdir"/usr/lib/NetworkManager/*.la \
"$pkgdir"/usr/lib/pppd/*/nm-pppd-plugin.la || return 1
mv "$pkgdir"/usr/lib/locale "$pkgdir"/usr/share/ || return 1
}
md5sums="df8092e4f39b1547f16f2e78f7177ce4 NetworkManager-0.9.8.6.tar.xz
e7437269b5eefc6aee3cf081f87d2acb nm-policy-hostname.patch
c1c4609f415d7288e223d8c99e2d52d3 networkmanager.initd"
sha256sums="2289800de66fd7f8c141e029923beb39f43952e442b3cb864e3bf73b26c0c369 NetworkManager-0.9.8.6.tar.xz
209f3a1737a4fcb1661c851127de430ddb8218c75d1d75c193bf418146d3246c nm-policy-hostname.patch
3a67ecb96fb34b36b8da93909066a2a355aaadef2e0dda6f2ae1004e2307dc53 networkmanager.initd"
sha512sums="a7c56763422ca71be70aec5507e39158ac6062a247df4aec1b78fdaf21f1369ffd9728234ed8ea2c40e1e8a18bbca23e71e4a088e05c5c482b859fd98ed544ce NetworkManager-0.9.8.6.tar.xz
45a30a76b9a5df1661ec3afa6d8890f2d56e8e080a8d0584f7f57262b20b6b997b7dfcc34eb0522e673788a584875038af4d47956743b5761f0d981e656e0560 nm-policy-hostname.patch
d312bcb4f0d99331e189494bcb9fb1262cf3356e904573f7417b4429a1b8de083b9a6d51605b88d17be14e47ce2e9a3f4ea6e444790c3ffeccfe1c1d3cdd73d9 networkmanager.initd"
|