meta-opendreambox: use bb.utils.contains instead of the deprecated base_contains
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-streamproxy_4.2.0.bb
1 SUMMARY = "streamproxy manages streaming data to a PC using enigma2"
2 LICENSE = "GPLv2"
3 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
4 SRCREV = "${@opendreambox_srcrev('d9396c07f1ddfcbacec70350604fea0d3ccae821', d)}"
5
6 SRC_URI = "file://streamproxy.xinetd.in \
7            file://streamproxy@.service \
8            file://streamproxy.socket"
9
10 inherit autotools opendreambox-git systemd xinetd
11
12 do_install_append() {
13         if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
14                 install -d ${D}${systemd_unitdir}/system
15                 ln -sf /dev/null ${D}${systemd_unitdir}/system/streamproxy.service
16                 install -m644 ${WORKDIR}/streamproxy@.service ${D}${systemd_unitdir}/system
17                 install -m644 ${WORKDIR}/streamproxy.socket ${D}${systemd_unitdir}/system
18         fi
19 }
20
21 SYSTEMD_SERVICE_${PN} = "streamproxy.socket"
22 XINETD_SERVICE_${PN} = "streamproxy"