media-tv/kodi: fork official ebuild to support standalone mode (without X) and odroid-c1/c1+

This commit is contained in:
nemunaire 2017-11-21 07:53:53 +01:00
commit 66adeddb1e
9 changed files with 934 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/sbin/openrc-run
# Distributed under the terms of the GNU General Public License v2
description="Start and stop Kodi"
depend() {
need net
need localmount
need local
}
start() {
ebegin "Starting kodi"
if [ -z "${KODI_USER}" ]; then
eend "No user defined in /etc/conf.d/kodi"
fi
start-stop-daemon --start --background --make-pidfile --pidfile /var/run/kodi.pid -u "${KODI_USER}" --exec /usr/lib/kodi/kodi.bin -- --standalone ${KODI_OPTS}
eend $?
}
stop() {
ebegin "Stopping kodi"
start-stop-daemon --stop --pidfile /var/run/kodi.pid
eend $?
}