summaryrefslogtreecommitdiffstats
path: root/meta/packages/exmap-console/exmap-console.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/exmap-console/exmap-console.inc')
-rw-r--r--meta/packages/exmap-console/exmap-console.inc32
1 files changed, 29 insertions, 3 deletions
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"
3SECTION = "devel" 3SECTION = "devel"
4LICENSE = "GPL" 4LICENSE = "GPL"
5 5
6SRCDATE="20061111"
7
8SRC_URI = \ 6SRC_URI = \
9 "http://projects.o-hand.com/sources/exmap-console/exmap-console-${PV}.tgz" 7 "http://projects.o-hand.com/sources/exmap-console/exmap-console-${PV}.tgz"
10 8
11inherit module-base 9inherit module-base
12inherit autotools 10inherit autotools
13 11
12MYPV := "${PV}"
13
14PACKAGES += "exmap-server kernel-module-exmap"
15
16FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd"
17PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}"
18RDEPENDS_exmap-console += "kernel-module-exmap"
19
20FILES_exmap-server = "${bindir}/exmapserver"
21PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}"
22RDEPENDS_exmap-server += "kernel-module-exmap"
23
24FILES_kernel-module-exmap = "${base_libdir}"
25PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}"
26PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}"
27RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})"
28DEPENDS_kernel-module-exmap += "virtual/kernel"
29
14S = "${WORKDIR}/exmap-console-${PV}" 30S = "${WORKDIR}/exmap-console-${PV}"
15 31
16export MODULE_PATH="${D}${base_libdir}/modules/${KERNEL_VERSION}" 32export MODULE_PATH="${D}${base_libdir}/modules/${KERNEL_VERSION}"
@@ -28,4 +44,14 @@ do_compile() {
28 ${MAKE_TARGETS} 44 ${MAKE_TARGETS}
29} 45}
30 46
31FILES_${PN}="${sbindir} ${base_libdir}" 47pkg_postinst_append_kernel-module-exmap () {
48 if [ -n "$D" ]; then
49 exit 1
50 fi
51 depmod -a
52 update-modules || true
53}
54
55pkg_postrm_append_kernel-module-exmap () {
56 update-modules || true
57}