Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [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 | |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
| 17 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid |
| 18 | # configure.ac:30: error: required file './ABOUT-NLS' not found |
| 19 | EXTRA_AUTORECONF = "" |
| 20 | |
| 21 | do_install_append(){ |
| 22 | install -d ${D}${sysconfdir} |
| 23 | install -m 0755 minidlna.conf ${D}${sysconfdir} |
| 24 | |
| 25 | # Systemd script |
| 26 | install -d ${D}${nonarch_base_libdir}/systemd/system |
| 27 | install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system |
| 28 | |
| 29 | # Sysvinit script |
| 30 | install -d ${D}${sysconfdir}/init.d |
| 31 | install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna |
| 32 | |
| 33 | } |
| 34 | |
| 35 | SYSTEMD_SERVICE_${PN} = "minidlna.service" |
| 36 | |
| 37 | INITSCRIPT_NAME = "minidlna" |
| 38 | INITSCRIPT_PARAMS = "defaults 90" |
| 39 | |