diff options
author | Baptiste DURAND <baptiste.durand@gmail.com> | 2015-03-05 15:46:02 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-03-06 07:34:44 +0100 |
commit | 97043618a265a464363218c8274ba0789012e941 (patch) | |
tree | 474e40152850de7cc99ddcbe1068b41f544d83a8 /meta-oe/recipes-multimedia | |
parent | 2a3ffe806afc5d23fc5a8086dee74d32afb5e66b (diff) | |
download | meta-openembedded-97043618a265a464363218c8274ba0789012e941.tar.gz |
minidlna: Fix package and bump to version 1.1.4
Signed-off-by: Baptiste DURAND <baptiste.durand@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia')
7 files changed, 109 insertions, 108 deletions
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna.inc b/meta-oe/recipes-multimedia/minidlna/minidlna.inc new file mode 100644 index 000000000..ebca7553a --- /dev/null +++ b/meta-oe/recipes-multimedia/minidlna/minidlna.inc | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "MiniDLNA (aka ReadyDLNA) is server software with the aim of \ | ||
2 | being fully compliant with DLNA/UPnP-AV clients." | ||
3 | LICENSE = "GPL-2.0|BSD" | ||
4 | DEPENDS = "ffmpeg flac libav jpeg sqlite3 libexif libogg libid3tag libvorbis" | ||
5 | |||
6 | # because it depends on libav which has commercial flag | ||
7 | LICENSE_FLAGS = "commercial" | ||
8 | |||
9 | inherit gettext autotools-brokensep update-rc.d systemd | ||
10 | |||
11 | SRC_URI = "git://git.code.sf.net/p/minidlna/git;branch=master;module=git \ | ||
12 | file://minidlna-daemon.init.d \ | ||
13 | file://minidlna.service " | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid | ||
18 | # configure.ac:30: error: required file './ABOUT-NLS' not found | ||
19 | EXTRA_AUTORECONF = "" | ||
20 | |||
21 | do_install_append(){ | ||
22 | install -d ${D}${sysconfdir} | ||
23 | install -m 0755 minidlna.conf ${D}${sysconfdir} | ||
24 | |||
25 | # Systemd script | ||
26 | install -d ${D}${nonarch_base_libdir}/systemd/system | ||
27 | install -m 0755 ${WORKDIR}/minidlna.service ${D}${nonarch_base_libdir}/systemd/system | ||
28 | |||
29 | # Sysvinit script | ||
30 | install -d ${D}${sysconfdir}/init.d | ||
31 | install -m 0755 ${WORKDIR}/minidlna-daemon.init.d ${D}${sysconfdir}/init.d/minidlna | ||
32 | |||
33 | } | ||
34 | |||
35 | SYSTEMD_SERVICE_${PN} = "minidlna.service" | ||
36 | |||
37 | INITSCRIPT_NAME = "minidlna" | ||
38 | INITSCRIPT_PARAMS = "defaults 90" | ||
39 | |||
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d new file mode 100644 index 000000000..9e64a20fd --- /dev/null +++ b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d | |||
@@ -0,0 +1,54 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | NAME="minidlna" | ||
4 | DAEMON=/usr/sbin/minidlnad | ||
5 | SCRIPTNAME=/etc/init.d/$NAME | ||
6 | PIDFILE=/var/run/$NAME.pid | ||
7 | CONF=/etc/$NAME.conf | ||
8 | ARGS="-f $CONF" | ||
9 | |||
10 | # Exit if the package is not installed | ||
11 | [ -x "$DAEMON" ] || exit 0 | ||
12 | |||
13 | start_function() { | ||
14 | |||
15 | export PATH=$PWD:$PATH | ||
16 | |||
17 | if [ -f ${PIDFILE} ]; then | ||
18 | echo "$SCRIPTNAME already running with PID #`cat $PIDFILE` ( according to ${PIDFILE} )"; | ||
19 | exit 0 | ||
20 | fi | ||
21 | |||
22 | $DAEMON $ARGS | ||
23 | |||
24 | pid=$! | ||
25 | |||
26 | if [ "$pid" != "" ]; then | ||
27 | echo -n "$pid" > ${PIDFILE} | ||
28 | fi | ||
29 | } | ||
30 | |||
31 | stop_function() { | ||
32 | |||
33 | export PATH=$PWD:$PATH | ||
34 | |||
35 | if [ ! -e "${PIDFILE}" ]; then | ||
36 | echo "${SCRIPTNAME} not running ( according to ${PIDFILE} )"; | ||
37 | exit 1; | ||
38 | fi | ||
39 | PID=`cat ${PIDFILE}` | ||
40 | kill -INT ${PID} | ||
41 | rm -f ${PIDFILE} | ||
42 | } | ||
43 | |||
44 | case $1 in | ||
45 | "start") | ||
46 | start_function | ||
47 | ;; | ||
48 | "stop") | ||
49 | stop_function | ||
50 | ;; | ||
51 | *) | ||
52 | echo "Usage: $0 {start | stop}" | ||
53 | |||
54 | esac | ||
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service new file mode 100644 index 000000000..656100bb6 --- /dev/null +++ b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=Minidlna Daemon | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=notify | ||
7 | ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna_1.1.4.bb b/meta-oe/recipes-multimedia/minidlna/minidlna_1.1.4.bb new file mode 100644 index 000000000..0531e69f5 --- /dev/null +++ b/meta-oe/recipes-multimedia/minidlna/minidlna_1.1.4.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require ${BPN}.inc | ||
2 | |||
3 | SRCREV = "v1_1_4" | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE.miniupnpd;md5=b0dabf9d8e0f871554e309d62ead8d2b" | ||
5 | SRC_URI[md5sum] = "d966256baf2f9b068b9de871ab5dade5" | ||
6 | SRC_URI[sha256sum] = "170560fbe042c2bbcba78c5f15b54f4fac321ff770490b23b55789be463f2851" | ||
diff --git a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/fix-makefile.patch b/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/fix-makefile.patch deleted file mode 100644 index 96429fd6c..000000000 --- a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/fix-makefile.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | Fix Makefile: | ||
2 | * don't overwrite CFLAGS but append to it | ||
3 | * use gcc as CC only if CC is not already defined | ||
4 | * use -I= to include paths | ||
5 | * fix compile of minidlna binary by removing ${LIBS} dependency | ||
6 | |||
7 | Upstream-status: Pending | ||
8 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
9 | |||
10 | Index: minidlna-1.0.25/Makefile | ||
11 | =================================================================== | ||
12 | --- minidlna-1.0.25.orig/Makefile 2012-01-18 00:49:01.000000000 +0200 | ||
13 | +++ minidlna-1.0.25/Makefile 2013-02-10 17:46:49.000000000 +0200 | ||
14 | @@ -12,13 +12,13 @@ | ||
15 | # | ||
16 | #CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG | ||
17 | #CFLAGS = -Wall -g -Os -D_GNU_SOURCE | ||
18 | -CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ | ||
19 | - -I/usr/include/ffmpeg \ | ||
20 | - -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \ | ||
21 | - -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat | ||
22 | +CFLAGS += -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ | ||
23 | + -I=/usr/include/ffmpeg \ | ||
24 | + -I=/usr/include/libavutil -I=/usr/include/libavcodec -I=/usr/include/libavformat \ | ||
25 | + -I=/usr/include/ffmpeg/libavutil -I=/usr/include/ffmpeg/libavcodec -I=/usr/include/ffmpeg/libavformat | ||
26 | #STATIC_LINKING: CFLAGS += -DSTATIC | ||
27 | #STATIC_LINKING: LDFLAGS = -static | ||
28 | -CC = gcc | ||
29 | +CC ?= gcc | ||
30 | RM = rm -f | ||
31 | INSTALL = install | ||
32 | |||
33 | @@ -64,7 +64,7 @@ | ||
34 | $(INSTALL) -d $(ETCINSTALLDIR) | ||
35 | $(INSTALL) --mode=0644 minidlna.conf $(ETCINSTALLDIR) | ||
36 | |||
37 | -minidlna: $(BASEOBJS) $(LNXOBJS) $(LIBS) | ||
38 | +minidlna: $(BASEOBJS) $(LNXOBJS) | ||
39 | @echo Linking $@ | ||
40 | @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS) | ||
41 | |||
diff --git a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/search-for-headers-in-staging-dir.patch b/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/search-for-headers-in-staging-dir.patch deleted file mode 100644 index 573d88c81..000000000 --- a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna/search-for-headers-in-staging-dir.patch +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | Search for headers in STAGING_DIR_GOST. | ||
2 | |||
3 | Upstream-status: Pending | ||
4 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
5 | |||
6 | Index: minidlna-1.0.25/genconfig.sh | ||
7 | =================================================================== | ||
8 | --- minidlna-1.0.25.orig/genconfig.sh 2012-01-21 02:34:13.000000000 +0200 | ||
9 | +++ minidlna-1.0.25/genconfig.sh 2013-02-10 17:12:06.000000000 +0200 | ||
10 | @@ -40,22 +40,22 @@ | ||
11 | |||
12 | # Detect if there are missing headers | ||
13 | # NOTE: This check only works with a normal distro | ||
14 | -[ ! -e "/usr/include/sqlite3.h" ] && MISSING="libsqlite3 $MISSING" | ||
15 | -[ ! -e "/usr/include/jpeglib.h" ] && MISSING="libjpeg $MISSING" | ||
16 | -[ ! -e "/usr/include/libexif/exif-loader.h" ] && MISSING="libexif $MISSING" | ||
17 | -[ ! -e "/usr/include/id3tag.h" ] && MISSING="libid3tag $MISSING" | ||
18 | -[ ! -e "/usr/include/ogg/ogg.h" ] && MISSING="libogg $MISSING" | ||
19 | -[ ! -e "/usr/include/vorbis/codec.h" ] && MISSING="libvorbis $MISSING" | ||
20 | -[ ! -e "/usr/include/FLAC/metadata.h" ] && MISSING="libflac $MISSING" | ||
21 | -[ ! -e "/usr/include/ffmpeg/avutil.h" -a \ | ||
22 | - ! -e "/usr/include/libavutil/avutil.h" -a \ | ||
23 | - ! -e "/usr/include/ffmpeg/libavutil/avutil.h" ] && MISSING="libavutil $MISSING" | ||
24 | -[ ! -e "/usr/include/ffmpeg/avformat.h" -a \ | ||
25 | - ! -e "/usr/include/libavformat/avformat.h" -a \ | ||
26 | - ! -e "/usr/include/ffmpeg/libavformat/avformat.h" ] && MISSING="libavformat $MISSING" | ||
27 | -[ ! -e "/usr/include/ffmpeg/avcodec.h" -a \ | ||
28 | - ! -e "/usr/include/libavcodec/avcodec.h" -a \ | ||
29 | - ! -e "/usr/include/ffmpeg/libavcodec/avcodec.h" ] && MISSING="libavcodec $MISSING" | ||
30 | +[ ! -e "$STAGING_DIR_HOST/usr/include/sqlite3.h" ] && MISSING="libsqlite3 $MISSING" | ||
31 | +[ ! -e "$STAGING_DIR_HOST/usr/include/jpeglib.h" ] && MISSING="libjpeg $MISSING" | ||
32 | +[ ! -e "$STAGING_DIR_HOST/usr/include/libexif/exif-loader.h" ] && MISSING="libexif $MISSING" | ||
33 | +[ ! -e "$STAGING_DIR_HOST/usr/include/id3tag.h" ] && MISSING="libid3tag $MISSING" | ||
34 | +[ ! -e "$STAGING_DIR_HOST/usr/include/ogg/ogg.h" ] && MISSING="libogg $MISSING" | ||
35 | +[ ! -e "$STAGING_DIR_HOST/usr/include/vorbis/codec.h" ] && MISSING="libvorbis $MISSING" | ||
36 | +[ ! -e "$STAGING_DIR_HOST/usr/include/FLAC/metadata.h" ] && MISSING="libflac $MISSING" | ||
37 | +[ ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/avutil.h" -a \ | ||
38 | + ! -e "$STAGING_DIR_HOST/usr/include/libavutil/avutil.h" -a \ | ||
39 | + ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/libavutil/avutil.h" ] && MISSING="libavutil $MISSING" | ||
40 | +[ ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/avformat.h" -a \ | ||
41 | + ! -e "$STAGING_DIR_HOST/usr/include/libavformat/avformat.h" -a \ | ||
42 | + ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/libavformat/avformat.h" ] && MISSING="libavformat $MISSING" | ||
43 | +[ ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/avcodec.h" -a \ | ||
44 | + ! -e "$STAGING_DIR_HOST/usr/include/libavcodec/avcodec.h" -a \ | ||
45 | + ! -e "$STAGING_DIR_HOST/usr/include/ffmpeg/libavcodec/avcodec.h" ] && MISSING="libavcodec $MISSING" | ||
46 | if [ -n "$MISSING" ]; then | ||
47 | echo -e "\nERROR! Cannot continue." | ||
48 | echo -e "The following required libraries are either missing, or are missing development headers:\n" | ||
diff --git a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna_1.0.25.bb b/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna_1.0.25.bb deleted file mode 100644 index 9264bc224..000000000 --- a/meta-oe/recipes-multimedia/nonworking/minidlna/minidlna_1.0.25.bb +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | DESCRIPTION = "MiniDLNA (aka ReadyDLNA) is server software with the aim of \ | ||
2 | being fully compliant with DLNA/UPnP-AV clients." | ||
3 | LICENSE = "GPL-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=b1a795ac1a06805cf8fd74920bc46b5c" | ||
5 | |||
6 | DEPENDS = "flac libav jpeg sqlite3 libexif libogg libid3tag" | ||
7 | |||
8 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}_${PV}_src.tar.gz \ | ||
9 | file://search-for-headers-in-staging-dir.patch \ | ||
10 | file://fix-makefile.patch \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "d966256baf2f9b068b9de871ab5dade5" | ||
14 | SRC_URI[sha256sum] = "170560fbe042c2bbcba78c5f15b54f4fac321ff770490b23b55789be463f2851" | ||
15 | |||
16 | export STAGING_DIR_HOST | ||
17 | |||
18 | inherit autotools | ||
19 | |||