+++ /dev/null
---- Makefile
-+++ Makefile
-@@ -12,7 +12,7 @@
- #
- #CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG
- #CFLAGS = -Wall -g -Os -D_GNU_SOURCE
--CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
-+CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
- -I/usr/include/ffmpeg \
- -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
- -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting MiniDLNA"
- local params=""
- local stop=0
-
- checkpath -q -d -m 0755 -o ${M_USER:-nobody}:${M_GROUP:-nogroup} /var/run/minidlna
-
- params="$params -P /var/run/minidlna/minidlna.pid"
-
- if [[ "${RESCAN}" = "true" || "${RESCAN}" = yes ]]; then
- params="$params -R"
- fi
-
- #set the config file and check if it exists
- if [ -z "${CONFIG}" ]; then
- if [ ! -f "/etc/minidlna.conf" ]; then
- ewarn "You did not set the config file correctly"
- stop=1
- fi
- params="$params -f /etc/minidlna.conf"
- else
- if [ ! -f "${CONFIG}" ]; then
- ewarn "The specified config file does not exist"
- stop=1
- fi
- params="$params -f ${CONFIG}"
- fi
-
-
- if [ $stop -eq 1 ]; then
- eend 1
- else
- start-stop-daemon --start \
- --user ${M_USER:-nobody} --group ${M_GROUP:-nogroup} \
- --exec /usr/sbin/minidlna -- ${params}
- eend $?
- fi
-}
-
-stop() {
- ebegin "Stopping MiniDLNA"
- start-stop-daemon --stop --quiet --exec /usr/sbin/minidlna
- eend $?
-}
+++ /dev/null
-# /etc/conf.d/minidlna
-
-# Should minidlna rescan the entire collection on startup?
-# Warning: This may take a long time!
-RESCAN="false"
-
-# The location of the config file
-#CONFIG="/etc/minidlna.conf"
-
-# Specify the user/group minidlna should run as
-#M_USER="nobody"
-#M_GROUP="nogroup"
-
-# vim: ft=gentoo-conf-d
+++ /dev/null
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting MiniDLNA"
- local params=""
- local stop=0
-
- checkpath -q -d -m 0755 -o ${M_USER:-minidlna}:${M_GROUP:-minidlna} /var/run/minidlna
-
- params="$params -P /var/run/minidlna/minidlna.pid"
-
- if [[ "${RESCAN}" = "true" || "${RESCAN}" = yes ]]; then
- params="$params -R"
- fi
-
- #set the config file and check if it exists
- if [ -z "${CONFIG}" ]; then
- if [ ! -f "/etc/minidlna.conf" ]; then
- ewarn "You did not set the config file correctly"
- stop=1
- fi
- params="$params -f /etc/minidlna.conf"
- else
- if [ ! -f "${CONFIG}" ]; then
- ewarn "The specified config file does not exist"
- stop=1
- fi
- params="$params -f ${CONFIG}"
- fi
-
-
- if [ $stop -eq 1 ]; then
- eend 1
- else
- start-stop-daemon --start \
- --user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna} \
- --exec /usr/sbin/minidlnad -- ${params}
- eend $?
- fi
-}
-
-stop() {
- ebegin "Stopping MiniDLNA"
- start-stop-daemon --stop --quiet --exec /usr/sbin/minidlnad
- eend $?
-}
+++ /dev/null
-[Unit]\r
-Description=MiniDLNA is a DLNA/UPnP-AV server software\r
-After=syslog.target local-fs.target network.target\r
-\r
-[Service]\r
-User=minidlna\r
-Group=minidlna\r
-Type=forking\r
-PIDFile=/var/run/minidlna/minidlna.pid\r
-ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid\r
-\r
-[Install]\r
-WantedBy=multi-user.target\r