|
| 1 | +# Copyright (C) 2014 Unknow User <unknow@user.org> |
| 2 | +# Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | + |
| 4 | +DESCRIPTION = "Variod Daemon for Openvario" |
| 5 | +HOMEPAGE = "www.openvario.org" |
| 6 | +LICENSE = "GPL-3.0" |
| 7 | +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=c79ff39f19dfec6d293b95dea7b07891" |
| 8 | +SECTION = "base/app" |
| 9 | +PR = "r0" |
| 10 | + |
| 11 | +S = "${WORKDIR}/git" |
| 12 | + |
| 13 | +INSANE_SKIP_${PN} += "ldflags" |
| 14 | + |
| 15 | +inherit systemd |
| 16 | + |
| 17 | +DEPENDS = " \ |
| 18 | + pulseaudio \ |
| 19 | + libgcc \ |
| 20 | + " |
| 21 | + |
| 22 | +SRC_URI = "git://github.com/Openvario/variod.git;protocol=git;tag=${PV} \ |
| 23 | + file://variod.service \ |
| 24 | + file://variod.cfgmgr \ |
| 25 | +" |
| 26 | + |
| 27 | +do_compile() { |
| 28 | + echo "Making .." |
| 29 | + echo '${WORKDIR}' |
| 30 | + cd ${WORKDIR}/git |
| 31 | + make clean |
| 32 | + make |
| 33 | +} |
| 34 | + |
| 35 | +do_install() { |
| 36 | + install -d ${D}/opt/bin |
| 37 | + install -d ${D}/opt/conf/default |
| 38 | + install -d ${D}/opt/conf |
| 39 | + install -m 0755 ${S}/variod ${D}/opt/bin |
| 40 | + install -m 0755 ${S}/variod.conf ${D}/opt/conf/default |
| 41 | + install -m 0755 ${S}/variod.conf ${D}/opt/conf |
| 42 | + |
| 43 | + install -d ${D}/etc/cfgmgr.d |
| 44 | + install -m 0755 ${WORKDIR}/variod.cfgmgr ${D}/etc/cfgmgr.d/variod.cfgmgr |
| 45 | + |
| 46 | + install -d ${D}${systemd_unitdir}/system |
| 47 | + install -m 0644 ${WORKDIR}/variod.service ${D}${systemd_unitdir}/system |
| 48 | +} |
| 49 | + |
| 50 | +PACKAGES = "${PN}" |
| 51 | +INHIBIT_PACKAGE_DEBUG_SPLIT = '1' |
| 52 | +FILES_${PN} = "/opt/bin/variod \ |
| 53 | + /opt/conf/default/variod.conf \ |
| 54 | + /opt/conf/variod.conf \ |
| 55 | + /etc/cfgmgr.d/variod.cfgmgr \ |
| 56 | + ${systemd_unitdir}/system/variod.service \ |
| 57 | +" |
| 58 | + |
| 59 | +SYSTEMD_PACKAGES = "${PN}" |
| 60 | +SYSTEMD_SERVICE_${PN} = "variod.service" |
0 commit comments