1 DESCRIPTION = "LCDproc is a client/Server suite to drive all kinds of LCD (-like) devices."
2 DESCRIPTION_append_lcdproc = " The client shipped with this package can be used to acquire various kinds of system stats."
3 DESCRIPTION_append_lcdd = " This package contains the LCDd server."
4 HOMEPAGE = "http://lcdproc.org"
9 DEPENDS = "${@((bb.data.getVar('LCDPROC_DRIVERS',d) or 'curses,text').find('curses') != -1) and 'ncurses' or ''}"
10 RRECOMMENDS_lcdproc = "lcdd"
12 SRCDATE = "${@bb.data.getVar('FILE', d, 1).split('cvs')[-1].split('.')[0]}"
13 SRC_URI = "cvs://anonymous@lcdproc.cvs.sourceforge.net/cvsroot/lcdproc;module=lcdproc"
14 S = "${WORKDIR}/lcdproc"
16 inherit autotools update-rc.d
20 CONFFILES_lcdd = "${sysconfdir}/LCDd.conf"
21 CONFFILES_lcdproc = "${sysconfdir}/lcdproc.conf"
23 FILES_lcdd = "${CONFFILES_lcdd} \
25 ${sysconfdir}/init.d/lcdd \
27 FILES_lcdproc = "${CONFFILES_lcdproc} \
29 ${sysconfdir}/init.d/lcdproc"
31 INITSCRIPT_PACKAGES = "lcdd lcdproc"
32 INITSCRIPT_NAME_lcdd = "lcdd"
33 INITSCRIPT_NAME_lcdproc = "lcdproc"
34 INITSCRIPT_PARAMS_lcdd = "defaults 70 21"
35 INITSCRIPT_PARAMS_lcdproc = "defaults 71 20"
37 EXTRA_OECONF = "${@'--enable-drivers=' + (bb.data.getVar('LCDPROC_DRIVERS',d) or 'curses,text')}"
41 install -D -m 0755 server/LCDd ${D}${sbindir}/LCDd
42 install -D -m 0755 clients/lcdproc/lcdproc ${D}${bindir}/lcdproc
45 install -d ${D}${sysconfdir}/init.d
46 # so far, not fixed :-( and now even uglier :-((
47 cat scripts/init-LCDd.debian | sed -e s'/--oknodo//' -e 's/ -s -f / -s 1 -f 1 /' -e 's/force-reload/force-restart/' -e 's/sleep 1/sleep 4/' > ${D}${sysconfdir}/init.d/lcdd
48 chmod 0755 ${D}${sysconfdir}/init.d/lcdd
49 # prevent lcdproc from starting if no SCREENS are set.
50 # will be fixed in next upstream release
51 cat scripts/init-lcdproc.debian | sed -e 's/C X//' | sed -e 's/case/[ -n "$SCREENS" ] || exit 0\n\ncase/' | sed -e s'/--oknodo//' > ${D}${sysconfdir}/init.d/lcdproc
52 chmod 0755 ${D}${sysconfdir}/init.d/lcdproc
55 install -D -m 0644 LCDd.conf ${D}${sysconfdir}/LCDd.conf
56 # don't start lcdproc by default
57 # will be fixed in next upstream release
58 cat scripts/lcdproc.conf | sed -e 's/C X//' > ${D}${sysconfdir}/lcdproc.conf
59 chmod 0644 ${D}${sysconfdir}/lcdproc.conf
61 # driver library files
62 install -d ${D}${libdir}/lcdproc
63 for i in server/drivers/*.so; do
64 install -m 0644 $i ${D}${libdir}/lcdproc/