diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-08-21 22:16:21 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-21 22:16:21 +0000 |
commit | 58960b40d7be51c5c696ba61ae9301ebb4b86be7 (patch) | |
tree | 46d04d504d45ba017846f8f001b4c370fa317450 /packages/obexpush/obexpush_1.0.0.bb | |
parent | 6080734a11b136ea0f4275959c9d3a1ab6eb6f61 (diff) |
add OBEX Push command line helpers
Diffstat (limited to 'packages/obexpush/obexpush_1.0.0.bb')
-rw-r--r-- | packages/obexpush/obexpush_1.0.0.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/obexpush/obexpush_1.0.0.bb b/packages/obexpush/obexpush_1.0.0.bb new file mode 100644 index 0000000000..97e2049108 --- /dev/null +++ b/packages/obexpush/obexpush_1.0.0.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Obex Push Utilities" +HOMEPAGE = "http://www.caside.lancs.ac.uk/java_bt.php" +SECTION = "console/network" +LICENSE = "GPL" +DEPENDS = "glib-2.0 openobex" + +SRC_URI = "http://www.caside.lancs.ac.uk/bt/obexpush.tar.gz \ + file://init" +S = "${WORKDIR}/obexpush" + +inherit update-rc.d + +INITSCRIPT_NAME = "opd" +INITSCRIPT_PARAMS = "defaults 33 09" + +export GLIBINC=-I${STAGING_INCDIR}/glib-2.0 +export GLIBLIB=-I${STAGING_LIBDIR} -lglib-2.0 +export OBEXINC=-I${STAGING_INCDIR} +export OBEXLIB=-L${STAGING_LIBDIR} -lopenobex + +do_configure() { + rm -f client/*.o client/ussp-push + rm -f opd/*.o opd/opd + sed -i 's:gcc:${CC}:' */Makefile + sed -i 's:__FUNCTION__::' opd/*.c +} + +do_compile() { + oe_runmake -C client + oe_runmake -C opd +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 client/ussp-push ${D}${bindir} + install -m 0755 opd/opd ${D}${bindir} + + install -d ${D}${sysconfdir}/init.d + install -m 0644 ${WORKDIR}/init ${D}${sysconfdir}/init.d/opd +} + |