Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | DESCRIPTION = "MiniDLNA (aka ReadyDLNA) is server software with the aim of \ |
| 2 | being fully compliant with DLNA/UPnP-AV clients." |
| 3 | LICENSE = "GPL-2.0|BSD" |
| 4 | DEPENDS = "ffmpeg flac libav jpeg sqlite3 libexif libogg libid3tag libvorbis" |
| 5 | |
| 6 | # because it depends on libav which has commercial flag |
| 7 | LICENSE_FLAGS = "commercial" |
| 8 | |
| 9 | inherit gettext autotools-brokensep update-rc.d systemd |
| 10 | |
| 11 | SRC_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 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | file://0001-configure-Check-for-clock_gettime-seprately-from-__N.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | " |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid |
| 21 | # configure.ac:30: error: required file './ABOUT-NLS' not found |
| 22 | EXTRA_AUTORECONF = "" |
| 23 | |
| 24 | do_install_append(){ |
| 25 | install -d ${D}${sysconfdir} |
| 26 | install -m 0755 minidlna.conf ${D}${sysconfdir} |
| 27 | |
| 28 | # Systemd script |
| 29 | install -d ${D}${nonarch_base_libdir}/systemd/system |
| 30 | install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system |
| 31 | |
| 32 | # Sysvinit script |
| 33 | install -d ${D}${sysconfdir}/init.d |
| 34 | install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna |
| 35 | |
| 36 | } |
| 37 | |
| 38 | SYSTEMD_SERVICE_${PN} = "minidlna.service" |
| 39 | |
| 40 | INITSCRIPT_NAME = "minidlna" |
| 41 | INITSCRIPT_PARAMS = "defaults 90" |
| 42 | |