diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2005-09-13 14:13:52 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-09-13 14:13:52 +0000 |
commit | aeb5e8d2e0ca39cd27c88265fbb5edea501d1ec9 (patch) | |
tree | 6e1d71ecc52fb8c704841b431eff2a72d37de0fd | |
parent | 832cb542c12dad5e3ae330a62ec5a872ac47bc60 (diff) |
OPIE applets: fix postinst() to not be used during image create
- usage of "pidof -s qpe" is useless on build machine and make dead processes here
- close bug #309
- creation of postinst()/postrm() should be moved to opie.bbclass
30 files changed, 51 insertions, 41 deletions
diff --git a/packages/opie-batteryapplet/opie-batteryapplet.inc b/packages/opie-batteryapplet/opie-batteryapplet.inc index bac400d95d..3df9f40f00 100644 --- a/packages/opie-batteryapplet/opie-batteryapplet.inc +++ b/packages/opie-batteryapplet/opie-batteryapplet.inc @@ -12,12 +12,12 @@ 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 - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb b/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb index cb561d860d..3feba24a63 100644 --- a/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb +++ b/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/batteryapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ diff --git a/packages/opie-batteryapplet/opie-batteryapplet_cvs.bb b/packages/opie-batteryapplet/opie-batteryapplet_cvs.bb index 3260d8052f..a092b795bf 100644 --- a/packages/opie-batteryapplet/opie-batteryapplet_cvs.bb +++ b/packages/opie-batteryapplet/opie-batteryapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/batteryapplet \ ${HANDHELDS_CVS};module=opie/pics \ diff --git a/packages/opie-clipboardapplet/opie-clipboardapplet.inc b/packages/opie-clipboardapplet/opie-clipboardapplet.inc index 03d75bef7f..b0340c0f1a 100644 --- a/packages/opie-clipboardapplet/opie-clipboardapplet.inc +++ b/packages/opie-clipboardapplet/opie-clipboardapplet.inc @@ -12,10 +12,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-clipboardapplet/opie-clipboardapplet_1.2.1.bb b/packages/opie-clipboardapplet/opie-clipboardapplet_1.2.1.bb index b799edfa67..a9d681b5b9 100644 --- a/packages/opie-clipboardapplet/opie-clipboardapplet_1.2.1.bb +++ b/packages/opie-clipboardapplet/opie-clipboardapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/clipboardapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ diff --git a/packages/opie-clipboardapplet/opie-clipboardapplet_cvs.bb b/packages/opie-clipboardapplet/opie-clipboardapplet_cvs.bb index 4c204aad92..4c63f7c108 100644 --- a/packages/opie-clipboardapplet/opie-clipboardapplet_cvs.bb +++ b/packages/opie-clipboardapplet/opie-clipboardapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/clipboardapplet \ ${HANDHELDS_CVS};module=opie/pics \ diff --git a/packages/opie-clockapplet/opie-clockapplet.inc b/packages/opie-clockapplet/opie-clockapplet.inc index c312b1f2b8..ddf4d92677 100644 --- a/packages/opie-clockapplet/opie-clockapplet.inc +++ b/packages/opie-clockapplet/opie-clockapplet.inc @@ -12,10 +12,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-clockapplet/opie-clockapplet_1.2.1.bb b/packages/opie-clockapplet/opie-clockapplet_1.2.1.bb index e315cd4c46..9d4dfa7723 100644 --- a/packages/opie-clockapplet/opie-clockapplet_1.2.1.bb +++ b/packages/opie-clockapplet/opie-clockapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/clockapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ diff --git a/packages/opie-clockapplet/opie-clockapplet_cvs.bb b/packages/opie-clockapplet/opie-clockapplet_cvs.bb index cbe50f3b64..d8be3b0402 100644 --- a/packages/opie-clockapplet/opie-clockapplet_cvs.bb +++ b/packages/opie-clockapplet/opie-clockapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/clockapplet \ ${HANDHELDS_CVS};module=opie/pics \ diff --git a/packages/opie-irdaapplet/opie-irdaapplet.inc b/packages/opie-irdaapplet/opie-irdaapplet.inc index 873515f358..56620416fb 100644 --- a/packages/opie-irdaapplet/opie-irdaapplet.inc +++ b/packages/opie-irdaapplet/opie-irdaapplet.inc @@ -12,10 +12,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-irdaapplet/opie-irdaapplet_1.2.1.bb b/packages/opie-irdaapplet/opie-irdaapplet_1.2.1.bb index 10cacd8a75..0dda1a3918 100644 --- a/packages/opie-irdaapplet/opie-irdaapplet_1.2.1.bb +++ b/packages/opie-irdaapplet/opie-irdaapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/irdaapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ diff --git a/packages/opie-irdaapplet/opie-irdaapplet_cvs.bb b/packages/opie-irdaapplet/opie-irdaapplet_cvs.bb index 3972be6cba..be475273c5 100644 --- a/packages/opie-irdaapplet/opie-irdaapplet_cvs.bb +++ b/packages/opie-irdaapplet/opie-irdaapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/irdaapplet \ ${HANDHELDS_CVS};module=opie/pics \ diff --git a/packages/opie-lockapplet/opie-lockapplet.inc b/packages/opie-lockapplet/opie-lockapplet.inc index 10bf61eb4e..d54c854236 100644 --- a/packages/opie-lockapplet/opie-lockapplet.inc +++ b/packages/opie-lockapplet/opie-lockapplet.inc @@ -14,10 +14,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-lockapplet/opie-lockapplet_1.2.1.bb b/packages/opie-lockapplet/opie-lockapplet_1.2.1.bb index 46163c7323..add4ad4b4f 100644 --- a/packages/opie-lockapplet/opie-lockapplet_1.2.1.bb +++ b/packages/opie-lockapplet/opie-lockapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/lockapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics " diff --git a/packages/opie-lockapplet/opie-lockapplet_cvs.bb b/packages/opie-lockapplet/opie-lockapplet_cvs.bb index b800a9b334..29521fc3cc 100644 --- a/packages/opie-lockapplet/opie-lockapplet_cvs.bb +++ b/packages/opie-lockapplet/opie-lockapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/lockapplet \ ${HANDHELDS_CVS};module=opie/pics " diff --git a/packages/opie-memoryapplet/opie-memoryapplet.inc b/packages/opie-memoryapplet/opie-memoryapplet.inc index eb1e17919f..b67321412f 100644 --- a/packages/opie-memoryapplet/opie-memoryapplet.inc +++ b/packages/opie-memoryapplet/opie-memoryapplet.inc @@ -11,10 +11,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-memoryapplet/opie-memoryapplet_1.2.1.bb b/packages/opie-memoryapplet/opie-memoryapplet_1.2.1.bb index 4c33d73086..0947c45cc1 100644 --- a/packages/opie-memoryapplet/opie-memoryapplet_1.2.1.bb +++ b/packages/opie-memoryapplet/opie-memoryapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/applets/memoryapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/settings/sysinfo \ diff --git a/packages/opie-memoryapplet/opie-memoryapplet_cvs.bb b/packages/opie-memoryapplet/opie-memoryapplet_cvs.bb index 93dc9ecba1..404b0b981d 100644 --- a/packages/opie-memoryapplet/opie-memoryapplet_cvs.bb +++ b/packages/opie-memoryapplet/opie-memoryapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/applets/memoryapplet \ ${HANDHELDS_CVS};module=opie/noncore/settings/sysinfo \ diff --git a/packages/opie-multikeyapplet/opie-multikeyapplet.inc b/packages/opie-multikeyapplet/opie-multikeyapplet.inc index 5b46c5fbec..5f32d6595c 100644 --- a/packages/opie-multikeyapplet/opie-multikeyapplet.inc +++ b/packages/opie-multikeyapplet/opie-multikeyapplet.inc @@ -12,10 +12,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-multikeyapplet/opie-multikeyapplet_1.2.1.bb b/packages/opie-multikeyapplet/opie-multikeyapplet_1.2.1.bb index 1f2acddb65..ee8694a02d 100644 --- a/packages/opie-multikeyapplet/opie-multikeyapplet_1.2.1.bb +++ b/packages/opie-multikeyapplet/opie-multikeyapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/multikeyapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/apps" diff --git a/packages/opie-multikeyapplet/opie-multikeyapplet_cvs.bb b/packages/opie-multikeyapplet/opie-multikeyapplet_cvs.bb index 209cbbf012..d11b191f73 100644 --- a/packages/opie-multikeyapplet/opie-multikeyapplet_cvs.bb +++ b/packages/opie-multikeyapplet/opie-multikeyapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/multikeyapplet \ ${HANDHELDS_CVS};module=opie/apps" diff --git a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet.inc b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet.inc index b3655c54f6..706fe4d434 100644 --- a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet.inc +++ b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet.inc @@ -9,10 +9,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_1.2.1.bb b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_1.2.1.bb index 0a3851cf9d..3e3dc6d919 100644 --- a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_1.2.1.bb +++ b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/applets/pyquicklaunch \ ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \ diff --git a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_cvs.bb b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_cvs.bb index f504159802..db20019c6c 100644 --- a/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_cvs.bb +++ b/packages/opie-pyquicklaunchapplet/opie-pyquicklaunchapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/applets/pyquicklaunch \ ${HANDHELDS_CVS};module=opie/pics \ diff --git a/packages/opie-screenshotapplet/opie-screenshotapplet.inc b/packages/opie-screenshotapplet/opie-screenshotapplet.inc index 951e81b709..1ff889ab20 100644 --- a/packages/opie-screenshotapplet/opie-screenshotapplet.inc +++ b/packages/opie-screenshotapplet/opie-screenshotapplet.inc @@ -13,16 +13,16 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { #!/bin/sh +if [ -n "$D" ]; then false; fi /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()" - if [ -n "$D" ]; then false; fi } # FILES plugins/applets/libscreenshotapplet.so* diff --git a/packages/opie-screenshotapplet/opie-screenshotapplet_1.2.1.bb b/packages/opie-screenshotapplet/opie-screenshotapplet_1.2.1.bb index da266ce171..ccc414ef94 100644 --- a/packages/opie-screenshotapplet/opie-screenshotapplet_1.2.1.bb +++ b/packages/opie-screenshotapplet/opie-screenshotapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/screenshotapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/apps \ diff --git a/packages/opie-screenshotapplet/opie-screenshotapplet_cvs.bb b/packages/opie-screenshotapplet/opie-screenshotapplet_cvs.bb index 136739d68c..54f64162ab 100644 --- a/packages/opie-screenshotapplet/opie-screenshotapplet_cvs.bb +++ b/packages/opie-screenshotapplet/opie-screenshotapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/screenshotapplet \ ${HANDHELDS_CVS};module=opie/apps \ diff --git a/packages/opie-volumeapplet/opie-volumeapplet.inc b/packages/opie-volumeapplet/opie-volumeapplet.inc index 648effe846..c253857611 100644 --- a/packages/opie-volumeapplet/opie-volumeapplet.inc +++ b/packages/opie-volumeapplet/opie-volumeapplet.inc @@ -12,10 +12,10 @@ 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()" fi - if [ -n "$D" ]; then false; fi } pkg_postrm() { diff --git a/packages/opie-volumeapplet/opie-volumeapplet_1.2.1.bb b/packages/opie-volumeapplet/opie-volumeapplet_1.2.1.bb index 96cf720327..38cf693d0e 100644 --- a/packages/opie-volumeapplet/opie-volumeapplet_1.2.1.bb +++ b/packages/opie-volumeapplet/opie-volumeapplet_1.2.1.bb @@ -1,6 +1,6 @@ include ${PN}.inc - - + +PR = "r1" SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/volumeapplet \ ${HANDHELDS_CVS};tag=${TAG};module=opie/apps" diff --git a/packages/opie-volumeapplet/opie-volumeapplet_cvs.bb b/packages/opie-volumeapplet/opie-volumeapplet_cvs.bb index be79bbd2d3..259291d79f 100644 --- a/packages/opie-volumeapplet/opie-volumeapplet_cvs.bb +++ b/packages/opie-volumeapplet/opie-volumeapplet_cvs.bb @@ -1,6 +1,7 @@ include ${PN}.inc - + PV = "1.2.1+cvs-${CVSDATE}" +PR = "r1" SRC_URI = "${HANDHELDS_CVS};module=opie/core/applets/volumeapplet \ ${HANDHELDS_CVS};module=opie/apps" |