blob: 187ff536aa54dad275251db4479add3128b543ec [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001DESCRIPTION = "MiniDLNA (aka ReadyDLNA) is server software with the aim of \
2being fully compliant with DLNA/UPnP-AV clients."
3LICENSE = "GPL-2.0|BSD"
4DEPENDS = "ffmpeg flac libav jpeg sqlite3 libexif libogg libid3tag libvorbis"
5
6# because it depends on libav which has commercial flag
7LICENSE_FLAGS = "commercial"
8
9inherit gettext autotools-brokensep update-rc.d systemd
10
11SRC_URI = "git://git.code.sf.net/p/minidlna/git;branch=master;module=git \
12 file://minidlna-daemon.init.d \
13 file://minidlna.service \
14 file://0001-Update-Gettext-version.patch \
15 "
16
17S = "${WORKDIR}/git"
18
19# This remove "--exclude=autopoint" option from autoreconf argument to avoid
20# configure.ac:30: error: required file './ABOUT-NLS' not found
21EXTRA_AUTORECONF = ""
22
23do_install_append(){
24 install -d ${D}${sysconfdir}
25 install -m 0755 minidlna.conf ${D}${sysconfdir}
26
27# Systemd script
28 install -d ${D}${nonarch_base_libdir}/systemd/system
29 install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system
30
31# Sysvinit script
32 install -d ${D}${sysconfdir}/init.d
33 install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna
34
35}
36
37SYSTEMD_SERVICE_${PN} = "minidlna.service"
38
39INITSCRIPT_NAME = "minidlna"
40INITSCRIPT_PARAMS = "defaults 90"
41