summaryrefslogtreecommitdiff
path: root/packages/lcdproc
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-31 22:40:07 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2004-12-31 22:40:07 +0000
commit00590e39668c11f13f315683c6a3435d768b1322 (patch)
treee09adcd896949a645ef97df84eb0071af24538c1 /packages/lcdproc
parent9c9c7139952b06112d99b5b11bfa3d36435a6459 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2004/12/31 14:38:06-08:00 (none)!ggilbert Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into olddog.(none):/home/ggilbert/oe/openembedded 2004/12/31 14:37:57-08:00 (none)!ggilbert Many files: More licenses 2004/12/31 21:40:58+00:00 nexus.co.uk!pb banish audiofile-config and other stuff from /usr/bin to separate packages 2004/12/31 21:38:39+00:00 nexus.co.uk!pb Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into stealth.nexus.co.uk:/home/pb/oe/oe 2004/12/31 21:38:10+00:00 nexus.co.uk!pb update glib-2.0 (and -native) to 2.6.0 BKrev: 41d5d547IMV0BSOCNaouK2zsnwHytg
Diffstat (limited to 'packages/lcdproc')
-rw-r--r--packages/lcdproc/lcdproc_0.4.5.bb51
1 files changed, 51 insertions, 0 deletions
diff --git a/packages/lcdproc/lcdproc_0.4.5.bb b/packages/lcdproc/lcdproc_0.4.5.bb
index e69de29bb2..6c170ecf3e 100644
--- a/packages/lcdproc/lcdproc_0.4.5.bb
+++ b/packages/lcdproc/lcdproc_0.4.5.bb
@@ -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 = "${@((bb.data.getVar('LCDPROC_DRIVERS',d) or 'curses,text').find('curses') != -1) and 'ncurses' or ''}"
+LICENSE ="GPL"
+SRC_URI = "${SOURCEFORGE_MIRROR}/lcdproc/lcdproc-${PV}.tar.gz"
+
+inherit autotools
+
+EXTRA_OECONF = "${@'--enable-drivers=' + (bb.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
+}