added my Recipes
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
DESCRIPTION = "MiniDLNA (aka ReadyDLNA) is server software with the aim of \
|
||||
being fully compliant with DLNA/UPnP-AV clients."
|
||||
LICENSE = "GPL-2.0-only|BSD-3-Clause"
|
||||
DEPENDS = "ffmpeg flac libav jpeg sqlite3 libexif libogg libid3tag libvorbis"
|
||||
|
||||
# because it depends on libav which has commercial flag
|
||||
LICENSE_FLAGS = "commercial"
|
||||
|
||||
inherit gettext autotools-brokensep update-rc.d systemd
|
||||
|
||||
SRC_URI = "git://git.code.sf.net/p/minidlna/git;branch=master;module=git \
|
||||
file://minidlna-daemon.init.d \
|
||||
file://minidlna.service \
|
||||
file://0001-Update-Gettext-version.patch \
|
||||
file://0001-configure-Check-for-clock_gettime-seprately-from-__N.patch \
|
||||
file://0001-configure.ac-drop-non-standard-checks.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# This remove "--exclude=autopoint" option from autoreconf argument to avoid
|
||||
# configure.ac:30: error: required file './ABOUT-NLS' not found
|
||||
EXTRA_AUTORECONF = ""
|
||||
|
||||
do_install:append(){
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0755 minidlna.conf ${D}${sysconfdir}
|
||||
|
||||
# Systemd script
|
||||
install -d ${D}${nonarch_base_libdir}/systemd/system
|
||||
install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system
|
||||
|
||||
# Sysvinit script
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna
|
||||
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "minidlna.service"
|
||||
|
||||
INITSCRIPT_NAME = "minidlna"
|
||||
INITSCRIPT_PARAMS = "defaults 90"
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From a4290bf1887f9203288858ca76bdd20b2edf337a Mon Sep 17 00:00:00 2001
|
||||
From: Baptiste Durand <baptiste.durand@gmail.com>
|
||||
Date: Sun, 9 Sep 2018 20:50:41 +0200
|
||||
Subject: [PATCH] Update Gettext version
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
|
||||
Signed-off-by: Baptiste Durand <baptiste.durand@gmail.com>
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -14,7 +14,7 @@
|
||||
# License along with MiniDLNA; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA.
|
||||
-AC_INIT(MiniDLNA,1.1.3,,minidlna)
|
||||
+AC_INIT(MiniDLNA,1.2.1,,minidlna)
|
||||
#LT_INIT
|
||||
|
||||
AC_CANONICAL_TARGET
|
||||
@@ -28,7 +28,7 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC
|
||||
|
||||
AM_ICONV
|
||||
AM_GNU_GETTEXT([external])
|
||||
-AM_GNU_GETTEXT_VERSION(0.18)
|
||||
+AM_GNU_GETTEXT_VERSION(0.20)
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_AWK
|
||||
@@ -0,0 +1,31 @@
|
||||
From 93e7e25a10c890b8c8cd06cbfd78175c30999d31 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 9 Mar 2020 09:44:33 -0700
|
||||
Subject: [PATCH] configure: Check for clock_gettime seprately from
|
||||
__NR_clock_gettime
|
||||
|
||||
This helps prioritize using clock_gettime API from libc over syscall
|
||||
since direct use of __NR_clock_gettime is not time64-safe
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
configure.ac | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 3d218ea..aa7dd1c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -127,6 +127,10 @@ case $host in
|
||||
esac
|
||||
|
||||
AC_CHECK_HEADERS(syscall.h sys/syscall.h mach/mach_time.h)
|
||||
+
|
||||
+AC_MSG_CHECKING([for clock_gettime])
|
||||
+AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [use clock_gettime])],)
|
||||
+
|
||||
AC_MSG_CHECKING([for __NR_clock_gettime syscall])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
@@ -0,0 +1,37 @@
|
||||
From 83425344b2d7339e8f5b0ad230c51278d330d613 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Sat, 22 Jan 2022 11:41:50 +0100
|
||||
Subject: [PATCH] configure.ac: drop non-standard checks
|
||||
|
||||
Not sure what upstream is trying to do here but it does not work
|
||||
with the latest autoconf.
|
||||
|
||||
Upstream-Status: Inactive-Upstream
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
configure.ac | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index aa7dd1c..858db52 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -418,7 +418,6 @@ for dir in "" /usr/local $SEARCH_DIR; do
|
||||
AC_CHECK_LIB([id3tag -lz], [id3_file_open], [LIBID3TAG_LIBS="-lid3tag -lz"], [unset ac_cv_lib_id3tag_id3_file_open; LDFLAGS="$LDFLAGS_SAVE"; continue])
|
||||
break
|
||||
done
|
||||
-test x"$ac_cv_lib_id3tag__lz___id3_file_open" = x"yes" || AC_MSG_ERROR([Could not find libid3tag])
|
||||
AC_SUBST(LIBID3TAG_LIBS)
|
||||
|
||||
LDFLAGS_SAVE="$LDFLAGS"
|
||||
@@ -444,10 +443,6 @@ for dir in "" /usr/local $SEARCH_DIR; do
|
||||
[unset ac_cv_lib_avformat_av_open_input_file; unset ac_cv_lib_avformat_avformat_open_input; LDFLAGS="$LDFLAGS_SAVE"; continue])])
|
||||
break
|
||||
done
|
||||
-if test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___av_open_input_file" != x"yes" &&
|
||||
- test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___avformat_open_input" != x"yes"; then
|
||||
- AC_MSG_ERROR([Could not find libavformat - part of ffmpeg])
|
||||
-fi
|
||||
AC_SUBST(LIBAVFORMAT_LIBS)
|
||||
|
||||
AC_CHECK_LIB(pthread, pthread_create)
|
||||
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME="minidlna"
|
||||
DAEMON=/usr/sbin/minidlnad
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
CONF=/etc/$NAME.conf
|
||||
ARGS="-f $CONF"
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
start_function() {
|
||||
|
||||
export PATH=$PWD:$PATH
|
||||
|
||||
if [ -f ${PIDFILE} ]; then
|
||||
echo "$SCRIPTNAME already running with PID #`cat $PIDFILE` ( according to ${PIDFILE} )";
|
||||
exit 0
|
||||
fi
|
||||
|
||||
$DAEMON $ARGS
|
||||
|
||||
pid=$!
|
||||
|
||||
if [ "$pid" != "" ]; then
|
||||
echo -n "$pid" > ${PIDFILE}
|
||||
fi
|
||||
}
|
||||
|
||||
stop_function() {
|
||||
|
||||
export PATH=$PWD:$PATH
|
||||
|
||||
if [ ! -e "${PIDFILE}" ]; then
|
||||
echo "${SCRIPTNAME} not running ( according to ${PIDFILE} )";
|
||||
exit 1;
|
||||
fi
|
||||
PID=`cat ${PIDFILE}`
|
||||
kill -INT ${PID}
|
||||
rm -f ${PIDFILE}
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"start")
|
||||
start_function
|
||||
;;
|
||||
"stop")
|
||||
stop_function
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start | stop}"
|
||||
|
||||
esac
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Minidlna Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,4 @@
|
||||
require ${BPN}.inc
|
||||
|
||||
SRCREV = "109d63cb11ac207c18a784556834eb054b34b00b"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.miniupnpd;md5=b0dabf9d8e0f871554e309d62ead8d2b"
|
||||
Reference in New Issue
Block a user