summaryrefslogtreecommitdiff
path: root/lcdproc
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2004-10-11 16:36:01 +0000
committerMatthias Hentges <oe@hentges.net>2004-10-11 16:36:01 +0000
commitbd068236207dee9373f5d559c88325de3446d53b (patch)
treebea490798b7aec80d96272f621898b8cb8c82efe /lcdproc
parent96379cf2ff7c66a2ab2f1e57e17c88b9860e5c75 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into mhcln01.hentges.local:/home/mhentges/OpenEmbedded/packages 2004/10/11 18:35:17+02:00 local!CoreDump The mother of all section fixes! Gives a SECTION entry to (almost) all packages which were missing it (and thus were having a section of *base*). I have placed all packages unknown to me into the *unknown* section (and yes, i *am* to lazy to look them up), please fix. BKrev: 416ab6716BWMm_ae6D2MValq-LDFzw
Diffstat (limited to 'lcdproc')
-rw-r--r--lcdproc/lcdproc_0.4.5.oe51
1 files changed, 51 insertions, 0 deletions
diff --git a/lcdproc/lcdproc_0.4.5.oe b/lcdproc/lcdproc_0.4.5.oe
index e69de29bb2..d8db0525f9 100644
--- a/lcdproc/lcdproc_0.4.5.oe
+++ b/lcdproc/lcdproc_0.4.5.oe
@@ -0,0 +1,51 @@
+SECTION = "base"
+DESCRIPTION = "LCDproc is a client/Server suite to drive all kinds of LCD (-like) devices. The client \
+shipped with this package can be used to acquire various kinds of system stats."
+HOMEPAGE = "http://lcdproc.org"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <reenoo@gmx.de>"
+DEPENDS = "${@((oe.data.getVar('LCDPROC_DRIVERS',d) or 'curses,text').find('curses') != -1) and 'ncurses' or ''}"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lcdproc/lcdproc-${PV}.tar.gz"
+
+inherit autotools
+
+EXTRA_OECONF = "${@'--enable-drivers=' + (oe.data.getVar('LCDPROC_DRIVERS',d) or 'curses,text')}"
+
+do_install () {
+ # binaries
+ install -D -m 0755 server/LCDd ${D}/${sbindir}/LCDd
+ install -D -m 0755 clients/lcdproc/lcdproc ${D}/${bindir}/lcdproc
+
+ # init scripts
+ install -D -m 0755 scripts/init-LCDd.debian ${D}/${sysconfdir}/init.d/lcdd
+ # prevent lcdproc from starting if no SCREENS are set.
+ # will be fixed in next upstream release
+ cat scripts/init-lcdproc.debian | sed -e 's/C X//' | sed -e 's/case/[ -n $SCREENS ] || exit 0
+
+case/' > ${D}/${sysconfdir}/init.d/lcdproc
+ chmod 0755 ${D}/${sysconfdir}/init.d/lcdproc
+
+ # configuration files
+ install -D -m 0644 LCDd.conf ${D}/${sysconfdir}/LCDd.conf
+ # don't start lcdproc by default
+ # will be fixed in next upstream release
+ cat scripts/lcdproc.conf | sed -e 's/C X//' > ${D}/${sysconfdir}/lcdproc.conf
+ chmod 0644 ${D}/${sysconfdir}/lcdproc.conf
+}
+
+pkg_postinst () {
+ if test -n "${D}"; then
+ D="-r $D"
+ fi
+ update-rc.d $D lcdd defaults 70 21
+ update-rc.d $D lcdproc defaults 71 20
+}
+
+pkg_prerm () {
+ if test -n "${D}"; then
+ D="-r $D"
+ fi
+ update-rc.d $D lcdproc remove
+ update-rc.d $D lcdd remove
+}