summaryrefslogtreecommitdiff
path: root/packages/openmoko-apps/openmoko-terminal_svn.bb
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-07-04 10:55:06 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-07-04 10:55:06 +0000
commit74814cb9ac99052110fc47bcb52716e0b7239347 (patch)
treea4660aa613434925301e61fa3f21a9e1566cc000 /packages/openmoko-apps/openmoko-terminal_svn.bb
parentdbcb36d8e4e156f4ec64444077b776bcd69f2259 (diff)
add openmoko-terminal
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..9238bbd1eb
--- /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+svn${SRCDATE}"
+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
+}