1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minidlna_ynh.git synced 2024-09-03 19:36:34 +02:00
This commit is contained in:
Éric Gaspar 2024-01-09 21:46:15 +01:00
parent 6829edc534
commit 25d3496415
12 changed files with 31 additions and 36 deletions

View file

@ -1,11 +1,5 @@
# MiniDLNA
MiniDLNA is a lightweight [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) server.
It allows to easily share multimedia files with any compatible devices present on the LAN.
MiniDLNA does not have a graphical interface, but does not require any special configuration.
### What multimedia files are shared? ### What multimedia files are shared?
MiniDLNA is sharing the folder `/home/yunohost.multimedia/share`, which is common to each user in `/home/$USER/Multimedia/Share`. MiniDLNA is sharing the folder `/home/yunohost.multimedia/share`, which is common to each user in `/home/$USER/Multimedia/Share`.
[More information about multimedia files here.](https://github.com/YunoHost-Apps/yunohost.multimedia) [More information about multimedia files here.](https://github.com/YunoHost-Apps/yunohost.multimedia)

View file

@ -1,11 +1,4 @@
# MiniDLNA ### Quels fichiers multimédias sont partagés ?
MiniDLNA est un serveur [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) ultra léger.
Il permet de partager très simplement les fichiers multimédias avec tout les appareils compatibles présent sur le réseau local.
Minidlna ne dispose pas d'une interface graphique, mais ne nécessite pas de configuration particulière.
### Quels fichiers multimédias sont partagés?
Minidlna partage le dossier `/home/yunohost.multimedia/share`, qui est commun à chaque utilisateur dans le dossier `/home/$USER/Multimedia/Share`. Minidlna partage le dossier `/home/yunohost.multimedia/share`, qui est commun à chaque utilisateur dans le dossier `/home/$USER/Multimedia/Share`.

View file

@ -2,7 +2,4 @@
Éditez le fichier `/etc/minidlna.conf` pour ajuster la configuration de MiniDLNA. Éditez le fichier `/etc/minidlna.conf` pour ajuster la configuration de MiniDLNA.
## Fonctionnalités spécifiques à YunoHost MiniDLNA va servir les fichiers présents dans le répertoire `/home/yunohost.multimedia/share`
* Utilise les répertoires multimédia partagés.
* Lié à transmission, Nextcloud et toute autre application qui utilise les répertoires multimédia.

View file

@ -1 +1,8 @@
MiniDLNA is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients. MiniDLNA is a lightweight [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) server.
It allows to easily share multimedia files with any compatible devices present on the LAN.
MiniDLNA does not have a graphical interface, but does not require any special configuration.
## YunoHost specific features
* Use shared Multimedia Directories
* Linked to transmission, Nextcloud and all other app which use Multimedia Directories.

View file

@ -1 +1,8 @@
MiniDLNA est un simple serveur multimédia, dont le but est d'être entièrement compatible avec les clients DLNA/UPnP-AV. MiniDLNA est un serveur [DLNA](https://fr.wikipedia.org/wiki/Digital_Living_Network_Alliance) ultra léger.
Il permet de partager très simplement les fichiers multimédias avec tout les appareils compatibles présent sur le réseau local.
Minidlna ne dispose pas d'une interface graphique, mais ne nécessite pas de configuration particulière.
## Fonctionnalités spécifiques à YunoHost
* Utilise les répertoires multimédia partagés.
* Lié à transmission, Nextcloud et toute autre application qui utilise les répertoires multimédia.

View file

@ -1,3 +0,0 @@
You can find a config file at /etc/minidlna.conf
MiniDLNA is going to serve the files present in the directory /home/yunohost.multimedia/share

View file

@ -5,7 +5,7 @@ name = "MiniDLNA"
description.en = "Light DLNA server to share media files over the LAN" description.en = "Light DLNA server to share media files over the LAN"
description.fr = "Serveur DLNA léger pour partager les fichiers multimédia sur le réseau local" description.fr = "Serveur DLNA léger pour partager les fichiers multimédia sur le réseau local"
version = "1.0~ynh9" version = "1.3.0~ynh1"
maintainers = [] maintainers = []
@ -23,7 +23,7 @@ ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "250M"
ram.runtime = "50M" ram.runtime = "50M"
[install] [install]

View file

@ -6,7 +6,6 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -39,7 +39,7 @@ ynh_multimedia_build_main_dir
#================================================= #=================================================
# INCREASE INOTIFY'S LIMITS # INCREASE INOTIFY'S LIMITS
#================================================= #=================================================
ynh_script_progression --message="Increasing inotify's limits..." ynh_script_progression --message="Increasing inotify's limits..." --weight=1
# Increase the maximum number of files inotify can monitor. # Increase the maximum number of files inotify can monitor.
cp -a ../conf/90-inotify_minidlna.conf /etc/sysctl.d/ cp -a ../conf/90-inotify_minidlna.conf /etc/sysctl.d/
@ -70,7 +70,7 @@ ynh_store_file_checksum --file="/etc/minidlna.conf"
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900" yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"

View file

@ -33,7 +33,7 @@ ynh_exec_fully_quiet yunohost firewall disallow UDP 1900
#================================================= #=================================================
# REMOVE VARIOUS FILES # REMOVE VARIOUS FILES
#================================================= #=================================================
ynh_script_progression --message="Removing various files..." ynh_script_progression --message="Removing various files..." --weight=1
if [ -e "/etc/sysctl.d/90-inotify_minidlna.conf" ]; then if [ -e "/etc/sysctl.d/90-inotify_minidlna.conf" ]; then
ynh_secure_remove --file="/etc/sysctl.d/90-inotify_minidlna.conf" ynh_secure_remove --file="/etc/sysctl.d/90-inotify_minidlna.conf"

View file

@ -30,7 +30,7 @@ ynh_multimedia_build_main_dir
#================================================= #=================================================
# RESTORE VARIOUS FILES # RESTORE VARIOUS FILES
#================================================= #=================================================
ynh_script_progression --message="Restoring various files..." ynh_script_progression --message="Restoring various files..." --weight=1
ynh_restore_file --origin_path="/etc/sysctl.d/90-inotify_minidlna.conf" ynh_restore_file --origin_path="/etc/sysctl.d/90-inotify_minidlna.conf"
if ! IS_PACKAGE_CHECK # LXC doesn't allow sysctl to play with kernel options. if ! IS_PACKAGE_CHECK # LXC doesn't allow sysctl to play with kernel options.
@ -40,17 +40,18 @@ fi
# Delete the current config of minidlna, in order to replace it by the version from the backup # Delete the current config of minidlna, in order to replace it by the version from the backup
ynh_secure_remove --file="/etc/minidlna.conf" ynh_secure_remove --file="/etc/minidlna.conf"
ynh_restore_file --origin_path="/etc/minidlna.conf" ynh_restore_file --origin_path="/etc/minidlna.conf"
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900" yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app.log" ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app.log"

View file

@ -18,7 +18,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If overwrite_settings doesn't exist, create it # If overwrite_settings doesn't exist, create it
if [ -z "$overwrite_settings" ]; then if [ -z "$overwrite_settings" ]; then
@ -34,7 +34,7 @@ fi
# If friendly_name doesn't exist, create it # If friendly_name doesn't exist, create it
if [ -z "$friendly_name" ]; then if [ -z "$friendly_name" ]; then
friendly_name="Yunohost DLNA" friendly_name="YunoHost DLNA"
ynh_app_setting_set --app=$app --key=friendly_name --value=$friendly_name ynh_app_setting_set --app=$app --key=friendly_name --value=$friendly_name
fi fi
@ -90,7 +90,7 @@ fi
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900" yunohost service add $app --log="/var/log/$app.log" --needs_exposed_ports="1900"