diff options
Diffstat (limited to 'meta-extras/packages/networkmanager')
3 files changed, 87 insertions, 0 deletions
diff --git a/meta-extras/packages/networkmanager/files/99_networkmanager b/meta-extras/packages/networkmanager/files/99_networkmanager new file mode 100644 index 0000000000..20cbcc1bca --- /dev/null +++ b/meta-extras/packages/networkmanager/files/99_networkmanager | |||
@@ -0,0 +1 @@ | |||
d root root 0700 /var/run/NetworkManager none | |||
diff --git a/meta-extras/packages/networkmanager/files/NetworkManager b/meta-extras/packages/networkmanager/files/NetworkManager new file mode 100644 index 0000000000..0beff63081 --- /dev/null +++ b/meta-extras/packages/networkmanager/files/NetworkManager | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # NetworkManager startup script | ||
4 | |||
5 | . /etc/profile | ||
6 | |||
7 | case $1 in | ||
8 | 'start') | ||
9 | echo -n "Starting NetworkManager daemon: NetworkManager" | ||
10 | /usr/sbin/NetworkManager | ||
11 | echo "." | ||
12 | ;; | ||
13 | |||
14 | 'stop') | ||
15 | echo -n "Stopping NetworkManager daemon: NetworkManager" | ||
16 | kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2` | ||
17 | echo "." | ||
18 | ;; | ||
19 | |||
20 | 'restart') | ||
21 | $0 stop | ||
22 | $0 start | ||
23 | ;; | ||
24 | |||
25 | *) | ||
26 | echo "Usage: $0 { start | stop | restart }" | ||
27 | ;; | ||
28 | esac | ||
diff --git a/meta-extras/packages/networkmanager/networkmanager_svn.bb b/meta-extras/packages/networkmanager/networkmanager_svn.bb new file mode 100644 index 0000000000..e0e19f8cfd --- /dev/null +++ b/meta-extras/packages/networkmanager/networkmanager_svn.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | DESCRIPTION = "NetworkManager" | ||
2 | SECTION = "net/misc" | ||
3 | LICENSE = "GPL" | ||
4 | HOMEPAGE = "http://www.gnome.org" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "libnl dbus dbus-glib hal gconf-dbus wireless-tools" | ||
7 | RDEPENDS = "wpa-supplicant iproute2 dhcdbd" | ||
8 | |||
9 | PR = "r5" | ||
10 | |||
11 | SRC_URI="svn://svn.gnome.org/svn/NetworkManager/branches;module=NETWORKMANAGER_0_6_0_RELEASE;proto=http \ | ||
12 | file://NetworkManager \ | ||
13 | file://99_networkmanager" | ||
14 | |||
15 | EXTRA_OECONF = " \ | ||
16 | --without-gnome \ | ||
17 | --with-distro=debian \ | ||
18 | --without-gcrypt \ | ||
19 | --with-wpa_supplicant=/usr/sbin/wpa_supplicant \ | ||
20 | --with-dhcdbd=/sbin/dhcdbd" | ||
21 | |||
22 | S = "${WORKDIR}/NETWORKMANAGER_0_6_0_RELEASE" | ||
23 | |||
24 | inherit autotools | ||
25 | |||
26 | do_staging () { | ||
27 | autotools_stage_includes | ||
28 | oe_libinstall -C libnm-util libnm-util ${STAGING_LIBDIR} | ||
29 | oe_libinstall gnome/libnm_glib libnm_glib ${STAGING_LIBDIR} | ||
30 | } | ||
31 | |||
32 | do_install () { | ||
33 | oe_libinstall -C libnm-util libnm-util ${D}/usr/lib | ||
34 | oe_libinstall -C gnome/libnm_glib libnm_glib ${D}/usr/lib | ||
35 | |||
36 | oe_runmake -C src DESTDIR="${D}" install | ||
37 | install -d ${D}/etc/default/volatiles | ||
38 | install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles | ||
39 | install -d ${D}/etc/init.d/ | ||
40 | install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d/ | ||
41 | install -d ${D}/${datadir}/ | ||
42 | } | ||
43 | |||
44 | pkg_postinst () { | ||
45 | /etc/init.d/populate-volatile.sh update | ||
46 | } | ||
47 | |||
48 | FILES_${PN} += "${datadir} \ | ||
49 | ${libdir}/*.so* \ | ||
50 | ${libdir}/*.la \ | ||
51 | ${sbindir} \ | ||
52 | ${bindir} \ | ||
53 | ${sysconfdir} \ | ||
54 | ${libexecdir}" | ||
55 | |||
56 | FILES_${PN}-dev = "${incdir} \ | ||
57 | ${libdir}/*.a \ | ||
58 | ${libdir}/pkgconfig" | ||