e4205f62fc80249798aeadb89ed6bf49ee41f3f6
[vuplus_openembedded] / slutils / slutils_0.1.0.oe
1 DESCRIPTION = "Console utilities for certain hardware aspects of the SL-C7x0 based Zaurii"
2 SECTION = "base"
3 PRIORITY = "optional"
4 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
5 LICENSE = "GPL"
6 PR = "r1"
7
8 inherit qmake update-rc.d
9
10 SRC_URI = "file://sltime.sh"
11
12 INITSCRIPT_NAME = "sltime"
13 INITSCRIPT_PARAMS = "defaults 5"
14
15 export UTILS = "sltime"
16
17 do_fetch() {
18         for u in ${UTILS}
19         do
20                 install -d ${S}/$u
21                 cp -dfR `ls -dp ${FILESDIR}/$u/*|grep -v SCCS` ${S}/$u/
22         done
23 }
24
25 do_configure_prepend() {
26         cd ${S}/
27         echo -e "TEMPLATE=subdirs\nSUBDIRS=${UTILS}\n" >slutils.pro
28 }
29
30 do_install() {
31         install -d ${D}/${sbindir}
32         for u in ${UTILS}
33         do
34                 install -m 0755 ${S}/${u}/${u} ${D}/${sbindir}/
35         done
36         install -d ${D}/${sysconfdir}/init.d/
37         install -m 0755 ${WORKDIR}/sltime.sh ${D}/${sysconfdir}/init.d/sltime
38 }