diff options
author | Tomas Frydrych <tf@openedhand.com> | 2007-01-05 09:19:33 +0000 |
---|---|---|
committer | Tomas Frydrych <tf@openedhand.com> | 2007-01-05 09:19:33 +0000 |
commit | 3206bb360094335117b45a30913ca90e727e7137 (patch) | |
tree | dbb006a3e0f38c14aa74f973b225280ca250250a /meta | |
parent | 4b8a009013623827def90080c1408d2e0deeadc4 (diff) | |
download | openembedded-core-3206bb360094335117b45a30913ca90e727e7137.tar.gz openembedded-core-3206bb360094335117b45a30913ca90e727e7137.tar.bz2 openembedded-core-3206bb360094335117b45a30913ca90e727e7137.zip |
bump up version to 0.4; add missing RDEPENDS and DEPENDS and post install script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1117 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/exmap-console/exmap-console.bb | 2 | ||||
-rw-r--r-- | meta/packages/exmap-console/exmap-console.inc | 32 | ||||
-rw-r--r-- | meta/packages/exmap-console/exmap-console_svn.bb | 27 |
3 files changed, 47 insertions, 14 deletions
diff --git a/meta/packages/exmap-console/exmap-console.bb b/meta/packages/exmap-console/exmap-console.bb index 9c6d62adb7..a872dee337 100644 --- a/meta/packages/exmap-console/exmap-console.bb +++ b/meta/packages/exmap-console/exmap-console.bb @@ -1,4 +1,4 @@ -PV="0.3.1" +PV="0.4" require exmap-console.inc
\ No newline at end of file diff --git a/meta/packages/exmap-console/exmap-console.inc b/meta/packages/exmap-console/exmap-console.inc index 37f2268588..799b6da565 100644 --- a/meta/packages/exmap-console/exmap-console.inc +++ b/meta/packages/exmap-console/exmap-console.inc @@ -3,14 +3,30 @@ HOMEPAGE = "http://www.o-hand.com" SECTION = "devel" LICENSE = "GPL" -SRCDATE="20061111" - SRC_URI = \ "http://projects.o-hand.com/sources/exmap-console/exmap-console-${PV}.tgz" inherit module-base inherit autotools +MYPV := "${PV}" + +PACKAGES += "exmap-server kernel-module-exmap" + +FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd" +PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}" +RDEPENDS_exmap-console += "kernel-module-exmap" + +FILES_exmap-server = "${bindir}/exmapserver" +PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}" +RDEPENDS_exmap-server += "kernel-module-exmap" + +FILES_kernel-module-exmap = "${base_libdir}" +PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}" +PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}" +RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})" +DEPENDS_kernel-module-exmap += "virtual/kernel" + S = "${WORKDIR}/exmap-console-${PV}" export MODULE_PATH="${D}${base_libdir}/modules/${KERNEL_VERSION}" @@ -28,4 +44,14 @@ do_compile() { ${MAKE_TARGETS} } -FILES_${PN}="${sbindir} ${base_libdir}" +pkg_postinst_append_kernel-module-exmap () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -a + update-modules || true +} + +pkg_postrm_append_kernel-module-exmap () { + update-modules || true +} diff --git a/meta/packages/exmap-console/exmap-console_svn.bb b/meta/packages/exmap-console/exmap-console_svn.bb index a85b6484c8..9e93847e6d 100644 --- a/meta/packages/exmap-console/exmap-console_svn.bb +++ b/meta/packages/exmap-console/exmap-console_svn.bb @@ -2,16 +2,10 @@ DESCRIPTION = "console-based exmap" HOMEPAGE = "http://www.o-hand.com" SECTION = "devel" LICENSE = "GPL" -PR = "r9" -SRCDATE=20070105 - -# HACK -- I want the kernel module version label to include both the -# exmap pacakge version and the kernel version, but it is not possible -# to use ${PV} in the definition of PV_kernel-module-exmap (complains -# about recursion, hence $MYPV +PR = "r10" PV = "0.4+svn${SRCDATE}" -MYPV = "0.4+svn${SRCDATE}" +MYPV := "${PV}" SRC_URI = \ "svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http" @@ -23,15 +17,17 @@ PACKAGES += "exmap-server kernel-module-exmap" FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd" PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}" -RDEPENDS_exmap-console = "kernel-module-exmap" +RDEPENDS_exmap-console += "kernel-module-exmap" FILES_exmap-server = "${bindir}/exmapserver" PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}" -RDEPENDS_exmap-server = "kernel-module-exmap" +RDEPENDS_exmap-server += "kernel-module-exmap" FILES_kernel-module-exmap = "${base_libdir}" PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}" PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}" +RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})" +DEPENDS_kernel-module-exmap += "virtual/kernel" S = "${WORKDIR}/exmap-console" @@ -50,3 +46,14 @@ do_compile() { ${MAKE_TARGETS} } +pkg_postinst_append_kernel-module-exmap () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -a + update-modules || true +} + +pkg_postrm_append_kernel-module-exmap () { + update-modules || true +} |