summaryrefslogtreecommitdiff
path: root/recipes/mythfront/mythfront-config.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mythfront/mythfront-config.bb')
-rw-r--r--recipes/mythfront/mythfront-config.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/mythfront/mythfront-config.bb b/recipes/mythfront/mythfront-config.bb
new file mode 100644
index 0000000000..b87e0be8ad
--- /dev/null
+++ b/recipes/mythfront/mythfront-config.bb
@@ -0,0 +1,32 @@
+PV = "1.10"
+PR = "r0"
+
+RDEPENDS_${PN} = "font-misc-misc"
+LICENSE = "MIT"
+SRC_URI = "file://tftp.sh file://xorg.conf"
+
+SRC_URI_append_epia = " file://serial.sh"
+
+do_install() {
+ install -d ${D}${sysconfdir}/udhcpc.d/
+ install ${WORKDIR}/tftp.sh ${D}${sysconfdir}/udhcpc.d/80tftp
+
+ install -d ${D}${sysconfdir}/mythtv
+ ln -sf /var/lib/config/mysql.txt ${D}${sysconfdir}/mythtv
+
+ install -d ${D}${sysconfdir}/X11
+ install -m 0644 ${WORKDIR}/xorg.conf ${D}${sysconfdir}/X11
+
+ ln -sf /var/lib/config/lircd.conf ${D}${sysconfdir}/lircd.conf
+
+ install -d ${D}/dev
+ ln -sf lirc0 ${D}/dev/lirc
+
+ if [ -f ${WORKDIR}/serial.sh ]; then
+ install -d ${D}${sysconfdir}/init.d
+ install -d ${D}${sysconfdir}/rc2.d
+ install ${WORKDIR}/serial.sh ${D}${sysconfdir}/init.d/mythfront-serial
+ ln -sf ../init.d/mythfront-serial ${D}${sysconfdir}/rc2.d/S10mythfront-serial
+ fi
+}
+