c6b658ff4ed2a173ff49be55e3038b5cb20b58de
[vuplus_openembedded] / mythfront / mythfront-config.oe
1 PV = "1.7"
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         install -d ${D}/dev
23         ln -sf lirc0 ${D}/dev/lirc
24
25         if [ -f ${WORKDIR}/serial.sh ]; then
26                 install -d ${D}/etc/init.d
27                 install -d ${D}/etc/rc2.d
28                 install ${WORKDIR}/serial.sh ${D}/etc/init.d/mythfront-serial
29                 ln -sf ../init.d/mythfront-serial ${D}/etc/rc2.d/S10mythfront-serial
30         fi
31 }
32