blob: 4959a3c8d70e47c211446b0b97141eaf8f48c9e3 [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."
Andrew Geisslerd5838332022-05-27 11:33:10 -05003LICENSE = "GPL-2.0-only|BSD-3-Clause"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004DEPENDS = "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 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050015 file://0001-configure-Check-for-clock_gettime-seprately-from-__N.patch \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000016 file://0001-configure.ac-drop-non-standard-checks.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017 "
18
19S = "${WORKDIR}/git"
20
21# This remove "--exclude=autopoint" option from autoreconf argument to avoid
22# configure.ac:30: error: required file './ABOUT-NLS' not found
23EXTRA_AUTORECONF = ""
24
Patrick Williams213cb262021-08-07 19:21:33 -050025do_install:append(){
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026 install -d ${D}${sysconfdir}
27 install -m 0755 minidlna.conf ${D}${sysconfdir}
28
29# Systemd script
30 install -d ${D}${nonarch_base_libdir}/systemd/system
31 install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system
32
33# Sysvinit script
34 install -d ${D}${sysconfdir}/init.d
35 install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna
36
37}
38
Patrick Williams213cb262021-08-07 19:21:33 -050039SYSTEMD_SERVICE:${PN} = "minidlna.service"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040
41INITSCRIPT_NAME = "minidlna"
42INITSCRIPT_PARAMS = "defaults 90"
43