mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Sync with multimedia/xbmc-addon-pvr update.
This commit is contained in:
parent
3ce5ebe2cb
commit
6a305cc3e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339997
@ -3,18 +3,25 @@
|
||||
|
||||
PORTNAME= vdr-plugin-vnsiserver
|
||||
PORTVERSION= 12.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= http://people.freebsd.org/~decke/distfiles/
|
||||
DISTNAME= xbmc-pvr-addons-${PORTVERSION}-Frodo
|
||||
DISTNAME= xbmc-pvr-addons-${PORTVERSION}-20140104
|
||||
|
||||
MAINTAINER= nox@FreeBSD.org
|
||||
COMMENT= Video Disk Recorder - VNSI server plugin (Frodo)
|
||||
COMMENT= Video Disk Recorder - VNSI server plugin
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= opdenkamp
|
||||
GH_PROJECT= xbmc-pvr-addons
|
||||
GH_COMMIT= 9021115
|
||||
GH_TAGNAME= 9021115
|
||||
|
||||
USES= pkgconfig
|
||||
PATCH_STRIP= -p1
|
||||
HAVE_CONFIGURE= yes
|
||||
PORTDOCS= COPYING README HISTORY
|
||||
WRKSRC= ${WRKDIR}/xbmc-pvr-addons-${PORTVERSION}-Frodo/addons/pvr.vdr.vnsi/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/opdenkamp-xbmc-pvr-addons-${GH_COMMIT}/addons/pvr.vdr.vnsi/${PORTNAME}
|
||||
|
||||
MAKE_ARGS+= LIBDIR=${WRKDIR}/lib \
|
||||
LOCDIR=${WRKDIR}/locale \
|
||||
@ -22,15 +29,16 @@ MAKE_ARGS+= LIBDIR=${WRKDIR}/lib \
|
||||
INCLUDES=-I${LOCALBASE}/include
|
||||
|
||||
NO_STAGE= yes
|
||||
|
||||
.include "${.CURDIR}/../vdr/Makefile.plugins"
|
||||
|
||||
post-patch: post-patch-plugin
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf.sample
|
||||
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf ]; then \
|
||||
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \
|
||||
@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}5
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}5/allowed_hosts.conf.sample
|
||||
@if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}5/allowed_hosts.conf ]; then \
|
||||
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}5; \
|
||||
fi
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (vdr/xbmc-pvr-addons-12.0-Frodo.tar.gz) = 6a580bccda532369ce7b08319fc93341ca4e9b111b7b63e707d4c6fa8a3c5ee0
|
||||
SIZE (vdr/xbmc-pvr-addons-12.0-Frodo.tar.gz) = 3204309
|
||||
SHA256 (vdr/xbmc-pvr-addons-12.0-20140104.tar.gz) = cb010fa617182d708819529c212f289002392bd399405c01e880c89897fbe020
|
||||
SIZE (vdr/xbmc-pvr-addons-12.0-20140104.tar.gz) = 3716974
|
||||
|
@ -1,9 +1,9 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -127,7 +127,11 @@ $(I18Npot): $(wildcard *.cc)
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -134,7 +134,11 @@ $(I18Npot): $(wildcard *.c)
|
||||
@touch $@
|
||||
|
||||
$(I18Nmsgs): $(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
|
||||
$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
|
||||
+ifdef FREEBSD
|
||||
+ install -m644 $< $@
|
||||
+else
|
||||
@ -12,20 +12,20 @@
|
||||
|
||||
.PHONY: i18n
|
||||
i18n: $(I18Nmo) $(I18Npot)
|
||||
@@ -140,7 +144,11 @@ $(SOFILE): $(OBJS)
|
||||
@@ -147,7 +151,11 @@ $(SOFILE): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
|
||||
|
||||
install-lib: $(SOFILE)
|
||||
+ifdef FREEBSD
|
||||
+ install $^ $(LIBDIR)/$^.$(APIVERSION)
|
||||
+ install $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
|
||||
+else
|
||||
install -D $^ $(LIBDIR)/$^.$(APIVERSION)
|
||||
install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
|
||||
+endif
|
||||
|
||||
install: install-lib install-i18n
|
||||
|
||||
@@ -157,3 +165,6 @@ clean:
|
||||
@-rm -f $(OBJS) $(DEPFILE) *.so *.so.* *.tgz core* *~
|
||||
@@ -164,3 +164,6 @@ clean:
|
||||
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
|
||||
|
||||
compile: $(SOFILE)
|
||||
+
|
||||
|
@ -1,13 +0,0 @@
|
||||
--- a/cxsocket.c
|
||||
+++ b/cxsocket.c
|
||||
@@ -48,6 +48,10 @@
|
||||
#include "config.h"
|
||||
#include "cxsocket.h"
|
||||
|
||||
+#ifndef MSG_MORE
|
||||
+#define MSG_MORE 0
|
||||
+#endif
|
||||
+
|
||||
cxSocket::~cxSocket()
|
||||
{
|
||||
close();
|
@ -1,12 +0,0 @@
|
||||
--- a/cxsocket.h
|
||||
+++ b/cxsocket.h
|
||||
@@ -29,6 +29,9 @@
|
||||
#ifndef __CXSOCKET_H
|
||||
#define __CXSOCKET_H
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <netinet/in.h>
|
||||
+#endif
|
||||
#include <inttypes.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
@ -1,12 +0,0 @@
|
||||
--- a/receiver.c
|
||||
+++ b/receiver.c
|
||||
@@ -32,7 +32,9 @@
|
||||
|
||||
#include <vdr/remux.h>
|
||||
#include <vdr/channels.h>
|
||||
+#ifndef __FreeBSD__
|
||||
#include <asm/byteorder.h>
|
||||
+#endif
|
||||
|
||||
#include "config.h"
|
||||
#include "receiver.h"
|
@ -1,24 +0,0 @@
|
||||
--- a/recplayer.c
|
||||
+++ b/recplayer.c
|
||||
@@ -34,6 +34,10 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+#ifndef O_NOATIME
|
||||
+#define O_NOATIME 0
|
||||
+#endif
|
||||
+
|
||||
cRecPlayer::cRecPlayer(cRecording* rec)
|
||||
{
|
||||
m_file = -1;
|
||||
@@ -199,8 +203,10 @@ int cRecPlayer::getBlock(unsigned char*
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
// Tell linux not to bother keeping the data in the FS cache
|
||||
posix_fadvise(m_file, filePosition, bytes_read, POSIX_FADV_DONTNEED);
|
||||
+#endif
|
||||
|
||||
// divide and conquer
|
||||
if(bytes_read < amount) {
|
@ -1,16 +0,0 @@
|
||||
--- a/requestpacket.c
|
||||
+++ b/requestpacket.c
|
||||
@@ -28,7 +28,13 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
#include <asm/byteorder.h>
|
||||
+#else
|
||||
+#include <sys/endian.h>
|
||||
+#define __be64_to_cpu be64toh
|
||||
+#define __cpu_to_be64 htobe64
|
||||
+#endif
|
||||
|
||||
#include "config.h"
|
||||
#include "requestpacket.h"
|
@ -1,18 +0,0 @@
|
||||
--- a/responsepacket.c
|
||||
+++ b/responsepacket.c
|
||||
@@ -31,8 +31,15 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <inttypes.h>
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
#include <asm/byteorder.h>
|
||||
+#else
|
||||
+#include <sys/endian.h>
|
||||
+#define __be64_to_cpu be64toh
|
||||
+#define __cpu_to_be64 htobe64
|
||||
+#endif
|
||||
|
||||
#include "responsepacket.h"
|
||||
#include "vnsicommand.h"
|
@ -1,18 +0,0 @@
|
||||
--- a/vnsiserver.c
|
||||
+++ b/vnsiserver.c
|
||||
@@ -156,6 +156,7 @@ void cVNSIServer::NewClientConnected(int
|
||||
int val = 1;
|
||||
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val));
|
||||
|
||||
+#ifdef SOL_TCP
|
||||
val = 30;
|
||||
setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, &val, sizeof(val));
|
||||
|
||||
@@ -167,6 +168,7 @@ void cVNSIServer::NewClientConnected(int
|
||||
|
||||
val = 1;
|
||||
setsockopt(fd, SOL_TCP, TCP_NODELAY, &val, sizeof(val));
|
||||
+#endif
|
||||
|
||||
INFOLOG("Client with ID %d connected: %s", m_IdCnt, cxSocket::ip2txt(sin.sin_addr.s_addr, sin.sin_port, buf));
|
||||
cVNSIClient *connection = new cVNSIClient(fd, m_IdCnt, cxSocket::ip2txt(sin.sin_addr.s_addr, sin.sin_port, buf));
|
@ -1,5 +1,5 @@
|
||||
lib/vdr/libvdr-vnsiserver.so.%%APIVERSION%%
|
||||
@unexec if cmp -s %D/etc/vdr/plugins/vnsiserver/allowed_hosts.conf.sample %D/etc/vdr/plugins/vnsiserver/allowed_hosts.conf; then rm -f %D/etc/vdr/plugins/vnsiserver/allowed_hosts.conf; fi
|
||||
etc/vdr/plugins/vnsiserver/allowed_hosts.conf.sample
|
||||
@exec if [ ! -f %D/etc/vdr/plugins/vnsiserver/allowed_hosts.conf ] ; then cp -p %D/%F %B/allowed_hosts.conf; fi
|
||||
@dirrmtry etc/vdr/plugins/vnsiserver
|
||||
lib/vdr/libvdr-vnsiserver5.so.%%APIVERSION%%
|
||||
@unexec if cmp -s %D/etc/vdr/plugins/vnsiserver5/allowed_hosts.conf.sample %D/etc/vdr/plugins/vnsiserver5/allowed_hosts.conf; then rm -f %D/etc/vdr/plugins/vnsiserver5/allowed_hosts.conf; fi
|
||||
etc/vdr/plugins/vnsiserver5/allowed_hosts.conf.sample
|
||||
@exec if [ ! -f %D/etc/vdr/plugins/vnsiserver5/allowed_hosts.conf ] ; then cp -p %D/%F %B/allowed_hosts.conf; fi
|
||||
@dirrmtry etc/vdr/plugins/vnsiserver5
|
||||
|
Loading…
Reference in New Issue
Block a user