meta-bsp: stop using PR
[opendreambox.git] / meta-bsp / common / recipes / dreambox / dreambox-bootlogo.inc
1 SUMMARY = "Bootlogo support"
2 SECTION = "base"
3 LICENSE = "CLOSED"
4 PRIORITY = "required"
5
6 # Use precompiled binaries from the previous opendreambox release.
7 PRECOMPILED_URI = "http://dreamboxupdate.com/download/${DISTRO}/2.0.0/${PN}/${PN}_${PV}_${PACKAGE_ARCH}.tar.bz2;name=${PACKAGE_ARCH}"
8
9 inherit opendreambox-precompiled-binary opendreambox-sysvinit
10
11 do_install() {
12         install -d ${D}/boot ${D}${datadir}/${PN}
13         install -m 0755 bootlogo-${MACHINE}.elf.gz ${D}/boot
14         install -m 0644 bootlogo-${MACHINE}.jpg ${D}/boot
15         for file in *.mvi; do
16                 install -m 0644 $file ${D}${datadir}/${PN}
17                 ln -s ${PN}/$file ${D}${datadir}
18         done
19 }
20
21 PACKAGES += "${PN}-data"
22
23 PACKAGE_ARCH := "${MACHINE_ARCH}"
24
25 RDEPENDS_${PN} = "${PN}-data"
26
27 FILES_${PN} = "/boot/bootlogo-${MACHINE}.elf.gz"
28 FILES_${PN}-data = "/boot/bootlogo-${MACHINE}.jpg ${datadir} ${sysconfdir}"
29
30 pkg_preinst_${PN}() {
31         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
32 }
33 pkg_prerm_${PN}() {
34         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
35 }
36 pkg_postinst_${PN}() {
37         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
38 }
39 pkg_postrm_${PN}() {
40         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
41 }
42
43 pkg_preinst_${PN}-data() {
44         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
45 }
46 pkg_prerm_${PN}-data() {
47         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
48 }
49 pkg_postinst_${PN}-data() {
50         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
51 }
52 pkg_postrm_${PN}-data() {
53         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
54 }
55
56 INITSCRIPT_PARAMS = "start 3 S . stop 89 0 ."