Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
From 5f698d645d71782c78e6495efd3b5e982f7db8c4 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sat, 13 Apr 2024 15:03:34 +0200
|
||||
Subject: [PATCH] libav.h: fix build with ffmpeg 7.0
|
||||
|
||||
The old bitmask-based channel layout API was removed:
|
||||
https://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=doc/APIchanges;hb=n7.0
|
||||
|
||||
Upstream: https://sourceforge.net/p/minidlna/patches/204/
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
libav.h | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/libav.h b/libav.h
|
||||
index b69752c..d5a3358 100644
|
||||
--- a/libav.h
|
||||
+++ b/libav.h
|
||||
@@ -174,7 +174,12 @@ lav_get_interlaced(AVStream *s)
|
||||
#define lav_codec_tag(s) s->codecpar->codec_tag
|
||||
#define lav_sample_rate(s) s->codecpar->sample_rate
|
||||
#define lav_bit_rate(s) s->codecpar->bit_rate
|
||||
+#if LIBAVCODEC_VERSION_MAJOR > 52 || \
|
||||
+ (LIBAVCODEC_VERSION_MAJOR >= 52 && LIBAVCODEC_VERSION_MINOR >= 113)
|
||||
+#define lav_channels(s) s->codecpar->ch_layout.nb_channels
|
||||
+#else
|
||||
#define lav_channels(s) s->codecpar->channels
|
||||
+#endif
|
||||
#define lav_width(s) s->codecpar->width
|
||||
#define lav_height(s) s->codecpar->height
|
||||
#define lav_profile(s) s->codecpar->profile
|
||||
@@ -186,7 +191,12 @@ lav_get_interlaced(AVStream *s)
|
||||
#define lav_codec_tag(s) s->codec->codec_tag
|
||||
#define lav_sample_rate(s) s->codec->sample_rate
|
||||
#define lav_bit_rate(s) s->codec->bit_rate
|
||||
+#if LIBAVCODEC_VERSION_MAJOR > 52 || \
|
||||
+ (LIBAVCODEC_VERSION_MAJOR >= 52 && LIBAVCODEC_VERSION_MINOR >= 113)
|
||||
+#define lav_channels(s) s->codec->ch_layout.nb_channels
|
||||
+#else
|
||||
#define lav_channels(s) s->codec->channels
|
||||
+#endif
|
||||
#define lav_width(s) s->codec->width
|
||||
#define lav_height(s) s->codec->height
|
||||
#define lav_profile(s) s->codec->profile
|
||||
--
|
||||
2.39.2
|
||||
|
||||
26
package/minidlna/Config.in
Normal file
26
package/minidlna/Config.in
Normal file
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_MINIDLNA
|
||||
bool "minidlna"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # flac
|
||||
depends on BR2_USE_MMU # fork
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_FLAC
|
||||
select BR2_PACKAGE_LIBVORBIS # selects libogg
|
||||
select BR2_PACKAGE_LIBOGG
|
||||
select BR2_PACKAGE_LIBID3TAG # selects zlib
|
||||
select BR2_PACKAGE_LIBEXIF
|
||||
select BR2_PACKAGE_JPEG
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
MiniDLNA (aka ReadyDLNA) is server software with the aim of
|
||||
being fully compliant with DLNA/UPnP-AV clients.
|
||||
|
||||
http://minidlna.sourceforge.net/
|
||||
|
||||
comment "minidlna needs a toolchain w/ dynamic library, threads, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
|
||||
BR2_STATIC_LIBS
|
||||
43
package/minidlna/S60minidlnad
Normal file
43
package/minidlna/S60minidlnad
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# minidlnad Starts minidlnad.
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting minidlna: "
|
||||
umask 077
|
||||
start-stop-daemon -S -q -p /var/run/minidlna/minidlna.pid \
|
||||
--exec /usr/sbin/minidlnad -- "$@"
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping minidlna: "
|
||||
start-stop-daemon -K -q -p /var/run/minidlna/minidlna.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
# Sleep needed for minidlna to restart properly
|
||||
sleep 1
|
||||
start "$@"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
force-reload)
|
||||
restart -R
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
6
package/minidlna/minidlna.hash
Normal file
6
package/minidlna/minidlna.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://sourceforge.net/projects/minidlna/files/minidlna/1.3.3/
|
||||
sha1 2d42028d2ca5ae04affdb96cb414314867e179ea minidlna-1.3.3.tar.gz
|
||||
# Locally computed
|
||||
sha256 39026c6d4a139b9180192d1c37225aa3376fdf4f1a74d7debbdbb693d996afa4 minidlna-1.3.3.tar.gz
|
||||
sha256 79146b7f558e56510b9a714ff75318c05ab93aeccfd6597497b9bce212cf92ea COPYING
|
||||
sha256 94876d7886116e176e702b4902bd9f19731a6883db5f229ac2a7058a22aa6529 LICENCE.miniupnpd
|
||||
39
package/minidlna/minidlna.mk
Normal file
39
package/minidlna/minidlna.mk
Normal file
@@ -0,0 +1,39 @@
|
||||
################################################################################
|
||||
#
|
||||
# minidlna
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MINIDLNA_VERSION = 1.3.3
|
||||
MINIDLNA_SITE = https://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION)
|
||||
MINIDLNA_LICENSE = GPL-2.0, BSD-3-Clause
|
||||
MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd
|
||||
MINIDLNA_CPE_ID_VENDOR = readymedia_project
|
||||
MINIDLNA_CPE_ID_PRODUCT = readymedia
|
||||
MINIDLNA_SELINUX_MODULES = minidlna
|
||||
|
||||
MINIDLNA_DEPENDENCIES = \
|
||||
$(TARGET_NLS_DEPENDENCIES) \
|
||||
ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \
|
||||
host-xutil_makedepend
|
||||
|
||||
MINIDLNA_CONF_OPTS = \
|
||||
--disable-static
|
||||
|
||||
define MINIDLNA_INSTALL_CONF
|
||||
$(INSTALL) -D -m 644 $(@D)/minidlna.conf $(TARGET_DIR)/etc/minidlna.conf
|
||||
endef
|
||||
|
||||
MINIDLNA_POST_INSTALL_TARGET_HOOKS += MINIDLNA_INSTALL_CONF
|
||||
|
||||
define MINIDLNA_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/minidlna/S60minidlnad \
|
||||
$(TARGET_DIR)/etc/init.d/S60minidlnad
|
||||
endef
|
||||
|
||||
define MINIDLNA_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/minidlna/minidlnad.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/minidlnad.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
11
package/minidlna/minidlnad.service
Normal file
11
package/minidlna/minidlnad.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=minidlna server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/minidlnad
|
||||
PIDFile=/run/minidlna/minidlna.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user