mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
minidlna, bump old bep file (#2466)
This commit is contained in:
committed by
waddlesplash
parent
4990a7f76c
commit
014f9038fd
@@ -1,33 +0,0 @@
|
||||
DESCRIPTION="
|
||||
MiniDLNA MiniDLNA (aka ReadyDLNA) is server software with the aim of being \
|
||||
fully compliant with DLNA/UPnP-AV clients.
|
||||
"
|
||||
HOMEPAGE="http://sourceforge.net/projects/minidlna/"
|
||||
SOURCE_URI="http://sourceforge.net/projects/minidlna/files/minidlna/1.0.21/minidlna_1.0.21_src.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="broken"
|
||||
DEPEND="dev-db/sqlite >= 3.0
|
||||
media-libs/jpeg >= 6b
|
||||
media-libs/libogg >= 1.2.0
|
||||
media-libs/ffmpeg >= 0.6
|
||||
media-libs/flac >= 1.2.1
|
||||
media-libs/libvorbis >= 1.3.1
|
||||
media-lib/libid3tag >= 0.15.1b"
|
||||
|
||||
CHECKSUM_MD5="a53e0008ad225843a1782e4af6e5bf0b"
|
||||
BUILD()
|
||||
{
|
||||
cd minidlna-1.0.21
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd minidlna-1.0.21
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2
|
||||
BSD (3-clause)"
|
||||
COPYRIGHT="2008-2009 Justin Maggard
|
||||
2008-2009 Justin Maggard (portions of MiniUPnP project)"
|
||||
94
net-misc/minidlna/minidlna-1.2.1.recipe
Normal file
94
net-misc/minidlna/minidlna-1.2.1.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="A server software compliant with multiple clients"
|
||||
DESCRIPTION="MiniDLNA MiniDLNA (aka ReadyDLNA) is server software with the \
|
||||
aim of being fully compliant with DLNA/UPnP-AV clients."
|
||||
HOMEPAGE="http://minidlna.sourceforge.net/
|
||||
https://sourceforge.net/projects/minidlna/"
|
||||
COPYRIGHT="2008-2017 Justin Maggard"
|
||||
LICENSE="GNU GPL v2
|
||||
BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/minidlna/minidlna-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="67388ba23ab0c7033557a32084804f796aa2a796db7bb2b770fb76ac2a742eec"
|
||||
PATCHES="minidlna-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/minidlna.conf keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
minidlna$secondaryArchSuffix = $portVersion
|
||||
cmd:minidlnad$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libavformat$secondaryArchSuffix
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libexif$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libid3tag$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libvorbisfile$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libavformat$secondaryArchSuffix
|
||||
devel:libavutil$secondaryArchSuffix
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libexif$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libid3tag$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libvorbisfile$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autopoint
|
||||
cmd:autoreconf
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-D_BSD_SOURCE"
|
||||
export LDFLAGS="-lnetwork -lbsd"
|
||||
|
||||
autoreconf -vfi
|
||||
runConfigure --omit-dirs sbinDir ./configure --sbindir="$commandBinDir"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
cp minidlna.conf $settingsDir
|
||||
}
|
||||
98
net-misc/minidlna/patches/minidlna-1.2.1.patchset
Normal file
98
net-misc/minidlna/patches/minidlna-1.2.1.patchset
Normal file
@@ -0,0 +1,98 @@
|
||||
From 6cd0b4ad820a64be84944be49d8848d537d823c9 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 29 Apr 2018 17:23:23 +0200
|
||||
Subject: Haiku doesn't have setpriority nor d_type
|
||||
|
||||
|
||||
diff --git a/monitor.c b/monitor.c
|
||||
index b3a17f5..a4cf7a2 100644
|
||||
--- a/monitor.c
|
||||
+++ b/monitor.c
|
||||
@@ -533,6 +533,7 @@ monitor_insert_directory(int fd, char *name, const char * path)
|
||||
continue;
|
||||
esc_name = escape_tag(e->d_name, 1);
|
||||
snprintf(path_buf, sizeof(path_buf), "%s/%s", path, e->d_name);
|
||||
+ #ifndef __HAIKU__
|
||||
switch( e->d_type )
|
||||
{
|
||||
case DT_DIR:
|
||||
@@ -543,6 +544,9 @@ monitor_insert_directory(int fd, char *name, const char * path)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
+ #else
|
||||
+ type = resolve_unknown_type(path_buf, dir_types);
|
||||
+ #endif
|
||||
if( type == TYPE_DIR )
|
||||
{
|
||||
monitor_insert_directory(fd, esc_name, path_buf);
|
||||
diff --git a/scanner.c b/scanner.c
|
||||
index a730567..2c2ad43 100644
|
||||
--- a/scanner.c
|
||||
+++ b/scanner.c
|
||||
@@ -897,7 +897,9 @@ start_scanner(void)
|
||||
struct media_dir_s *media_path;
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
+ #ifndef __HAIKU__
|
||||
if (setpriority(PRIO_PROCESS, 0, 15) == -1)
|
||||
+ #endif
|
||||
DPRINTF(E_WARN, L_INOTIFY, "Failed to reduce scanner thread priority\n");
|
||||
|
||||
setlocale(LC_COLLATE, "");
|
||||
diff --git a/upnphttp.c b/upnphttp.c
|
||||
index 3b4b58a..3381863 100644
|
||||
--- a/upnphttp.c
|
||||
+++ b/upnphttp.c
|
||||
@@ -1760,10 +1760,12 @@ SendResp_resizedimg(struct upnphttp * h, char * object)
|
||||
|
||||
INIT_STR(str, header);
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
#if USE_FORK
|
||||
if( (h->reqflags & FLAG_XFERBACKGROUND) && (setpriority(PRIO_PROCESS, 0, 19) == 0) )
|
||||
tmode = "Background";
|
||||
else
|
||||
+#endif
|
||||
#endif
|
||||
tmode = "Interactive";
|
||||
start_dlna_header(&str, 200, tmode, "image/jpeg");
|
||||
@@ -1980,10 +1982,12 @@ SendResp_dlnafile(struct upnphttp *h, char *object)
|
||||
|
||||
INIT_STR(str, header);
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
#if USE_FORK
|
||||
if( (h->reqflags & FLAG_XFERBACKGROUND) && (setpriority(PRIO_PROCESS, 0, 19) == 0) )
|
||||
tmode = "Background";
|
||||
else
|
||||
+#endif
|
||||
#endif
|
||||
if( strncmp(last_file.mime, "image", 5) == 0 )
|
||||
tmode = "Interactive";
|
||||
--
|
||||
2.16.4
|
||||
|
||||
|
||||
From f28a08d22ba34e6286cc543e21a7f59e78daf793 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 24 Jun 2018 07:06:37 +0200
|
||||
Subject: set correct path for the conf file
|
||||
|
||||
|
||||
diff --git a/minidlna.c b/minidlna.c
|
||||
index 10b4806..2d95bfa 100644
|
||||
--- a/minidlna.c
|
||||
+++ b/minidlna.c
|
||||
@@ -499,7 +499,7 @@ init(int argc, char **argv)
|
||||
int options_flag = 0;
|
||||
struct sigaction sa;
|
||||
const char * presurl = NULL;
|
||||
- const char * optionsfile = "/etc/minidlna.conf";
|
||||
+ const char * optionsfile = "/system/settings/minidlna.conf";
|
||||
char mac_str[13];
|
||||
char *string, *word;
|
||||
char *path;
|
||||
--
|
||||
2.16.4
|
||||
|
||||
Reference in New Issue
Block a user