diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-07-14 18:06:30 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-07-14 18:06:30 +0000 |
commit | 881494f8297524add45d8878954b01638f674df2 (patch) | |
tree | 52e3a006c81623bc63f38e7d215c746395e44d62 | |
parent | 35b9c4b80c901c34c85934a62512a52001dfdbec (diff) |
add "" around the postinst tests
BKrev: 40f57626xDBxTYAUT5NxSHbSkQ_DtQ
-rw-r--r-- | opie-kpacman/opie-kpacman_cvs.oe | 37 | ||||
-rw-r--r-- | opie-networkapplet/opie-networkapplet_cvs.oe | 37 |
2 files changed, 74 insertions, 0 deletions
diff --git a/opie-kpacman/opie-kpacman_cvs.oe b/opie-kpacman/opie-kpacman_cvs.oe index e69de29bb2..8978f5ad55 100644 --- a/opie-kpacman/opie-kpacman_cvs.oe +++ b/opie-kpacman/opie-kpacman_cvs.oe @@ -0,0 +1,37 @@ +DESCRIPTION = "Kpacman, the classical arcade game of Pacman" +SECTION = "opie/games" +PRIORITY = "optional" +MAINTAINER = "Open Embedded <oe@handhelds.org>" +LICENSE = "GPL" +PV = "1.1.4-cvs-${CVSDATE}" +APPNAME = "kpacman" +APPTYPE = "binary" + +SRC_URI = "cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/noncore/games/kpacman;date=${CVSDATE} \ + cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/pics;date=${CVSDATE} \ + cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/share;date=${CVSDATE} \ + cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/apps;date=${CVSDATE}" + +S = "${WORKDIR}/${APPNAME}" + +inherit opie + +pkg_postinst() { +#!/bin/sh +if [ -n "$D" ]; then exit 1; fi + +if [ ! -f $HOME/Settings/kpacman.conf ] + exit 0 +then + cp /opt/QtPalmtop/share/kpacman/kpacman.conf $HOME/Settings/ +fi +} + +# FILES bin/kpacman apps/Games/kpacman.desktop pics/kpacman/kpacman.png share/kpacman +do_install() { + install -d ${D}${palmtopdir}/pics/${APPNAME}/ + install -m 0644 ${WORKDIR}/pics/${APPNAME}/*.png ${D}${palmtopdir}/pics/${APPNAME}/ + install -d ${D}${palmtopdir}/share/${APPNAME}/ + install -m 0644 ${WORKDIR}/share/${APPNAME}/*.conf ${D}${palmtopdir}/share/${APPNAME}/ +} + diff --git a/opie-networkapplet/opie-networkapplet_cvs.oe b/opie-networkapplet/opie-networkapplet_cvs.oe index e69de29bb2..6368dd619c 100644 --- a/opie-networkapplet/opie-networkapplet_cvs.oe +++ b/opie-networkapplet/opie-networkapplet_cvs.oe @@ -0,0 +1,37 @@ +DESCRIPTION = "Network Applet" +SECTION = "opie/applets" +PRIORITY = "optional" +MAINTAINER = "Open Embedded <oe@handhelds.org>" +LICENSE = "GPL" +RDEPENDS = "opie-networksettings" +PV = "1.1.4-cvs-${CVSDATE}" +APPNAME = "networkapplet" + +SRC_URI = "cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/noncore/applets/networkapplet;date=${CVSDATE} \ + cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs;module=opie/pics;date=${CVSDATE}" + +S = "${WORKDIR}/${APPNAME}" + +inherit opie + +pkg_postinst() { +#!/bin/sh +if [ -n "$D" ]; then exit 1; fi +if pidof -s qpe >/dev/null; then + /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()" +else + exit 0 +fi +} + +pkg_postrm() { +#!/bin/sh +if [ -n "$D" ]; then exit 1; fi +/opt/QtPalmtop/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}/ +} |