update buildroot to 2017.02.11
This commit is contained in:
27
bsp/buildroot-2017.02.11/package/minidlna/Config.in
Normal file
27
bsp/buildroot-2017.02.11/package/minidlna/Config.in
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
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
bsp/buildroot-2017.02.11/package/minidlna/S60minidlnad
Normal file
43
bsp/buildroot-2017.02.11/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 $?
|
||||
3
bsp/buildroot-2017.02.11/package/minidlna/minidlna.hash
Normal file
3
bsp/buildroot-2017.02.11/package/minidlna/minidlna.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From http://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/
|
||||
md5 1970e553a1eb8a3e7e302e2ce292cbc4 minidlna-1.1.5.tar.gz
|
||||
sha1 8185337621f5f9111118d8a4bca1e8cfcdd19505 minidlna-1.1.5.tar.gz
|
||||
41
bsp/buildroot-2017.02.11/package/minidlna/minidlna.mk
Normal file
41
bsp/buildroot-2017.02.11/package/minidlna/minidlna.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# minidlna
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MINIDLNA_VERSION = 1.1.5
|
||||
MINIDLNA_SITE = http://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION)
|
||||
MINIDLNA_LICENSE = GPLv2, BSD-3c
|
||||
MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd
|
||||
|
||||
MINIDLNA_DEPENDENCIES = \
|
||||
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext \
|
||||
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
|
||||
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
|
||||
ln -fs ../../../../usr/lib/systemd/system/minidlnad.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minidlnad.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
11
bsp/buildroot-2017.02.11/package/minidlna/minidlnad.service
Normal file
11
bsp/buildroot-2017.02.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=/var/run/minidlna/minidlna.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user