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