summaryrefslogtreecommitdiff
path: root/packages/openmoko-apps/openmoko-terminal_svn.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openmoko-apps/openmoko-terminal_svn.bb')
-rw-r--r--packages/openmoko-apps/openmoko-terminal_svn.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/openmoko-apps/openmoko-terminal_svn.bb b/packages/openmoko-apps/openmoko-terminal_svn.bb
new file mode 100644
index 0000000000..85e8ea777f
--- /dev/null
+++ b/packages/openmoko-apps/openmoko-terminal_svn.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "The OpenMoko Command Line Console"
+SECTION = "openmoko/applications"
+RDEPENDS += "gtkterm2"
+PV = "1.0.0"
+PR = "r1"
+
+inherit openmoko
+
+SRC_URI = "file://openmoko-terminal.png \
+ file://openmoko-terminal.desktop \
+ file://gtkterm2rc"
+
+do_install() {
+ install -d ${D}${sysconfdir}/skel
+ install -d ${D}${datadir}/pixmaps
+ install -d ${D}${datadir}/applications
+ install -m 0644 ${WORKDIR}/openmoko-terminal.png ${D}${datadir}/pixmaps/
+ install -m 0644 ${WORKDIR}/openmoko-terminal.desktop ${D}${datadir}/applications/
+ install -m 0644 ${WORKDIR}/gtkterm2rc ${D}${sysconfdir}/skel/.gtkterm2rc
+}
+
+pkg_postinst_openmoko-terminal() {
+#!/bin/sh -e
+if [ "x$D" != "x" ]; then
+ exit 1 # don't run at image generation time
+else
+ if [ -e "$HOME/.gtkterm2rc" ]; then
+ echo "not overriding $HOME/.gtkterm2rc"
+ else
+ echo "installing $HOME/.gtkterm2rc from /etc/skel"
+ cp -f ${sysconfdir}/skel/.gtkterm2rc $HOME/
+ fi
+fi
+}