diff options
Diffstat (limited to 'meta/recipes-bsp/alsa-state/alsa-state.bb')
-rw-r--r-- | meta/recipes-bsp/alsa-state/alsa-state.bb | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/meta/recipes-bsp/alsa-state/alsa-state.bb b/meta/recipes-bsp/alsa-state/alsa-state.bb index cec2272c80..83384f2daf 100644 --- a/meta/recipes-bsp/alsa-state/alsa-state.bb +++ b/meta/recipes-bsp/alsa-state/alsa-state.bb | |||
@@ -8,10 +8,12 @@ SUMMARY = "Alsa scenario files to enable alsa state restoration" | |||
8 | HOMEPAGE = "http://www.alsa-project.org/" | 8 | HOMEPAGE = "http://www.alsa-project.org/" |
9 | DESCRIPTION = "Alsa Scenario Files - an init script and state files to restore \ | 9 | DESCRIPTION = "Alsa Scenario Files - an init script and state files to restore \ |
10 | sound state at system boot and save it at system shut down." | 10 | sound state at system boot and save it at system shut down." |
11 | LICENSE = "MIT" | 11 | LICENSE = "MIT & GPL-2.0-or-later" |
12 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 12 | LIC_FILES_CHKSUM = " \ |
13 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ | ||
14 | file://alsa-state-init;beginline=3;endline=4;md5=3ff7ecbf534d7d503941abe8e268ef50 \ | ||
15 | " | ||
13 | PV = "0.2.0" | 16 | PV = "0.2.0" |
14 | PR = "r5" | ||
15 | 17 | ||
16 | SRC_URI = "\ | 18 | SRC_URI = "\ |
17 | file://asound.conf \ | 19 | file://asound.conf \ |
@@ -36,28 +38,28 @@ INITSCRIPT_PARAMS = "start 39 S . stop 31 0 6 ." | |||
36 | do_install() { | 38 | do_install() { |
37 | # Only install the init script when 'sysvinit' is in DISTRO_FEATURES. | 39 | # Only install the init script when 'sysvinit' is in DISTRO_FEATURES. |
38 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 40 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
39 | sed -i -e "s:#STATEDIR#:${localstatedir}/lib/alsa:g" ${WORKDIR}/alsa-state-init | 41 | sed -i -e "s:#STATEDIR#:${localstatedir}/lib/alsa:g" ${S}/alsa-state-init |
40 | install -d ${D}${sysconfdir}/init.d | 42 | install -d ${D}${sysconfdir}/init.d |
41 | install -m 0755 ${WORKDIR}/alsa-state-init ${D}${sysconfdir}/init.d/alsa-state | 43 | install -m 0755 ${S}/alsa-state-init ${D}${sysconfdir}/init.d/alsa-state |
42 | fi | 44 | fi |
43 | 45 | ||
44 | install -d ${D}/${localstatedir}/lib/alsa | 46 | install -d ${D}/${localstatedir}/lib/alsa |
45 | install -d ${D}${sysconfdir} | 47 | install -d ${D}${sysconfdir} |
46 | install -m 0644 ${WORKDIR}/asound.conf ${D}${sysconfdir} | 48 | install -m 0644 ${S}/asound.conf ${D}${sysconfdir} |
47 | install -m 0644 ${WORKDIR}/*.state ${D}${localstatedir}/lib/alsa | 49 | install -m 0644 ${S}/*.state ${D}${localstatedir}/lib/alsa |
48 | } | 50 | } |
49 | 51 | ||
50 | PACKAGES += "alsa-states" | 52 | PACKAGES += "alsa-states" |
51 | 53 | ||
52 | RRECOMMENDS_alsa-state = "alsa-states" | 54 | RRECOMMENDS:alsa-state = "alsa-states" |
53 | 55 | ||
54 | RDEPENDS_${PN} = "alsa-utils-alsactl" | 56 | RDEPENDS:${PN} = "alsa-utils-alsactl" |
55 | FILES_${PN} = "${sysconfdir}/init.d ${sysconfdir}/asound.conf" | 57 | FILES:${PN} = "${sysconfdir}/init.d ${sysconfdir}/asound.conf" |
56 | CONFFILES_${PN} = "${sysconfdir}/asound.conf" | 58 | CONFFILES:${PN} = "${sysconfdir}/asound.conf" |
57 | 59 | ||
58 | FILES_alsa-states = "${localstatedir}/lib/alsa/*.state" | 60 | FILES:alsa-states = "${localstatedir}/lib/alsa/*.state" |
59 | 61 | ||
60 | pkg_postinst_${PN}() { | 62 | pkg_postinst:${PN}() { |
61 | if test -z "$D" | 63 | if test -z "$D" |
62 | then | 64 | then |
63 | if test -x ${sbindir}/alsactl | 65 | if test -x ${sbindir}/alsactl |