Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/minidlna/files: minidlna.confd minidlna.initd minidlna-1.0.18-Makefile.patch
Date: Wed, 29 Dec 2010 16:59:35
Message-Id: 20101229165925.70E652004E@flycatcher.gentoo.org
1 xmw 10/12/29 16:59:25
2
3 Added: minidlna.confd minidlna.initd
4 minidlna-1.0.18-Makefile.patch
5 Log:
6 Initial import
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 net-misc/minidlna/files/minidlna.confd
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna.confd?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna.confd?rev=1.1&content-type=text/plain
15
16 Index: minidlna.confd
17 ===================================================================
18 # /etc/conf.d/minidlna
19
20 # Should minidlna rescan the entire collection on startup?
21 # Warning: This may take a long time!
22 RESCAN="false"
23
24 # The location of the config file
25 #CONFIG="/etc/minidlna.conf"
26
27 # vim: ft=gentoo-conf-d
28
29
30
31 1.1 net-misc/minidlna/files/minidlna.initd
32
33 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna.initd?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna.initd?rev=1.1&content-type=text/plain
35
36 Index: minidlna.initd
37 ===================================================================
38 #!/sbin/runscript
39 # Copyright 1999-2010 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41 # $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/files/minidlna.initd,v 1.1 2010/12/29 16:59:25 xmw Exp $
42
43 depend() {
44 need net
45 }
46
47 start() {
48 ebegin "Starting MiniDLNA"
49 local params=""
50 local stop=0
51
52 if [[ "${RESCAN}" = "true" || "{$RESCAN}" = yes ]]; then
53 params="$params -R"
54 fi
55
56 #set the config file and check if it exists
57 if [ -z "${CONFIG}" ]; then
58 if [ ! -f "/etc/minidlna.conf" ]; then
59 ewarn "You did not set the config file correctly"
60 stop=1
61 fi
62 params="$params -f /etc/minidlna.conf"
63 else
64 if [ ! -f "${CONFIG}" ]; then
65 ewarn "The specified config file does not exist"
66 stop=1
67 fi
68 params="$params -f ${CONFIG}"
69 fi
70
71
72 if [ $stop -eq 1 ]; then
73 eend 1
74 else
75 start-stop-daemon --start \
76 --exec /usr/sbin/minidlna -- ${params}
77 eend $?
78 fi
79 }
80
81 stop() {
82 ebegin "Stopping MiniDLNA"
83 start-stop-daemon --stop --quiet --exec /usr/sbin/minidlna
84 eend $?
85 }
86
87
88
89 1.1 net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch
90
91 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch?rev=1.1&content-type=text/plain
93
94 Index: minidlna-1.0.18-Makefile.patch
95 ===================================================================
96 --- Makefile
97 +++ Makefile
98 @@ -12,7 +12,7 @@
99 #
100 #CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG
101 #CFLAGS = -Wall -g -Os -D_GNU_SOURCE
102 -CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
103 +CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
104 -I/usr/include/ffmpeg \
105 -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
106 -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat