enigma2-streamproxy: bump version to 4.2.0
[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 SCHWERKRAFT_PROJECT = "streamproxy"
11
12 inherit autotools schwerkraft-git systemd xinetd
13
14 do_install_append() {
15         if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
16                 install -d ${D}${systemd_unitdir}/system
17                 ln -sf /dev/null ${D}${systemd_unitdir}/system/streamproxy.service
18                 install -m644 ${WORKDIR}/streamproxy@.service ${D}${systemd_unitdir}/system
19                 install -m644 ${WORKDIR}/streamproxy.socket ${D}${systemd_unitdir}/system
20         fi
21 }
22
23 SYSTEMD_SERVICE_${PN} = "streamproxy.socket"
24 XINETD_SERVICE_${PN} = "streamproxy"