opendreambox-archive-keyring: update to krogoth key
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-common.inc
1 SUMMARY = "Framebuffer-based digital media application"
2 LICENSE = "Proprietary"
3
4 SYSTEMD_SERVICE_${PN} = "enigma2.service"
5
6 inherit systemd
7
8 # Qt won't start without this fonts directory.
9 do_install_append() {
10     install -d ${D}${libdir}/fonts
11 }
12
13 PACKAGES += "${PN}-meta"
14
15 RDEPENDS_${PN} += " \
16         e2fsprogs-e2fsck \
17         e2fsprogs-mke2fs \
18         enigma2-autofs \
19         hdparm \
20         libpagecache \
21         python-codecs \
22         python-core \
23         python-crypt \
24         python-ctypes \
25         python-fcntl \
26         python-lang \
27         python-netaddr \
28         python-netclient \
29         python-netserver \
30         python-pickle \
31         python-re \
32         python-shell \
33         python-twisted-core \
34         python-twisted-web \
35         python-xml \
36         python-zopeinterface \
37         sdparm \
38         util-linux-blkid \
39         util-linux-sfdisk \
40 "
41 RDEPENDS_${PN}_append_libc-glibc = " \
42         glibc-gconv-iso8859-15 \
43 "
44
45 FILES_${PN} += "${datadir}/fonts ${datadir}/keymaps ${libdir}/fonts ${libdir}/libopen.so"
46 FILES_${PN}-dev = "${includedir} ${libdir}/*.la ${libdir}/pkgconfig"
47 FILES_${PN}-meta = "${datadir}/meta"
48
49 require enigma2-core-plugins.inc
50
51 # Override systemd_postinst from systemd.bbclass to replace 'restart' with 'start'.
52 systemd_postinst() {
53 OPTS=""
54 if [ -n "$D" ]; then
55     OPTS="--root=$D"
56 fi
57 if type systemctl >/dev/null 2>/dev/null; then
58     systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
59     if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
60         systemctl start ${SYSTEMD_SERVICE}
61     fi
62 fi
63 }