summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-08-24 18:36:38 +0000
committerKoen Kooi <koen@openembedded.org>2006-08-24 18:36:38 +0000
commitad4628305b3dbba5dd4f4b00af5d62083ac7507b (patch)
tree5e3acf98b63027bb8ca3e6cdfec797b1a6c4e3f4 /packages
parent9c95019a42e17cf987a5a20a74ccd8f3353dd58f (diff)
networkmanager: add modified nm by Milan Plzik
Diffstat (limited to 'packages')
-rw-r--r--packages/networkmanager/.mtn2git_empty0
-rw-r--r--packages/networkmanager/files/.mtn2git_empty0
-rw-r--r--packages/networkmanager/files/99_networkmanager1
-rwxr-xr-xpackages/networkmanager/files/NetworkManager28
-rw-r--r--packages/networkmanager/files/nm-applet.desktop9
-rw-r--r--packages/networkmanager/networkmanager_0.6.4.bb60
6 files changed, 98 insertions, 0 deletions
diff --git a/packages/networkmanager/.mtn2git_empty b/packages/networkmanager/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/networkmanager/.mtn2git_empty
diff --git a/packages/networkmanager/files/.mtn2git_empty b/packages/networkmanager/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/networkmanager/files/.mtn2git_empty
diff --git a/packages/networkmanager/files/99_networkmanager b/packages/networkmanager/files/99_networkmanager
new file mode 100644
index 0000000000..b3e7f94657
--- /dev/null
+++ b/packages/networkmanager/files/99_networkmanager
@@ -0,0 +1 @@
+d root root 0700 /var/run/NetworkManager
diff --git a/packages/networkmanager/files/NetworkManager b/packages/networkmanager/files/NetworkManager
new file mode 100755
index 0000000000..0beff63081
--- /dev/null
+++ b/packages/networkmanager/files/NetworkManager
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# NetworkManager startup script
+
+. /etc/profile
+
+case $1 in
+ 'start')
+ echo -n "Starting NetworkManager daemon: NetworkManager"
+ /usr/sbin/NetworkManager
+ echo "."
+ ;;
+
+ 'stop')
+ echo -n "Stopping NetworkManager daemon: NetworkManager"
+ kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2`
+ echo "."
+ ;;
+
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 { start | stop | restart }"
+ ;;
+esac
diff --git a/packages/networkmanager/files/nm-applet.desktop b/packages/networkmanager/files/nm-applet.desktop
new file mode 100644
index 0000000000..3d99df5cfe
--- /dev/null
+++ b/packages/networkmanager/files/nm-applet.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Network Manager
+Comment=NetworkManager control applet
+Exec=nm-applet
+Type=PanelApp
+Icon=none
+Categories=Panel;Utility;
+
diff --git a/packages/networkmanager/networkmanager_0.6.4.bb b/packages/networkmanager/networkmanager_0.6.4.bb
new file mode 100644
index 0000000000..ba6af44e16
--- /dev/null
+++ b/packages/networkmanager/networkmanager_0.6.4.bb
@@ -0,0 +1,60 @@
+DESCRIPTION = "GNOME NetworkManager port"
+SECTION = "net/misc"
+LICENSE = "GPL"
+HOMEPAGE = "http://www.gnome.org"
+MAINTAINER = "Milan Plzik <mmp@handhelds.org>"
+PRIORITY = "optional"
+DEPENDS = "libnl libhal-nm libgpewidget gnome-keyring gconf-dbus wireless-tools"
+RDEPENDS = "wpa-supplicant dhcdbd gnome-keyring hicolor-icon-theme"
+
+SRC_URI="http://www.handhelds.org/~mmp/files/NetworkManager-${PV}-gpe.tar.gz \
+ file://99_networkmanager \
+ file://NetworkManager \
+ file://nm-applet.desktop"
+
+EXTRA_OECONF = " \
+ --without-gnome \
+ --with-gpe \
+ --with-distro=debian \
+ --without-gcrypt \
+ --with-wpa_supplicant=/usr/sbin/wpa_supplicant \
+ --disable-hal \
+ --with-dhcdbd=/sbin/dhcdbd"
+
+S = ${WORKDIR}/NetworkManager-${PV}
+
+inherit autotools
+
+do_staging () {
+ autotools_stage_includes
+ oe_libinstall -C libnm-util libnm-util ${STAGING_LIBDIR}
+ oe_libinstall gnome/libnm_glib libnm_glib ${STAGING_LIBDIR}
+}
+
+do_install () {
+ oe_libinstall -C libnm-util libnm-util ${D}/usr/lib
+ oe_libinstall -C gnome/libnm_glib libnm_glib ${D}/usr/lib
+
+ oe_runmake -C src DESTDIR="${D}" install
+ oe_runmake -C gnome/applet DESTDIR="${D}" install
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles
+ install -d ${D}/etc/init.d/
+ install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d/
+ install -d ${D}/${datadir}/
+ install -m 0755 ${WORKDIR}/nm-applet.desktop ${D}/${datadir}/
+}
+
+
+FILES_${PN} += "${datadir} \
+ ${libdir}/*.so* \
+ ${libdir}/*.la \
+ ${sbindir} \
+ ${bindir} \
+ ${sysconfdir} \
+ ${libexecdir}"
+
+FILES_${PN}-dev = "${incdir} \
+ ${libdir}/*.a \
+ ${libdir}/pkgconfig"
+