summaryrefslogtreecommitdiff
path: root/recipes/opie-networkapplet/opie-networkapplet.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/opie-networkapplet/opie-networkapplet.inc')
-rw-r--r--recipes/opie-networkapplet/opie-networkapplet.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/opie-networkapplet/opie-networkapplet.inc b/recipes/opie-networkapplet/opie-networkapplet.inc
new file mode 100644
index 0000000000..dcb5c930f1
--- /dev/null
+++ b/recipes/opie-networkapplet/opie-networkapplet.inc
@@ -0,0 +1,32 @@
+DESCRIPTION = "Network Applet"
+SECTION = "opie/applets"
+PRIORITY = "optional"
+LICENSE = "GPL"
+RDEPENDS = "opie-networksettings"
+APPNAME = "networkapplet"
+
+S = "${WORKDIR}/${APPNAME}"
+
+inherit opie
+
+pkg_postinst() {
+#!/bin/sh
+if [ -n "$D" ]; then exit 1; fi
+if pidof -s qpe >/dev/null; then
+ /usr/bin/qcop QPE/TaskBar "reloadApplets()"
+else
+ exit 0
+fi
+}
+
+pkg_postrm() {
+#!/bin/sh
+if [ -n "$D" ]; then exit 1; fi
+/usr/bin/qcop QPE/TaskBar "reloadApplets()"
+}
+
+# FILES plugins/applets/libnetworkapplet.so* pics/networkapplet
+do_install() {
+ install -d ${D}${palmtopdir}/pics/${APPNAME}/
+ install -m 0644 ${WORKDIR}/pics/${APPNAME}/*.png ${D}${palmtopdir}/pics/${APPNAME}/
+}