summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-01-19 18:35:15 +0000
committerRoss Burton <ross@openedhand.com>2007-01-19 18:35:15 +0000
commitb4fcc5f86a36d87b76ebe4f26680f4e9c896ab17 (patch)
tree1354bb9b55e4b3bb5fe6e495593e2ee40f310668 /meta-extras/packages
parent1af800caf4a179f1c6c6d87cc37ced97bece4c89 (diff)
downloadpoky-b4fcc5f86a36d87b76ebe4f26680f4e9c896ab17.tar.gz
Add initial and probably broken Network Manager packages
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1171 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages')
-rw-r--r--meta-extras/packages/networkmanager/files/99_networkmanager1
-rw-r--r--meta-extras/packages/networkmanager/files/NetworkManager28
-rw-r--r--meta-extras/packages/networkmanager/networkmanager_svn.bb58
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
7case $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 ;;
28esac
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 @@
1DESCRIPTION = "NetworkManager"
2SECTION = "net/misc"
3LICENSE = "GPL"
4HOMEPAGE = "http://www.gnome.org"
5PRIORITY = "optional"
6DEPENDS = "libnl dbus dbus-glib hal gconf-dbus wireless-tools"
7RDEPENDS = "wpa-supplicant iproute2 dhcdbd"
8
9PR = "r5"
10
11SRC_URI="svn://svn.gnome.org/svn/NetworkManager/branches;module=NETWORKMANAGER_0_6_0_RELEASE;proto=http \
12 file://NetworkManager \
13 file://99_networkmanager"
14
15EXTRA_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
22S = "${WORKDIR}/NETWORKMANAGER_0_6_0_RELEASE"
23
24inherit autotools
25
26do_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
32do_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
44pkg_postinst () {
45 /etc/init.d/populate-volatile.sh update
46}
47
48FILES_${PN} += "${datadir} \
49 ${libdir}/*.so* \
50 ${libdir}/*.la \
51 ${sbindir} \
52 ${bindir} \
53 ${sysconfdir} \
54 ${libexecdir}"
55
56FILES_${PN}-dev = "${incdir} \
57 ${libdir}/*.a \
58 ${libdir}/pkgconfig"