a330bf897b872bed358f0bf657e5ff3617c2b05c
[vuplus_openembedded] / mythfront / mythfront-config.oe
1 PV = "1.5"
2
3 DEPENDS = "xfonts-xorg"
4 RDEPENDS_${PN} = "xfonts-xorg"
5
6 SRC_URI = "file://tftp.sh file://xorg.conf"
7
8 SRC_URI_append_epia = " file://serial.sh"
9
10 do_install() {
11         install -d ${D}/etc/udhcpc.d/
12         install ${WORKDIR}/tftp.sh ${D}/etc/udhcpc.d/80tftp
13
14         install -d ${D}/etc/mythtv
15         ln -sf /var/lib/config/mysql.txt ${D}/etc/mythtv
16
17         install -d ${D}/etc/X11
18         install -m 0644 ${WORKDIR}/xorg.conf ${D}/etc/X11
19
20         ln -sf /var/lib/config/lircd.conf ${D}/etc/lircd.conf
21
22         # ewwww
23         install -d ${D}/root/.mythtv
24         ln -sf /var/lib/config/lircrc ${D}/root/.mythtv/lircrc
25
26         install -d ${D}/dev
27         ln -sf lirc0 ${D}/dev/lirc
28
29         if [ -f ${WORKDIR}/serial.sh ]; then
30                 install ${WORKDIR}/serial.sh ${D}/etc/init.d/mythfront-serial
31                 ln -sf ../init.d/mythfront-serial ${D}/etc/rc2.d/S10mythfront-serial
32         fi
33 }
34