1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Preliminary port of the vdr development branch, use at your own risk! :)

See vdr/webcamd dvb thread(s) on the freebsd-multimedia list for FreeBSD
notes, some links are here:

	http://people.freebsd.org/~nox/dvb/

and see these links for general vdr info:

	http://www.linuxtv.org/vdrwiki/index.php/Main_Page
	http://www.vdr-portal.de/

WWW: http://www.tvdr.de/
This commit is contained in:
Juergen Lock 2011-03-26 19:13:50 +00:00
parent 4ca62e9076
commit 0f8592a752
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271797
23 changed files with 2112 additions and 0 deletions

View File

@ -334,6 +334,7 @@
SUBDIR += vcdtools
SUBDIR += vdpau-video
SUBDIR += vdpauinfo
SUBDIR += vdr
SUBDIR += vic
SUBDIR += vlc
SUBDIR += vodcatcher

93
multimedia/vdr/Makefile Normal file
View File

@ -0,0 +1,93 @@
# New ports collection makefile for: vdr
# Date created: Wed Apr 14 18:11:42 CEST 2010
# Whom: Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= vdr
PORTVERSION= 1.7.17
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ftp://ftp.tvdr.de/vdr/Developer/
MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - development version
BUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig
OPTIONS= IPTVPATCH "Stops EIT scans on IPTV channels" On
DIST_SUBDIR= vdr
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME+= pkgconfig
USE_GETTEXT= yes
PORTDOCS= COPYING INSTALL MANUAL README
MAKE_JOBS_SAFE= yes
MAN1= vdr.1
MAN5= vdr.5
MANCOMPRESSED= yes
MAKE_JOBS_SAFE= yes
CONFDIR= $(ETCDIR)
MAKE_ARGS+= DVBDIR=${LOCALBASE}/include
MAKE_ARGS+= VDR_USER=${VDR_USER}
MAKE_ARGS+= CONFDIR=$(CONFDIR)
MAKE_ARGS+= OSTYPE=FreeBSD
MAKE_ARGS+= LIRC_DEVICE=/var/run/lirc/lircd
ALL_TARGET= all plugins
VIDEODIR= /video
SUB_LIST+= VIDEODIR=${VIDEODIR}
USE_RC_SUBR= vdr
VDR_USER= vdr
VDR_GROUP= vdr
USERS= ${VDR_USER}
GROUPS= ${VDR_GROUP}
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
.include <bsd.port.options.mk>
.if defined(WITH_IPTVPATCH)
EXTRA_PATCHES= ${FILESDIR}/vdr-1.7.15-disable_ca_updates.patch \
${FILESDIR}/vdr-1.7.15-disable_eitscan.patch
.endif
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
ALL_TARGET= vdr
.endif
post-patch:
@${SED} 's|^\(VIDEODIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${VIDEODIR}|' \
${WRKSRC}/Make.config.template >${WRKSRC}/Make.config
@${REINPLACE_CMD} -e 's|%%CONFDIR%%|${CONFDIR}|' ${WRKSRC}/vdr.1
post-install:
.if !defined(WITHOUT_NLS)
@(cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${PREFIX}/share/)
.endif
${MKDIR} ${CONFDIR}/plugins
${CHOWN} ${VDR_USER}:${VDR_GROUP} ${CONFDIR} ${CONFDIR}/plugins
${INSTALL_DATA} ${FILESDIR}/remote.conf ${CONFDIR}/remote.conf.sample
@if [ ! -f ${CONFDIR}/remote.conf ]; then \
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${FILESDIR}/remote.conf ${CONFDIR}; \
fi
for i in $$(cd ${WRKSRC} && ls *.conf); do \
${INSTALL_DATA} ${WRKSRC}/$$i ${CONFDIR}/$$i.sample; \
if [ ! -f ${CONFDIR}/$$i ]; then \
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/$$i ${CONFDIR}/$$i; \
fi; \
done
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,50 @@
# this is to be included by vdr plugin ports
#
# $FreeBSD: /tmp/pcvs/ports/multimedia/vdr/Makefile.plugins,v 1.1 2011-03-26 19:13:49 nox Exp $
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat
BUILD_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdr
RUN_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdr
DIST_SUBDIR= vdr
PATCH_SUBDIR= vdr
USE_GMAKE= yes
USE_GETTEXT= yes
VDRDIR= ${LOCALBASE}/include/vdr
VDRINCDIR= ${LOCALBASE}/include
MAKE_ARGS+= DVBDIR=${LOCALBASE}/include
MAKE_ARGS+= VDRDIR=${VDRDIR}
MAKE_ARGS+= VDR_USER=${VDR_USER}
MAKE_ARGS+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
MAKE_ARGS+= OSTYPE=FreeBSD
PLUGIN?= ${PORTNAME:S/^vdr-plugin-//}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAKE_ENV+= LOCALBASE=${LOCALBASE}
VDR_USER= vdr
VDR_GROUP= vdr
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
localeplist:
@${FIND} ${WRKDIR}/locale -type f -print |${SED} 's|^.*locale/|%%NLS%%share/locale/|'
post-patch-plugin:
@${MKDIR} ${WRKDIR}/lib ${WRKDIR}/locale
@${REINPLACE_CMD} 's/^\(LIBDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/lib/;'\\
's/^\(LOCALEDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/locale/;'\\
's/^\(VDRDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRDIR:S-/-\\\\/-g}/;"\\
's/^\(VDRINCDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRINCDIR:S-/-\\\\/-g}/;"\\
's/^\(BINDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${PREFIX:S-/-\\\\/-g}\/bin/;" \
${WRKSRC}/Makefile ${VDR_PLUGIN_MAKEFILES}
post-install-pluginlocales:
.if !defined(WITHOUT_NLS)
@(cd ${WRKDIR} && ${COPYTREE_SHARE} locale ${PREFIX}/share/)
.endif

2
multimedia/vdr/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (vdr/vdr-1.7.17.tar.bz2) = f11102d4b4595347587f09f3957d508567cead6ccd231f9831fc02be8deb7994
SIZE (vdr/vdr-1.7.17.tar.bz2) = 688181

View File

@ -0,0 +1,10 @@
--- PLUGINS/src/dvbsddevice/dvbsddevice.c.orig
+++ PLUGINS/src/dvbsddevice/dvbsddevice.c
@@ -6,6 +6,7 @@
* $Id: dvbsddevice.c 1.3 2010/01/30 10:05:42 kls Exp $
*/
+#include <stdint.h>
#include <vdr/plugin.h>
#include "dvbsdffdevice.h"

View File

@ -0,0 +1,19 @@
--- PLUGINS/src/dvbsddevice/dvbsdffdevice.c.orig
+++ PLUGINS/src/dvbsddevice/dvbsdffdevice.c
@@ -6,12 +6,16 @@
* $Id: dvbsdffdevice.c 2.26 2010/01/30 10:05:23 kls Exp $
*/
+#include <stdint.h>
#include "dvbsdffdevice.h"
#include <errno.h>
#include <limits.h>
#include <linux/videodev2.h>
#include <linux/dvb/audio.h>
#include <linux/dvb/dmx.h>
+#ifdef __FreeBSD__
+typedef struct timespec __kernel_time_t;
+#endif
#include <linux/dvb/video.h>
#include <sys/ioctl.h>
#include <sys/mman.h>

View File

@ -0,0 +1,11 @@
--- device.c.orig
+++ device.c
@@ -65,7 +65,7 @@ bool cDeviceHook::DeviceProvidesTranspon
#define MIN_PRE_1_3_19_PRIVATESTREAM 10
int cDevice::numDevices = 0;
-int cDevice::useDevice = 0;
+uint64_t cDevice::useDevice = 0;
int cDevice::nextCardIndex = 0;
int cDevice::currentChannel = 1;
cDevice *cDevice::device[MAXDEVICES] = { NULL };

View File

@ -0,0 +1,20 @@
--- device.h.orig
+++ device.h
@@ -25,7 +25,7 @@
#include "thread.h"
#include "tools.h"
-#define MAXDEVICES 16 // the maximum number of devices in the system
+#define MAXDEVICES 64 // the maximum number of devices in the system
#define MAXPIDHANDLES 64 // the maximum number of different PIDs per device
#define MAXRECEIVERS 16 // the maximum number of receivers per device
#define MAXVOLUME 255
@@ -105,7 +105,7 @@ class cDevice : public cThread {
friend class cDeviceHook;
private:
static int numDevices;
- static int useDevice;
+ static uint64_t useDevice;
static cDevice *device[MAXDEVICES];
static cDevice *primaryDevice;
static cDevice *avoidDevice;

View File

@ -0,0 +1,27 @@
--- dvbdevice.c.orig
+++ dvbdevice.c
@@ -7,6 +7,7 @@
* $Id: dvbdevice.c 2.38 2010/05/01 09:47:13 kls Exp $
*/
+#include <stdint.h>
#include "dvbdevice.h"
#include <ctype.h>
#include <errno.h>
@@ -800,10 +801,13 @@ bool cDvbDevice::Initialize(void)
NextCardIndex(1); // skips this one
}
}
- else if (Frontend == 0)
- goto LastAdapter;
- else
+ else {
+ if (Checked >= MAXDVBDEVICES || Adapter >= MAXDVBDEVICES)
+ goto LastAdapter;
+ if (Frontend == 0)
+ NextCardIndex(1); // skips this one
goto NextAdapter;
+ }
}
NextAdapter: ;
}

View File

@ -0,0 +1,10 @@
--- menuitems.c.orig
+++ menuitems.c
@@ -7,6 +7,7 @@
* $Id: menuitems.c 2.6 2010/02/16 14:44:35 kls Exp $
*/
+#include <stdint.h>
#include "menuitems.h"
#include <ctype.h>
#include <math.h>

View File

@ -0,0 +1,19 @@
--- plugin.c.orig
+++ plugin.c
@@ -198,11 +198,14 @@ bool cDll::Load(bool Log)
}
handle = dlopen(fileName, RTLD_NOW);
const char *error = dlerror();
- if (!error) {
+ if (handle) {
void *(*creator)(void);
creator = (void *(*)(void))dlsym(handle, "VDRPluginCreator");
- if (!(error = dlerror()))
+ error = dlerror();
+ if (creator) {
plugin = (cPlugin *)creator();
+ error = NULL;
+ }
}
if (!error) {
if (plugin && args) {

View File

@ -0,0 +1,38 @@
--- tools.c.orig
+++ tools.c
@@ -1201,9 +1201,35 @@ cReadLine::~cReadLine()
free(buffer);
}
+#ifdef __FreeBSD__
+#if __FreeBSD_version > 800000
+#define HAVE_GETLINE
+#endif
+#else
+#define HAVE_GETLINE
+#endif
+
char *cReadLine::Read(FILE *f)
{
+#ifndef HAVE_GETLINE
+ size_t n;
+
+ if (!buffer) {
+ if (!(buffer = (char *)malloc(size = 4096)))
+ return NULL;
+ }
+ if (!fgets(buffer, size, f))
+ return NULL;
+ while ((n = strlen(buffer)) >= size - 1 && buffer[n - 1] != '\n') {
+ if (!(buffer = (char *)realloc(buffer, size * 2)))
+ return NULL;
+ size *= 2;
+ if (!fgets(buffer + n, size - n, f))
+ break;
+ }
+#else
int n = getline(&buffer, &size, f);
+#endif
if (n > 0) {
n--;
if (buffer[n] == '\n') {

View File

@ -0,0 +1,12 @@
--- tools.c.orig
+++ tools.c
@@ -1669,6 +1669,9 @@ ssize_t cUnbufferedFile::Read(void *Data
}
}
lastpos = curpos;
+#else
+ if (bytesRead > 0)
+ curpos += bytesRead;
#endif
return bytesRead;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- vdr.1.orig
+++ vdr.1
@@ -45,7 +45,7 @@ Send Dolby Digital audio to stdin of com
.TP
.BI \-c\ dir ,\ \-\-config= dir
Read config files from directory \fIdir\fR
-(default is to read them from the video directory).
+(default is to read them from %%CONFDIR%% on this installation.)
.TP
.B \-d, \-\-daemon
Run in daemon mode (implies \-\-no\-kbd).

View File

@ -0,0 +1,49 @@
Index: Makefile
@@ -25,6 +25,7 @@ PREFIX ?= /usr/local
MANDIR = $(PREFIX)/share/man
BINDIR = $(PREFIX)/bin
LOCDIR = ./locale
+INCDIR = $(PREFIX)/include
ifdef FREEBSD
INCLUDES = -I/usr/local/include/freetype2
LIBDIRS = -L/usr/local/lib
@@ -177,7 +178,7 @@ clean-plugins:
# Install the files:
-install: install-bin install-conf install-doc install-plugins install-i18n
+install: install-bin install-doc install-plugins install-header
# VDR binary:
@@ -192,7 +193,6 @@ endif
# Configuration files:
install-conf:
- @mkdir -p $(DESTDIR)$(VIDEODIR)
@if [ ! -d $(DESTDIR)$(CONFDIR) ]; then\
mkdir -p $(DESTDIR)$(CONFDIR);\
cp *.conf $(DESTDIR)$(CONFDIR);\
@@ -208,7 +208,7 @@ install-doc:
# Plugins:
-install-plugins: plugins
+install-plugins: #plugins
@mkdir -p $(DESTDIR)$(PLUGINLIBDIR)
ifdef FREEBSD
@cp -f $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR)
@@ -216,6 +216,13 @@ else
@cp --remove-destination $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR)
endif
+# Header files:
+
+install-header:
+ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi
+ @cp *.h Make.config Make.global $(DESTDIR)$(INCDIR)/vdr
+ @cp libsi/*.h $(DESTDIR)$(INCDIR)/vdr/libsi
+
# Source documentation:
srcdoc:

View File

@ -0,0 +1,42 @@
--- libsi/si.c.orig
+++ libsi/si.c
@@ -308,6 +308,25 @@ static const char *CharacterTables2[] =
"ISO-8859-15", // 0x0F
};
+static const char *CharacterTables3[] = {
+ NULL, // 0x00
+ "ISO8859-1", // 0x01
+ "ISO8859-2", // 0x02
+ "ISO8859-3", // 0x03
+ "ISO8859-4", // 0x04
+ "ISO8859-5", // 0x05
+ "ISO8859-6", // 0x06
+ "ISO8859-7", // 0x07
+ "ISO8859-8", // 0x08
+ "ISO8859-9", // 0x09
+ "ISO8859-10", // 0x0A
+ "ISO8859-11", // 0x0B
+ "ISO8859-12", // 0x0C
+ "ISO8859-13", // 0x0D
+ "ISO8859-14", // 0x0E
+ "ISO8859-15", // 0x0F
+};
+
#define NumEntries(Table) (sizeof(Table) / sizeof(char *))
static const char *SystemCharacterTable = NULL;
@@ -334,6 +353,13 @@ bool SetSystemCharacterTable(const char
return true;
}
}
+ for (unsigned int i = 0; i < NumEntries(CharacterTables3); i++) {
+ if (CharacterTables3[i] && strcasecmp(CharacterTable, CharacterTables3[i]) == 0) {
+ SystemCharacterTable = CharacterTables3[i];
+ SystemCharacterTableIsSingleByte = true;
+ return true;
+ }
+ }
} else {
SystemCharacterTable = NULL;
SystemCharacterTableIsSingleByte = true;

View File

@ -0,0 +1,114 @@
XKeySym.Up Up
XKeySym.Down Down
XKeySym.Menu Tab
XKeySym.Menu Insert
XKeySym.Ok Return
XKeySym.Ok KP_Enter
XKeySym.Back BackSpace
XKeySym.Left Left
XKeySym.Right Right
XKeySym.Red F5
XKeySym.Green F6
XKeySym.Yellow F7
XKeySym.Blue F8
XKeySym.0 0
XKeySym.1 1
XKeySym.2 2
XKeySym.3 3
XKeySym.4 4
XKeySym.5 5
XKeySym.6 6
XKeySym.7 7
XKeySym.8 8
XKeySym.9 9
XKeySym.0 KP_0
XKeySym.1 KP_1
XKeySym.2 KP_2
XKeySym.3 KP_3
XKeySym.4 KP_4
XKeySym.5 KP_5
XKeySym.6 KP_6
XKeySym.7 KP_7
XKeySym.8 KP_8
XKeySym.9 KP_9
XKeySym.Info i
XKeySym.Mute m
XKeySym.Play p
XKeySym.Pause Space
XKeySym.Stop s
XKeySym.Record r
XKeySym.FastFwd w
XKeySym.FastRew e
XKeySym.Next n
XKeySym.Prev v
XKeySym.Channel+ Prior
XKeySym.Channel- Next
XKeySym.Volume+ KP_Add
XKeySym.Volume- KP_Subtract
XKeySym.Audio a
XKeySym.Subtitles u
XKeySym.Schedule l
XKeySym.Channels c
XKeySym.Timers t
XKeySym.Recordings o
XKeySym.Setup S
XKeySym.Commands C
XKeySym.User1 U
XKeySym.User2 V
XKeySym.User3 W
XKeySym.User4 X
XKeySym.User5 Y
XKeySym.User6 Z
KBD.Up 00000000001B5B41
KBD.Down 00000000001B5B42
KBD.Menu 0000000000000009
KBD.Menu 000000001B5B327E
KBD.Ok 000000000000000D
KBD.Back 000000000000007F
KBD.Back 0000000000000008
KBD.Left 00000000001B5B44
KBD.Right 00000000001B5B43
KBD.Red 0000001B5B31357E
KBD.Green 0000001B5B31377E
KBD.Yellow 0000001B5B31387E
KBD.Blue 0000001B5B31397E
KBD.0 0000000000000030
KBD.1 0000000000000031
KBD.2 0000000000000032
KBD.3 0000000000000033
KBD.4 0000000000000034
KBD.5 0000000000000035
KBD.6 0000000000000036
KBD.7 0000000000000037
KBD.8 0000000000000038
KBD.9 0000000000000039
KBD.Info 0000000000000069
KBD.Play 0000000000000070
KBD.Pause 0000000000000020
KBD.Stop 0000000000000073
KBD.Record 0000000000000072
KBD.FastFwd 0000000000000066
KBD.FastRew 0000000000000077
KBD.Next 000000000000006E
KBD.Prev 0000000000000076
KBD.Power 000000000000001B
KBD.Channel+ 000000001B5B357E
KBD.Channel- 000000001B5B367E
KBD.PrevChannel 000000001B5B317E
KBD.Volume+ 000000000000002B
KBD.Volume- 000000000000002D
KBD.Mute 000000000000006D
KBD.Audio 0000000000000061
KBD.Subtitles 0000000000000075
KBD.Schedule 000000000000006C
KBD.Channels 0000000000000063
KBD.Timers 0000000000000074
KBD.Recordings 000000000000006F
KBD.Setup 0000000000000053
KBD.Commands 0000000000000043
KBD.User1 0000000000000055
KBD.User2 0000000000000056
KBD.User3 0000000000000057
KBD.User4 0000000000000058
KBD.User5 0000000000000059
KBD.User6 000000000000005A

View File

@ -0,0 +1,10 @@
--- pat.c.orig 2010-06-06 19:11:15.000000000 +0300
+++ pat.c 2010-06-06 20:42:47.000000000 +0300
@@ -490,6 +490,7 @@
}
if (Setup.UpdateChannels >= 2) {
Channel->SetPids(Vpid, Ppid, Vtype, Apids, Atypes, ALangs, Dpids, Dtypes, DLangs, Spids, SLangs, Tpid);
+ if (!cSource::IsType(Channel->Source(), 'I'))
Channel->SetCaIds(CaDescriptors->CaIds());
Channel->SetSubtitlingDescriptors(SubtitlingTypes, CompositionPageIds, AncillaryPageIds);
}

View File

@ -0,0 +1,11 @@
--- eitscan.c.orig 2010-06-06 19:11:14.000000000 +0300
+++ eitscan.c 2010-06-06 20:44:07.000000000 +0300
@@ -146,7 +146,7 @@
if (Device) {
for (cScanData *ScanData = scanList->First(); ScanData; ScanData = scanList->Next(ScanData)) {
const cChannel *Channel = ScanData->GetChannel();
- if (Channel) {
+ if (Channel && !cSource::IsType(Channel->Source(), 'I')) {
if (!Channel->Ca() || Channel->Ca() == Device->DeviceNumber() + 1 || Channel->Ca() >= CA_ENCRYPTED_MIN) {
if (Device->ProvidesTransponder(Channel)) {
if (!Device->Receiving()) {

View File

@ -0,0 +1,34 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: vdr
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable vdr:
#
# vdr_enable="YES"
#
# And if you are using vdr plugins etc. add those including any plugin
# parameters to /etc/rc.conf[.local] similar to this:
#
# vdr_flags="'-Pxineliboutput --local=none --remote=127.1:37890' \
# -Pfemon -Posdpip \
# -Posdteletext --cache-system=packed --max-cache=128' \
# -Pstreamdev-server '-Plive -i127.1' -Pepgsearch \
# -Pinfosatepg"
. /etc/rc.subr
name=vdr
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/vdr"
command_args="-d"
load_rc_config ${name}
: ${vdr_enable="NO"}
: ${vdr_chdir="%%VIDEODIR%%"}
run_rc_command "$1"

13
multimedia/vdr/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
Preliminary port of the vdr development branch, use at your own risk! :)
See vdr/webcamd dvb thread(s) on the freebsd-multimedia list for FreeBSD
notes, some links are here:
http://people.freebsd.org/~nox/dvb/
and see these links for general vdr info:
http://www.linuxtv.org/vdrwiki/index.php/Main_Page
http://www.vdr-portal.de/
WWW: http://www.tvdr.de/

208
multimedia/vdr/pkg-plist Normal file
View File

@ -0,0 +1,208 @@
bin/svdrpsend.pl
bin/vdr
lib/vdr/libvdr-dvbsddevice.so.1.7.17
lib/vdr/libvdr-svcsvr.so.1.7.17
lib/vdr/libvdr-svccli.so.1.7.17
lib/vdr/libvdr-status.so.1.7.17
lib/vdr/libvdr-skincurses.so.1.7.17
lib/vdr/libvdr-pictures.so.1.7.17
lib/vdr/libvdr-osddemo.so.1.7.17
lib/vdr/libvdr-hello.so.1.7.17
lib/vdr/libvdr-svdrpdemo.so.1.7.17
%%NLS%%share/locale/ar/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/fr_FR/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/fr_FR/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/fr_FR/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/pt_PT/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/pt_PT/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/lt_LT/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/lt_LT/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/lt_LT/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/lt_LT/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/mk_MK/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/uk_UA/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/tr_TR/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/tr_TR/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/sr_SR/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/sv_SE/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/sv_SE/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/sl_SI/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/sl_SI/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/sk_SK/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/sk_SK/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/sk_SK/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/sk_SK/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/ro_RO/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/ro_RO/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/pl_PL/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/pl_PL/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/nn_NO/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/nn_NO/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/nl_NL/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/nl_NL/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/hu_HU/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/hu_HU/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/hr_HR/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/hr_HR/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/et_EE/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/et_EE/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/el_GR/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/el_GR/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr-pictures.mo
%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr-skincurses.mo
%%NLS%%share/locale/da_DK/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/da_DK/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/cs_CZ/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/cs_CZ/LC_MESSAGES/vdr-hello.mo
%%NLS%%share/locale/ca_ES/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/ca_ES/LC_MESSAGES/vdr-hello.mo
include/vdr/libsi/util.h
include/vdr/libsi/si.h
include/vdr/libsi/section.h
include/vdr/libsi/headers.h
include/vdr/libsi/descriptor.h
include/vdr/audio.h
include/vdr/Make.config
include/vdr/videodir.h
include/vdr/transfer.h
include/vdr/tools.h
include/vdr/timers.h
include/vdr/thread.h
include/vdr/themes.h
include/vdr/svdrp.h
include/vdr/status.h
include/vdr/spu.h
include/vdr/sources.h
include/vdr/sourceparams.h
include/vdr/skinsttng.h
include/vdr/skins.h
include/vdr/skinclassic.h
include/vdr/shutdown.h
include/vdr/sections.h
include/vdr/sdt.h
include/vdr/ringbuffer.h
include/vdr/remux.h
include/vdr/remote.h
include/vdr/recording.h
include/vdr/recorder.h
include/vdr/receiver.h
include/vdr/rcu.h
include/vdr/plugin.h
include/vdr/player.h
include/vdr/pat.h
include/vdr/osdbase.h
include/vdr/osd.h
include/vdr/nit.h
include/vdr/menuitems.h
include/vdr/menu.h
include/vdr/lirc.h
include/vdr/keys.h
include/vdr/interface.h
include/vdr/i18n.h
include/vdr/font.h
include/vdr/filter.h
include/vdr/epg.h
include/vdr/eitscan.h
include/vdr/eit.h
include/vdr/dvbsubtitle.h
include/vdr/dvbspu.h
include/vdr/dvbplayer.h
include/vdr/dvbdevice.h
include/vdr/dvbci.h
include/vdr/diseqc.h
include/vdr/device.h
include/vdr/cutter.h
include/vdr/ci.h
include/vdr/config.h
include/vdr/channels.h
include/vdr/Make.global
@exec mkdir -p %D/etc/vdr/plugins
@exec chown %%VDR_USER%%:%%VDR_GROUP%% %D/etc/vdr %D/etc/vdr/plugins
@unexec if cmp -s %D/etc/vdr/remote.conf.sample %D/etc/vdr/remote.conf; then rm -f %D/etc/vdr/remote.conf; fi
etc/vdr/remote.conf.sample
@exec if [ ! -f %D/etc/vdr/remote.conf ] ; then cp -p %D/%F %B/remote.conf; fi
@unexec if cmp -s %D/etc/vdr/channels.conf.sample %D/etc/vdr/channels.conf; then rm -f %D/etc/vdr/channels.conf; fi
etc/vdr/channels.conf.sample
@exec if [ ! -f %D/etc/vdr/channels.conf ] ; then cp -p %D/%F %B/channels.conf; fi
@unexec if cmp -s %D/etc/vdr/diseqc.conf.sample %D/etc/vdr/diseqc.conf; then rm -f %D/etc/vdr/diseqc.conf; fi
etc/vdr/diseqc.conf.sample
@exec if [ ! -f %D/etc/vdr/diseqc.conf ] ; then cp -p %D/%F %B/diseqc.conf; fi
@unexec if cmp -s %D/etc/vdr/keymacros.conf.sample %D/etc/vdr/keymacros.conf; then rm -f %D/etc/vdr/keymacros.conf; fi
etc/vdr/keymacros.conf.sample
@exec if [ ! -f %D/etc/vdr/keymacros.conf ] ; then cp -p %D/%F %B/keymacros.conf; fi
@unexec if cmp -s %D/etc/vdr/sources.conf.sample %D/etc/vdr/sources.conf; then rm -f %D/etc/vdr/sources.conf; fi
etc/vdr/sources.conf.sample
@exec if [ ! -f %D/etc/vdr/sources.conf ] ; then cp -p %D/%F %B/sources.conf; fi
@unexec if cmp -s %D/etc/vdr/svdrphosts.conf.sample %D/etc/vdr/svdrphosts.conf; then rm -f %D/etc/vdr/svdrphosts.conf; fi
etc/vdr/svdrphosts.conf.sample
@exec if [ ! -f %D/etc/vdr/svdrphosts.conf ] ; then cp -p %D/%F %B/svdrphosts.conf; fi
%%NLS%%@dirrmtry share/locale/ca_ES/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/ca_ES
%%NLS%%@dirrmtry share/locale/cs_CZ/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/cs_CZ
%%NLS%%@dirrmtry share/locale/da_DK/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/da_DK
%%NLS%%@dirrmtry share/locale/de_DE/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/de_DE
%%NLS%%@dirrmtry share/locale/el_GR/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/el_GR
%%NLS%%@dirrmtry share/locale/et_EE/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/et_EE
%%NLS%%@dirrmtry share/locale/fi_FI/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/fi_FI
%%NLS%%@dirrmtry share/locale/hr_HR/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/hr_HR
%%NLS%%@dirrmtry share/locale/hu_HU/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/hu_HU
%%NLS%%@dirrmtry share/locale/it_IT/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/it_IT
%%NLS%%@dirrmtry share/locale/lt_LT/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/lt_LT
%%NLS%%@dirrmtry share/locale/mk_MK/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/mk_MK
%%NLS%%@dirrmtry share/locale/nl_NL/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/nl_NL
%%NLS%%@dirrmtry share/locale/nn_NO/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/nn_NO
%%NLS%%@dirrmtry share/locale/pl_PL/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/pl_PL
%%NLS%%@dirrmtry share/locale/ro_RO/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/ro_RO
%%NLS%%@dirrmtry share/locale/ru_RU/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/ru_RU
%%NLS%%@dirrmtry share/locale/sk_SK/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/sk_SK
%%NLS%%@dirrmtry share/locale/sl_SI/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/sl_SI
%%NLS%%@dirrmtry share/locale/tr_TR/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/tr_TR
%%NLS%%@dirrmtry share/locale/sr_SR/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/sr_SR
%%NLS%%@dirrmtry share/locale/sv_SE/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/sv_SE
%%NLS%%@dirrmtry share/locale/uk_UA/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/uk_UA
@dirrmtry etc/vdr/plugins
@dirrmtry etc/vdr
@dirrmtry lib/vdr
@dirrm include/vdr/libsi
@dirrm include/vdr
@unexec echo "Warning: If you will *NOT* use this package anymore, please remove the vdr user and group manually."