diff options
Diffstat (limited to 'meta/packages/exmap-console/exmap-console_svn.bb')
-rw-r--r-- | meta/packages/exmap-console/exmap-console_svn.bb | 27 |
1 files changed, 17 insertions, 10 deletions
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" | |||
2 | HOMEPAGE = "http://www.o-hand.com" | 2 | HOMEPAGE = "http://www.o-hand.com" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "GPL" | 4 | LICENSE = "GPL" |
5 | PR = "r9" | 5 | PR = "r10" |
6 | SRCDATE=20070105 | ||
7 | |||
8 | # HACK -- I want the kernel module version label to include both the | ||
9 | # exmap pacakge version and the kernel version, but it is not possible | ||
10 | # to use ${PV} in the definition of PV_kernel-module-exmap (complains | ||
11 | # about recursion, hence $MYPV | ||
12 | 6 | ||
13 | PV = "0.4+svn${SRCDATE}" | 7 | PV = "0.4+svn${SRCDATE}" |
14 | MYPV = "0.4+svn${SRCDATE}" | 8 | MYPV := "${PV}" |
15 | 9 | ||
16 | SRC_URI = \ | 10 | SRC_URI = \ |
17 | "svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http" | 11 | "svn://svn.o-hand.com/repos/misc/trunk;module=exmap-console;proto=http" |
@@ -23,15 +17,17 @@ PACKAGES += "exmap-server kernel-module-exmap" | |||
23 | 17 | ||
24 | FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd" | 18 | FILES_${PN}= "${bindir}/exmap ${bindir}/exmapd" |
25 | PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}" | 19 | PACKAGE_ARCH_exmap-console = "${TARGET_ARCH}" |
26 | RDEPENDS_exmap-console = "kernel-module-exmap" | 20 | RDEPENDS_exmap-console += "kernel-module-exmap" |
27 | 21 | ||
28 | FILES_exmap-server = "${bindir}/exmapserver" | 22 | FILES_exmap-server = "${bindir}/exmapserver" |
29 | PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}" | 23 | PACKAGE_ARCH_exmap-server = "${TARGET_ARCH}" |
30 | RDEPENDS_exmap-server = "kernel-module-exmap" | 24 | RDEPENDS_exmap-server += "kernel-module-exmap" |
31 | 25 | ||
32 | FILES_kernel-module-exmap = "${base_libdir}" | 26 | FILES_kernel-module-exmap = "${base_libdir}" |
33 | PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH_kernel-module-exmap = "${MACHINE_ARCH}" |
34 | PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}" | 28 | PV_kernel-module-exmap = "${MYPV}-${KERNEL_VERSION}" |
29 | RDEPENDS_kernel-module-exmap += "kernel (${KERNEL_VERSION})" | ||
30 | DEPENDS_kernel-module-exmap += "virtual/kernel" | ||
35 | 31 | ||
36 | S = "${WORKDIR}/exmap-console" | 32 | S = "${WORKDIR}/exmap-console" |
37 | 33 | ||
@@ -50,3 +46,14 @@ do_compile() { | |||
50 | ${MAKE_TARGETS} | 46 | ${MAKE_TARGETS} |
51 | } | 47 | } |
52 | 48 | ||
49 | pkg_postinst_append_kernel-module-exmap () { | ||
50 | if [ -n "$D" ]; then | ||
51 | exit 1 | ||
52 | fi | ||
53 | depmod -a | ||
54 | update-modules || true | ||
55 | } | ||
56 | |||
57 | pkg_postrm_append_kernel-module-exmap () { | ||
58 | update-modules || true | ||
59 | } | ||