summaryrefslogtreecommitdiff
path: root/packages/mythfront/mythfront-config.bb
blob: cf89514a7180fcd338310fa13fc745f87ebf4edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PV = "1.7"

DEPENDS = "xfonts-xorg"
RDEPENDS_${PN} = "xfonts-xorg"
LICENSE = "MIT"
SRC_URI = "file://tftp.sh file://xorg.conf"

SRC_URI_append_epia = " file://serial.sh"

do_install() {
	install -d ${D}/etc/udhcpc.d/
	install ${WORKDIR}/tftp.sh ${D}/etc/udhcpc.d/80tftp

	install -d ${D}/etc/mythtv
	ln -sf /var/lib/config/mysql.txt ${D}/etc/mythtv

	install -d ${D}/etc/X11
	install -m 0644 ${WORKDIR}/xorg.conf ${D}/etc/X11

	ln -sf /var/lib/config/lircd.conf ${D}/etc/lircd.conf

	install -d ${D}/dev
	ln -sf lirc0 ${D}/dev/lirc

	if [ -f ${WORKDIR}/serial.sh ]; then
		install -d ${D}/etc/init.d
		install -d ${D}/etc/rc2.d
		install ${WORKDIR}/serial.sh ${D}/etc/init.d/mythfront-serial
		ln -sf ../init.d/mythfront-serial ${D}/etc/rc2.d/S10mythfront-serial
	fi
}