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
This commit is contained in:
parent
4b8a009013
commit
3206bb3600
|
@ -1,4 +1,4 @@
|
|||
|
||||
PV="0.3.1"
|
||||
PV="0.4"
|
||||
|
||||
require 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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue