# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # multimedia/ # multimedia/vdrdevel/ # multimedia/vdrdevel/Makefile # multimedia/vdrdevel/Makefile.plugins # multimedia/vdrdevel/distinfo # multimedia/vdrdevel/pkg-descr # multimedia/vdrdevel/pkg-plist # multimedia/vdrdevel/files/ # multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsddevice.c # multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsdffdevice.c # multimedia/vdrdevel/files/patch-dvbdevice.c # multimedia/vdrdevel/files/patch-menuitems.c # multimedia/vdrdevel/files/patch-plugin.c # multimedia/vdrdevel/files/patch-removefilesordir # multimedia/vdrdevel/files/patch-tools.c # multimedia/vdrdevel/files/patch-vdr-1.7.15_FreeBSD # multimedia/vdrdevel/files/patch-vdr-1.7.16_FreeBSD # multimedia/vdrdevel/files/patch-z-Makefile # multimedia/vdrdevel/files/patch-z-libsi-si.c # multimedia/vdrdevel/files/remote.conf # multimedia/vdrdevel/files/vdr.in # multimedia/vdr-plugin-control/ # multimedia/vdr-plugin-control/Makefile # multimedia/vdr-plugin-control/distinfo # multimedia/vdr-plugin-control/pkg-descr # multimedia/vdr-plugin-control/pkg-plist # multimedia/vdr-plugin-control/files/ # multimedia/vdr-plugin-control/files/patch-Makefile # multimedia/vdr-plugin-control/files/patch-StringArray.c # multimedia/vdr-plugin-control/files/patch-control.c # multimedia/vdr-plugin-control/files/patch-stack.c # multimedia/vdr-plugin-control/files/patch-telnet.c # multimedia/vdr-plugin-epgsearch/ # multimedia/vdr-plugin-epgsearch/Makefile # multimedia/vdr-plugin-epgsearch/distinfo # multimedia/vdr-plugin-epgsearch/pkg-descr # multimedia/vdr-plugin-epgsearch/pkg-plist # multimedia/vdr-plugin-epgsearch/files/ # multimedia/vdr-plugin-epgsearch/files/patch-Makefile # multimedia/vdr-plugin-epgsearch/files/patch-createcats.c # multimedia/vdr-plugin-epgsearch/files/patch-distance.c # multimedia/vdr-plugin-epgsearch/files/patch-epgsearch.c # multimedia/vdr-plugin-epgsearch/files/patch-epgsearchtools.c # multimedia/vdr-plugin-epgsearch/files/patch-menu_deftimercheckmethod.c # multimedia/vdr-plugin-epgsearch/files/patch-menu_whatson.c # multimedia/vdr-plugin-epgsearch/files/patch-searchtimer_thread.c # multimedia/vdr-plugin-epgsearch/files/patch-timer_thread.c # multimedia/vdr-plugin-epgsearch/files/patch-uservars.c # multimedia/vdr-plugin-femon/ # multimedia/vdr-plugin-femon/Makefile # multimedia/vdr-plugin-femon/distinfo # multimedia/vdr-plugin-femon/pkg-descr # multimedia/vdr-plugin-femon/pkg-plist # multimedia/vdr-plugin-femon/files/ # multimedia/vdr-plugin-femon/files/patch-Makefile # multimedia/vdr-plugin-femon/files/patch-femon-1.7.7.patch # multimedia/vdr-plugin-infosatepg/ # multimedia/vdr-plugin-infosatepg/Makefile # multimedia/vdr-plugin-infosatepg/distinfo # multimedia/vdr-plugin-infosatepg/pkg-descr # multimedia/vdr-plugin-infosatepg/pkg-plist # multimedia/vdr-plugin-infosatepg/files/ # multimedia/vdr-plugin-infosatepg/files/patch-Makefile # multimedia/vdr-plugin-infosatepg/files/patch-filter.cpp # multimedia/vdr-plugin-infosatepg/files/patch-filter.h # multimedia/vdr-plugin-infosatepg/files/patch-global.cpp # multimedia/vdr-plugin-infosatepg/files/patch-global.h # multimedia/vdr-plugin-infosatepg/files/patch-infosatepg.cpp # multimedia/vdr-plugin-infosatepg/files/patch-process.cpp # multimedia/vdr-plugin-infosatepg/files/patch-readline.cpp # multimedia/vdr-plugin-iptv/ # multimedia/vdr-plugin-iptv/Makefile # multimedia/vdr-plugin-iptv/distinfo # multimedia/vdr-plugin-iptv/pkg-descr # multimedia/vdr-plugin-iptv/pkg-plist # multimedia/vdr-plugin-iptv/pkg-plist.foo # multimedia/vdr-plugin-iptv/files/ # multimedia/vdr-plugin-iptv/files/channels.conf.iptv # multimedia/vdr-plugin-iptv/files/patch-Makefile # multimedia/vdr-plugin-iptv/files/patch-common.h # multimedia/vdr-plugin-iptv/files/patch-iptv-vlc2iptv # multimedia/vdr-plugin-iptv/files/patch-protocolext.c # multimedia/vdr-plugin-iptv/files/patch-sectionfilter.h # multimedia/vdr-plugin-iptv/files/patch-socket.h # multimedia/vdr-plugin-iptv/files/vlcinput/ # multimedia/vdr-plugin-iptv/files/vlcinput/3Sat.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1xtra.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio2.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio3.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4lw.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5liveint.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5livesport.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio6music.conf # multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio7.conf # multimedia/vdr-plugin-iptv/files/vlcinput/Bundesligen-TV.conf # multimedia/vdr-plugin-iptv/files/vlcinput/Daytona-Beach.conf # multimedia/vdr-plugin-iptv/files/vlcinput/NASA-1200-Kbit.conf # multimedia/vdr-plugin-iptv/files/vlcinput/NASA-500-Kbit.conf # multimedia/vdr-plugin-iptv/files/vlcinput/NASA.conf # multimedia/vdr-plugin-iptv/files/vlcinput/Sky-News.conf # multimedia/vdr-plugin-iptv/files/vlcinput/THE_VOICE.conf # multimedia/vdr-plugin-osdpip/ # multimedia/vdr-plugin-osdpip/Makefile # multimedia/vdr-plugin-osdpip/distinfo # multimedia/vdr-plugin-osdpip/pkg-descr # multimedia/vdr-plugin-osdpip/pkg-plist # multimedia/vdr-plugin-osdpip/files/ # multimedia/vdr-plugin-osdpip/files/patch-Makefile # multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0 # multimedia/vdr-plugin-osdteletext/ # multimedia/vdr-plugin-osdteletext/Makefile # multimedia/vdr-plugin-osdteletext/distinfo # multimedia/vdr-plugin-osdteletext/pkg-descr # multimedia/vdr-plugin-osdteletext/pkg-plist # multimedia/vdr-plugin-osdteletext/files/ # multimedia/vdr-plugin-osdteletext/files/patch-Makefile # multimedia/vdr-plugin-osdteletext/files/patch-txtrecv.c # multimedia/vdr-plugin-osdteletext/files/patch-vdr-osdteletext-0.8.3 # multimedia/vdr-plugin-remote/ # multimedia/vdr-plugin-remote/Makefile # multimedia/vdr-plugin-remote/distinfo # multimedia/vdr-plugin-remote/pkg-descr # multimedia/vdr-plugin-remote/pkg-plist # multimedia/vdr-plugin-remote/files/ # multimedia/vdr-plugin-remote/files/patch-Makefile # multimedia/vdr-plugin-remote/files/patch-uhid1 # multimedia/vdr-plugin-skinenigmang/ # multimedia/vdr-plugin-skinenigmang/Makefile # multimedia/vdr-plugin-skinenigmang/distinfo # multimedia/vdr-plugin-skinenigmang/pkg-descr # multimedia/vdr-plugin-skinenigmang/pkg-plist # multimedia/vdr-plugin-skinenigmang/files/ # multimedia/vdr-plugin-skinenigmang/files/patch-Makefile # multimedia/vdr-plugin-skinenigmang/files/patch-vdr-skinenigmang-0.1.1 # multimedia/vdr-plugin-softdevice/ # multimedia/vdr-plugin-softdevice/Makefile # multimedia/vdr-plugin-softdevice/distinfo # multimedia/vdr-plugin-softdevice/pkg-descr # multimedia/vdr-plugin-softdevice/pkg-plist # multimedia/vdr-plugin-softdevice/files/ # multimedia/vdr-plugin-softdevice/files/patch-Makefile # multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c # multimedia/vdr-plugin-softdevice/files/patch-shm-common.h # multimedia/vdr-plugin-softdevice/files/patch-vdr-softdevice_CVS-20100414 # multimedia/vdr-plugin-streamdev/ # multimedia/vdr-plugin-streamdev/Makefile # multimedia/vdr-plugin-streamdev/distinfo # multimedia/vdr-plugin-streamdev/pkg-descr # multimedia/vdr-plugin-streamdev/pkg-plist # multimedia/vdr-plugin-streamdev/files/ # multimedia/vdr-plugin-streamdev/files/patch-Makefile # multimedia/vdr-plugin-streamdev/files/patch-client-setup.c # multimedia/vdr-plugin-streamdev/files/patch-server-componentIGMP.c # multimedia/vdr-plugin-streamdev/files/patch-server-livestreamer.c # multimedia/vdr-plugin-streamdev/files/patch-server-recplayer.c # multimedia/vdr-plugin-streamdev/files/patch-server-setup.c # multimedia/vdr-plugin-vnsiserver/ # multimedia/vdr-plugin-vnsiserver/Makefile # multimedia/vdr-plugin-vnsiserver/distinfo # multimedia/vdr-plugin-vnsiserver/pkg-descr # multimedia/vdr-plugin-vnsiserver/pkg-plist # multimedia/vdr-plugin-vnsiserver/files/ # multimedia/vdr-plugin-vnsiserver/files/patch-Makefile # multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c # multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.h # multimedia/vdr-plugin-vnsiserver/files/patch-recplayer.c # multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c # multimedia/vdr-plugin-vnsiserver/files/patch-server.c # multimedia/vdr-plugin-xineliboutput/ # multimedia/vdr-plugin-xineliboutput/Makefile # multimedia/vdr-plugin-xineliboutput/distinfo # multimedia/vdr-plugin-xineliboutput/pkg-descr # multimedia/vdr-plugin-xineliboutput/pkg-plist # multimedia/vdr-plugin-xineliboutput/files/ # multimedia/vdr-plugin-xineliboutput/files/patch-Makefile # multimedia/vdr-plugin-xineliboutput/files/patch-configure # multimedia/vdr-plugin-xineliboutput/files/patch-tools-cxsocket.c # multimedia/vdr-plugin-xineliboutput/files/patch-vdr-xineliboutput_CVS-20100718 # multimedia/vdr-plugin-xineliboutput/files/patch-xine_sxfe_frontend.c # multimedia/vdr-plugins/ # multimedia/vdr-plugins/Makefile # multimedia/vdr-plugins/pkg-descr # devel/ # devel/cxxtools/ # devel/cxxtools/Makefile # devel/cxxtools/distinfo # devel/cxxtools/pkg-descr # devel/cxxtools/pkg-plist # www/ # www/tntnet/ # www/tntnet/Makefile # www/tntnet/distinfo # www/tntnet/pkg-descr # www/tntnet/pkg-plist # www/tntnet/files/ # www/tntnet/files/patch-etc # www/tntnet/files/patch-sdk-demos-calc-Makefile.in # www/vdr-plugin-live/ # www/vdr-plugin-live/Makefile # www/vdr-plugin-live/distinfo # www/vdr-plugin-live/pkg-descr # www/vdr-plugin-live/pkg-plist # www/vdr-plugin-live/files/ # www/vdr-plugin-live/files/patch-Makefile # www/vdradmin-am/ # www/vdradmin-am/Makefile # www/vdradmin-am/distinfo # www/vdradmin-am/pkg-descr # www/vdradmin-am/pkg-plist # www/vdradmin-am/files/ # www/vdradmin-am/files/patch-install.sh # www/vdradmin-am/files/vdradmind.conf # www/vdradmin-am/files/vdradmind.in # echo c - multimedia/ mkdir -p multimedia/ > /dev/null 2>&1 echo c - multimedia/vdrdevel/ mkdir -p multimedia/vdrdevel/ > /dev/null 2>&1 echo x - multimedia/vdrdevel/Makefile sed 's/^X//' >multimedia/vdrdevel/Makefile << '6becf3403f7baa236fa20df843b6c572' X# New ports collection makefile for: vdr X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr XPORTVERSION= 1.7.16 XCATEGORIES= multimedia XMASTER_SITES= ftp://ftp.tvdr.de/vdr/Developer/ XPKGNAMESUFFIX= -devel X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - development version X XBUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat XLIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg XBUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig XRUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig X XDIST_SUBDIR= vdr XUSE_BZIP2= yes XUSE_GMAKE= yes XUSE_GNOME+= pkgconfig XPORTDOCS= COPYING INSTALL MANUAL README XMAN1= vdr.1 XMAN5= vdr.5 XMANCOMPRESSED= yes XMAKE_JOBS_SAFE= yes XCONFDIR= $(ETCDIR) XMAKE_ARGS+= DVBDIR=${LOCALBASE}/include XMAKE_ARGS+= VDR_USER=${VDR_USER} XMAKE_ARGS+= CONFDIR=$(CONFDIR) XMAKE_ARGS+= OSTYPE=FreeBSD XALL_TARGET= all plugins X XVIDEODIR= /video XSUB_LIST+= VIDEODIR=${VIDEODIR} XUSE_RC_SUBR= vdr XVDR_USER= vdr XVDR_GROUP= vdr XUSERS= ${VDR_USER} XGROUPS= ${VDR_GROUP} XPLIST_SUB= VDR_USER=${VDR_USER} XPLIST_SUB+= VDR_GROUP=${VDR_GROUP} X X.include X Xpost-patch: X @${SED} 's|^\(VIDEODIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${VIDEODIR}|' \ X ${WRKSRC}/Make.config.template >${WRKSRC}/Make.config X Xpost-install: X ${MKDIR} ${CONFDIR}/plugins X ${CHOWN} ${VDR_USER}:${VDR_GROUP} ${CONFDIR} ${CONFDIR}/plugins X ${INSTALL_DATA} ${FILESDIR}/remote.conf ${CONFDIR}/remote.conf.sample X @if [ ! -f ${CONFDIR}/remote.conf ]; then \ X ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${FILESDIR}/remote.conf ${CONFDIR}; \ X fi X for i in $$(cd ${WRKSRC} && ls *.conf); do \ X ${INSTALL_DATA} ${WRKSRC}/$$i ${CONFDIR}/$$i.sample; \ X if [ ! -f ${CONFDIR}/$$i ]; then \ X ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/$$i ${CONFDIR}/$$i; \ X fi; \ X done X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 6becf3403f7baa236fa20df843b6c572 echo x - multimedia/vdrdevel/Makefile.plugins sed 's/^X//' >multimedia/vdrdevel/Makefile.plugins << '908c99610f98686ce83bb730cf6eb5fa' X# this is to be included by vdr plugin ports X# X# $FreeBSD: $ X XBUILD_DEPENDS+= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat X XBUILD_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdrdevel XRUN_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdrdevel X XDIST_SUBDIR= vdr XPATCH_SUBDIR= vdr XUSE_GMAKE= yes XVDRDIR= ${LOCALBASE}/include/vdr XVDRINCDIR= ${LOCALBASE}/include XMAKE_ARGS+= DVBDIR=${LOCALBASE}/include XMAKE_ARGS+= VDRDIR=${VDRDIR} XMAKE_ARGS+= VDR_USER=${VDR_USER} XMAKE_ARGS+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" XMAKE_ARGS+= OSTYPE=FreeBSD XPLUGIN?= ${PORTNAME:S/^vdr_plugin_//} XCONFIGURE_ENV+= LOCALBASE=${LOCALBASE} XMAKE_ENV+= LOCALBASE=${LOCALBASE} XVDR_USER= vdr XVDR_GROUP= vdr XPLIST_SUB= VDR_USER=${VDR_USER} XPLIST_SUB+= VDR_GROUP=${VDR_GROUP} X Xpost-patch-plugin: X @${MKDIR} ${WRKDIR}/lib ${WRKDIR}/locale X @${REINPLACE_CMD} 's/^\(LIBDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/lib/;'\\ X 's/^\(LOCALEDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/locale/;'\\ X 's/^\(VDRDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRDIR:S-/-\\\\/-g}/;"\\ X 's/^\(VDRINCDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRINCDIR:S-/-\\\\/-g}/;"\\ X 's/^\(BINDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${PREFIX:S-/-\\\\/-g}\/bin/;" \ X ${WRKSRC}/Makefile 908c99610f98686ce83bb730cf6eb5fa echo x - multimedia/vdrdevel/distinfo sed 's/^X//' >multimedia/vdrdevel/distinfo << '393c38e16c434d2b430660f1b87324f2' XSHA256 (vdr/vdr-1.7.16.tar.bz2) = f760d196c6f976043774f6ad9ba1af956d24ad456f8b2fea7dd6a73d38c96e95 XSIZE (vdr/vdr-1.7.16.tar.bz2) = 659013 393c38e16c434d2b430660f1b87324f2 echo x - multimedia/vdrdevel/pkg-descr sed 's/^X//' >multimedia/vdrdevel/pkg-descr << 'a836792f8d3b7b07aaebd9848569b7eb' XPreliminary port of the vdr development branch, use at your own risk! :) X XSee vdr/webcamd dvb thread(s) on the freebsd-multimedia list for FreeBSD Xnotes, some links are here: X X http://people.freebsd.org/~nox/dvb/ X Xand see these links for general vdr info: X X http://www.linuxtv.org/vdrwiki/index.php/Main_Page X http://www.vdr-portal.de/ X XWWW: http://www.tvdr.de/ a836792f8d3b7b07aaebd9848569b7eb echo x - multimedia/vdrdevel/pkg-plist sed 's/^X//' >multimedia/vdrdevel/pkg-plist << 'f299476139904b49facceea44ee297f7' Xbin/svdrpsend.pl Xbin/vdr Xlib/vdr/libvdr-dvbsddevice.so.1.7.16 Xlib/vdr/libvdr-svcsvr.so.1.7.16 Xlib/vdr/libvdr-svccli.so.1.7.16 Xlib/vdr/libvdr-status.so.1.7.16 Xlib/vdr/libvdr-skincurses.so.1.7.16 Xlib/vdr/libvdr-pictures.so.1.7.16 Xlib/vdr/libvdr-osddemo.so.1.7.16 Xlib/vdr/libvdr-hello.so.1.7.16 Xlib/vdr/libvdr-svdrpdemo.so.1.7.16 Xshare/locale/ar/LC_MESSAGES/vdr.mo Xshare/locale/es_ES/LC_MESSAGES/vdr.mo Xshare/locale/es_ES/LC_MESSAGES/vdr-hello.mo Xshare/locale/fr_FR/LC_MESSAGES/vdr.mo Xshare/locale/fr_FR/LC_MESSAGES/vdr-hello.mo Xshare/locale/fr_FR/LC_MESSAGES/vdr-pictures.mo Xshare/locale/pt_PT/LC_MESSAGES/vdr.mo Xshare/locale/pt_PT/LC_MESSAGES/vdr-hello.mo Xshare/locale/zh_CN/LC_MESSAGES/vdr.mo Xshare/locale/zh_CN/LC_MESSAGES/vdr-hello.mo Xshare/locale/lt_LT/LC_MESSAGES/vdr.mo Xshare/locale/lt_LT/LC_MESSAGES/vdr-hello.mo Xshare/locale/lt_LT/LC_MESSAGES/vdr-pictures.mo Xshare/locale/lt_LT/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/mk_MK/LC_MESSAGES/vdr.mo Xshare/locale/uk_UA/LC_MESSAGES/vdr.mo Xshare/locale/tr_TR/LC_MESSAGES/vdr.mo Xshare/locale/tr_TR/LC_MESSAGES/vdr-hello.mo Xshare/locale/sv_SE/LC_MESSAGES/vdr.mo Xshare/locale/sv_SE/LC_MESSAGES/vdr-hello.mo Xshare/locale/sl_SI/LC_MESSAGES/vdr.mo Xshare/locale/sl_SI/LC_MESSAGES/vdr-hello.mo Xshare/locale/sk_SK/LC_MESSAGES/vdr.mo Xshare/locale/sk_SK/LC_MESSAGES/vdr-hello.mo Xshare/locale/sk_SK/LC_MESSAGES/vdr-pictures.mo Xshare/locale/sk_SK/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/ru_RU/LC_MESSAGES/vdr.mo Xshare/locale/ru_RU/LC_MESSAGES/vdr-hello.mo Xshare/locale/ru_RU/LC_MESSAGES/vdr-pictures.mo Xshare/locale/ru_RU/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/ro_RO/LC_MESSAGES/vdr.mo Xshare/locale/ro_RO/LC_MESSAGES/vdr-hello.mo Xshare/locale/pl_PL/LC_MESSAGES/vdr.mo Xshare/locale/pl_PL/LC_MESSAGES/vdr-hello.mo Xshare/locale/nn_NO/LC_MESSAGES/vdr.mo Xshare/locale/nn_NO/LC_MESSAGES/vdr-hello.mo Xshare/locale/nl_NL/LC_MESSAGES/vdr.mo Xshare/locale/nl_NL/LC_MESSAGES/vdr-hello.mo Xshare/locale/it_IT/LC_MESSAGES/vdr.mo Xshare/locale/it_IT/LC_MESSAGES/vdr-hello.mo Xshare/locale/it_IT/LC_MESSAGES/vdr-pictures.mo Xshare/locale/it_IT/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/hu_HU/LC_MESSAGES/vdr.mo Xshare/locale/hu_HU/LC_MESSAGES/vdr-hello.mo Xshare/locale/hr_HR/LC_MESSAGES/vdr.mo Xshare/locale/hr_HR/LC_MESSAGES/vdr-hello.mo Xshare/locale/fi_FI/LC_MESSAGES/vdr.mo Xshare/locale/fi_FI/LC_MESSAGES/vdr-hello.mo Xshare/locale/fi_FI/LC_MESSAGES/vdr-pictures.mo Xshare/locale/fi_FI/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/et_EE/LC_MESSAGES/vdr.mo Xshare/locale/et_EE/LC_MESSAGES/vdr-hello.mo Xshare/locale/el_GR/LC_MESSAGES/vdr.mo Xshare/locale/el_GR/LC_MESSAGES/vdr-hello.mo Xshare/locale/de_DE/LC_MESSAGES/vdr.mo Xshare/locale/de_DE/LC_MESSAGES/vdr-hello.mo Xshare/locale/de_DE/LC_MESSAGES/vdr-pictures.mo Xshare/locale/de_DE/LC_MESSAGES/vdr-skincurses.mo Xshare/locale/da_DK/LC_MESSAGES/vdr.mo Xshare/locale/da_DK/LC_MESSAGES/vdr-hello.mo Xshare/locale/cs_CZ/LC_MESSAGES/vdr.mo Xshare/locale/cs_CZ/LC_MESSAGES/vdr-hello.mo Xshare/locale/ca_ES/LC_MESSAGES/vdr.mo Xshare/locale/ca_ES/LC_MESSAGES/vdr-hello.mo Xinclude/vdr/libsi/util.h Xinclude/vdr/libsi/si.h Xinclude/vdr/libsi/section.h Xinclude/vdr/libsi/headers.h Xinclude/vdr/libsi/descriptor.h Xinclude/vdr/audio.h Xinclude/vdr/Make.config Xinclude/vdr/videodir.h Xinclude/vdr/transfer.h Xinclude/vdr/tools.h Xinclude/vdr/timers.h Xinclude/vdr/thread.h Xinclude/vdr/themes.h Xinclude/vdr/svdrp.h Xinclude/vdr/status.h Xinclude/vdr/spu.h Xinclude/vdr/sources.h Xinclude/vdr/sourceparams.h Xinclude/vdr/skinsttng.h Xinclude/vdr/skins.h Xinclude/vdr/skinclassic.h Xinclude/vdr/shutdown.h Xinclude/vdr/sections.h Xinclude/vdr/sdt.h Xinclude/vdr/ringbuffer.h Xinclude/vdr/remux.h Xinclude/vdr/remote.h Xinclude/vdr/recording.h Xinclude/vdr/recorder.h Xinclude/vdr/receiver.h Xinclude/vdr/rcu.h Xinclude/vdr/plugin.h Xinclude/vdr/player.h Xinclude/vdr/pat.h Xinclude/vdr/osdbase.h Xinclude/vdr/osd.h Xinclude/vdr/nit.h Xinclude/vdr/menuitems.h Xinclude/vdr/menu.h Xinclude/vdr/lirc.h Xinclude/vdr/keys.h Xinclude/vdr/interface.h Xinclude/vdr/i18n.h Xinclude/vdr/font.h Xinclude/vdr/filter.h Xinclude/vdr/epg.h Xinclude/vdr/eitscan.h Xinclude/vdr/eit.h Xinclude/vdr/dvbsubtitle.h Xinclude/vdr/dvbspu.h Xinclude/vdr/dvbplayer.h Xinclude/vdr/dvbdevice.h Xinclude/vdr/dvbci.h Xinclude/vdr/diseqc.h Xinclude/vdr/device.h Xinclude/vdr/cutter.h Xinclude/vdr/ci.h Xinclude/vdr/config.h Xinclude/vdr/channels.h Xinclude/vdr/Make.global X@exec mkdir -p %D/etc/vdr/plugins X@exec chown %%VDR_USER%%:%%VDR_GROUP%% %D/etc/vdr %D/etc/vdr/plugins X@unexec if cmp -s %D/etc/vdr/remote.conf.sample %D/etc/vdr/remote.conf; then rm -f %D/etc/vdr/remote.conf; fi Xetc/vdr/remote.conf.sample X@exec if [ ! -f %D/etc/vdr/remote.conf ] ; then cp -p %D/%F %B/remote.conf; fi X@unexec if cmp -s %D/etc/vdr/channels.conf.sample %D/etc/vdr/channels.conf; then rm -f %D/etc/vdr/channels.conf; fi Xetc/vdr/channels.conf.sample X@exec if [ ! -f %D/etc/vdr/channels.conf ] ; then cp -p %D/%F %B/channels.conf; fi X@unexec if cmp -s %D/etc/vdr/diseqc.conf.sample %D/etc/vdr/diseqc.conf; then rm -f %D/etc/vdr/diseqc.conf; fi Xetc/vdr/diseqc.conf.sample X@exec if [ ! -f %D/etc/vdr/diseqc.conf ] ; then cp -p %D/%F %B/diseqc.conf; fi X@unexec if cmp -s %D/etc/vdr/keymacros.conf.sample %D/etc/vdr/keymacros.conf; then rm -f %D/etc/vdr/keymacros.conf; fi Xetc/vdr/keymacros.conf.sample X@exec if [ ! -f %D/etc/vdr/keymacros.conf ] ; then cp -p %D/%F %B/keymacros.conf; fi X@unexec if cmp -s %D/etc/vdr/sources.conf.sample %D/etc/vdr/sources.conf; then rm -f %D/etc/vdr/sources.conf; fi Xetc/vdr/sources.conf.sample X@exec if [ ! -f %D/etc/vdr/sources.conf ] ; then cp -p %D/%F %B/sources.conf; fi X@unexec if cmp -s %D/etc/vdr/svdrphosts.conf.sample %D/etc/vdr/svdrphosts.conf; then rm -f %D/etc/vdr/svdrphosts.conf; fi Xetc/vdr/svdrphosts.conf.sample X@exec if [ ! -f %D/etc/vdr/svdrphosts.conf ] ; then cp -p %D/%F %B/svdrphosts.conf; fi X@dirrmtry share/locale/ca_ES/LC_MESSAGES X@dirrmtry share/locale/ca_ES X@dirrmtry share/locale/cs_CZ/LC_MESSAGES X@dirrmtry share/locale/cs_CZ X@dirrmtry share/locale/da_DK/LC_MESSAGES X@dirrmtry share/locale/da_DK X@dirrmtry share/locale/de_DE/LC_MESSAGES X@dirrmtry share/locale/de_DE X@dirrmtry share/locale/el_GR/LC_MESSAGES X@dirrmtry share/locale/el_GR X@dirrmtry share/locale/et_EE/LC_MESSAGES X@dirrmtry share/locale/et_EE X@dirrmtry share/locale/fi_FI/LC_MESSAGES X@dirrmtry share/locale/fi_FI X@dirrmtry share/locale/hr_HR/LC_MESSAGES X@dirrmtry share/locale/hr_HR X@dirrmtry share/locale/hu_HU/LC_MESSAGES X@dirrmtry share/locale/hu_HU X@dirrmtry share/locale/it_IT/LC_MESSAGES X@dirrmtry share/locale/it_IT X@dirrmtry share/locale/lt_LT/LC_MESSAGES X@dirrmtry share/locale/lt_LT X@dirrmtry share/locale/mk_MK/LC_MESSAGES X@dirrmtry share/locale/mk_MK X@dirrmtry share/locale/nl_NL/LC_MESSAGES X@dirrmtry share/locale/nl_NL X@dirrmtry share/locale/nn_NO/LC_MESSAGES X@dirrmtry share/locale/nn_NO X@dirrmtry share/locale/pl_PL/LC_MESSAGES X@dirrmtry share/locale/pl_PL X@dirrmtry share/locale/ro_RO/LC_MESSAGES X@dirrmtry share/locale/ro_RO X@dirrmtry share/locale/ru_RU/LC_MESSAGES X@dirrmtry share/locale/ru_RU X@dirrmtry share/locale/sk_SK/LC_MESSAGES X@dirrmtry share/locale/sk_SK X@dirrmtry share/locale/sl_SI/LC_MESSAGES X@dirrmtry share/locale/sl_SI X@dirrmtry share/locale/tr_TR/LC_MESSAGES X@dirrmtry share/locale/tr_TR X@dirrmtry share/locale/sv_SE/LC_MESSAGES X@dirrmtry share/locale/sv_SE X@dirrmtry share/locale/uk_UA/LC_MESSAGES X@dirrmtry share/locale/uk_UA X@dirrmtry etc/vdr/plugins X@dirrmtry etc/vdr X@dirrmtry lib/vdr X@dirrm include/vdr/libsi X@dirrm include/vdr X@unexec echo "Warning: If you will *NOT* use this package anymore, please remove the vdr user and group manually." f299476139904b49facceea44ee297f7 echo c - multimedia/vdrdevel/files/ mkdir -p multimedia/vdrdevel/files/ > /dev/null 2>&1 echo x - multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsddevice.c sed 's/^X//' >multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsddevice.c << '07a974b3998b4d423878c2ab90a6c777' X--- PLUGINS/src/dvbsddevice/dvbsddevice.c.orig X+++ PLUGINS/src/dvbsddevice/dvbsddevice.c X@@ -6,6 +6,7 @@ X * $Id: dvbsddevice.c 1.3 2010/01/30 10:05:42 kls Exp $ X */ X X+#include X #include X #include "dvbsdffdevice.h" X 07a974b3998b4d423878c2ab90a6c777 echo x - multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsdffdevice.c sed 's/^X//' >multimedia/vdrdevel/files/patch-PLUGINS-src-dvbsddevice-dvbsdffdevice.c << 'df3b7ee0997d6dc8a2a3e8d927709fba' X--- PLUGINS/src/dvbsddevice/dvbsdffdevice.c.orig X+++ PLUGINS/src/dvbsddevice/dvbsdffdevice.c X@@ -6,12 +6,16 @@ X * $Id: dvbsdffdevice.c 2.26 2010/01/30 10:05:23 kls Exp $ X */ X X+#include X #include "dvbsdffdevice.h" X #include X #include X #include X #include X #include X+#ifdef __FreeBSD__ X+typedef struct timespec __kernel_time_t; X+#endif X #include X #include X #include df3b7ee0997d6dc8a2a3e8d927709fba echo x - multimedia/vdrdevel/files/patch-dvbdevice.c sed 's/^X//' >multimedia/vdrdevel/files/patch-dvbdevice.c << '2f1d771bd21111302f5fda46c073ca41' X--- dvbdevice.c.orig X+++ dvbdevice.c X@@ -7,6 +7,7 @@ X * $Id: dvbdevice.c 2.32 2010/03/07 13:58:24 kls Exp $ X */ X X+#include X #include "dvbdevice.h" X #include X #include 2f1d771bd21111302f5fda46c073ca41 echo x - multimedia/vdrdevel/files/patch-menuitems.c sed 's/^X//' >multimedia/vdrdevel/files/patch-menuitems.c << 'ea969350e9983c796a19829c7eb88f56' X--- menuitems.c.orig X+++ menuitems.c X@@ -7,6 +7,7 @@ X * $Id: menuitems.c 2.6 2010/02/16 14:44:35 kls Exp $ X */ X X+#include X #include "menuitems.h" X #include X #include ea969350e9983c796a19829c7eb88f56 echo x - multimedia/vdrdevel/files/patch-plugin.c sed 's/^X//' >multimedia/vdrdevel/files/patch-plugin.c << '3d977ae02d1c234686c544e4a1fdb3ae' X--- plugin.c.orig X+++ plugin.c X@@ -198,11 +198,14 @@ bool cDll::Load(bool Log) X } X handle = dlopen(fileName, RTLD_NOW); X const char *error = dlerror(); X- if (!error) { X+ if (handle) { X void *(*creator)(void); X creator = (void *(*)(void))dlsym(handle, "VDRPluginCreator"); X- if (!(error = dlerror())) X+ error = dlerror(); X+ if (creator) { X plugin = (cPlugin *)creator(); X+ error = NULL; X+ } X } X if (!error) { X if (plugin && args) { 3d977ae02d1c234686c544e4a1fdb3ae echo x - multimedia/vdrdevel/files/patch-removefilesordir sed 's/^X//' >multimedia/vdrdevel/files/patch-removefilesordir << '31b338a6c789135f2bafbcef48cb1761' X--- tools.c.orig X+++ tools.c X@@ -368,7 +368,7 @@ X cString buffer = AddDirectory(FileName, e->d_name); X if (FollowSymlinks) { X struct stat st2; X- if (stat(buffer, &st2) == 0) { X+ if (lstat(buffer, &st2) == 0) { X if (S_ISLNK(st2.st_mode)) { X int size = st2.st_size + 1; X char *l = MALLOC(char, size); X@@ -377,14 +377,12 @@ X if (errno != EINVAL) X LOG_ERROR_STR(*buffer); X } X- else if (n < size) { X+ else { X l[n] = 0; X dsyslog("removing %s", l); X if (remove(l) < 0) X LOG_ERROR_STR(l); X } X- else X- esyslog("ERROR: symlink name length (%d) exceeded anticipated buffer size (%d)", n, size); X free(l); X } X } 31b338a6c789135f2bafbcef48cb1761 echo x - multimedia/vdrdevel/files/patch-tools.c sed 's/^X//' >multimedia/vdrdevel/files/patch-tools.c << 'd28cab70952df4fe497b13e0f338f5c1' X--- tools.c.orig X+++ tools.c X@@ -1201,9 +1201,35 @@ cReadLine::~cReadLine() X free(buffer); X } X X+#ifdef __FreeBSD__ X+#if __FreeBSD_version > 800000 X+#define HAVE_GETLINE X+#endif X+#else X+#define HAVE_GETLINE X+#endif X+ X char *cReadLine::Read(FILE *f) X { X+#ifndef HAVE_GETLINE X+ size_t n; X+ X+ if (!buffer) { X+ if (!(buffer = (char *)malloc(size = 4096))) X+ return NULL; X+ } X+ if (!fgets(buffer, size, f)) X+ return NULL; X+ while ((n = strlen(buffer)) >= size - 1 && buffer[n - 1] != '\n') { X+ if (!(buffer = (char *)realloc(buffer, size * 2))) X+ return NULL; X+ size *= 2; X+ if (!fgets(buffer + n, size - n, f)) X+ break; X+ } X+#else X int n = getline(&buffer, &size, f); X+#endif X if (n > 0) { X n--; X if (buffer[n] == '\n') { d28cab70952df4fe497b13e0f338f5c1 echo x - multimedia/vdrdevel/files/patch-vdr-1.7.15_FreeBSD sed 's/^X//' >multimedia/vdrdevel/files/patch-vdr-1.7.15_FreeBSD << '394e01f75b1d621c3d8c7a7e459b4035' 394e01f75b1d621c3d8c7a7e459b4035 echo x - multimedia/vdrdevel/files/patch-vdr-1.7.16_FreeBSD sed 's/^X//' >multimedia/vdrdevel/files/patch-vdr-1.7.16_FreeBSD << '012fb30ce4d8cced7c567675f98c6724' XIndex: Make.config.template X=================================================================== XRCS file: /progs/network/ccvs/vdr/Make.config.template,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.5 Xdiff -u -r1.1.1.3 -r1.5 X--- Make.config.template 2010/03/01 09:42:48 1.1.1.3 X+++ Make.config.template 2010/03/01 09:58:06 1.5 X@@ -8,6 +8,11 @@ X # X # $Id: Make.config.template 2.2 2010/02/06 14:50:03 kls Exp $ X X+OSTYPE ?= $(shell uname -s) X+ifeq ($(OSTYPE),FreeBSD) X+FREEBSD=1 X+endif X+ X ### The C compiler and options: X X CC = gcc X@@ -23,20 +28,35 @@ X X ### The directory environment: X X-#DVBDIR = /usr/src/v4l-dvb/linux X-MANDIR = /usr/local/man X-BINDIR = /usr/local/bin X+PREFIX = /usr/local X+MANDIR = $(PREFIX)/man X+BINDIR = $(PREFIX)/bin X X-LOCDIR = ./locale X PLUGINDIR= ./PLUGINS X-PLUGINLIBDIR= $(PLUGINDIR)/lib X VIDEODIR = /video X+ X+ifdef FREEBSD X+# you have to set DVBDIR to a valid path!!! X+# you will need extra patches for DVBDIR!!! X+DVBDIR = /usr/src/v4l-dvb/linux X+LOCDIR = $(PREFIX)/share/locale X+CONFDIR = $(PREFIX)/etc/vdr X+PLUGINLIBDIR= $(PREFIX)/lib/vdr X+else X+#DVBDIR = /usr/src/v4l-dvb/linux X+LOCDIR = ./locale X CONFDIR = $(VIDEODIR) X+PLUGINLIBDIR= $(PLUGINDIR)/lib X+endif X X ### The remote control: X X LIRC_DEVICE = /dev/lircd X+ifdef FREEBSD X+RCU_DEVICE = /dev/cuau0 X+else X RCU_DEVICE = /dev/ttyS1 X+endif X X ## Define if you want vdr to not run as root X #VDR_USER = vdr X@@ -45,4 +65,8 @@ X X ifdef DVBDIR X INCLUDES += -I$(DVBDIR)/include X+endif X+ X+ifdef FREEBSD X+INCLUDES += -I/usr/local/include X endif XIndex: Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/Makefile,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.8 Xdiff -u -r1.1.1.5 -r1.8 X--- Makefile 2010/10/19 20:28:49 1.1.1.5 X+++ Makefile 2010/10/19 20:32:58 1.8 X@@ -8,6 +8,11 @@ X X .DELETE_ON_ERROR: X X+OSTYPE ?= $(shell uname -s) X+ifeq ($(OSTYPE),FreeBSD) X+FREEBSD=1 X+endif X+ X CC ?= gcc X CFLAGS ?= -g -O2 -Wall X X@@ -20,7 +25,13 @@ X MANDIR = $(PREFIX)/share/man X BINDIR = $(PREFIX)/bin X LOCDIR = ./locale X+ifdef FREEBSD X+INCLUDES = -I/usr/local/include/freetype2 X+LIBDIRS = -L/usr/local/lib X+LIBS = -ljpeg -lpthread -lrt -lfreetype -lfontconfig -liconv -lintl X+else X LIBS = -ljpeg -lpthread -ldl -lcap -lrt -lfreetype -lfontconfig X+endif X INCLUDES ?= -I/usr/include/freetype2 X X PLUGINDIR= ./PLUGINS X@@ -129,7 +140,11 @@ X X install-i18n: X @mkdir -p $(DESTDIR)$(LOCDIR) X+ifdef FREEBSD X+ @(cd $(LOCALEDIR); cp -R * $(DESTDIR)$(LOCDIR)) X+else X @(cd $(LOCALEDIR); cp -r --parents * $(DESTDIR)$(LOCDIR)) X+endif X X # The 'include' directory (for plugins): X X@@ -168,7 +183,11 @@ X X install-bin: vdr X @mkdir -p $(DESTDIR)$(BINDIR) X+ifdef FREEBSD X+ @cp -f vdr svdrpsend.pl $(DESTDIR)$(BINDIR) X+else X @cp --remove-destination vdr svdrpsend.pl $(DESTDIR)$(BINDIR) X+endif X X # Configuration files: X X@@ -191,7 +210,11 @@ X X install-plugins: plugins X @mkdir -p $(DESTDIR)$(PLUGINLIBDIR) X+ifdef FREEBSD X+ @cp -f $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR) X+else X @cp --remove-destination $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR) X+endif X X # Source documentation: X XIndex: channels.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/channels.c,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.6 Xdiff -u -r1.1.1.5 -r1.6 X--- channels.c 2010/06/07 09:07:28 1.1.1.5 X+++ channels.c 2010/06/07 09:12:57 1.6 X@@ -29,7 +29,12 @@ X int tid; X int sid; X int rid = 0; X+#ifdef __FreeBSD__ X+ sourcebuf = MALLOC(char, 10); X+ int fields = sscanf(s, "%9[^-]-%d-%d-%d-%d", sourcebuf, &nid, &tid, &sid, &rid); X+#else X int fields = sscanf(s, "%a[^-]-%d-%d-%d-%d", &sourcebuf, &nid, &tid, &sid, &rid); X+#endif X if (fields == 4 || fields == 5) { X int source = cSource::FromString(sourcebuf); X free(sourcebuf); X@@ -543,7 +548,17 @@ X char *vpidbuf = NULL; X char *apidbuf = NULL; X char *caidbuf = NULL; X+#ifdef __FreeBSD__ X+ namebuf = MALLOC(char, 256); X+ sourcebuf = MALLOC(char, 10); X+ parambuf = MALLOC(char, 256); X+ vpidbuf = MALLOC(char, 256); X+ apidbuf = MALLOC(char, 256); X+ caidbuf = MALLOC(char, 256); X+ int fields = sscanf(s, "%255[^:]:%d :%255[^:]:%9[^:] :%d :%255[^:]:%255[^:]:%d :%255[^:]:%d :%d :%d :%d ", namebuf, &frequency, parambuf, sourcebuf, &srate, vpidbuf, apidbuf, &tpid, caidbuf, &sid, &nid, &tid, &rid); X+#else X int fields = sscanf(s, "%a[^:]:%d :%a[^:]:%a[^:] :%d :%a[^:]:%a[^:]:%d :%a[^:]:%d :%d :%d :%d ", &namebuf, &frequency, ¶mbuf, &sourcebuf, &srate, &vpidbuf, &apidbuf, &tpid, &caidbuf, &sid, &nid, &tid, &rid); X+#endif X if (fields >= 9) { X if (fields == 9) { X // allow reading of old format XIndex: ci.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/ci.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- ci.c 2010/02/17 10:14:44 1.1.1.2 X+++ ci.c 2010/02/17 10:46:55 1.3 X@@ -10,7 +10,11 @@ X #include "ci.h" X #include X #include X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X #include X #include XIndex: config.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/config.c,v Xretrieving revision 1.1.1.4 Xretrieving revision 1.4 Xdiff -u -r1.1.1.4 -r1.4 X--- config.c 2010/06/07 09:07:28 1.1.1.4 X+++ config.c 2010/06/07 09:12:57 1.4 X@@ -10,6 +10,9 @@ X #include "config.h" X #include X #include X+#ifdef __FreeBSD__ X+#include X+#endif X #include "device.h" X #include "i18n.h" X #include "interface.h" XIndex: diseqc.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/diseqc.c,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- diseqc.c 2010/03/01 09:42:49 1.1.1.3 X+++ diseqc.c 2010/03/01 09:58:06 1.4 X@@ -50,7 +50,14 @@ X } X return true; X } X+#ifdef __FreeBSD__ X+ sourcebuf = MALLOC(char, 10); X+ if (commands == NULL) X+ commands = MALLOC(char, 256); X+ int fields = sscanf(s, "%9[^ ] %d %c %d %255[^\n]", sourcebuf, &slof, &polarization, &lof, commands); X+#else X int fields = sscanf(s, "%a[^ ] %d %c %d %a[^\n]", &sourcebuf, &slof, &polarization, &lof, &commands); X+#endif X if (fields == 4) X commands = NULL; //XXX Apparently sscanf() doesn't work correctly if the last %a argument results in an empty string X if (4 <= fields && fields <= 5) { XIndex: dvbsubtitle.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/dvbsubtitle.c,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.5 Xdiff -u -r1.1.1.5 -r1.5 X--- dvbsubtitle.c 2010/10/19 20:28:49 1.1.1.5 X+++ dvbsubtitle.c 2010/10/19 20:32:58 1.5 X@@ -718,7 +718,11 @@ X if (Length > PayloadOffset + SubstreamHeaderLength) { X int64_t pts = PesHasPts(Data) ? PesGetPts(Data) : 0; X if (pts) X+#ifdef __FreeBSD__ X+ dbgconverter("Converter PTS: %lld\n", (long long int)pts); X+#else X dbgconverter("Converter PTS: %lld\n", pts); X+#endif X const uchar *data = Data + PayloadOffset + SubstreamHeaderLength; // skip substream header X int length = Length - PayloadOffset - SubstreamHeaderLength; // skip substream header X if (ResetSubtitleAssembler) X@@ -754,7 +758,11 @@ X if (Length > PayloadOffset) { X int64_t pts = PesGetPts(Data); X if (pts) X+#ifdef __FreeBSD__ X+ dbgconverter("Converter PTS: %lld\n", (long long int)pts); X+#else X dbgconverter("Converter PTS: %lld\n", pts); X+#endif X const uchar *data = Data + PayloadOffset; X int length = Length - PayloadOffset; X if (length > 3) { X@@ -819,7 +827,11 @@ X if (AssertOsd()) { X sb->Draw(osd); X Timeout.Set(sb->Timeout() * 1000); X+#ifdef __FreeBSD__ X+ dbgconverter("PTS: %lld STC: %lld (%lld) timeout: %d\n", (long long int)sb->Pts(), (long long int)cDevice::PrimaryDevice()->GetSTC(), (long long int)Delta, sb->Timeout()); X+#else X dbgconverter("PTS: %lld STC: %lld (%lld) timeout: %d\n", sb->Pts(), cDevice::PrimaryDevice()->GetSTC(), Delta, sb->Timeout()); X+#endif X } X bitmaps->Del(sb); X } X@@ -889,7 +901,11 @@ X page->SetTimeout(Data[6]); X page->SetState((Data[6 + 1] & 0x0C) >> 2); X page->regions.Clear(); X+#ifdef __FreeBSD__ X+ dbgpages("Update page id %d version %d pts %lld timeout %d state %d\n", pageId, page->Version(), (long long int)page->Pts(), page->Timeout(), page->State()); X+#else X dbgpages("Update page id %d version %d pts %lld timeout %d state %d\n", pageId, page->Version(), page->Pts(), page->Timeout(), page->State()); X+#endif X for (int i = 6 + 2; i < segmentLength; i += 6) { X cSubtitleRegion *region = page->GetRegionById(Data[i], true); X region->SetHorizontalAddress((Data[i + 2] << 8) + Data[i + 3]); XIndex: eit.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/eit.c,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.5 Xdiff -u -r1.1.1.3 -r1.5 X--- eit.c 2010/06/07 09:07:27 1.1.1.3 X+++ eit.c 2010/06/07 09:12:57 1.5 X@@ -339,10 +339,15 @@ X if (diff > 2) { X mutex.Lock(); X if (abs(diff - lastDiff) < 3) { X+#ifdef __FreeBSD__ X+ isyslog("system time would have changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(sattim), sattim); X+ esyslog("stime() not available on FreeBSD, maybe use adjtime()?"); X+#else X if (stime(&sattim) == 0) X isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(sattim), sattim); X else X esyslog("ERROR while setting system time: %m"); X+#endif X } X lastDiff = diff; X mutex.Unlock(); XIndex: epg.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/epg.c,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.5 Xdiff -u -r1.1.1.3 -r1.5 X--- epg.c 2010/03/01 09:42:48 1.1.1.3 X+++ epg.c 2010/03/01 09:58:06 1.5 X@@ -31,7 +31,13 @@ X bool tComponent::FromString(const char *s) X { X unsigned int Stream, Type; X+#ifdef __FreeBSD__ X+ if (description == NULL) X+ description = MALLOC(char, 256); X+ int n = sscanf(s, "%X %02X %7s %255[^\n]", &Stream, &Type, language, description); // 7 = MAXLANGCODE2 - 1 X+#else X int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type, language, &description); // 7 = MAXLANGCODE2 - 1 X+#endif X if (n != 4 || isempty(description)) { X free(description); X description = NULL; XIndex: font.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/font.c,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.5 Xdiff -u -r1.1.1.3 -r1.5 X--- font.c 2010/10/19 20:28:48 1.1.1.3 X+++ font.c 2010/10/19 20:32:58 1.5 X@@ -383,7 +383,11 @@ X { X if (!FontNames->Size()) { X FcInit(); X+#ifdef __FreeBSD__ X+ FcObjectSet *os = FcObjectSetBuild(FC_FAMILY, FC_STYLE, (char *)NULL); X+#else X FcObjectSet *os = FcObjectSetBuild(FC_FAMILY, FC_STYLE, NULL); X+#endif X FcPattern *pat = FcPatternCreate(); X FcPatternAddBool(pat, FC_SCALABLE, FcTrue); X if (Monospaced) XIndex: i18n.h X=================================================================== XRCS file: /progs/network/ccvs/vdr/i18n.h,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- i18n.h 2010/02/17 10:14:45 1.1.1.2 X+++ i18n.h 2010/02/17 10:46:55 1.3 X@@ -48,7 +48,11 @@ X ///< have an actual locale installed. The rest are just dummy entries X ///< to allow having three letter language codes for other languages X ///< that have no actual locale on this system. X+#ifdef __FreeBSD__ X+const char *I18nTranslate(const char *s, const char *Plugin = NULL) __format_arg(1); X+#else X const char *I18nTranslate(const char *s, const char *Plugin = NULL) __attribute_format_arg__(1); X+#endif X ///< Translates the given string (with optional Plugin context) into X ///< the current language. If no translation is available, the original X ///< string will be returned. XIndex: menu.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/menu.c,v Xretrieving revision 1.1.1.6 Xretrieving revision 1.7 Xdiff -u -r1.1.1.6 -r1.7 XIndex: menuitems.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/menuitems.c,v Xretrieving revision 1.1.1.4 Xretrieving revision 1.5 Xdiff -u -r1.1.1.4 -r1.5 X--- menuitems.c 2010/06/07 09:07:27 1.1.1.4 X+++ menuitems.c 2010/06/07 09:12:57 1.5 X@@ -838,7 +838,11 @@ X struct tm tm_r; X localtime_r(value, &tm_r); X strftime(buf, DATEBUFFERSIZE, "%Y-%m-%d ", &tm_r); X+#ifdef __FreeBSD__ X+ strcat(buf, WeekDayNameReal(tm_r.tm_wday)); X+#else X strcat(buf, WeekDayName(tm_r.tm_wday)); X+#endif X } X else X *buf = 0; XIndex: pat.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/pat.c,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.6 Xdiff -u -r1.1.1.5 -r1.6 X--- pat.c 2010/10/19 20:28:48 1.1.1.5 X+++ pat.c 2010/10/19 20:32:58 1.6 X@@ -8,7 +8,11 @@ X */ X X #include "pat.h" X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include "channels.h" X #include "libsi/section.h" X #include "libsi/descriptor.h" XIndex: recording.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/recording.c,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.5 Xdiff -u -r1.1.1.3 -r1.5 X--- recording.c 2010/03/16 15:18:58 1.1.1.3 X+++ recording.c 2010/03/16 15:21:05 1.5 X@@ -1505,7 +1505,11 @@ X delta = int(buf.st_size % sizeof(tIndexTs)); X if (delta) { X delta = sizeof(tIndexTs) - delta; X+#ifdef __FreeBSD__ X+ esyslog("ERROR: invalid file size (%lld) in '%s'", (long long int)buf.st_size, fileName); X+#else X esyslog("ERROR: invalid file size (%lld) in '%s'", buf.st_size, fileName); X+#endif X } X last = int((buf.st_size + delta) / sizeof(tIndexTs) - 1); X if (!Record && last >= 0) { X@@ -1825,7 +1829,11 @@ X // Search for a PAT packet from the end of the file: X cPatPmtParser PatPmtParser; X sprintf(pFileNumber, RECORDFILESUFFIXTS, Number); X+#ifdef __FreeBSD__ X+ int fd = open(fileName, O_RDONLY, DEFFILEMODE); X+#else X int fd = open(fileName, O_RDONLY | O_LARGEFILE, DEFFILEMODE); X+#endif X if (fd >= 0) { X off_t pos = lseek(fd, -TS_SIZE, SEEK_END); X while (pos >= 0) { X@@ -1866,14 +1874,22 @@ X int BlockingFlag = blocking ? 0 : O_NONBLOCK; X if (record) { X dsyslog("recording to '%s'", fileName); X+#ifdef __FreeBSD__ X+ file = OpenVideoFile(fileName, O_RDWR | O_CREAT | BlockingFlag); X+#else X file = OpenVideoFile(fileName, O_RDWR | O_CREAT | O_LARGEFILE | BlockingFlag); X+#endif X if (!file) X LOG_ERROR_STR(fileName); X } X else { X if (access(fileName, R_OK) == 0) { X dsyslog("playing '%s'", fileName); X+#ifdef __FreeBSD__ X+ file = cUnbufferedFile::Create(fileName, O_RDONLY | BlockingFlag); X+#else X file = cUnbufferedFile::Create(fileName, O_RDONLY | O_LARGEFILE | BlockingFlag); X+#endif X if (!file) X LOG_ERROR_STR(fileName); X } XIndex: remote.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/remote.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.2 Xdiff -u -r1.1.1.2 -r1.2 X--- remote.c 2010/02/17 10:14:45 1.1.1.2 X+++ remote.c 2010/02/17 12:36:01 1.2 X@@ -121,7 +121,11 @@ X bool cRemote::Put(uint64_t Code, bool Repeat, bool Release) X { X char buffer[32]; X+#ifdef __FreeBSD__ X+ snprintf(buffer, sizeof(buffer), "%016llX", (long long unsigned int)Code); X+#else X snprintf(buffer, sizeof(buffer), "%016llX", Code); X+#endif X return Put(buffer, Repeat, Release); X } X XIndex: shutdown.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/shutdown.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.4 Xdiff -u -r1.1.1.2 -r1.4 XIndex: skins.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/skins.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- skins.c 2010/02/17 10:14:45 1.1.1.2 X+++ skins.c 2010/02/17 10:46:55 1.3 X@@ -11,6 +11,20 @@ X #include "interface.h" X #include "status.h" X X+#ifdef __FreeBSD__ X+/* XXX Implement strchrnul for FreeBSD. */ X+static char * X+strchrnul (const char *s, int c_in) X+{ X+ char c = c_in; X+ while (*s && (*s != c)) X+ s++; X+ X+ return (char *) s; X+} X+#endif X+ X+ X // --- cSkinQueuedMessage ---------------------------------------------------- X X class cSkinQueuedMessage : public cListObject { XIndex: sources.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/sources.c,v Xretrieving revision 1.1.1.4 Xretrieving revision 1.5 Xdiff -u -r1.1.1.4 -r1.5 X--- sources.c 2010/03/16 15:18:58 1.1.1.4 X+++ sources.c 2010/03/16 15:21:05 1.5 X@@ -31,7 +31,14 @@ X bool cSource::Parse(const char *s) X { X char *codeBuf = NULL; X+#ifdef __FreeBSD__ X+ codeBuf = MALLOC(char, 10); X+ if (description == NULL) X+ description = MALLOC(char, 256); X+ if (2 == sscanf(s, "%9[^ ] %255[^\n]", codeBuf, description)) X+#else X if (2 == sscanf(s, "%a[^ ] %a[^\n]", &codeBuf, &description)) X+#endif X code = FromString(codeBuf); X free(codeBuf); X return code != stNone && description && *description; XIndex: svdrp.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/svdrp.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.4 Xdiff -u -r1.1.1.2 -r1.4 X--- svdrp.c 2010/02/17 10:14:45 1.1.1.2 X+++ svdrp.c 2010/02/17 12:34:54 1.4 X@@ -40,6 +40,12 @@ X #include "tools.h" X #include "videodir.h" X X+/* FreeBSD has it's own version of isnumber(), X+ but VDR's version is incompatible */ X+#ifdef __FreeBSD__ X+#undef isnumber X+#endif X+ X // --- cSocket --------------------------------------------------------------- X X cSocket::cSocket(int Port, int Queue) XIndex: themes.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/themes.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- themes.c 2010/02/17 10:14:44 1.1.1.2 X+++ themes.c 2010/02/17 10:46:55 1.3 X@@ -47,7 +47,11 @@ X // FileName is ok X if (SetName) { X free(name); X+#ifdef __FreeBSD__ X+ name = (char *)strndup(n, e - n); X+#else X name = strndup(n, e - n); X+#endif X } X } X else XIndex: thread.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/thread.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.6 Xdiff -u -r1.1.1.2 -r1.6 X--- thread.c 2010/02/17 10:14:45 1.1.1.2 X+++ thread.c 2010/02/24 08:41:13 1.6 X@@ -9,15 +9,22 @@ X X #include "thread.h" X #include X+#ifdef __FreeBSD__ X+#include X+#include X+#else X #include X #include X+#endif X #include X #include X #include X #include X #include X #include X+#ifndef __FreeBSD__ X #include X+#endif X #include X #include "tools.h" X X@@ -143,7 +150,9 @@ X { X pthread_rwlockattr_t attr; X pthread_rwlockattr_init(&attr); X+#ifndef __FreeBSD__ X pthread_rwlockattr_setkind_np(&attr, PreferWriter ? PTHREAD_RWLOCK_PREFER_WRITER_NP : PTHREAD_RWLOCK_PREFER_READER_NP); X+#endif X pthread_rwlock_init(&rwlock, &attr); X } X X@@ -179,7 +188,11 @@ X locked = 0; X pthread_mutexattr_t attr; X pthread_mutexattr_init(&attr); X+#ifdef __FreeBSD__ X+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK); X+#else X pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP); X+#endif X pthread_mutex_init(&mutex, &attr); X } X X@@ -228,8 +241,12 @@ X X void cThread::SetIOPriority(int Priority) X { X+#ifdef __FreeBSD__ X+ esyslog("ERROR: syscall(SYS_ioprio_set ...) unsupported on FreeBSD"); X+#else X if (syscall(SYS_ioprio_set, 1, 0, (Priority & 0xff) | (2 << 13)) < 0) // best effort class X LOG_ERROR; X+#endif X } X X void cThread::SetDescription(const char *Description, ...) X@@ -335,7 +352,11 @@ X X tThreadId cThread::ThreadId(void) X { X+#ifdef __FreeBSD__ X+ return reinterpret_cast(::pthread_self()); X+#else X return syscall(__NR_gettid); X+#endif X } X X void cThread::SetMainThreadId(void) X@@ -461,7 +482,11 @@ X int MaxPossibleFileDescriptors = getdtablesize(); X for (int i = STDERR_FILENO + 1; i < MaxPossibleFileDescriptors; i++) X close(i); //close all dup'ed filedescriptors X+#ifdef __FreeBSD__ X+ if (execl("/bin/sh", "sh", "-c", Command, (char *)NULL) == -1) { X+#else X if (execl("/bin/sh", "sh", "-c", Command, NULL) == -1) { X+#endif X LOG_ERROR_STR(Command); X close(fd[1 - iopipe]); X _exit(-1); X@@ -544,7 +569,11 @@ X int MaxPossibleFileDescriptors = getdtablesize(); X for (int i = STDERR_FILENO + 1; i < MaxPossibleFileDescriptors; i++) X close(i); //close all dup'ed filedescriptors X+#ifdef __FreeBSD__ X+ if (execl("/bin/sh", "sh", "-c", Command, (char *)NULL) == -1) { X+#else X if (execl("/bin/sh", "sh", "-c", Command, NULL) == -1) { X+#endif X LOG_ERROR_STR(Command); X _exit(-1); X } XIndex: thread.h X=================================================================== XRCS file: /progs/network/ccvs/vdr/thread.h,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- thread.h 2010/02/17 10:14:44 1.1.1.2 X+++ thread.h 2010/02/17 10:46:55 1.3 X@@ -13,6 +13,9 @@ X #include X #include X #include X+#ifdef __FreeBSD__ X+#include X+#endif X X class cCondWait { X private: XIndex: timers.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/timers.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- timers.c 2010/02/17 10:14:45 1.1.1.2 X+++ timers.c 2010/02/17 10:46:55 1.3 X@@ -23,6 +23,12 @@ X // format characters in order to allow any number of blanks after a numeric X // value! X X+/* FreeBSD has it's own version of isnumber(), X+ but VDR's version is incompatible */ X+#ifdef __FreeBSD__ X+#undef isnumber X+#endif X+ X // --- cTimer ---------------------------------------------------------------- X X cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel) X@@ -292,7 +298,15 @@ X s = s2; X } X bool result = false; X+#ifdef __FreeBSD__ X+ channelbuffer = MALLOC(char, 256); X+ daybuffer = MALLOC(char, 256); X+ filebuffer = MALLOC(char, 256); X+ aux = MALLOC(char, 256); X+ if (8 <= sscanf(s, "%u :%255[^:]:%255[^:]:%d :%d :%d :%d :%255[^:\n]:%255[^\n]", &flags, channelbuffer, daybuffer, &start, &stop, &priority, &lifetime, filebuffer, aux)) { X+#else X if (8 <= sscanf(s, "%u :%a[^:]:%a[^:]:%d :%d :%d :%d :%a[^:\n]:%a[^\n]", &flags, &channelbuffer, &daybuffer, &start, &stop, &priority, &lifetime, &filebuffer, &aux)) { X+#endif X ClrFlags(tfRecording); X if (aux && !*skipspace(aux)) { X free(aux); XIndex: tools.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/tools.c,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.8 Xdiff -u -r1.1.1.5 -r1.8 X--- tools.c 2010/10/19 20:28:48 1.1.1.5 X+++ tools.c 2010/10/19 20:32:58 1.8 X@@ -21,13 +21,24 @@ X #include X #include X #include X+#ifdef __FreeBSD__ X+#include X+#include X+#else X #include X+#endif X #include X #include X #include X #include "i18n.h" X #include "thread.h" X X+/* FreeBSD has it's own version of isnumber(), X+ but VDR's version is incompatible */ X+#ifdef __FreeBSD__ X+#undef isnumber X+#endif X+ X int SysLogLevel = 3; X X #define MAXSYSLOGBUF 256 X@@ -493,6 +504,18 @@ X { X if (!FileName) X return NULL; X+#ifdef __FreeBSD__ X+ char *resolved_path = NULL; X+ resolved_path = MALLOC(char, PATH_MAX+1); X+ if (realpath(FileName, resolved_path) == NULL) X+ { X+ if (errno != ENOENT) // some other error occurred X+ LOG_ERROR_STR(FileName); X+ else // file doesn't exist X+ resolved_path = strdup(FileName); X+ } X+ return resolved_path; X+#else X char *TargetName = canonicalize_file_name(FileName); X if (!TargetName) { X if (errno == ENOENT) // file doesn't exist X@@ -501,6 +524,7 @@ X LOG_ERROR_STR(FileName); X } X return TargetName; X+#endif X } X X bool SpinUpDisk(const char *FileName) X@@ -517,7 +541,11 @@ X int f = open(buf, O_WRONLY | O_CREAT, DEFFILEMODE); X // O_SYNC doesn't work on all file systems X if (f >= 0) { X+#ifdef __FreeBSD__ X+ if (fsync(f) < 0) X+#else X if (fdatasync(f) < 0) X+#endif X LOG_ERROR_STR(*buf); X close(f); X remove(buf); X@@ -818,7 +846,11 @@ X const char *cCharSetConv::Convert(const char *From, char *To, size_t ToLength) X { X if (cd != (iconv_t)-1 && From && *From) { X+#ifdef __FreeBSD__ X+ const char *FromPtr = (char *)From; X+#else X char *FromPtr = (char *)From; X+#endif X size_t FromLength = strlen(From); X char *ToPtr = To; X if (!ToPtr) { X@@ -920,7 +952,11 @@ X return cString(buffer, true); X } X X+#ifdef __FreeBSD__ X+cString WeekDayNameReal(int WeekDay) X+#else X cString WeekDayName(int WeekDay) X+#endif X { X char buffer[16]; X WeekDay = WeekDay == 0 ? 6 : WeekDay - 1; // we start with Monday==0! X@@ -938,10 +974,18 @@ X cString WeekDayName(time_t t) X { X struct tm tm_r; X+#ifdef __FreeBSD__ X+ return WeekDayNameReal(localtime_r(&t, &tm_r)->tm_wday); X+#else X return WeekDayName(localtime_r(&t, &tm_r)->tm_wday); X+#endif X } X X+#ifdef __FreeBSD__ X+cString WeekDayNameFullReal(int WeekDay) X+#else X cString WeekDayNameFull(int WeekDay) X+#endif X { X WeekDay = WeekDay == 0 ? 6 : WeekDay - 1; // we start with Monday==0! X switch (WeekDay) { X@@ -959,7 +1003,11 @@ X cString WeekDayNameFull(time_t t) X { X struct tm tm_r; X+#ifdef __FreeBSD__ X+ return WeekDayNameFullReal(localtime_r(&t, &tm_r)->tm_wday); X+#else X return WeekDayNameFull(localtime_r(&t, &tm_r)->tm_wday); X+#endif X } X X cString DayDateTime(time_t t) X@@ -969,7 +1017,11 @@ X time(&t); X struct tm tm_r; X tm *tm = localtime_r(&t, &tm_r); X+#ifdef __FreeBSD__ X+ snprintf(buffer, sizeof(buffer), "%s %02d.%02d. %02d:%02d", *WeekDayNameReal(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min); X+#else X snprintf(buffer, sizeof(buffer), "%s %02d.%02d. %02d:%02d", *WeekDayName(tm->tm_wday), tm->tm_mday, tm->tm_mon + 1, tm->tm_hour, tm->tm_min); X+#endif X return buffer; X } X X@@ -988,7 +1040,11 @@ X char buf[32]; X struct tm tm_r; X tm *tm = localtime_r(&t, &tm_r); X+#ifdef __FreeBSD__ X+ char *p = stpcpy(buf, WeekDayNameReal(tm->tm_wday)); X+#else X char *p = stpcpy(buf, WeekDayName(tm->tm_wday)); X+#endif X *p++ = ' '; X strftime(p, sizeof(buf) - (p - buf), "%d.%m.%Y", tm); X return buf; X@@ -1315,7 +1371,11 @@ X if (!IsOpen()) { X f = FileDes; X if (f >= 0) { X+#ifdef __FreeBSD__ X+ if ((uint)f < FD_SETSIZE) { X+#else X if (f < FD_SETSIZE) { X+#endif X if (f >= maxFiles) X maxFiles = f + 1; X if (!files[f]) X@@ -1356,7 +1416,11 @@ X if (files[i]) X FD_SET(i, &set); X } X+#ifdef __FreeBSD__ X+ if (0 <= FileDes && (uint)FileDes < FD_SETSIZE && !files[FileDes]) X+#else X if (0 <= FileDes && FileDes < FD_SETSIZE && !files[FileDes]) X+#endif X FD_SET(FileDes, &set); // in case we come in with an arbitrary descriptor X if (TimeoutMs == 0) X TimeoutMs = 10; // load gets too heavy with 0 X@@ -1451,7 +1515,9 @@ X X // --- cUnbufferedFile ------------------------------------------------------- X X+#ifndef __FreeBSD__ X #define USE_FADVISE X+#endif X X #define WRITE_BUFFER KILOBYTE(800) X X@@ -1512,11 +1578,13 @@ X readahead = ra; X } X X+#ifdef USE_FADVISE X int cUnbufferedFile::FadviseDrop(off_t Offset, off_t Len) X { X // rounding up the window to make sure that not PAGE_SIZE-aligned data gets freed. X return posix_fadvise(fd, Offset - (FADVGRAN - 1), Len + (FADVGRAN - 1) * 2, POSIX_FADV_DONTNEED); X } X+#endif X X off_t cUnbufferedFile::Seek(off_t Offset, int Whence) X { XIndex: tools.h X=================================================================== XRCS file: /progs/network/ccvs/vdr/tools.h,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- tools.h 2010/02/17 10:14:44 1.1.1.2 X+++ tools.h 2010/02/17 10:46:55 1.3 X@@ -26,6 +26,12 @@ X #include X #include X X+#ifdef __FreeBSD__ X+#include X+typedef int (*__compar_fn_t) (__const void *, __const void *); X+#undef isnumber X+#endif X+ X typedef unsigned char uchar; X X extern int SysLogLevel; X@@ -216,9 +222,17 @@ X bool SpinUpDisk(const char *FileName); X void TouchFile(const char *FileName); X time_t LastModifiedTime(const char *FileName); X+#ifdef __FreeBSD__ X+cString WeekDayNameReal(int WeekDay); X+#else X cString WeekDayName(int WeekDay); X+#endif X cString WeekDayName(time_t t); X+#ifdef __FreeBSD__ X+cString WeekDayNameFullReal(int WeekDay); X+#else X cString WeekDayNameFull(int WeekDay); X+#endif X cString WeekDayNameFull(time_t t); X cString DayDateTime(time_t t = 0); X cString TimeToString(time_t t); XIndex: vdr.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/vdr.c,v Xretrieving revision 1.1.1.5 Xretrieving revision 1.7 Xdiff -u -r1.1.1.5 -r1.7 X--- vdr.c 2010/06/07 09:07:28 1.1.1.5 X+++ vdr.c 2010/06/07 09:12:57 1.7 X@@ -32,8 +32,10 @@ X #include X #include X #include X+#ifndef __FreeBSD__ X #include X #include X+#endif X #include X #include X #include "audio.h" X@@ -107,12 +109,15 @@ X fprintf(stderr, "vdr: cannot set user id %u: %s\n", (unsigned int)user->pw_uid, strerror(errno)); X return false; X } X+#ifndef __FreeBSD__ X if (UserDump && prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) < 0) X fprintf(stderr, "vdr: warning - cannot set dumpable: %s\n", strerror(errno)); X+#endif X } X return true; X } X X+#ifndef __FreeBSD__ X static bool DropCaps(void) X { X // drop all capabilities except selected ones X@@ -139,6 +144,7 @@ X } X return true; X } X+#endif X X static void SignalHandler(int signum) X { X@@ -388,14 +394,18 @@ X if (VdrUser && geteuid() == 0) { X StartedAsRoot = true; X if (strcmp(VdrUser, "root")) { X+#ifndef __FreeBSD__ X if (!SetKeepCaps(true)) X return 2; X+#endif X if (!SetUser(VdrUser, UserDump)) X return 2; X+#ifndef __FreeBSD__ X if (!SetKeepCaps(false)) X return 2; X if (!DropCaps()) X return 2; X+#endif X } X } X XIndex: PLUGINS/src/dvbsddevice/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/dvbsddevice/Makefile,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- PLUGINS/src/dvbsddevice/Makefile 2010/03/01 09:42:49 1.1.1.2 X+++ PLUGINS/src/dvbsddevice/Makefile 2010/03/01 09:58:07 1.3 X@@ -100,7 +100,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/hello/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/hello/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/hello/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/hello/Makefile 2010/03/01 09:58:07 1.4 X@@ -100,7 +100,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/osddemo/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/osddemo/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/osddemo/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/osddemo/Makefile 2010/03/01 09:58:07 1.4 X@@ -73,7 +73,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/pictures/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/pictures/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/pictures/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/pictures/Makefile 2010/03/01 09:58:07 1.4 X@@ -100,7 +100,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/servicedemo/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/servicedemo/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/servicedemo/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/servicedemo/Makefile 2010/03/01 09:58:07 1.4 X@@ -75,11 +75,19 @@ X X libvdr-$(PLUGIN1).so: $(PLUGIN1).o X $(CXX) $(CXXFLAGS) -shared $(PLUGIN1).o -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X libvdr-$(PLUGIN2).so: $(PLUGIN2).o X $(CXX) $(CXXFLAGS) -shared $(PLUGIN2).o -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/skincurses/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/skincurses/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/skincurses/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/skincurses/Makefile 2010/03/01 09:58:07 1.4 X@@ -100,7 +100,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -lncursesw -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/status/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/status/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/status/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/status/Makefile 2010/03/01 09:58:07 1.4 X@@ -73,7 +73,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/svdrpdemo/Makefile X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/svdrpdemo/Makefile,v Xretrieving revision 1.1.1.3 Xretrieving revision 1.4 Xdiff -u -r1.1.1.3 -r1.4 X--- PLUGINS/src/svdrpdemo/Makefile 2010/03/01 09:42:49 1.1.1.3 X+++ PLUGINS/src/svdrpdemo/Makefile 2010/03/01 09:58:08 1.4 X@@ -73,7 +73,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XIndex: PLUGINS/src/svdrpdemo/svdrpdemo.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/PLUGINS/src/svdrpdemo/svdrpdemo.c,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.4 Xdiff -u -r1.1.1.2 -r1.4 XIndex: libsi/headers.h X=================================================================== XRCS file: /progs/network/ccvs/vdr/libsi/headers.h,v Xretrieving revision 1.1.1.2 Xretrieving revision 1.3 Xdiff -u -r1.1.1.2 -r1.3 X--- libsi/headers.h 2010/02/17 10:14:45 1.1.1.2 X+++ libsi/headers.h 2010/02/17 10:46:56 1.3 X@@ -17,7 +17,11 @@ X #ifndef LIBSI_HEADERS_H X #define LIBSI_HEADERS_H X X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X X namespace SI { X XIndex: libsi/si.c X=================================================================== XRCS file: /progs/network/ccvs/vdr/libsi/si.c,v Xretrieving revision 1.1.1.4 Xretrieving revision 1.7 Xdiff -u -r1.1.1.4 -r1.7 X--- libsi/si.c 2010/03/01 09:42:49 1.1.1.4 X+++ libsi/si.c 2010/03/01 09:58:08 1.7 X@@ -13,7 +13,9 @@ X #include "si.h" X #include X #include X+#ifndef __FreeBSD__ X #include X+#endif X #include // for broadcaster stupidity workaround X #include X #include "descriptor.h" X@@ -381,7 +383,11 @@ X if (SystemCharacterTable) { X iconv_t cd = iconv_open(SystemCharacterTable, fromCode); X if (cd != (iconv_t)-1) { X+#ifdef __FreeBSD__ X+ const char *fromPtr = from; X+#else X char *fromPtr = (char *)from; X+#endif X while (fromLength > 0 && toLength > 1) { X if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) { X if (errno == EILSEQ) { 012fb30ce4d8cced7c567675f98c6724 echo x - multimedia/vdrdevel/files/patch-z-Makefile sed 's/^X//' >multimedia/vdrdevel/files/patch-z-Makefile << '71aa7f3021cf1675b30ff2865e8965ac' XIndex: Makefile X@@ -25,6 +25,7 @@ PREFIX ?= /usr/local X MANDIR = $(PREFIX)/share/man X BINDIR = $(PREFIX)/bin X LOCDIR = ./locale X+INCDIR = $(PREFIX)/include X ifdef FREEBSD X INCLUDES = -I/usr/local/include/freetype2 X LIBDIRS = -L/usr/local/lib X@@ -172,7 +173,7 @@ clean-plugins: X X # Install the files: X X-install: install-bin install-conf install-doc install-plugins install-i18n X+install: install-bin install-doc install-plugins install-i18n install-header X X # VDR binary: X X@@ -187,7 +188,6 @@ endif X # Configuration files: X X install-conf: X- @mkdir -p $(DESTDIR)$(VIDEODIR) X @if [ ! -d $(DESTDIR)$(CONFDIR) ]; then\ X mkdir -p $(DESTDIR)$(CONFDIR);\ X cp *.conf $(DESTDIR)$(CONFDIR);\ X@@ -203,7 +203,7 @@ install-doc: X X # Plugins: X X-install-plugins: plugins X+install-plugins: #plugins X @mkdir -p $(DESTDIR)$(PLUGINLIBDIR) X ifdef FREEBSD X @cp -f $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR) X@@ -211,6 +211,13 @@ else X @cp --remove-destination $(PLUGINDIR)/lib/lib*-*.so.$(APIVERSION) $(DESTDIR)$(PLUGINLIBDIR) X endif X X+# Header files: X+ X+install-header: X+ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi X+ @cp *.h Make.config Make.global $(DESTDIR)$(INCDIR)/vdr X+ @cp libsi/*.h $(DESTDIR)$(INCDIR)/vdr/libsi X+ X # Source documentation: X X srcdoc: 71aa7f3021cf1675b30ff2865e8965ac echo x - multimedia/vdrdevel/files/patch-z-libsi-si.c sed 's/^X//' >multimedia/vdrdevel/files/patch-z-libsi-si.c << 'f494c8df584630dc6807d31ee10b830c' X--- libsi/si.c.orig X+++ libsi/si.c X@@ -308,6 +308,25 @@ static const char *CharacterTables2[] = X "ISO-8859-15", // 0x0F X }; X X+static const char *CharacterTables3[] = { X+ NULL, // 0x00 X+ "ISO8859-1", // 0x01 X+ "ISO8859-2", // 0x02 X+ "ISO8859-3", // 0x03 X+ "ISO8859-4", // 0x04 X+ "ISO8859-5", // 0x05 X+ "ISO8859-6", // 0x06 X+ "ISO8859-7", // 0x07 X+ "ISO8859-8", // 0x08 X+ "ISO8859-9", // 0x09 X+ "ISO8859-10", // 0x0A X+ "ISO8859-11", // 0x0B X+ "ISO8859-12", // 0x0C X+ "ISO8859-13", // 0x0D X+ "ISO8859-14", // 0x0E X+ "ISO8859-15", // 0x0F X+}; X+ X #define NumEntries(Table) (sizeof(Table) / sizeof(char *)) X X static const char *SystemCharacterTable = NULL; X@@ -334,6 +353,13 @@ bool SetSystemCharacterTable(const char X return true; X } X } X+ for (unsigned int i = 0; i < NumEntries(CharacterTables3); i++) { X+ if (CharacterTables3[i] && strcasecmp(CharacterTable, CharacterTables3[i]) == 0) { X+ SystemCharacterTable = CharacterTables3[i]; X+ SystemCharacterTableIsSingleByte = true; X+ return true; X+ } X+ } X } else { X SystemCharacterTable = NULL; X SystemCharacterTableIsSingleByte = true; f494c8df584630dc6807d31ee10b830c echo x - multimedia/vdrdevel/files/remote.conf sed 's/^X//' >multimedia/vdrdevel/files/remote.conf << 'a2bcc7ba145fd9e15342d817fc29d549' XXKeySym.Up Up XXKeySym.Down Down XXKeySym.Menu Tab XXKeySym.Menu Insert XXKeySym.Ok Return XXKeySym.Ok KP_Enter XXKeySym.Back BackSpace XXKeySym.Left Left XXKeySym.Right Right XXKeySym.Red F5 XXKeySym.Green F6 XXKeySym.Yellow F7 XXKeySym.Blue F8 XXKeySym.0 0 XXKeySym.1 1 XXKeySym.2 2 XXKeySym.3 3 XXKeySym.4 4 XXKeySym.5 5 XXKeySym.6 6 XXKeySym.7 7 XXKeySym.8 8 XXKeySym.9 9 XXKeySym.0 KP_0 XXKeySym.1 KP_1 XXKeySym.2 KP_2 XXKeySym.3 KP_3 XXKeySym.4 KP_4 XXKeySym.5 KP_5 XXKeySym.6 KP_6 XXKeySym.7 KP_7 XXKeySym.8 KP_8 XXKeySym.9 KP_9 XXKeySym.Info i XXKeySym.Mute m XXKeySym.Play p XXKeySym.Pause Space XXKeySym.Stop s XXKeySym.Record r XXKeySym.FastFwd w XXKeySym.FastRew e XXKeySym.Next n XXKeySym.Prev v XXKeySym.Channel+ Prior XXKeySym.Channel- Next XXKeySym.Volume+ KP_Add XXKeySym.Volume- KP_Subtract XXKeySym.Audio a XXKeySym.Subtitles u XXKeySym.Schedule l XXKeySym.Channels c XXKeySym.Timers t XXKeySym.Recordings o XXKeySym.Setup S XXKeySym.Commands C XXKeySym.User1 U XXKeySym.User2 V XXKeySym.User3 W XXKeySym.User4 X XXKeySym.User5 Y XXKeySym.User6 Z XKBD.Up 00000000001B5B41 XKBD.Down 00000000001B5B42 XKBD.Menu 0000000000000009 XKBD.Menu 000000001B5B327E XKBD.Ok 000000000000000D XKBD.Back 000000000000007F XKBD.Back 0000000000000008 XKBD.Left 00000000001B5B44 XKBD.Right 00000000001B5B43 XKBD.Red 0000001B5B31357E XKBD.Green 0000001B5B31377E XKBD.Yellow 0000001B5B31387E XKBD.Blue 0000001B5B31397E XKBD.0 0000000000000030 XKBD.1 0000000000000031 XKBD.2 0000000000000032 XKBD.3 0000000000000033 XKBD.4 0000000000000034 XKBD.5 0000000000000035 XKBD.6 0000000000000036 XKBD.7 0000000000000037 XKBD.8 0000000000000038 XKBD.9 0000000000000039 XKBD.Info 0000000000000069 XKBD.Play 0000000000000070 XKBD.Pause 0000000000000020 XKBD.Stop 0000000000000073 XKBD.Record 0000000000000072 XKBD.FastFwd 0000000000000066 XKBD.FastRew 0000000000000077 XKBD.Next 000000000000006E XKBD.Prev 0000000000000076 XKBD.Power 000000000000001B XKBD.Channel+ 000000001B5B357E XKBD.Channel- 000000001B5B367E XKBD.PrevChannel 000000001B5B317E XKBD.Volume+ 000000000000002B XKBD.Volume- 000000000000002D XKBD.Mute 000000000000006D XKBD.Audio 0000000000000061 XKBD.Subtitles 0000000000000075 XKBD.Schedule 000000000000006C XKBD.Channels 0000000000000063 XKBD.Timers 0000000000000074 XKBD.Recordings 000000000000006F XKBD.Setup 0000000000000053 XKBD.Commands 0000000000000043 XKBD.User1 0000000000000055 XKBD.User2 0000000000000056 XKBD.User3 0000000000000057 XKBD.User4 0000000000000058 XKBD.User5 0000000000000059 XKBD.User6 000000000000005A a2bcc7ba145fd9e15342d817fc29d549 echo x - multimedia/vdrdevel/files/vdr.in sed 's/^X//' >multimedia/vdrdevel/files/vdr.in << '0fda022201832da06dde02f6c18cf543' X#!/bin/sh X# X# $FreeBSD$ X# X# PROVIDE: vdr X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following line to /etc/rc.conf[.local] to enable vdr: X# X# vdr_enable="YES" X# X# And if you are using vdr plugins etc. add those including any plugin X# parameters to /etc/rc.conf[.local] similar to this: X# X# vdr_flags="'-Pxineliboutput --local=none --remote=127.1:37890' \ X# -Pfemon -Posdpip \ X# -Posdteletext --directory=/var/cache/vdr-osdteletext --cache-system=packed --max-cache=128' \ X# -Pstreamdev-server '-Plive -i127.1' -Pepgsearch \ X# '-Pinfosatepg -d /var/cache/vdr-infosatepg'" X X. /etc/rc.subr X Xname=vdr Xrcvar=`set_rcvar` X Xcommand="%%PREFIX%%/bin/vdr" Xcommand_args="-d" X Xload_rc_config ${name} X: ${vdr_enable="NO"} X: ${vdr_chdir="%%VIDEODIR%%"} X Xrun_rc_command "$1" 0fda022201832da06dde02f6c18cf543 echo c - multimedia/vdr-plugin-control/ mkdir -p multimedia/vdr-plugin-control/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-control/Makefile sed 's/^X//' >multimedia/vdr-plugin-control/Makefile << '6f96094fcb6e1b6db20d27e661fadfdd' X# New ports collection makefile for: vdr_plugin_control X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_control XPORTVERSION= 0.0.2a45 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://ricomp.de/vdr/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/a45/a/}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XPATCH_SITES= http://ppa.launchpad.net/the-vdr-team/unstable-plugins/ubuntu/pool/main/v/vdr-plugin-control/ \ X ${MASTER_SITE_LOCAL} XPATCH_SITE_SUBDIR= nox/ XPATCHFILES= ${PORTNAME:S/_/-/g}_${PORTVERSION:S/a45/a-45/}yavdr1.diff.gz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - telnet control plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a45/a/} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X for i in ${WRKSRC}/vdr-plugin-${PLUGIN}-${DISTVERSION:S/a45/a/}/debian/patches/*.dpatch; do \ X ${PATCH} -d ${WRKSRC} `${SED} -n '/^#PATCHOPTIONS:/{s///;p;q;}' $$i` --forward --quiet <$$i ;\ X done X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 6f96094fcb6e1b6db20d27e661fadfdd echo x - multimedia/vdr-plugin-control/distinfo sed 's/^X//' >multimedia/vdr-plugin-control/distinfo << '2f283127a3c934f70cb9d692413ba213' XSHA256 (vdr/vdr-control-0.0.2a.tgz) = e32012511cac2f333a59d4da250ca63d222abe574f99eb55c567d9752ef0d565 XSIZE (vdr/vdr-control-0.0.2a.tgz) = 27441 XSHA256 (vdr/vdr-plugin-control_0.0.2a-45yavdr1.diff.gz) = 806c6b29b43988c9fd3b0421e5a3af03517a5088a6a0b2ed622fdf7afa15c7fa XSIZE (vdr/vdr-plugin-control_0.0.2a-45yavdr1.diff.gz) = 5129 2f283127a3c934f70cb9d692413ba213 echo x - multimedia/vdr-plugin-control/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-control/pkg-descr << 'e863118b05c62edaaaf1c838d39b9fa9' Xhttp://www.linuxtv.org/vdrwiki/index.php/Control-plugin X XThe 'control' plugin brings the ability to VDR to control Xthe hole OSD over a telnet client. X XTo reach this, 'control' listens on a network socket X(default is port 2002). If a client wants to connect, VDR Xchecks if that client is allowed to connect to VDR (see in Xthe documentation of VDR about the svdrphosts.conf file for Xmore info). If the connection is etablished, 'control' Xsends the curent OSD state to the client. Also all key Xstroks at the client side are redirected to VDR. X XWWW: http://ricomp.de/vdr/down_en.html e863118b05c62edaaaf1c838d39b9fa9 echo x - multimedia/vdr-plugin-control/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-control/pkg-plist << 'fd429f2c5d1476d403bcac32f0d82fed' Xlib/vdr/libvdr-control.so.1.7.16 fd429f2c5d1476d403bcac32f0d82fed echo c - multimedia/vdr-plugin-control/files/ mkdir -p multimedia/vdr-plugin-control/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-control/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-control/files/patch-Makefile << '4791f7343128f9ed4e1c057487a8479d' X--- a/Makefile X+++ b/Makefile X@@ -67,6 +67,11 @@ dist: clean X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ X X+APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+ X ### Implicit rules: X X %.o: %.c 4791f7343128f9ed4e1c057487a8479d echo x - multimedia/vdr-plugin-control/files/patch-StringArray.c sed 's/^X//' >multimedia/vdr-plugin-control/files/patch-StringArray.c << 'b28032703043770bef3344ffa77ffd1c' X--- a/StringArray.c X+++ b/StringArray.c X@@ -11,7 +11,11 @@ X #endif // _GNU_SOURCE X X X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X #include X b28032703043770bef3344ffa77ffd1c echo x - multimedia/vdr-plugin-control/files/patch-control.c sed 's/^X//' >multimedia/vdr-plugin-control/files/patch-control.c << '5bbb193f682d7c408ff7afbf271d14c7' X--- a/control.c X+++ b/control.c X@@ -69,6 +69,7 @@ cPluginControl::~cPluginControl() X // Clean up after yourself! X delete(_pReceivers); X delete(_pTerminal); X+ delete(glCtrlState); X } X X 5bbb193f682d7c408ff7afbf271d14c7 echo x - multimedia/vdr-plugin-control/files/patch-stack.c sed 's/^X//' >multimedia/vdr-plugin-control/files/patch-stack.c << '9a2726cda9377fe9cd5ab41bbadbec0b' X--- a/stack.c X+++ b/stack.c X@@ -12,7 +12,11 @@ X X X X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X #include X 9a2726cda9377fe9cd5ab41bbadbec0b echo x - multimedia/vdr-plugin-control/files/patch-telnet.c sed 's/^X//' >multimedia/vdr-plugin-control/files/patch-telnet.c << '69c5a713603607854ce82ac48e277b7b' X--- a/telnet.c X+++ b/telnet.c X@@ -12,7 +12,11 @@ X X X X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X //#include X 69c5a713603607854ce82ac48e277b7b echo c - multimedia/vdr-plugin-epgsearch/ mkdir -p multimedia/vdr-plugin-epgsearch/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-epgsearch/Makefile sed 's/^X//' >multimedia/vdr-plugin-epgsearch/Makefile << '6d06004150f17f5369aeddb29d8d4005' X# New ports collection makefile for: vdr_plugin_epgsearch X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_epgsearch XPORTVERSION= 0.9.25b17 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://winni.vdr-developer.org/epgsearch/downloads/beta/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${PORTVERSION:S/b/.beta/}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - EPG search plugin X XLIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre \ X tre:${PORTSDIR}/textproc/libtre X XPATCH_STRIP= -p1 XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${PORTVERSION:S/b/.beta/} XMAKE_ARGS+= INCLUDES="-I$(LOCALBASE)/include -I$(LOCALBASE)/include/vdr -I${WRKSRC}" X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X @${REINPLACE_CMD} 's/^#\(HAVE_PCREPOSIX=\)/\1/;'\\ X 's/^#\(HAVE_LIBTRE=\)/\1/;' \ X ${WRKSRC}/Makefile X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 6d06004150f17f5369aeddb29d8d4005 echo x - multimedia/vdr-plugin-epgsearch/distinfo sed 's/^X//' >multimedia/vdr-plugin-epgsearch/distinfo << 'a5c2e6c66d0bef44a5337af30281c49b' XSHA256 (vdr/vdr-epgsearch-0.9.25.beta17.tgz) = 856f2a2c8ccaa60ddad04587464f08d7b7e673ff3b307a1b3e1f7aa53e09e0ba XSIZE (vdr/vdr-epgsearch-0.9.25.beta17.tgz) = 780599 a5c2e6c66d0bef44a5337af30281c49b echo x - multimedia/vdr-plugin-epgsearch/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-epgsearch/pkg-descr << '2fe8be20e8e61a2dbe588b2ee3dffaa9' Xhttp://www.linuxtv.org/vdrwiki/index.php/Epgsearch-plugin X XEPG-Search can be used as a replacement for VDR's default schedules menu Xentry. It looks like the standard schedules menu, but adds some Xadditional functions. X XWWW: http://winni.vdr-developer.org/epgsearch/index_eng.html 2fe8be20e8e61a2dbe588b2ee3dffaa9 echo x - multimedia/vdr-plugin-epgsearch/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-epgsearch/pkg-plist << '02d27ccb2f4d98b87d6aaf4cebd27f27' Xlib/vdr/libvdr-epgsearch.so.1.7.16 Xlib/vdr/libvdr-epgsearchonly.so.1.7.16 Xlib/vdr/libvdr-conflictcheckonly.so.1.7.16 Xlib/vdr/libvdr-quickepgsearch.so.1.7.16 02d27ccb2f4d98b87d6aaf4cebd27f27 echo c - multimedia/vdr-plugin-epgsearch/files/ mkdir -p multimedia/vdr-plugin-epgsearch/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-epgsearch/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-Makefile << '43fa213cb5462c227056dc36f980e32c' X--- a/Makefile X+++ b/Makefile X@@ -226,19 +226,35 @@ generate-i18n: i18n-template.h $(I18Npot X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X libvdr-$(PLUGIN2).so: $(OBJS2) X $(CXX) $(CXXFLAGS) -shared $(OBJS2) $(LIBS2) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X libvdr-$(PLUGIN3).so: $(OBJS3) X $(CXX) $(CXXFLAGS) -shared $(OBJS3) $(LIBS3) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X libvdr-$(PLUGIN4).so: $(OBJS4) X $(CXX) $(CXXFLAGS) -shared $(OBJS4) $(LIBS4) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X createcats: createcats.o Makefile X $(CXX) $(CXXFLAGS) createcats.o -o $@ X@@ -278,3 +294,15 @@ install-doc: X clean: X @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot $(PODIR)/*~ X @-rm -f $(OBJS) $(OBJS2) $(OBJS3) $(OBJS4) $(DEPFILE) *.so *.tgz core* *~ createcats createcats.o pod2*.tmp X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+ifndef WITHOUT_EPGSEARCHONLY X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN2).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN2).so.$(APIVERSION) X+endif X+ifndef WITHOUT_CONFLICTCHECKONLY X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN3).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN3).so.$(APIVERSION) X+endif X+ifndef WITHOUT_QUICKSEARCH X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN4).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN4).so.$(APIVERSION) X+endif 43fa213cb5462c227056dc36f980e32c echo x - multimedia/vdr-plugin-epgsearch/files/patch-createcats.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-createcats.c << '12577e43b6219fb59ada3f29986554b6' X--- a/createcats.c X+++ b/createcats.c X@@ -36,6 +36,12 @@ The project's page is at http://winni.vd X #define KILOBYTE(n) ((n) * 1024) X #define MAXPARSEBUFFER KILOBYTE(10) X X+#ifdef __FreeBSD__ X+#ifdef isnumber X+#undef isnumber X+#endif X+#endif X+ X bool isnumber(const char *s) X { X if (!*s) 12577e43b6219fb59ada3f29986554b6 echo x - multimedia/vdr-plugin-epgsearch/files/patch-distance.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-distance.c << '8230ce2e5a1510f1cc96201034368edd' X--- distance.c.orig X+++ distance.c X@@ -32,7 +32,11 @@ The project's page is at http://winni.vd X X #include "distance.h" X #include X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X X 8230ce2e5a1510f1cc96201034368edd echo x - multimedia/vdr-plugin-epgsearch/files/patch-epgsearch.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-epgsearch.c << '7775dce35159a1068a9fb2447e9dbed9' X--- a/epgsearch.c X+++ b/epgsearch.c X@@ -30,6 +30,7 @@ The project's page is at http://winni.vd X #include X #include X #include X+#include X #include X #include "menu_event.h" X #include "menu_main.h" 7775dce35159a1068a9fb2447e9dbed9 echo x - multimedia/vdr-plugin-epgsearch/files/patch-epgsearchtools.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-epgsearchtools.c << '7e66c1f5a61fc694dd8fcc7b01c5ad03' X--- a/epgsearchtools.c X+++ b/epgsearchtools.c X@@ -28,6 +28,7 @@ The project's page is at http://winni.vd X #include X #include X #include X+#include X X #include "uservars.h" X #include "epgsearchtools.h" 7e66c1f5a61fc694dd8fcc7b01c5ad03 echo x - multimedia/vdr-plugin-epgsearch/files/patch-menu_deftimercheckmethod.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-menu_deftimercheckmethod.c << 'bc20148b14a7927724f09e0cc02cfc67' X--- a/menu_deftimercheckmethod.c X+++ b/menu_deftimercheckmethod.c X@@ -21,6 +21,7 @@ The author can be reached at cwieninger@ X The project's page is at http://winni.vdr-developer.org/epgsearch X */ X X+#include X #include "menu_deftimercheckmethod.h" X #include "menu_myedittimer.h" X bc20148b14a7927724f09e0cc02cfc67 echo x - multimedia/vdr-plugin-epgsearch/files/patch-menu_whatson.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-menu_whatson.c << '1854499b127ec6872dbc651d920863c3' X--- a/menu_whatson.c X+++ b/menu_whatson.c X@@ -106,7 +106,7 @@ bool cMenuMyScheduleItem::Update(bool Fo X frac = ((now - startTime) * 8 + (dur >> 1)) / dur; X } X if (mode == showNext) X- frac = ( ( 30*60 - min((long int)30*60, startTime - now) ) * 8 + 15*60 ) / (30*60); X+ frac = ( ( 30*60 - min((time_t)30*60, startTime - now) ) * 8 + 15*60 ) / (30*60); X X frac = min(8,max(0, frac)); X 1854499b127ec6872dbc651d920863c3 echo x - multimedia/vdr-plugin-epgsearch/files/patch-searchtimer_thread.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-searchtimer_thread.c << '35032ead04bfeb7cf7e58fd99a33a6e2' X--- a/searchtimer_thread.c X+++ b/searchtimer_thread.c X@@ -22,6 +22,7 @@ The project's page is at http://winni.vd X */ X X #include X+#include X #include "searchtimer_thread.h" X #include "epgsearchcfg.h" X #include "epgsearchcats.h" 35032ead04bfeb7cf7e58fd99a33a6e2 echo x - multimedia/vdr-plugin-epgsearch/files/patch-timer_thread.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-timer_thread.c << '68914fb280485bca1980e680be80dcba' X--- a/timer_thread.c X+++ b/timer_thread.c X@@ -23,6 +23,7 @@ The project's page is at http://winni.vd X X #include X #include X+#include X #include "timer_thread.h" X #include "epgsearchcfg.h" X #include "epgsearchtools.h" 68914fb280485bca1980e680be80dcba echo x - multimedia/vdr-plugin-epgsearch/files/patch-uservars.c sed 's/^X//' >multimedia/vdr-plugin-epgsearch/files/patch-uservars.c << '45bee4baf05f21b6a2606a032683b081' X--- a/uservars.c X+++ b/uservars.c X@@ -22,6 +22,7 @@ The project's page is at http://winni.vd X */ X X #include X+#include X #include "uservars.h" X #include "epgsearchcats.h" X #include "epgsearchtools.h" 45bee4baf05f21b6a2606a032683b081 echo c - multimedia/vdr-plugin-femon/ mkdir -p multimedia/vdr-plugin-femon/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-femon/Makefile sed 's/^X//' >multimedia/vdr-plugin-femon/Makefile << '28f64c6039508957550e04af9d7e1f13' X# New ports collection makefile for: vdr_plugin_femon X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_femon XPORTVERSION= 1.7.7 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - frontend monitor plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 28f64c6039508957550e04af9d7e1f13 echo x - multimedia/vdr-plugin-femon/distinfo sed 's/^X//' >multimedia/vdr-plugin-femon/distinfo << '9dc8ef598371ce9fafcf95da941786f9' XSHA256 (vdr/vdr-femon-1.7.7.tgz) = 737a62d735da404e6063b26bbaea598c1a615542e4fc85afa7db84fd2b4286da XSIZE (vdr/vdr-femon-1.7.7.tgz) = 71864 9dc8ef598371ce9fafcf95da941786f9 echo x - multimedia/vdr-plugin-femon/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-femon/pkg-descr << '9394175b174448270a26575aa118f463' Xhttp://www.linuxtv.org/vdrwiki/index.php/Femon-plugin X XDVB Frontend Status Monitor is a VDR plugin that displays some signal Xinformation parameters of the current tuned channel on OSD. You can zap Xthrough all your channels and the plugin should be monitoring always the Xright frontend. The transponder and stream information are also available Xin advanced display modes. X XWWW: http://www.saunalahti.fi/~rahrenbe/vdr/femon/ 9394175b174448270a26575aa118f463 echo x - multimedia/vdr-plugin-femon/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-femon/pkg-plist << '83493f6f114aebc80674f9939bf9966c' Xlib/vdr/libvdr-femon.so.1.7.16 83493f6f114aebc80674f9939bf9966c echo c - multimedia/vdr-plugin-femon/files/ mkdir -p multimedia/vdr-plugin-femon/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-femon/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-femon/files/patch-Makefile << '78b88465baebc06f3bfa017a5f5c82f6' X--- femon-1.7.7/Makefile.orig X+++ femon-1.7.7/Makefile X@@ -131,3 +134,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) 78b88465baebc06f3bfa017a5f5c82f6 echo x - multimedia/vdr-plugin-femon/files/patch-femon-1.7.7.patch sed 's/^X//' >multimedia/vdr-plugin-femon/files/patch-femon-1.7.7.patch << 'e369a72a7cb02faf11b911eb747506b7' Xdiff -ur orig/femon-1.7.7/Makefile femon-1.7.7/Makefile X--- orig/femon-1.7.7/Makefile 2010-03-05 03:20:00.000000000 +0100 X+++ femon-1.7.7/Makefile 2010-03-05 17:55:59.000000000 +0100 X@@ -115,7 +115,11 @@ X ifndef FEMON_DEBUG X @$(STRIP) $@ X endif X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) XOnly in femon-1.7.7: Makefile.orig e369a72a7cb02faf11b911eb747506b7 echo c - multimedia/vdr-plugin-infosatepg/ mkdir -p multimedia/vdr-plugin-infosatepg/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-infosatepg/Makefile sed 's/^X//' >multimedia/vdr-plugin-infosatepg/Makefile << 'cc9bef312fcb6672e640ed18accb2ab3' X# New ports collection makefile for: vdr_plugin_infosatepg X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_infosatepg XPORTVERSION= 0.0.11 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://projects.vdr-developer.org/attachments/download/342/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - infosat EPG plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X ${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d /var/cache/vdr-${PLUGIN} X X.include cc9bef312fcb6672e640ed18accb2ab3 echo x - multimedia/vdr-plugin-infosatepg/distinfo sed 's/^X//' >multimedia/vdr-plugin-infosatepg/distinfo << '81d8d0c406e7194831d41c4dc597cbae' XSHA256 (vdr/vdr-infosatepg-0.0.11.tgz) = 14495b07f15f928b9ae66d6ec2f6e9639aa0cf86865900b7d6a9e212d7eb80ac XSIZE (vdr/vdr-infosatepg-0.0.11.tgz) = 35585 81d8d0c406e7194831d41c4dc597cbae echo x - multimedia/vdr-plugin-infosatepg/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-infosatepg/pkg-descr << '8958de2fd20fce90697b548571ac3511' Xhttp://vdr-wiki.de/wiki/index.php/Infosatepg-plugin X XThis plugin reads infosat EPG data from DVB-S. X XWWW: http://projects.vdr-developer.org/projects/show/plg-infosatepg 8958de2fd20fce90697b548571ac3511 echo x - multimedia/vdr-plugin-infosatepg/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-infosatepg/pkg-plist << 'c12b36024ce12ddc15bcc9a711a3d349' Xlib/vdr/libvdr-infosatepg.so.1.7.16 X@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d /var/cache/vdr-infosatepg c12b36024ce12ddc15bcc9a711a3d349 echo c - multimedia/vdr-plugin-infosatepg/files/ mkdir -p multimedia/vdr-plugin-infosatepg/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-infosatepg/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-Makefile << 'a7b861c2174c005d7698b2e210d80051' X--- a/Makefile X+++ b/Makefile X@@ -97,7 +97,11 @@ i18n: $(I18Nmsgs) $(I18Npot) X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) X@@ -110,3 +114,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so* *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) a7b861c2174c005d7698b2e210d80051 echo x - multimedia/vdr-plugin-infosatepg/files/patch-filter.cpp sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-filter.cpp << 'f7336f24a4aa8e7611cfd4bcfbe5c66c' X--- a/filter.cpp X+++ b/filter.cpp X@@ -6,6 +6,9 @@ X * $Id$ X */ X X+#include X+#include X+#include X #include X #include X X@@ -47,24 +50,32 @@ u_short cFilterInfosatepg::foldsum(u_lon X return ((u_short) ~sum); X } X X-u_short cFilterInfosatepg::IPChecksum(iphdr *ipHeader) X+u_short cFilterInfosatepg::IPChecksum(ip *ipHeader) X { X- return foldsum(do_sum(0, (u_char*) ipHeader, sizeof(iphdr))); X+ return foldsum(do_sum(0, (u_char*) ipHeader, sizeof(ip))); X X } /* IpChecksum() */ X X X-u_short cFilterInfosatepg::UDPChecksum(iphdr *ipHeader, udphdr *udpHeader) X+u_short cFilterInfosatepg::UDPChecksum(ip *ipHeader, udphdr *udpHeader) X { X u_long sum = 0; X X // Ip-Pseudo-Header X- sum = do_sum(sum, (u_char*)(&ipHeader->saddr), sizeof(ipHeader->saddr)); X- sum = do_sum(sum, (u_char*)(&ipHeader->daddr), sizeof(ipHeader->daddr)); X+ sum = do_sum(sum, (u_char*)(&ipHeader->ip_src), sizeof(ipHeader->ip_src)); X+ sum = do_sum(sum, (u_char*)(&ipHeader->ip_dst), sizeof(ipHeader->ip_dst)); X+#ifdef __linux__ X sum += udpHeader->len; X- sum += ipHeader->protocol<<8; X+#else X+ sum += udpHeader->uh_ulen; X+#endif X+ sum += ipHeader->ip_p<<8; X X+#ifdef __linux__ X sum = do_sum(sum, (u_char*)udpHeader, ntohs(udpHeader->len)); X+#else X+ sum = do_sum(sum, (u_char*)udpHeader, ntohs(udpHeader->uh_ulen)); X+#endif X X return foldsum(sum); X } X@@ -78,27 +89,27 @@ void cFilterInfosatepg::Process(u_short X X if (Data[0]!=0x3E) return; X X- struct ethhdr eth_hdr; X- memset(ð_hdr,0,sizeof(struct ethhdr)); X+ struct ether_header eth_hdr; X+ memset(ð_hdr,0,sizeof(struct ether_header)); X X- eth_hdr.h_dest[0]=Data[11]; X- eth_hdr.h_dest[1]=Data[10]; X- eth_hdr.h_dest[2]=Data[9]; X- eth_hdr.h_dest[3]=Data[8]; X- eth_hdr.h_dest[4]=Data[4]; X- eth_hdr.h_dest[5]=Data[3]; X+ eth_hdr.ether_dhost[0]=Data[11]; X+ eth_hdr.ether_dhost[1]=Data[10]; X+ eth_hdr.ether_dhost[2]=Data[9]; X+ eth_hdr.ether_dhost[3]=Data[8]; X+ eth_hdr.ether_dhost[4]=Data[4]; X+ eth_hdr.ether_dhost[5]=Data[3]; X X // check mac and range X if (!global->CheckMAC(ð_hdr)) return; X X- int mac = eth_hdr.h_dest[5]; X+ int mac = eth_hdr.ether_dhost[5]; X global->ActualMac=mac; X X- struct iphdr *ip_hdr = (iphdr *) &Data[SECT_IP_HDR_START]; X+ struct ip *ip_hdr = (ip *) &Data[SECT_IP_HDR_START]; X struct udphdr *udp_hdr = (udphdr *) &Data[SECT_UDP_HDR_START]; X X // Only IPv4 X- if (ip_hdr->version!=4) return; X+ if (ip_hdr->ip_v!=4) return; X X // Check IP checksum X if (IPChecksum(ip_hdr)!=0) X@@ -108,7 +119,7 @@ void cFilterInfosatepg::Process(u_short X } X X // Only UDP X- if (ip_hdr->protocol!=17) return; X+ if (ip_hdr->ip_p!=17) return; X X // Check UDP checksum X if (UDPChecksum(ip_hdr,udp_hdr)!=0) X@@ -149,8 +160,8 @@ void cFilterInfosatepg::Process(u_short X X X #ifdef VDRDEBUG X- dsyslog("infosatepg: mac=%02x-%02x-%02x-%02x-%02x-%02x",eth_hdr.h_dest[0],eth_hdr.h_dest[1], X- eth_hdr.h_dest[2],eth_hdr.h_dest[3],eth_hdr.h_dest[4],eth_hdr.h_dest[5] ); X+ dsyslog("infosatepg: mac=%02x-%02x-%02x-%02x-%02x-%02x",eth_hdr.ether_dhost[0],eth_hdr.ether_dhost[1], X+ eth_hdr.ether_dhost[2],eth_hdr.ether_dhost[3],eth_hdr.ether_dhost[4],eth_hdr.ether_dhost[5] ); X X dsyslog("infosatepg: tid=%04i tbl=%04i stbl=%04i day=%02i month=%02i pktnr=%03i pktcnt=%03i len=%i", X ntohs(ishdr->technisatId),ishdr->tableId,ishdr->tablesubId,ishdr->day, f7336f24a4aa8e7611cfd4bcfbe5c66c echo x - multimedia/vdr-plugin-infosatepg/files/patch-filter.h sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-filter.h << 'd9f6797186b40f771eae70dfc7d31da9' X--- a/filter.h X+++ b/filter.h X@@ -33,8 +33,8 @@ private: X cGlobalInfosatepg *global; X u_long do_sum(u_long sum, u_char *buf, int nBytes); X u_short foldsum(u_long sum); X- u_short IPChecksum(iphdr *ipHeader); X- u_short UDPChecksum(iphdr *ipHeader, udphdr *udpHeader); X+ u_short IPChecksum(ip *ipHeader); X+ u_short UDPChecksum(ip *ipHeader, udphdr *udpHeader); X protected: X virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length); X public: d9f6797186b40f771eae70dfc7d31da9 echo x - multimedia/vdr-plugin-infosatepg/files/patch-global.cpp sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-global.cpp << '370bfc1d7887471eb5683a0afd7375b0' X--- a/global.cpp X+++ b/global.cpp X@@ -194,17 +194,17 @@ bool cGlobalInfosatepg::SetDirectory(con X return true; X } X X-bool cGlobalInfosatepg::CheckMAC(struct ethhdr *eth_hdr) X+bool cGlobalInfosatepg::CheckMAC(ether_header *eth_hdr) X { X if (!eth_hdr) return false; X- if (eth_hdr->h_dest[0]!=MAC[0]) return false; X- if (eth_hdr->h_dest[1]!=MAC[1]) return false; X- if (eth_hdr->h_dest[2]!=MAC[2]) return false; X- if (eth_hdr->h_dest[3]!=MAC[3]) return false; X- if (eth_hdr->h_dest[4]!=MAC[4]) return false; X+ if (eth_hdr->ether_dhost[0]!=MAC[0]) return false; X+ if (eth_hdr->ether_dhost[1]!=MAC[1]) return false; X+ if (eth_hdr->ether_dhost[2]!=MAC[2]) return false; X+ if (eth_hdr->ether_dhost[3]!=MAC[3]) return false; X+ if (eth_hdr->ether_dhost[4]!=MAC[4]) return false; X X- if (eth_hdr->h_dest[5]h_dest[5]>EPG_LAST_DAY_MAC) return false; X+ if (eth_hdr->ether_dhost[5]ether_dhost[5]>EPG_LAST_DAY_MAC) return false; X X return true; X } 370bfc1d7887471eb5683a0afd7375b0 echo x - multimedia/vdr-plugin-infosatepg/files/patch-global.h sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-global.h << '00f433b460830598cd09376112cf8281' X--- a/global.h X+++ b/global.h X@@ -9,8 +9,10 @@ X #ifndef __global_h_ X #define __global_h_ X X+#include X #include X #include X+#include X X #include X #include X@@ -162,7 +164,7 @@ public: X return directory; X } X bool SetDirectory (const char *Directory); X- bool CheckMAC (struct ethhdr *eth_hdr); X+ bool CheckMAC (ether_header *eth_hdr); X void SetWaitTimer() X { X timer=time (NULL); 00f433b460830598cd09376112cf8281 echo x - multimedia/vdr-plugin-infosatepg/files/patch-infosatepg.cpp sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-infosatepg.cpp << '5ab2c4c08be673c5eb4d4e625681df00' X--- a/infosatepg.cpp X+++ b/infosatepg.cpp X@@ -403,7 +403,7 @@ cString cPluginInfosatepg::SVDRPCommand( X cString head2; X head2="\n" \ X " | | missed | | | unlocated\n" \ X- " Day | Date | Packets | Received %% | Processed | Events\n" \ X+ " Day | Date | Packets | Received % | Processed | Events\n" \ X "------+--------+---------+------------+------------+----------\n"; X X cString mstr; 5ab2c4c08be673c5eb4d4e625681df00 echo x - multimedia/vdr-plugin-infosatepg/files/patch-process.cpp sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-process.cpp << '80371a8b4c3b1c690add60999a9fb024' X--- a/process.cpp X+++ b/process.cpp X@@ -1047,7 +1047,9 @@ bool cProcessInfosatepg::ParseInfosatepg X int ieventnr=1; X cChannel *chan=NULL; X cInfosatevent *ievent=NULL; X-#if VDRVERSNUM < 10701 X+// XXX don't default to assuming UTF-8 on FreeBSD (that's what the NULL does), X+// its still often used without. X+#if VDRVERSNUM < 10701 || defined(__FreeBSD__) X cCharSetConv *conv = new cCharSetConv("ISO-8859-1",cCharSetConv::SystemCharacterTable() ? X cCharSetConv::SystemCharacterTable() : "UTF-8"); X #else X@@ -1139,7 +1141,12 @@ bool cProcessInfosatepg::ParseInfosatepg X } X int shour,sminute; X char *title; X+#ifdef __FreeBSD__ X+ title = (char *)malloc(strlen(s)); X+ fields=sscanf(s,"%d:%d %[^^]",&shour,&sminute,title); X+#else X fields=sscanf(s,"%d:%d %a[^^]",&shour,&sminute,&title); X+#endif X if (fields==3) X { X if (!ievent) ievent = new cInfosatevent; 80371a8b4c3b1c690add60999a9fb024 echo x - multimedia/vdr-plugin-infosatepg/files/patch-readline.cpp sed 's/^X//' >multimedia/vdr-plugin-infosatepg/files/patch-readline.cpp << 'aa5cbed98ece8f11d6c0296e7f454ddf' X--- a/readline.cpp X+++ b/readline.cpp X@@ -10,6 +10,15 @@ X #include X #include "readline.h" X X+#ifdef __FreeBSD__ X+#include X+#if __FreeBSD_version > 800000 X+#define HAVE_GETLINE X+#endif X+#else X+#define HAVE_GETLINE X+#endif X+ X extern char *strcatrealloc(char *dest, const char *src); X X // --- cReadLineInfosatepg --------------------------------------------------- X@@ -36,7 +45,31 @@ char *cReadLineInfosatepg::Read(FILE *f, X do X { X ext=false; X+#ifndef HAVE_GETLINE X+ size_t n; X+ X+ if (!tempbuffer) X+ { X+ if (!(tempbuffer = (char *)malloc(tempsize = 4096))) X+ return NULL; X+ } X+ if (!fgets(tempbuffer, tempsize, f)) X+ { X+ if (tempbuffer) free(tempbuffer); X+ return buffer; X+ } X+ while ((n = strlen(tempbuffer)) >= tempsize - 1 && X+ tempbuffer[n - 1] != '\n') X+ { X+ if (!(tempbuffer = (char *)realloc(tempbuffer, tempsize * 2))) X+ return NULL; X+ tempsize *= 2; X+ if (!fgets(tempbuffer + n, tempsize - n, f)) X+ break; X+ } X+#else X int n = getline(&tempbuffer, &tempsize, f); X+#endif X if (n > 0) X { X if (tempbuffer[n-1] == '\n') aa5cbed98ece8f11d6c0296e7f454ddf echo c - multimedia/vdr-plugin-iptv/ mkdir -p multimedia/vdr-plugin-iptv/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-iptv/Makefile sed 's/^X//' >multimedia/vdr-plugin-iptv/Makefile << '6b15db0e5ffe52810be866ce3e01915e' X# New ports collection makefile for: vdr_plugin_remote X# Date created: Sun Aug 29 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_iptv XPORTVERSION= 0.4.2 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://www.saunalahti.fi/~rahrenbe/vdr/iptv/files/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - IP television plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XPORTEXAMPLES= channels.conf.iptv XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X @${REINPLACE_CMD} 's|^\(CHANNELS_CONF[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${PREFIX}/etc/vdr/channels.conf|;'\\ X 's|^\(CHANNEL_SETTINGS_DIR[[:space:]]*\)[?]*\(=[[:space:]]*\)/etc|\1\2${PREFIX}/etc|;'\ X ${WRKSRC}/iptv/vlc2iptv X Xpost-install: X @${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN} X @${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlcinput X @${INSTALL_DATA} ${FILESDIR}/vlcinput/*.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlcinput X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/image.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/image.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/image.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/image.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/internetradio.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/internetradio.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/internetradio.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/internetradio.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream-notrap.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream-notrap.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream-notrap.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream-notrap.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/iptvstream.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/iptvstream.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/linein.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/linein.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/linein.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/linein.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/vlc2iptv ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlc2iptv.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/vlc2iptv ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/vlc2iptv ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/webcam.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/webcam.sh.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/webcam.sh ]; then \ X ${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/webcam.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X.if !defined(NOPORTEXAMPLES) X ${MKDIR} ${EXAMPLESDIR} X ${INSTALL_DATA} ${FILESDIR}/channels.conf.iptv ${EXAMPLESDIR} X.endif X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 6b15db0e5ffe52810be866ce3e01915e echo x - multimedia/vdr-plugin-iptv/distinfo sed 's/^X//' >multimedia/vdr-plugin-iptv/distinfo << 'b28c6ed3a1b2c480be029aa2cd598b04' XSHA256 (vdr/vdr-iptv-0.4.2.tgz) = 3f86533d12414a7fa725eeedc75b64383e0de52b741cf418d9b60af5a76a9739 XSIZE (vdr/vdr-iptv-0.4.2.tgz) = 47565 b28c6ed3a1b2c480be029aa2cd598b04 echo x - multimedia/vdr-plugin-iptv/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-iptv/pkg-descr << '38543b9cd0cdc8669b3be7ca6969320e' XThis is an IPTV plugin for the Video Disk Recorder (VDR). X XThis plugin integrates multicast IPTV transport streams seamlessly into XVDR. You can use any IPTV channel like any other normal DVB channel for Xlive viewing, recording, etc. The plugin also features full section Xfiltering capabilities which allow for example EIT information to be Xextracted from the incoming stream. X XCurrently the IPTV plugin has direct support for both multicast UDP/RTP Xand unicast HTTP MPEG1/2 transport streams. Also a file input method is Xsupported, but a file delay must be selected individually to prevent XVDR's transfer buffer over/underflow. Therefore the file input should be Xconsidered as a testing feature only. X XIPTV plugin also features a support for external streaming applications. XWith proper helper applications and configuration IPTV plugin is able to Xdisplay not only MPEG1/2 transport streams but also other formats like XMP3 radio streams, mms video streams and so on. X XWWW: http://www.saunalahti.fi/~rahrenbe/vdr/iptv/ 38543b9cd0cdc8669b3be7ca6969320e echo x - multimedia/vdr-plugin-iptv/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-iptv/pkg-plist << 'f2ba44755bcf0fb08350b414d96d3777' Xlib/vdr/libvdr-iptv.so.1.7.16 X@unexec if cmp -s %D/etc/vdr/plugins/iptv/image.sh.sample %D/etc/vdr/plugins/iptv/image.sh; then rm -f %D/etc/vdr/plugins/iptv/image.sh; fi Xetc/vdr/plugins/iptv/image.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/image.sh ] ; then cp -p %D/%F %B/image.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/internetradio.sh.sample %D/etc/vdr/plugins/iptv/internetradio.sh; then rm -f %D/etc/vdr/plugins/iptv/internetradio.sh; fi Xetc/vdr/plugins/iptv/internetradio.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/internetradio.sh ] ; then cp -p %D/%F %B/internetradio.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/iptvstream-notrap.sh.sample %D/etc/vdr/plugins/iptv/iptvstream-notrap.sh; then rm -f %D/etc/vdr/plugins/iptv/iptvstream-notrap.sh; fi Xetc/vdr/plugins/iptv/iptvstream-notrap.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/iptvstream-notrap.sh ] ; then cp -p %D/%F %B/iptvstream-notrap.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/iptvstream.sh.sample %D/etc/vdr/plugins/iptv/iptvstream.sh; then rm -f %D/etc/vdr/plugins/iptv/iptvstream.sh; fi Xetc/vdr/plugins/iptv/iptvstream.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/iptvstream.sh ] ; then cp -p %D/%F %B/iptvstream.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/linein.sh.sample %D/etc/vdr/plugins/iptv/linein.sh; then rm -f %D/etc/vdr/plugins/iptv/linein.sh; fi Xetc/vdr/plugins/iptv/linein.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/linein.sh ] ; then cp -p %D/%F %B/linein.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/vlc2iptv.sample %D/etc/vdr/plugins/iptv/vlc2iptv; then rm -f %D/etc/vdr/plugins/iptv/vlc2iptv; fi Xetc/vdr/plugins/iptv/vlc2iptv.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/vlc2iptv ] ; then cp -p %D/%F %B/vlc2iptv; fi X@unexec if cmp -s %D/etc/vdr/plugins/iptv/webcam.sh.sample %D/etc/vdr/plugins/iptv/webcam.sh; then rm -f %D/etc/vdr/plugins/iptv/webcam.sh; fi Xetc/vdr/plugins/iptv/webcam.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/iptv/webcam.sh ] ; then cp -p %D/%F %B/webcam.sh; fi Xetc/vdr/plugins/iptv/vlcinput/3Sat.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio1.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio1xtra.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio2.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio3.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio4.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio4lw.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio5liveint.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio5livesport.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio6music.conf Xetc/vdr/plugins/iptv/vlcinput/BBC-radio7.conf Xetc/vdr/plugins/iptv/vlcinput/Bundesligen-TV.conf Xetc/vdr/plugins/iptv/vlcinput/Daytona-Beach.conf Xetc/vdr/plugins/iptv/vlcinput/NASA-1200-Kbit.conf Xetc/vdr/plugins/iptv/vlcinput/NASA-500-Kbit.conf Xetc/vdr/plugins/iptv/vlcinput/NASA.conf Xetc/vdr/plugins/iptv/vlcinput/Sky-News.conf Xetc/vdr/plugins/iptv/vlcinput/THE_VOICE.conf X@dirrmtry etc/vdr/plugins/iptv/vlcinput X@dirrmtry etc/vdr/plugins/iptv f2ba44755bcf0fb08350b414d96d3777 echo x - multimedia/vdr-plugin-iptv/pkg-plist.foo sed 's/^X//' >multimedia/vdr-plugin-iptv/pkg-plist.foo << 'c8803ec0b845cc57bb99459ae426c5d4' Xlib/vdr/libvdr-iptv.so.1.7.15 X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/image.sh.sample %D/etc/vdr/plugins/streamdev/image.sh; then rm -f %D/etc/vdr/plugins/streamdev/image.sh; fi Xetc/vdr/plugins/streamdev/image.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/image.sh ] ; then cp -p %D/%F %B/image.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/internetradio.sh.sample %D/etc/vdr/plugins/streamdev/internetradio.sh; then rm -f %D/etc/vdr/plugins/streamdev/internetradio.sh; fi Xetc/vdr/plugins/streamdev/internetradio.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/iptvstream-notrap.sh ] ; then cp -p %D/%F %B/iptvstream-notrap.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/iptvstream-notrap.sh.sample %D/etc/vdr/plugins/streamdev/iptvstream-notrap.sh; then rm -f %D/etc/vdr/plugins/streamdev/iptvstream-notrap.sh; fi Xetc/vdr/plugins/streamdev/iptvstream-notrap.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/iptvstream.sh ] ; then cp -p %D/%F %B/iptvstream.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/iptvstream.sh.sample %D/etc/vdr/plugins/streamdev/iptvstream.sh; then rm -f %D/etc/vdr/plugins/streamdev/iptvstream.sh; fi Xetc/vdr/plugins/streamdev/iptvstream.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/linein.sh ] ; then cp -p %D/%F %B/linein.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/linein.sh.sample %D/etc/vdr/plugins/streamdev/linein.sh; then rm -f %D/etc/vdr/plugins/streamdev/linein.sh; fi Xetc/vdr/plugins/streamdev/linein.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/vlc2iptv.sh ] ; then cp -p %D/%F %B/vlc2iptv.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/vlc2iptv.sh.sample %D/etc/vdr/plugins/streamdev/vlc2iptv.sh; then rm -f %D/etc/vdr/plugins/streamdev/vlc2iptv.sh; fi Xetc/vdr/plugins/streamdev/vlc2iptv.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/webcam.sh ] ; then cp -p %D/%F %B/webcam.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/webcam.sh.sample %D/etc/vdr/plugins/streamdev/webcam.sh; then rm -f %D/etc/vdr/plugins/streamdev/webcam.sh; fi Xetc/vdr/plugins/streamdev/webcam.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/externremux.sh ] ; then cp -p %D/%F %B/externremux.sh; fi c8803ec0b845cc57bb99459ae426c5d4 echo c - multimedia/vdr-plugin-iptv/files/ mkdir -p multimedia/vdr-plugin-iptv/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-iptv/files/channels.conf.iptv sed 's/^X//' >multimedia/vdr-plugin-iptv/files/channels.conf.iptv << '88ccbc9d59d6673cf8e39debb829b047' X:@950 iptv-plugin XBBC-radio1;IPTV:2010:S=0|P=0|F=EXT|U=vlc2iptv|A=2010:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio1xtra;IPTV:2020:S=0|P=0|F=EXT|U=vlc2iptv|A=2020:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio2;IPTV:2030:S=0|P=0|F=EXT|U=vlc2iptv|A=2030:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio3;IPTV:2040:S=0|P=0|F=EXT|U=vlc2iptv|A=2040:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio4;IPTV:2050:S=0|P=0|F=EXT|U=vlc2iptv|A=2050:I:0:5=2:6=eng@3:0:0:1:0:0:0 XBBC-radio4lw;IPTV:2060:S=0|P=0|F=EXT|U=vlc2iptv|A=2060:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio5liveint;IPTV:2070:S=0|P=0|F=EXT|U=vlc2iptv|A=2070:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio5livesport;IPTV:2080:S=0|P=0|F=EXT|U=vlc2iptv|A=2080:I:0:5=2:6=eng@3:0:0:1:0:0:0 XBBC-radio6music;IPTV:2090:S=0|P=0|F=EXT|U=vlc2iptv|A=2090:I:0:0:6=eng@3:0:0:1:0:0:0 XBBC-radio7;IPTV:2100:S=0|P=0|F=EXT|U=vlc2iptv|A=2100:I:0:5=2:6=eng@3:0:0:1:0:0:0 XTHE_VOICE;IPTV:3010:S=0|P=0|F=EXT|U=vlc2iptv|A=3010:I:0:0:6=eng@3:0:0:1:0:0:0 X3Sat;IPTV:3020:S=0|P=0|F=EXT|U=vlc2iptv|A=3020:I:0:2=2:3=@4:0:0:7:0:0:0 XSky-News;IPTV:3030:S=0|P=0|F=EXT|U=vlc2iptv|A=3030:I:0:5=2:6=eng@3:0:0:1:0:0:0 XNASA;IPTV:4010:S=0|P=0|F=EXT|U=vlc2iptv|A=4010:I:0:5=2:6=eng@3:0:0:1:0:0:0 XNASA-500-Kbit;IPTV:4020:S=0|P=0|F=EXT|U=vlc2iptv|A=4020:I:0:5=2:6=eng@3:0:0:1:0:0:0 XNASA-1200-Kbit;IPTV:4030:S=0|P=0|F=EXT|U=vlc2iptv|A=4030:I:0:5=2:6=eng@3:0:0:1:0:0:0 88ccbc9d59d6673cf8e39debb829b047 echo x - multimedia/vdr-plugin-iptv/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-Makefile << '1ce57ceca283615761fb13327cab8087' X--- a/Makefile X+++ b/Makefile X@@ -50,7 +50,8 @@ PACKAGE = vdr-$(ARCHIVE) X X ### Includes and Defines (add further entries here): X X-INCLUDES += -I$(VDRDIR)/include X+#INCLUDES += -I$(VDRDIR)/include X+INCLUDES += -I$(VDRDIR) X X DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' X X@@ -117,7 +118,11 @@ libvdr-$(PLUGIN).so: $(OBJS) X ifndef IPTV_DEBUG X @$(STRIP) $@ X endif X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) X@@ -129,3 +134,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) 1ce57ceca283615761fb13327cab8087 echo x - multimedia/vdr-plugin-iptv/files/patch-common.h sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-common.h << 'f75f739376fc7e5a11124e838574c86b' X--- a/common.h X+++ b/common.h X@@ -36,6 +36,7 @@ X X #define SECTION_FILTER_TABLE_SIZE 7 X X+#ifndef __FreeBSD__ X #define ERROR_IF_FUNC(exp, errstr, func, ret) \ X do { \ X if (exp) { \ X@@ -45,6 +46,18 @@ X ret; \ X } \ X } while (0) X+#else X+#define ERROR_IF_FUNC(exp, errstr, func, ret) \ X+ do { \ X+ if (exp) { \ X+ char tmp[64]; \ X+ strerror_r(errno, tmp, sizeof(tmp)); \ X+ error(errstr": %s", tmp); \ X+ func; \ X+ ret; \ X+ } \ X+ } while (0) X+#endif X X X #define ERROR_IF_RET(exp, errstr, ret) ERROR_IF_FUNC(exp, errstr, ,ret); f75f739376fc7e5a11124e838574c86b echo x - multimedia/vdr-plugin-iptv/files/patch-iptv-vlc2iptv sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-iptv-vlc2iptv << 'c75137bfb802c75c93a7cd463cd2d3be' X--- a/iptv/vlc2iptv X+++ b/iptv/vlc2iptv X@@ -29,6 +29,8 @@ CHANNELS_CONF=/usr/local/etc/vdr/channel X CHANNEL_SETTINGS_DIR=/usr/local/etc/vdr/plugins/iptv/vlcinput/ X VIDEO_BITRATE=2400 X AUDIO_BITRATE=320 X+AUDIO_CODEC=mpga X+VIDEO_CODEC=mp2v X X # X # X@@ -88,13 +90,6 @@ else X RESIZE_OPTIONS="" X fi X X-vlc "${URL}" \ X- --sout "#transcode{vcodec=mp2v$RESIZE_OPTIONS,acodec=mpga,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" \ X- --intf dummy & X- X-PID=${!} X- X-trap 'kill -INT ${PID} 2> /dev/null' INT EXIT QUIT TERM X- X-# Waiting for the given PID to terminate X-wait ${PID} X+exec vlc "${URL}" \ X+ --sout "#transcode{vcodec=$VIDEO_CODEC$RESIZE_OPTIONS,acodec=$AUDIO_CODEC,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" \ X+ --intf dummy c75137bfb802c75c93a7cd463cd2d3be echo x - multimedia/vdr-plugin-iptv/files/patch-protocolext.c sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-protocolext.c << '51d158278b2b5d743bb945f3ba60ec05' X--- a/protocolext.c X+++ b/protocolext.c X@@ -82,6 +82,7 @@ void cIptvProtocolExt::TerminateScript(v X error("Script '%s' won't terminate - killing it!", *scriptFile); X kill(pid, SIGKILL); X } X+#ifdef linux X // Clear wait status to make sure child exit status is accessible X memset(&waitStatus, '\0', sizeof(waitStatus)); X // Wait for child termination X@@ -94,6 +95,17 @@ void cIptvProtocolExt::TerminateScript(v X debug("Child (%d) exited as expected\n", pid); X waitOver = true; X } X+#else X+ int status = 0; X+ retval = waitpid(pid, &status, (WNOHANG)); X+ ERROR_IF_RET(retval < 0, "waitid()", waitOver = true); X+ // These are the acceptable conditions under which child exit is X+ // regarded as successful X+ if (!retval && (WIFEXITED(status) || WIFSIGNALED(status))) { X+ debug("Child (%d) exited as expected\n", pid); X+ waitOver = true; X+ } X+#endif X // Unsuccessful wait, avoid busy looping X if (!waitOver) X cCondWait::SleepMs(timeoutms); 51d158278b2b5d743bb945f3ba60ec05 echo x - multimedia/vdr-plugin-iptv/files/patch-sectionfilter.h sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-sectionfilter.h << '29592d5b1a4ba9567a67053cfde327a2' X--- a/sectionfilter.h X+++ b/sectionfilter.h X@@ -9,6 +9,7 @@ X #define __IPTV_SECTIONFILTER_H X X #include X+#include X X #include "common.h" X #include "statistics.h" 29592d5b1a4ba9567a67053cfde327a2 echo x - multimedia/vdr-plugin-iptv/files/patch-socket.h sed 's/^X//' >multimedia/vdr-plugin-iptv/files/patch-socket.h << 'b3af25ced7ddb244b1c460080282f5a3' X--- a/socket.h X+++ b/socket.h X@@ -9,6 +9,7 @@ X #define __IPTV_SOCKET_H X X #include X+#include X X class cIptvSocket { X protected: b3af25ced7ddb244b1c460080282f5a3 echo c - multimedia/vdr-plugin-iptv/files/vlcinput/ mkdir -p multimedia/vdr-plugin-iptv/files/vlcinput/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/3Sat.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/3Sat.conf << '483d3d9d437888e1df80cf66af8f8825' XURL="http://wstreaming.zdf.de/encoder/3sat_h.asx" 483d3d9d437888e1df80cf66af8f8825 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1.conf << '7b38685829f8eee091ed7621fd75fb84' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r1.asx" 7b38685829f8eee091ed7621fd75fb84 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1xtra.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio1xtra.conf << 'ecae03e0b2a73d24c5983b2dfdd3a540' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r1x.asx" ecae03e0b2a73d24c5983b2dfdd3a540 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio2.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio2.conf << '066ff9e1594030f36945ce2a3b8482d6' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r2.asx" 066ff9e1594030f36945ce2a3b8482d6 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio3.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio3.conf << 'fabcb5c31a72cd5c5a9013de113fd67d' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r3.asx" fabcb5c31a72cd5c5a9013de113fd67d echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4.conf << '5a0b0aa5d4248833dd2f75db47a633b0' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r4.asx" 5a0b0aa5d4248833dd2f75db47a633b0 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4lw.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio4lw.conf << '05b043960baaa7a83f610c7ac4208496' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r4lw.asx" 05b043960baaa7a83f610c7ac4208496 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5liveint.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5liveint.conf << '1b03b6dcfaa912453a557597d9c12afa' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/fivelive/live/live_int.asx" 1b03b6dcfaa912453a557597d9c12afa echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5livesport.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio5livesport.conf << '5de5428a9c4ef02800fbe2f4723e15b1' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r5lsp.asx" 5de5428a9c4ef02800fbe2f4723e15b1 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio6music.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio6music.conf << '1c7c8cd9e729fe67d2c07573610c96f7' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r6.asx" 1c7c8cd9e729fe67d2c07573610c96f7 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio7.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/BBC-radio7.conf << '2035200f571550b91505946470860642' X# see: X# http://faq.external.bbc.co.uk/questions/radio/online_radiohowto XURL="http://www.bbc.co.uk/radio/listen/live/r7.asx" 2035200f571550b91505946470860642 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/Bundesligen-TV.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/Bundesligen-TV.conf << '534bb0162121b9543fd100ab67074913' XURL="http://www.bundesligen-tv.com/act_stream.aspx?sender_id=31" 534bb0162121b9543fd100ab67074913 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/Daytona-Beach.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/Daytona-Beach.conf << '4266c3b00c73e800a7fe7aa0ddcbc9cb' XURL="rtsp://real.prohosting.com/encoder/daytona.rm" 4266c3b00c73e800a7fe7aa0ddcbc9cb echo x - multimedia/vdr-plugin-iptv/files/vlcinput/NASA-1200-Kbit.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/NASA-1200-Kbit.conf << '335bd88745069e48264e497b1470393a' XURL="http://playlist.yahoo.com/makeplaylist.dll?id=1368163" XVIDEO_CODEC=mp2v,fps=30 XAUDIO_BITRATE=128 335bd88745069e48264e497b1470393a echo x - multimedia/vdr-plugin-iptv/files/vlcinput/NASA-500-Kbit.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/NASA-500-Kbit.conf << '80400b1fdad4d1874e44a92c9b5546ec' XURL="http://playlist.yahoo.com/makeplaylist.dll?id=1368570" XVIDEO_CODEC=mp2v,fps=30 XAUDIO_BITRATE=128 80400b1fdad4d1874e44a92c9b5546ec echo x - multimedia/vdr-plugin-iptv/files/vlcinput/NASA.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/NASA.conf << '4359a8d154b945795170b6387bb32ee1' XURL="http://www.nasa.gov/55644main_NASATV_Windows.asx" XVIDEO_CODEC=mp2v,fps=25 XAUDIO_BITRATE=128 4359a8d154b945795170b6387bb32ee1 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/Sky-News.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/Sky-News.conf << 'd08c57cc39790db32f7f6e478d6582d5' XURL="mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k" XVIDEO_CODEC=mp2v,fps=30 d08c57cc39790db32f7f6e478d6582d5 echo x - multimedia/vdr-plugin-iptv/files/vlcinput/THE_VOICE.conf sed 's/^X//' >multimedia/vdr-plugin-iptv/files/vlcinput/THE_VOICE.conf << '0272b1b7bb2d21e2b5ceec0430195c48' XURL="mms://62.41.56.32/PUBLIC_votv_fi" 0272b1b7bb2d21e2b5ceec0430195c48 echo c - multimedia/vdr-plugin-osdpip/ mkdir -p multimedia/vdr-plugin-osdpip/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-osdpip/Makefile sed 's/^X//' >multimedia/vdr-plugin-osdpip/Makefile << '2b194086a731fd89b36266e1e16f19b3' X# New ports collection makefile for: vdr_plugin_osdpip X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_osdpip XPORTVERSION= 0.1.0 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://projects.vdr-developer.org/attachments/download/267/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - picture-in-picture plugin X XLIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg X XDIST_SUBDIR= vdr XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 2b194086a731fd89b36266e1e16f19b3 echo x - multimedia/vdr-plugin-osdpip/distinfo sed 's/^X//' >multimedia/vdr-plugin-osdpip/distinfo << '0a44375604a919c8b73fb56d36ad2afb' XSHA256 (vdr/vdr-osdpip-0.1.0.tgz) = 40f5e8acc57c82d922b0a415bb0f12ac3cb68c014f9bafd090b71ded6a25a821 XSIZE (vdr/vdr-osdpip-0.1.0.tgz) = 52090 0a44375604a919c8b73fb56d36ad2afb echo x - multimedia/vdr-plugin-osdpip/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-osdpip/pkg-descr << 'ef26344e3d46e739d1f0b7ec58cb0f7d' Xhttp://www.linuxtv.org/vdrwiki/index.php/Osdpip-plugin X XOSD Picture-in-Picture is a VDR PlugIn that displays the current channel Xin a small box on the screen (default upper right corner). You can switch Xup and down now, watching the progress of the previous channel in the box. XQuality is not too good yet, and only I-Frames are displayed. X XWWW: http://projects.vdr-developer.org/projects/show/plg-osdpip ef26344e3d46e739d1f0b7ec58cb0f7d echo x - multimedia/vdr-plugin-osdpip/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-osdpip/pkg-plist << '966095029adfaad2f6b980ffb21d15f8' Xlib/vdr/libvdr-osdpip.so.1.7.16 966095029adfaad2f6b980ffb21d15f8 echo c - multimedia/vdr-plugin-osdpip/files/ mkdir -p multimedia/vdr-plugin-osdpip/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-osdpip/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-osdpip/files/patch-Makefile << '3889e520ef62ff3b99fc205db685b375' X--- osdpip-0.1.0/Makefile.orig X+++ osdpip-0.1.0/Makefile X@@ -171,3 +173,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) 3889e520ef62ff3b99fc205db685b375 echo x - multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0 sed 's/^X//' >multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0 << '5c2140cfb317fc0e3bcf0bf66eb214fe' Xdiff -ur orig/osdpip-0.1.0/Makefile osdpip-0.1.0/Makefile X--- orig/osdpip-0.1.0/Makefile 2010-03-27 16:38:13.000000000 +0100 X+++ osdpip-0.1.0/Makefile 2010-03-29 09:35:59.000000000 +0200 X@@ -155,7 +155,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared -o $@ $^ $(LIBS) X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) 5c2140cfb317fc0e3bcf0bf66eb214fe echo c - multimedia/vdr-plugin-osdteletext/ mkdir -p multimedia/vdr-plugin-osdteletext/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-osdteletext/Makefile sed 's/^X//' >multimedia/vdr-plugin-osdteletext/Makefile << 'e12b64550985ef89785c8ee7b04f7620' X# New ports collection makefile for: vdr_plugin_osdteletext X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_osdteletext XPORTVERSION= 0.9.0 XCATEGORIES= multimedia XMASTER_SITES= http://projects.vdr-developer.org/attachments/download/416/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - OSD teletext plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X ${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d /var/cache/vdr-${PLUGIN} X X.include e12b64550985ef89785c8ee7b04f7620 echo x - multimedia/vdr-plugin-osdteletext/distinfo sed 's/^X//' >multimedia/vdr-plugin-osdteletext/distinfo << 'aa9c5716678bc1915113e90355c34826' XSHA256 (vdr/vdr-osdteletext-0.9.0.tgz) = 6ae02a6918e8eababf49a9388a89740d1d56f3f63d2bcc99b4dc7c8108035240 XSIZE (vdr/vdr-osdteletext-0.9.0.tgz) = 60498 aa9c5716678bc1915113e90355c34826 echo x - multimedia/vdr-plugin-osdteletext/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-osdteletext/pkg-descr << '2151e628cb94ac5767bc472fd04eb49a' Xhttp://www.linuxtv.org/vdrwiki/index.php/Osdteletext-plugin X XOsd-Teletext displays the teletext directly on VDR's OSD. XBoth sound and video are played in the background. X XWWW: http://projects.vdr-developer.org/projects/show/plg-osdteletext 2151e628cb94ac5767bc472fd04eb49a echo x - multimedia/vdr-plugin-osdteletext/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-osdteletext/pkg-plist << 'ff7a29cdcb85f07ad54c190bbe457e11' Xlib/vdr/libvdr-osdteletext.so.1.7.16 X@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d /var/cache/vdr-osdteletext ff7a29cdcb85f07ad54c190bbe457e11 echo c - multimedia/vdr-plugin-osdteletext/files/ mkdir -p multimedia/vdr-plugin-osdteletext/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-osdteletext/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-osdteletext/files/patch-Makefile << '08a826faf79dd6a003255db3e5dac5fa' X--- osdteletext-0.8.3/Makefile.orig X+++ osdteletext-0.8.3/Makefile X@@ -110,8 +114,11 @@ dist: clean X X clean: X @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot X- @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ X X install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+ @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ X+ X+install-readme: X @install -d ../../man X @install README ../../man/$(PLUGIN).man 08a826faf79dd6a003255db3e5dac5fa echo x - multimedia/vdr-plugin-osdteletext/files/patch-txtrecv.c sed 's/^X//' >multimedia/vdr-plugin-osdteletext/files/patch-txtrecv.c << '80fd7c58ba236629abe3ff61ae88dcfe' 80fd7c58ba236629abe3ff61ae88dcfe echo x - multimedia/vdr-plugin-osdteletext/files/patch-vdr-osdteletext-0.8.3 sed 's/^X//' >multimedia/vdr-plugin-osdteletext/files/patch-vdr-osdteletext-0.8.3 << '6237576e0cb192f86ac79aeea1a46336' Xdiff -ur orig/osdteletext-0.8.3/Makefile osdteletext-0.8.3/Makefile X--- orig/osdteletext-0.8.3/Makefile 2009-05-25 20:28:59.000000000 +0200 X+++ osdteletext-0.8.3/Makefile 2010-03-16 17:31:20.000000000 +0100 X@@ -94,7 +94,11 @@ X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) Xdiff -ur orig/osdteletext-0.8.3/txtrecv.c osdteletext-0.8.3/txtrecv.c X--- orig/osdteletext-0.8.3/txtrecv.c 2009-05-25 20:28:59.000000000 +0200 X+++ osdteletext-0.8.3/txtrecv.c 2010-03-16 17:29:53.000000000 +0100 X@@ -22,7 +22,11 @@ X #include X #include X #include X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X #include X #include X #include 6237576e0cb192f86ac79aeea1a46336 echo c - multimedia/vdr-plugin-remote/ mkdir -p multimedia/vdr-plugin-remote/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-remote/Makefile sed 's/^X//' >multimedia/vdr-plugin-remote/Makefile << '63f327e590d43d959ed6797f66d03e82' X# New ports collection makefile for: vdr_plugin_remote X# Date created: Sun Aug 29 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_remote XPORTVERSION= 0.4.0 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://www.escape-edv.de/endriss/vdr/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - remote control plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 63f327e590d43d959ed6797f66d03e82 echo x - multimedia/vdr-plugin-remote/distinfo sed 's/^X//' >multimedia/vdr-plugin-remote/distinfo << '7b599d1b1fb99b22674517a09a45f7f1' XSHA256 (vdr/vdr-remote-0.4.0.tgz) = 402178a5ca34796621ec248fbc459c41d86e7ce7f226080b507aad3e054512bf XSIZE (vdr/vdr-remote-0.4.0.tgz) = 28397 7b599d1b1fb99b22674517a09a45f7f1 echo x - multimedia/vdr-plugin-remote/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-remote/pkg-descr << '002b9d9457458c6e8ebea716e4a71902' Xhttp://www.linuxtv.org/vdrwiki/index.php/Remote-plugin X XThis plugin extends the remote control capabilities of vdr. XThe following remote control devices are supported: X X(a) linux input device driver ('/dev/input/eventX', X=0,1,2,...) X (currently not supported on FreeBSD) X X(b) keyboard (tty driver): /dev/console, /dev/ttyX X X(c) TCP connection (telnet) X X(d) LIRC X X(e) some(?) FreeBSD uhid(4) devices (experimental support added by this port) X To use, add something like this to vdr_flags: '-Premote -h /dev/uhid0', X (re)start vdr, then the osd should ask you to configure the X remote by pressing the buttons you want to assign. X X Note: If your remote is detected as a keyboard you'll have to X tell ukbd(4) to ignore it first by doing (as root) something like: X X usbconfig add_dev_quirk_vplh 0x1241 0xe000 0 0xffff UQ_KBD_IGNORE X X (and possibly unplug it for a moment, 0x1241 there is the vendor X id, 0xe000 the product id of the device, you can get yours by X doing X X usbconfig -u 1 -a 2 dump_device_desc X X and looking for idVendor and idProduct, -u 1 and -a 2 there X correspond to ugen1.2 listed by usbconfig w/o args.) X X You can check with: X X usbconfig show_ifdrv X X if the device is then listed as ugen...: uhid... you're good to go. X X 2nd note: If vdr cannot open your uhid device check it is not claimed X by xorg: X X fstat |grep uhid X X If it is you may need an xorg.conf(5) with manually defined X InputDevice sections for mouse and keyboard and X X Option "AutoAddDevices" "False" X X in the ServerFlags section. X X And if for some reason you want to reassign the buttons on the X remote you can stop vdr and do: X X touch /usr/local/etc/vdr/channels.conf X X When you then start vdr again it should ask to configure the X remote again. X XWWW: http://escape-edv.de/endriss/vdr 002b9d9457458c6e8ebea716e4a71902 echo x - multimedia/vdr-plugin-remote/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-remote/pkg-plist << '73ee7e50e683574c8a892b74a54b1db2' Xlib/vdr/libvdr-remote.so.1.7.16 73ee7e50e683574c8a892b74a54b1db2 echo c - multimedia/vdr-plugin-remote/files/ mkdir -p multimedia/vdr-plugin-remote/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-remote/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-remote/files/patch-Makefile << '7aee64c13bce45bbdf5799e8cf04c5c1' X--- a/Makefile X+++ b/Makefile X@@ -54,6 +54,12 @@ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I X DEFINES += -DREMOTE_FEATURE_LIRC X DEFINES += -DREMOTE_FEATURE_TCPIP X X+ifeq ($(OSTYPE),FreeBSD) X+DEFINES += -DREMOTE_FEATURE_UHID X+else X+DEFINES += -DREMOTE_FEATURE_DEVINPUT X+endif X+ X ### The object files (add further files here): X X OBJS = $(PLUGIN).o ttystatus.o X@@ -126,3 +132,6 @@ dist: clean X clean: X @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot X @-rm -f *.o $(DEPFILE) *.so *.tgz core* *~ X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) 7aee64c13bce45bbdf5799e8cf04c5c1 echo x - multimedia/vdr-plugin-remote/files/patch-uhid1 sed 's/^X//' >multimedia/vdr-plugin-remote/files/patch-uhid1 << 'a4ef9a76b77d9599771fa0c127c731a5' X--- a/remote.c X+++ a/remote.c X@@ -15,7 +15,9 @@ X #include X #include X #include X+#ifdef REMOTE_FEATURE_DEVINPUT X #include X+#endif X #include "i18n.h" X #include "remote.h" X #ifdef REMOTE_FEATURE_TCPIP X@@ -25,6 +27,9 @@ X X X #define NUMREMOTES 10 // maximum number of remote control devices X+#ifdef REMOTE_FEATURE_UHID X+#define UHID_DEFAULT_READSIZE 8 // default size of uhid reads X+#endif X X #define AV7110_KEYMAP_DEVICE "/proc/av7110_ir" X #if 0 X@@ -183,6 +188,7 @@ void cRemoteGeneric::Action(void) X int identifyInputDevice(const int fh, char *name) X // --------------------------------------------------------------------------- X { X+#ifdef REMOTE_FEATURE_DEVINPUT X char description[256]; X X // check name of input device X@@ -196,11 +202,13 @@ int identifyInputDevice(const int fh, ch X X if (strstr(description, "DVB") || strstr(description, "dvb")) X return 2; X+#endif X X return 0; X } X X X+#ifdef REMOTE_FEATURE_DEVINPUT X // --------------------------------------------------------------------------- X bool cRemoteDevInput::loadKeymap(const char *devname, uint32_t options) X // --------------------------------------------------------------------------- X@@ -454,6 +462,68 @@ bool cRemoteDevInput::keyPressed(uint64_ X { X return (code & 0xFFFF00000000ULL); X } X+#endif // REMOTE_FEATURE_DEVINPUT X+ X+ X+/*****************************************************************************/ X+ X+ X+#ifdef REMOTE_FEATURE_UHID X+// --------------------------------------------------------------------------- X+cRemoteUhid::cRemoteUhid(const char *name, int f, char *d, int size) X+ :cRemoteGeneric(name, f, d) X+// --------------------------------------------------------------------------- X+{ X+ Start(); X+ X+ readsize = size; X+ repeatcode = 0; X+ fcntl(f, F_SETFL, O_NONBLOCK); X+} X+ X+ X+// --------------------------------------------------------------------------- X+bool cRemoteUhid::Initialize() X+// --------------------------------------------------------------------------- X+{ X+ return true; X+} X+ X+ X+// --------------------------------------------------------------------------- X+uint64_t cRemoteUhid::getKey(void) X+// --------------------------------------------------------------------------- X+{ X+ int n; X+ uint64_t code = 0; X+ X+ // XXX handle short reads properly on big-endian X+ n = read(fh, &code, readsize); X+ if (n <= 0) { X+ if (n < 0 && (errno == EAGAIN || errno == EINTR)) X+ code = repeatcode; X+ else { X+ code = INVALID_KEY; X+ repeatcode = 0; X+ } X+ } else { X+ repeatcode = code; X+#if 1 //def PRINTFDEBUGGING X+ printf("code %jx\n", code); X+#endif X+ } X+ X+ return code; X+} X+ X+ X+// --------------------------------------------------------------------------- X+bool cRemoteUhid::keyPressed(uint64_t code) X+// --------------------------------------------------------------------------- X+{ X+ return ((code & ~0xffULL) != 0LL); X+} X+#endif // REMOTE_FEATURE_UHID X X X /*****************************************************************************/ X@@ -557,6 +627,9 @@ private: X int devcnt; X char devtyp[NUMREMOTES]; X char *devnam[NUMREMOTES]; X+#ifdef REMOTE_FEATURE_UHID X+ int devsize[NUMREMOTES]; X+#endif X int fh[NUMREMOTES]; X public: X cPluginRemote(void); X@@ -604,6 +677,10 @@ const char *cPluginRemote::CommandLineHe X // --------------------------------------------------------------------------- X { X return " -i dev, --input=dev input device (/dev/input/... | autodetect)\n" X+#ifdef REMOTE_FEATURE_UHID X+ " -h dev, --uhid=dev uhid(4) device (/dev/uhidX)\n" X+ " -s size, --uhidsize=size uhid device read size\n" X+#endif X #ifdef REMOTE_FEATURE_LIRC X " -l dev, --lirc=dev lirc device (/dev/lircd)\n" X #endif X@@ -624,6 +701,10 @@ bool cPluginRemote::ProcessArgs(int argc X { X static struct option long_options[] = X { { "input", required_argument, NULL, 'i' }, X+#ifdef REMOTE_FEATURE_UHID X+ { "uhid", required_argument, NULL, 'h' }, X+ { "uhidsize", required_argument, NULL, 's' }, X+#endif X { "lirc", required_argument, NULL, 'l' }, X { "port", required_argument, NULL, 'p' }, X { "tty", required_argument, NULL, 't' }, X@@ -631,11 +712,20 @@ bool cPluginRemote::ProcessArgs(int argc X { NULL } }; X int c; X X+#ifndef REMOTE_FEATURE_UHID X while ((c = getopt_long(argc, argv, "i:l:p:t:T:", long_options, NULL)) != -1) X+#else X+ while ((c = getopt_long(argc, argv, "i:h:s:l:p:t:T:", long_options, NULL)) != -1) X+#endif X { X+#ifdef REMOTE_FEATURE_UHID X+ int size; X+#endif X+ X switch (c) X { X case 'i': X+ case 'h': X case 'l': X case 'p': X case 't': X@@ -647,8 +737,27 @@ bool cPluginRemote::ProcessArgs(int argc X } X devtyp[devcnt] = c; X devnam[devcnt] = optarg; X+#ifdef REMOTE_FEATURE_UHID X+ devsize[devcnt] = UHID_DEFAULT_READSIZE; X+#endif X devcnt++; X break; X+#ifdef REMOTE_FEATURE_UHID X+ case 's': X+ if (!devcnt || devcnt > NUMREMOTES) X+ { X+ esyslog("%s: uhidsize must come after uhid device", Name()); X+ return false; X+ } X+ size = atoi(optarg); X+ if (size <= 0 || size_t(size) > sizeof (int64_t)) X+ { X+ esyslog("%s: bad uhidsize %s", Name(), optarg); X+ return false; X+ } X+ devsize[devcnt] = size; X+ break; X+#endif X X default: X esyslog("%s: invalid argument", Name()); X@@ -671,6 +780,7 @@ bool cPluginRemote::Start(void) X RegisterI18n(remotePhrases); X #endif X X+#ifdef REMOTE_FEATURE_DEVINPUT X // no device specified by the user, set default X if (devcnt == 0) X { X@@ -719,6 +829,7 @@ bool cPluginRemote::Start(void) X if (devtyp[i] == 'i' && strcmp(devnam[i], "autodetect") == 0) X devnam[i] = "/dev/input/ir"; X } // for i X+#endif X X for (int i = 0; i < devcnt; i++) X { X@@ -769,9 +880,17 @@ bool cPluginRemote::Start(void) X X switch (devtyp[i]) X { X+#ifdef REMOTE_FEATURE_DEVINPUT X case 'i': X new cRemoteDevInput(nam,fh[i],devnam[i]); X break; X+#endif X+ X+#ifdef REMOTE_FEATURE_UHID X+ case 'h': X+ new cRemoteUhid(nam,fh[i],devnam[i],devsize[i]); X+ break; X+#endif X X #ifdef REMOTE_FEATURE_LIRC X case 'l': X--- a/remote.h X+++ a/remote.h X@@ -82,6 +82,24 @@ public: X X X X+#ifdef REMOTE_FEATURE_UHID X+/*****************************************************************************/ X+class cRemoteUhid : protected cRemoteGeneric X+/*****************************************************************************/ X+{ X+private: X+ uint64_t repeatcode; X+ int readsize; X+protected: X+ virtual uint64_t getKey(void); X+ virtual bool keyPressed(uint64_t code); X+public: X+ cRemoteUhid(const char *name, int f, char *d, int size); X+ virtual bool Initialize(void); X+}; X+#endif X+ X+ X #ifdef REMOTE_FEATURE_LIRCOLD X /*****************************************************************************/ X class cRemoteDevLirc : protected cRemoteGeneric a4ef9a76b77d9599771fa0c127c731a5 echo c - multimedia/vdr-plugin-skinenigmang/ mkdir -p multimedia/vdr-plugin-skinenigmang/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-skinenigmang/Makefile sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/Makefile << '63011eeb4de8a69a0a4db64c70e63a81' X# New ports collection makefile for: vdr_plugin_skinenigmang X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_skinenigmang XPORTVERSION= 0.1.1 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://andreas.vdr-developer.org/enigmang/download/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XDISTFILES= ${DISTNAME}.tgz \ X skinenigmang-logos-xpm-hi-20070702.tgz X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - Enigma-NG skin plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xpost-install: X (cd ${WRKDIR}/${PLUGIN} && \ X ${COPYTREE_SHARE} \* ${PREFIX}/etc/vdr/plugins/${PLUGIN} ) X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 63011eeb4de8a69a0a4db64c70e63a81 echo x - multimedia/vdr-plugin-skinenigmang/distinfo sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/distinfo << '4ffd3a6266a12870cec6a66e22532415' XSHA256 (vdr/vdr-skinenigmang-0.1.1.tgz) = 2d87b4f0257e6f6272b72d9dcb97446b70a0da77872b26e467b8462e53d4e72f XSIZE (vdr/vdr-skinenigmang-0.1.1.tgz) = 89727 XSHA256 (vdr/skinenigmang-logos-xpm-hi-20070702.tgz) = 3428569d284db2fb1e57fe2683a818be489311d0b0ca3d4d172d34638fa61eaf XSIZE (vdr/skinenigmang-logos-xpm-hi-20070702.tgz) = 49245 4ffd3a6266a12870cec6a66e22532415 echo x - multimedia/vdr-plugin-skinenigmang/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/pkg-descr << 'f6089051a75d328ba604f4e6f1f045bc' Xhttp://www.vdr-wiki.de/wiki/index.php/Skinenigmang-plugin X X"EnigmaNG" is a standalone VDR OSD skin based on the "Enigma" text2skin Xaddon. X XWWW: http://andreas.vdr-developer.org/enigmang/index.html f6089051a75d328ba604f4e6f1f045bc echo x - multimedia/vdr-plugin-skinenigmang/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/pkg-plist << '2f16044822a7a333c974761e31530416' Xlib/vdr/libvdr-skinenigmang.so.1.7.16 Xetc/vdr/plugins/skinenigmang/HISTORY Xetc/vdr/plugins/skinenigmang/README Xetc/vdr/plugins/skinenigmang/flags/deu.xpm Xetc/vdr/plugins/skinenigmang/flags/eng.xpm Xetc/vdr/plugins/skinenigmang/flags/fra.xpm Xetc/vdr/plugins/skinenigmang/flags/dut.xpm Xetc/vdr/plugins/skinenigmang/flags/fraDD.xpm Xetc/vdr/plugins/skinenigmang/flags/dutDD.xpm Xetc/vdr/plugins/skinenigmang/flags/deuDD.xpm Xetc/vdr/plugins/skinenigmang/flags/engDD.xpm Xetc/vdr/plugins/skinenigmang/flags/dutDUAL.xpm Xetc/vdr/plugins/skinenigmang/flags/fraDUAL.xpm Xetc/vdr/plugins/skinenigmang/flags/engDUAL.xpm Xetc/vdr/plugins/skinenigmang/flags/dutMONO.xpm Xetc/vdr/plugins/skinenigmang/flags/fraMONO.xpm Xetc/vdr/plugins/skinenigmang/flags/engMONO.xpm Xetc/vdr/plugins/skinenigmang/flags/deuMONO.xpm Xetc/vdr/plugins/skinenigmang/flags/deuDUAL.xpm Xetc/vdr/plugins/skinenigmang/flags/ger.xpm Xetc/vdr/plugins/skinenigmang/icons/message/info.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward1.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward2.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward3.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowForward1.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowForward2.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/pause.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward4.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward5.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward6.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward7.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward8.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastForward9.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind1.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind2.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind3.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind4.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind5.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind6.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind7.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind8.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/fastRewind9.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/play.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowForward3.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowRewind1.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowForward.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowRewind.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowRewind2.xpm Xetc/vdr/plugins/skinenigmang/icons/replay/slowRewind3.xpm Xetc/vdr/plugins/skinenigmang/icons/audio/audioStereo.xpm Xetc/vdr/plugins/skinenigmang/icons/audio/audioRight.xpm Xetc/vdr/plugins/skinenigmang/icons/audio/audioLeft.xpm Xetc/vdr/plugins/skinenigmang/icons/volume/muteOff.xpm Xetc/vdr/plugins/skinenigmang/icons/volume/muteOn.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/audiorecorder.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/blank.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/burn.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/cancel.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/cdda.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/channels.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/channelscan.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/chanorg.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/commands.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/device.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/digicam.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/director.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/dvd.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/dvdselect.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/epgsearch.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/externalplayer.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/femon.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/filebrowser.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/fussball.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/games.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/image.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/mp3.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/mplayer.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/newsticker.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/osdpip.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/pin.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/radio.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/recordings.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/rotor.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/schedule.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/setup.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/solitaire.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/solitaire2.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/stop.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/streamdev.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/sudoku.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/summary.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/teletext.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/timers.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/tvonscreen.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/vdrc.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/vdrcd.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/vdrrip.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/weather.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/xineliboutput.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/vcd.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/soccer.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/webepg.xpm Xetc/vdr/plugins/skinenigmang/icons/menu/vdr.xpm X@dirrm etc/vdr/plugins/skinenigmang/flags X@dirrm etc/vdr/plugins/skinenigmang/icons/message X@dirrm etc/vdr/plugins/skinenigmang/icons/replay X@dirrm etc/vdr/plugins/skinenigmang/icons/audio X@dirrm etc/vdr/plugins/skinenigmang/icons/volume X@dirrm etc/vdr/plugins/skinenigmang/icons/menu X@dirrm etc/vdr/plugins/skinenigmang/icons X@dirrm etc/vdr/plugins/skinenigmang 2f16044822a7a333c974761e31530416 echo c - multimedia/vdr-plugin-skinenigmang/files/ mkdir -p multimedia/vdr-plugin-skinenigmang/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-skinenigmang/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/files/patch-Makefile << '34bbc7e57211a170f5d4a29e299f8055' X--- skinenigmang-0.1.1/Makefile.orig X+++ skinenigmang-0.1.1/Makefile X@@ -206,3 +210,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) 34bbc7e57211a170f5d4a29e299f8055 echo x - multimedia/vdr-plugin-skinenigmang/files/patch-vdr-skinenigmang-0.1.1 sed 's/^X//' >multimedia/vdr-plugin-skinenigmang/files/patch-vdr-skinenigmang-0.1.1 << 'dc8fc2d4661d3d2422021c682e16d83b' Xdiff -ur orig/skinenigmang-0.1.1/Makefile skinenigmang-0.1.1/Makefile X--- orig/skinenigmang-0.1.1/Makefile 2010-03-13 16:33:20.000000000 +0100 X+++ skinenigmang-0.1.1/Makefile 2010-04-07 13:38:45.000000000 +0200 X@@ -16,15 +16,15 @@ X X # If you are using the epgsearch plugin and want to see the number of X # timer conflicts in the main menu's info area. X-SKINENIGMA_USE_PLUGIN_EPGSEARCH = 1 X+#SKINENIGMA_USE_PLUGIN_EPGSEARCH = 1 X X # If you use the mailbox plugin this will include support for it. X-SKINENIGMA_USE_PLUGIN_MAILBOX = 1 X+#SKINENIGMA_USE_PLUGIN_MAILBOX = 1 X X # Include code to support the Avards plugin: X # - Dynamic OSD size depending on current WSS mode. X # - Display current WSS mode in channel info and replay OSDs. X-SKINENIGMA_USE_PLUGIN_AVARDS = 1 X+#SKINENIGMA_USE_PLUGIN_AVARDS = 1 X X # Disable code to show signal strength and signal-to-noise ratio X # in channel info OSD. X@@ -32,7 +32,7 @@ X X # Strip debug symbols? Set eg. to /bin/true if not X #STRIP = strip X-STRIP = /bin/true X+STRIP = /usr/bin/true X X # The official name of this plugin. X # This name will be used in the '-P...' option of VDR to load the plugin. X@@ -191,7 +191,11 @@ X ifndef SKINENIGMA_DEBUG X @$(STRIP) $@ X endif X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) Xdiff -ur orig/skinenigmang-0.1.1/enigma.c skinenigmang-0.1.1/enigma.c X--- orig/skinenigmang-0.1.1/enigma.c 2010-04-05 10:33:42.000000000 +0200 X+++ skinenigmang-0.1.1/enigma.c 2010-04-07 13:38:07.000000000 +0200 X@@ -256,6 +256,18 @@ X #define ScrollbarHeight 20 X #define ScrollbarWidth 16 X X+#ifdef __FreeBSD__ X+/* XXX Implement strchrnul for FreeBSD. */ X+static char * X+strchrnul (const char *s, int c_in) X+{ X+ char c = c_in; X+ while (*s && (*s != c)) X+ s++; X+ X+ return (char *) s; X+} X+#endif X X // --- cSkinEnigmaDisplayChannel -------------------------------------------- X dc8fc2d4661d3d2422021c682e16d83b echo c - multimedia/vdr-plugin-softdevice/ mkdir -p multimedia/vdr-plugin-softdevice/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-softdevice/Makefile sed 's/^X//' >multimedia/vdr-plugin-softdevice/Makefile << '497c5d119d6bffa3735e51debbe8593b' X# New ports collection makefile for: vdr_plugin_softdevie X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_softdevice XPORTVERSION= 0.5.0p20100414 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= LOCAL XMASTER_SITE_SUBDIR= nox/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - softdevice plugin X XLIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg X XBUILD_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries XRUN_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${PORTSDIR}/x11/xorg-libraries X XUSE_BZIP2= yes XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN} XCONFIGURE_ARGS+= --disable-vidix --disable-fb --disable-dfb --disable-cle266 --disable-alsa #--disable-yaepg X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xdo-configure: X (cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS}) X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 497c5d119d6bffa3735e51debbe8593b echo x - multimedia/vdr-plugin-softdevice/distinfo sed 's/^X//' >multimedia/vdr-plugin-softdevice/distinfo << '2a91fbdf0f04fbfd8b445774ef12b554' XSHA256 (vdr/vdr-softdevice-0.5.0p20100414.tar.bz2) = fe737cd580f7b56cd3c32ecf10696008ccf13400a87266b4b8d2b5c9727a0bd2 XSIZE (vdr/vdr-softdevice-0.5.0p20100414.tar.bz2) = 163434 2a91fbdf0f04fbfd8b445774ef12b554 echo x - multimedia/vdr-plugin-softdevice/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-softdevice/pkg-descr << 'aa87d2a3f9c50881d06b43fd71675041' Xhttp://www.linuxtv.org/vdrwiki/index.php/Softdevice-plugin X XThis VDR plugin is a MPEG2 decoder. XIt can be used as an output device for the vdr. Possible output devices are XXv, DirectFB, Vidix or a framebuffer. X XWWW: http://softdevice.berlios.de/ aa87d2a3f9c50881d06b43fd71675041 echo x - multimedia/vdr-plugin-softdevice/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-softdevice/pkg-plist << '2c14f1df1fec2202c62718711a630f89' Xbin/ShmClient Xlib/vdr/libvdr-softdevice.so.1.7.16 Xlib/vdr/libsoftdevice-xv.so.1.7.16 Xlib/vdr/libsoftdevice-shm.so.1.7.16 2c14f1df1fec2202c62718711a630f89 echo c - multimedia/vdr-plugin-softdevice/files/ mkdir -p multimedia/vdr-plugin-softdevice/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-softdevice/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-softdevice/files/patch-Makefile << 'acb2715f00e4712ec11f526a882b9ce6' X--- Makefile.orig X+++ Makefile X@@ -438,3 +438,9 @@ MacVdrClient_obj = video_shm.o video-qua X MacVdrClient: $(MacVdrClient_obj) X $(CXX) $(LDFLAGS) $(MacVdrClient_obj) -framework Carbon -framework AGL -framework OpenGL -lpthread -o $@ X cp $@ ./MacVdrClient.app/Contents/MacOS/MacVdrClient X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+ ${INSTALL_PROGRAM} $(LIBDIR)/lib$(PLUGIN)-xv.so.$(APIVERSION) $(PREFIX)/lib/vdr/lib$(PLUGIN)-xv.so.$(APIVERSION) X+ ${INSTALL_PROGRAM} $(LIBDIR)/lib$(PLUGIN)-shm.so.$(APIVERSION) $(PREFIX)/lib/vdr/lib$(PLUGIN)-shm.so.$(APIVERSION) X+ ${INSTALL_PROGRAM} ShmClient $(PREFIX)/bin acb2715f00e4712ec11f526a882b9ce6 echo x - multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c sed 's/^X//' >multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c << '56342a41beeff5c58e1e4a7c68b681f0' X--- VdrReplacements.c.orig X+++ VdrReplacements.c X@@ -16,7 +16,7 @@ X cMutex::cMutex() { X pthread_mutexattr_t attr; X pthread_mutexattr_init(&attr); X-#ifdef __APPLE__ X+#if defined(__APPLE__) || defined(__FreeBSD__) X pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK); X #else X pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP); 56342a41beeff5c58e1e4a7c68b681f0 echo x - multimedia/vdr-plugin-softdevice/files/patch-shm-common.h sed 's/^X//' >multimedia/vdr-plugin-softdevice/files/patch-shm-common.h << '59017a94225ab64f5e88274d99451790' X--- shm-common.h.orig X+++ shm-common.h X@@ -20,7 +20,7 @@ X X #define CTL_KEY 5681 X X-#ifndef __APPLE__ // should rather be #ifdef LINUX X+#if !defined(__APPLE__) && !defined(__FreeBSD__) // should rather be #ifdef LINUX X union semun { X int val; X struct semid_ds *buf; 59017a94225ab64f5e88274d99451790 echo x - multimedia/vdr-plugin-softdevice/files/patch-vdr-softdevice_CVS-20100414 sed 's/^X//' >multimedia/vdr-plugin-softdevice/files/patch-vdr-softdevice_CVS-20100414 << 'e93244f3975a173824cf85be56ae69cc' XIndex: Makefile X=================================================================== XRCS file: /cvsroot/softdevice/softdevice/Makefile,v Xretrieving revision 1.42 Xdiff -u -r1.42 Makefile X--- Makefile 14 Apr 2008 02:52:10 -0000 1.42 X+++ Makefile 14 Apr 2010 20:12:50 -0000 X@@ -27,9 +27,6 @@ X TMPDIR = /tmp X PLUGINLIBDIR = ./PLUGINS/lib X X-# for older file-utils, option -f had the same effect X-CPOPTS = --remove-destination X- X -include config.mak X X # uncomment to build the shared memory video server X@@ -130,6 +127,14 @@ X X -include $(VDRDIR)/Make.config X X+# leave this here as we only know if it is FreeBSD after Make.config inclusion X+# for older file-utils, option -f had the same effect X+ifdef FREEBSD X+CPOPTS = -f X+else X+CPOPTS = --remove-destination X+endif X+ X # ############################################################################# X # moved some defines to this section, as they are generated by X # configure too. X@@ -211,7 +216,7 @@ X ### The version number of VDR (taken from VDR's "config.h"): X X VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') X-APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h) X+APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') X X ifeq ($(APIVERSION),) X APIVERSION = $(VDRVERSION) XIndex: configure X=================================================================== XRCS file: /cvsroot/softdevice/softdevice/configure,v Xretrieving revision 1.50 Xdiff -u -r1.50 configure X--- configure 21 Sep 2008 12:55:57 -0000 1.50 X+++ configure 14 Apr 2010 20:12:50 -0000 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!/bin/sh X # X # simple configure script for softdevice X # X@@ -50,7 +50,7 @@ X suspendkey="yes" X cpu_bigendian="no" X X-function help () { X+help () { X echo "Usage: configure [options]" X echo "available options are:" X echo " --disable-vidix" X@@ -118,6 +118,10 @@ X system=`uname -s` X case "$system" in X Linux) system="Linux";; X+ FreeBSD) X+ system="FreeBSD" X+ CFLAGS="${CFLAGS} -I/usr/local/include" X+ ;; X Darwin) X system="Darwin" X #with_subplugins="no" XIndex: setup-softlog.c X=================================================================== XRCS file: /cvsroot/softdevice/softdevice/setup-softlog.c,v Xretrieving revision 1.9 Xdiff -u -r1.9 setup-softlog.c X--- setup-softlog.c 14 Jun 2009 16:18:53 -0000 1.9 X+++ setup-softlog.c 14 Apr 2010 20:12:50 -0000 X@@ -216,6 +216,8 @@ X { X #ifdef __APPLE__ X return getpid(); X+#elif (defined __FreeBSD__) X+ return reinterpret_cast(::pthread_self()); X #else X return syscall(__NR_gettid); X #endif e93244f3975a173824cf85be56ae69cc echo c - multimedia/vdr-plugin-streamdev/ mkdir -p multimedia/vdr-plugin-streamdev/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-streamdev/Makefile sed 's/^X//' >multimedia/vdr-plugin-streamdev/Makefile << '83c34560721f90892aac46cf5cf89d9a' X# New ports collection makefile for: vdr_plugin_streamdev X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_streamdev XPORTVERSION= 0.5.0p20100426 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://streamdev.vdr-developer.org/releases/:release \ X LOCAL:snapshot XMASTER_SITE_SUBDIR= nox/:snapshot XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XDISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - stream device plugin X XRUN_DEPENDS+= bash:${PORTSDIR}/shells/bash X XUSE_BZIP2= yes XPORTDOCS= COPYING README XHAVE_CONFIGURE= yes XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN} X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X @${REINPLACE_CMD} '1s-^#!/bin/sh-#!${LOCALBASE}/bin/bash-' \ X ${WRKSRC}/${PLUGIN}/externremux.sh X Xpost-install: X @${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN} X @${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN}/externremux.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}/externremux.sh.sample X @${INSTALL_DATA} ${WRKSRC}/${PLUGIN}/streamdevhosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/streamdevhosts.conf.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/externremux.sh ]; then \ X ${INSTALL_SCRIPT} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}/externremux.sh ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/streamdevhosts.conf ]; then \ X ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}/streamdevhosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 83c34560721f90892aac46cf5cf89d9a echo x - multimedia/vdr-plugin-streamdev/distinfo sed 's/^X//' >multimedia/vdr-plugin-streamdev/distinfo << '89d91989698eef60a40d8b548d23349e' XSHA256 (vdr/vdr-streamdev-0.5.0p20100426.tar.bz2) = 3b74028cd3ccfeb8348ec8478110097179be268d5d702efffdb24d19b3b02e41 XSIZE (vdr/vdr-streamdev-0.5.0p20100426.tar.bz2) = 141580 89d91989698eef60a40d8b548d23349e echo x - multimedia/vdr-plugin-streamdev/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-streamdev/pkg-descr << '8833299387940fda69416a8c63e2e71c' Xhttp://www.linuxtv.org/vdrwiki/index.php/Streamdev-plugin X XThis PlugIn is a VDR implementation of the VTP (Video Transfer Protocol) XVersion 0.0.3 (see file PROTOCOL) and a basic HTTP Streaming Protocol. X XIt consists of a server and a client part, but both parts are compiled together Xwith the PlugIn source, but appear as separate PlugIns to VDR. X XThe client part acts as a full Input Device, so it can be used in conjunction Xwith a DXR3-Card, XINE, SoftDevice or others to act as a working VDR Xinstallation without any DVB-Hardware including EPG-Handling. X XThe server part acts as a Receiver-Device and works transparently in the Xbackground within your running VDR. It can serve multiple clients and it can Xdistribute multiple input streams (i.e. from multiple DVB-cards) to multiple Xclients using the native VTP protocol (for VDR-clients), or using the HTTP Xprotocol supporting clients such as XINE, MPlayer and so on. With XMMS or XWinAMP, you can also listen to radio channels over a HTTP connection. X XWWW: http://streamdev.vdr-developer.org/ 8833299387940fda69416a8c63e2e71c echo x - multimedia/vdr-plugin-streamdev/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-streamdev/pkg-plist << '22b10b39fcdcfa62d9beb814b7170e49' Xlib/vdr/libvdr-streamdev-client.so.1.7.16 Xlib/vdr/libvdr-streamdev-server.so.1.7.16 X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/externremux.sh.sample %D/etc/vdr/plugins/streamdev/externremux.sh; then rm -f %D/etc/vdr/plugins/streamdev/externremux.sh; fi Xetc/vdr/plugins/streamdev/externremux.sh.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/externremux.sh ] ; then cp -p %D/%F %B/externremux.sh; fi X@unexec if cmp -s %D/etc/vdr/plugins/streamdev/streamdevhosts.conf.sample %D/etc/vdr/plugins/streamdev/streamdevhosts.conf; then rm -f %D/etc/vdr/plugins/streamdev/streamdevhosts.conf; fi Xetc/vdr/plugins/streamdev/streamdevhosts.conf.sample X@exec if [ ! -f %D/etc/vdr/plugins/streamdev/streamdevhosts.conf ] ; then cp -p %D/%F %B/streamdevhosts.conf; fi X@dirrmtry etc/vdr/plugins/streamdev 22b10b39fcdcfa62d9beb814b7170e49 echo c - multimedia/vdr-plugin-streamdev/files/ mkdir -p multimedia/vdr-plugin-streamdev/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-streamdev/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-Makefile << '9e8cab3897ea9170de58b2f52c1ff88f' X--- Makefile.orig X+++ Makefile X@@ -148,3 +150,7 @@ dist: clean X clean: X @-rm -f $(COMMONOBJS) $(CLIENTOBJS) $(SERVEROBJS) $(DEPFILE) $(PODIR)/*.mo $(PODIR)/*.pot *.so *.tgz core* *~ X $(MAKE) -C ./libdvbmpeg clean X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN)-client.so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN)-client.so.$(APIVERSION) X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN)-server.so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN)-server.so.$(APIVERSION) 9e8cab3897ea9170de58b2f52c1ff88f echo x - multimedia/vdr-plugin-streamdev/files/patch-client-setup.c sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-client-setup.c << '90f7f807ed8d660560a18a92f3cfd45b' X--- client/setup.c.orig X+++ client/setup.c X@@ -2,6 +2,7 @@ X * $Id: setup.c,v 1.2 2005/02/08 15:34:38 lordjaxom Exp $ X */ X X+#include X #include X X #include "client/setup.h" 90f7f807ed8d660560a18a92f3cfd45b echo x - multimedia/vdr-plugin-streamdev/files/patch-server-componentIGMP.c sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-server-componentIGMP.c << 'd11165cdd75cafc606c5584a4b2bc4c7' X--- server/componentIGMP.c.orig X+++ server/componentIGMP.c X@@ -1,9 +1,24 @@ X /* X * $Id: componentIGMP.c,v 1.2 2009/07/03 21:44:19 schmirl Exp $ X */ X+#include X+#include X #include X #include X- X+ X+#ifndef IGMP_MEMBERSHIP_QUERY X+#define IGMP_MEMBERSHIP_QUERY IGMP_HOST_MEMBERSHIP_QUERY X+#endif X+#ifndef IGMP_V1_MEMBERSHIP_REPORT X+#define IGMP_V1_MEMBERSHIP_REPORT IGMP_v1_HOST_MEMBERSHIP_REPORT X+#endif X+#ifndef IGMP_V2_MEMBERSHIP_REPORT X+#define IGMP_V2_MEMBERSHIP_REPORT IGMP_v2_HOST_MEMBERSHIP_REPORT X+#endif X+#ifndef IGMP_V2_LEAVE_GROUP X+#define IGMP_V2_LEAVE_GROUP IGMP_HOST_LEAVE_MESSAGE X+#endif X+ X #include "server/componentIGMP.h" X #include "server/connectionIGMP.h" X #include "server/setup.h" d11165cdd75cafc606c5584a4b2bc4c7 echo x - multimedia/vdr-plugin-streamdev/files/patch-server-livestreamer.c sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-server-livestreamer.c << 'fbf84b3fccb65c2f77712804bdcbbfc3' X--- server/livestreamer.c.orig X+++ server/livestreamer.c X@@ -1,7 +1,12 @@ X #include X X+#ifdef __FreeBSD__ X+#include X+#include X+#else X #include X #include X+#endif X X #include X fbf84b3fccb65c2f77712804bdcbbfc3 echo x - multimedia/vdr-plugin-streamdev/files/patch-server-recplayer.c sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-server-recplayer.c << '006f452e5a953980ce137e7500d78bc8' X--- server/recplayer.c.orig X+++ server/recplayer.c X@@ -196,8 +196,10 @@ unsigned long RecPlayer::getBlock(unsign X fseek(file, filePosition, SEEK_SET); X if (fread(&buffer[got], getFromThisSegment, 1, file) != 1) return 0; // umm, big problem. X X+#ifdef __linux__ X // Tell linux not to bother keeping the data in the FS cache X posix_fadvise(file->_fileno, filePosition, getFromThisSegment, POSIX_FADV_DONTNEED); X+#endif X X got += getFromThisSegment; X currentPosition += getFromThisSegment; 006f452e5a953980ce137e7500d78bc8 echo x - multimedia/vdr-plugin-streamdev/files/patch-server-setup.c sed 's/^X//' >multimedia/vdr-plugin-streamdev/files/patch-server-setup.c << '9ee6cd801ec10d9fc92b2dcba5002b02' X--- server/setup.c.orig X+++ server/setup.c X@@ -2,6 +2,7 @@ X * $Id: setup.c,v 1.2 2005/05/09 20:22:29 lordjaxom Exp $ X */ X X+#include X #include X X #include "server/setup.h" 9ee6cd801ec10d9fc92b2dcba5002b02 echo c - multimedia/vdr-plugin-vnsiserver/ mkdir -p multimedia/vdr-plugin-vnsiserver/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-vnsiserver/Makefile sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/Makefile << '163fb3d168fb8a4086f6cda8c40e9cf0' X# New ports collection makefile for: vdr_plugin_vnsiserver X# Date created: Tue Oct 5 21:13:30 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_vnsiserver XPORTVERSION= 0.0.2s20100808.0952 XPORTREVISION= 1 XCATEGORIES= multimedia XMASTER_SITES= http://ppa.launchpad.net/yavdr/testing-vdr/ubuntu/pool/main/v/vdr-plugin-vnsiserver/ XDISTNAME= ${PORTNAME:S/_plugin_/-plugin-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/s20/+svn20/}${DISTVERSIONSUFFIX} XDISTFILES= ${DISTNAME:S/plugin-vnsiserver-/plugin-vnsiserver_/}.orig${EXTRACT_SUFX} X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - VNSI server plugin X XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xpost-install: X @${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN} X @${INSTALL_DATA} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf ]; then \ X ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/${PLUGIN}/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 163fb3d168fb8a4086f6cda8c40e9cf0 echo x - multimedia/vdr-plugin-vnsiserver/distinfo sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/distinfo << '6fdb3e7948aa369c6a9a06753917c6b8' XSHA256 (vdr/vdr-plugin-vnsiserver_0.0.2+svn20100808.0952.orig.tar.gz) = 3763fe0cc853c7e9e22196f4bab5bbf7ce56efac82c44de1e3ab1c6f40a9e375 XSIZE (vdr/vdr-plugin-vnsiserver_0.0.2+svn20100808.0952.orig.tar.gz) = 110497 6fdb3e7948aa369c6a9a06753917c6b8 echo x - multimedia/vdr-plugin-vnsiserver/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/pkg-descr << 'c26a976da6eb80321ca47a08d2da7be1' Xhttp://www.vdr-wiki.de/wiki/index.php/Vnsi-server-plugin X XVDR-Network-Streaming-Interface plugin (untested, currently used by Xthe XBMC pvr-testing2 branch which hasn't been ported to FreeBSD yet Xat the time of writing.) X XWWW: http://www.vdr-portal.de/board/thread.php?threadid=95292 c26a976da6eb80321ca47a08d2da7be1 echo x - multimedia/vdr-plugin-vnsiserver/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/pkg-plist << '7088d6615401c25853b2fcf63fa2cf7c' Xlib/vdr/libvdr-vnsiserver.so.1.7.16 X@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 Xetc/vdr/plugins/vnsiserver/allowed_hosts.conf.sample X@exec if [ ! -f %D/etc/vdr/plugins/vnsiserver/allowed_hosts.conf ] ; then cp -p %D/%F %B/allowed_hosts.conf; fi X@dirrmtry etc/vdr/plugins/vnsiserver 7088d6615401c25853b2fcf63fa2cf7c echo c - multimedia/vdr-plugin-vnsiserver/files/ mkdir -p multimedia/vdr-plugin-vnsiserver/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-vnsiserver/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-Makefile << 'be23be277b069cf594adc60fcaef15a7' X--- a/Makefile X+++ b/Makefile X@@ -45,7 +45,11 @@ PACKAGE = vdr-$(ARCHIVE) X X ### Includes and Defines (add further entries here): X X+ifdef FREEBSD X+INCLUDES += -I$(VDRDIR) X+else X INCLUDES += -I$(VDRDIR)/include X+endif X X DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' X X@@ -109,7 +113,11 @@ i18n: $(I18Nmsgs) $(I18Npot) X X libvdr-$(PLUGIN).so: $(OBJS) X $(CXX) $(CXXFLAGS) -shared $(LIBS) $(OBJS) -o $@ X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) X@@ -121,3 +129,6 @@ dist: clean X X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X+ X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) be23be277b069cf594adc60fcaef15a7 echo x - multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c << 'a929d014dd10e5e3171b6b6b774170ab' X--- a/cxsocket.c X+++ b/cxsocket.c X@@ -35,7 +35,7 @@ X #include X #include X #include X-#ifndef __APPLE__ X+#if !defined(__APPLE__) && !defined(__FreeBSD__) X # include X #endif X #include X@@ -191,7 +191,7 @@ bool cxSocket::set_multicast(int ttl) X X bool cxSocket::set_cork(bool state) X { X-#ifdef __APPLE__ X+#if defined(__APPLE__) || defined(__FreeBSD__) X return false; X #else X int iCork = state ? 1 : 0; a929d014dd10e5e3171b6b6b774170ab echo x - multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.h sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.h << '74260708806726f30d0f1a20e17dd3b2' X--- a/cxsocket.h X+++ b/cxsocket.h X@@ -29,6 +29,9 @@ X #ifndef __CXSOCKET_H X #define __CXSOCKET_H X X+#ifdef __FreeBSD__ X+#include X+#endif X #include X #include X #include 74260708806726f30d0f1a20e17dd3b2 echo x - multimedia/vdr-plugin-vnsiserver/files/patch-recplayer.c sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-recplayer.c << 'c6694831c881566027faa7afdabee759' X--- a/recplayer.c X+++ b/recplayer.c X@@ -189,8 +189,10 @@ unsigned long cRecPlayer::getBlock(unsig X fseek(m_file, filePosition, SEEK_SET); X fread(&buffer[got], getFromThisSegment, 1, m_file); X X+#ifndef __FreeBSD__ X // Tell linux not to bother keeping the data in the FS cache X posix_fadvise(m_file->_fileno, filePosition, getFromThisSegment, POSIX_FADV_DONTNEED); X+#endif X X got += getFromThisSegment; X currentPosition += getFromThisSegment; c6694831c881566027faa7afdabee759 echo x - multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c << '38091792085eea1cb955606ee6e33c9f' X--- a/responsepacket.c X+++ b/responsepacket.c X@@ -27,6 +27,7 @@ X #include X #include X #include X+#include X X #include "responsepacket.h" X #include "vdrcommand.h" 38091792085eea1cb955606ee6e33c9f echo x - multimedia/vdr-plugin-vnsiserver/files/patch-server.c sed 's/^X//' >multimedia/vdr-plugin-vnsiserver/files/patch-server.c << '37e938c0db1bdf56d31d48a4cd627bf4' X--- a/server.c X+++ b/server.c X@@ -151,6 +151,7 @@ void cServer::NewClientConnected(int fd) X int val = 1; X setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val)); X X+#ifdef SOL_TCP X val = 30; X setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, &val, sizeof(val)); X X@@ -162,6 +163,7 @@ void cServer::NewClientConnected(int fd) X X val = 1; X setsockopt(fd, SOL_TCP, TCP_NODELAY, &val, sizeof(val)); X+#endif X X isyslog("VNSI: Client with ID %d connected: %s", m_IdCnt, cxSocket::ip2txt(sin.sin_addr.s_addr, sin.sin_port, buf)); X cConnection *connection = new cConnection(this, fd, m_IdCnt, cxSocket::ip2txt(sin.sin_addr.s_addr, sin.sin_port, buf)); 37e938c0db1bdf56d31d48a4cd627bf4 echo c - multimedia/vdr-plugin-xineliboutput/ mkdir -p multimedia/vdr-plugin-xineliboutput/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-xineliboutput/Makefile sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/Makefile << 'f2f34ab73057b599a7ea198b62f8bb9f' X# New ports collection makefile for: vdr_plugin_xineliboutput X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_xineliboutput XPORTVERSION= 1.0.5s20101019 XCATEGORIES= multimedia XMASTER_SITES= SF:release \ X LOCAL:snapshot XMASTER_SITE_SUBDIR= xineliboutput/files/xineliboutput/vdr-xineliboutput-${PORTVERSION}/:release \ X nox/:snapshot XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XDISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - xineliboutput plugin/viewer X XLIB_DEPENDS+= extractor.2:${PORTSDIR}/textproc/libextractor \ X xine.1:${PORTSDIR}/multimedia/libxine \ X avutil.1:${PORTSDIR}/multimedia/ffmpeg \ X dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib X XPATCH_STRIP= -p1 XUSE_GNOME+= pkgconfig XUSE_XORG+= xrandr xrender XUSE_BZIP2= yes XCONFIGURE_OPTS+= --disable-opengl XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/vdr-${PLUGIN} X XOPTIONS+= VDPAU "Enable Nvidia VDPAU acceleration" Off X X.include "${.CURDIR}/../vdrdevel/Makefile.plugins" X X.include X X.if defined(WITH_VDPAU) XLIB_DEPENDS+= vdpau.1:${PORTSDIR}/x11/nvidia-driver X.else XCONFIGURE_OPTS+= --disable-vdpau X.endif X XMAKE_ARGS+= CONFIGURE_OPTS="${CONFIGURE_OPTS}" X Xpost-patch: post-patch-plugin X Xpost-install: X @${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d ${PREFIX}/etc/vdr/plugins/${PLUGIN} X @${INSTALL_DATA} ${WRKSRC}/examples/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf.sample X @if [ ! -f ${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf ]; then \ X ${INSTALL_DATA} ${WRKSRC}/examples/allowed_hosts.conf ${PREFIX}/etc/vdr/plugins/${PLUGIN}; \ X fi X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include f2f34ab73057b599a7ea198b62f8bb9f echo x - multimedia/vdr-plugin-xineliboutput/distinfo sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/distinfo << '589f421b29ae46cbcf5670b775be7832' XSHA256 (vdr/vdr-xineliboutput-1.0.5s20101019.tar.bz2) = 0c1db8fc2ee706ec69c8e2d752f2871b4b31bc7777ecf79d2c04992dc4dff75e XSIZE (vdr/vdr-xineliboutput-1.0.5s20101019.tar.bz2) = 355576 589f421b29ae46cbcf5670b775be7832 echo x - multimedia/vdr-plugin-xineliboutput/pkg-descr sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/pkg-descr << '657a9c65b4306ba88d9239f5da02ded0' Xhttp://www.linuxtv.org/vdrwiki/index.php/Xineliboutput-plugin X XX11 and Linux framebuffer front-end for VDR. XPlugin displays video and OSD in X/Xv/XvMC window, XLinux framebuffer/DirectFB/vidixfb or DXR3 card. X XSupport for local and remote frontends. X XBuilt-in image and media player supports playback of most known Xmedia files (avi/mp3/divx/jpeg/...), DVDs and radio/video streams X(http, rtsp, ...) directly from VDR. X XFreeBSD Note: If you want to watch h264 streams (HDTV) make sure to Xbuild the multimedia/libxine port with the 'Enable external FFMpeg' Xknob set (make config), and using the multimedia/ffmpeg-devel port Xinstead of the default multimedia/ffmpeg one may also be worth a try. X XWWW: http://sourceforge.net/projects/xineliboutput/ 657a9c65b4306ba88d9239f5da02ded0 echo x - multimedia/vdr-plugin-xineliboutput/pkg-plist sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/pkg-plist << '45630207804c732f50834b640b34d693' Xbin/vdr-fbfe Xbin/vdr-sxfe Xlib/xine/plugins/1.29/xineplug_inp_xvdr.so Xlib/xine/plugins/1.29/post/xineplug_post_autocrop.so Xlib/xine/plugins/1.29/post/xineplug_post_swscale.so Xlib/xine/plugins/1.29/post/xineplug_post_audiochannel.so Xlib/vdr/libvdr-xineliboutput.so.1.7.16 Xlib/vdr/libxineliboutput-sxfe.so.1.0.90-cvs X@unexec if cmp -s %D/etc/vdr/plugins/xineliboutput/allowed_hosts.conf.sample %D/etc/vdr/plugins/xineliboutput/allowed_hosts.conf; then rm -f %D/etc/vdr/plugins/xineliboutput/allowed_hosts.conf; fi Xetc/vdr/plugins/xineliboutput/allowed_hosts.conf.sample X@exec if [ ! -f %D/etc/vdr/plugins/xineliboutput/allowed_hosts.conf ] ; then cp -p %D/%F %B/allowed_hosts.conf; fi X@exec chown %%VDR_USER%%:%%VDR_GROUP%% %D/etc/vdr/plugins/xineliboutput X@dirrmtry etc/vdr/plugins/xineliboutput 45630207804c732f50834b640b34d693 echo c - multimedia/vdr-plugin-xineliboutput/files/ mkdir -p multimedia/vdr-plugin-xineliboutput/files/ > /dev/null 2>&1 echo x - multimedia/vdr-plugin-xineliboutput/files/patch-Makefile sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/files/patch-Makefile << 'ffafd782746c820c5485500c8ba50f31' X--- a/Makefile X+++ b/Makefile X@@ -84,13 +84,8 @@ VDRINCDIR ?= $(VDRDIR)/include X ### check for VDR X ### X X-ifeq ($(ARCH_APPLE_DARWIN), yes) X VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) X APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) X-else X- VDRVERSION = $(shell sed -ne '/define VDRVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h) X- APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h) X-endif X X ifeq ($(strip $(VDRVERSION)),) X $(warning ********************************************************) X@@ -398,6 +393,11 @@ ifeq ($(XINELIBOUTPUT_X11), yes) X @-rm -rf $(DESTDIR)/$(BINDIR)/vdr-sxfe X @$(INSTALL) -m 0755 vdr-sxfe $(DESTDIR)/$(BINDIR)/vdr-sxfe X endif X+ifeq ($(XINELIBOUTPUT_VDRPLUGIN), yes) X+ @$(INSTALL) -m 0755 $(LIBDIR)/$(VDRPLUGIN).$(APIVERSION) $(DESTDIR)/${PREFIX}/lib/vdr X+ @$(INSTALL) -m 0755 $(LIBDIR)/$(VDRPLUGIN_SXFE).$(VERSION) $(DESTDIR)/${PREFIX}/lib/vdr X+ X+endif X X dist: clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) ffafd782746c820c5485500c8ba50f31 echo x - multimedia/vdr-plugin-xineliboutput/files/patch-configure sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/files/patch-configure << 'b508ef6e09cc604ef929e999703dbc09' X--- a/configure X+++ a/configure X@@ -343,7 +343,9 @@ test_pkgconfig X test_library X11 do_error "none.h" "-lnolib" X X test_library VDR libextractor "extractor.h" "-lextractor" "EXTRACTOR_getKeywords(0,0)" X+test_library VDR libextractor "extractor.h" "-lextractor" "EXTRACTOR_getKeywords(0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X test_library XINE libxine "xine.h" "-lxine" "xine_init(0)" X+test_library XINE libxine "xine.h" "-lxine" "xine_init(0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X X if enabled libxine; then X X@@ -355,21 +357,34 @@ if enabled libxine; then X fi X log " $XINEPLUGINDIR" X X- test_library AVUTIL libavutil "libavutil/mem.h" "-lavutil" "av_mallocz(1)" X- test_library JPEG libjpeg "jpeglib.h" "-ljpeg" "jpeg_create_compress(0)" X- test_library X11 x11 "X11/X.h" "-lX11" "XInitThreads()" X- test_library VDR dlfcn "dlfcn.h" "-ldl" "dlopen(0,0)" X+# test_library AVUTIL libavutil "libavutil/mem.h" "-lavutil" "av_mallocz(1)" X+ test_library AVUTIL libavutil "libavutil/mem.h" "-lavutil" "av_mallocz(1)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library JPEG libjpeg "jpeglib.h" "-ljpeg" "jpeg_create_compress(0)" X+ test_library JPEG libjpeg "jpeglib.h" "-ljpeg" "jpeg_create_compress(0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 x11 "X11/X.h" "-lX11" "XInitThreads()" X+ test_library X11 x11 "X11/X.h" "-lX11" "XInitThreads()" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library VDR dlfcn "dlfcn.h" "-ldl" "dlopen(0,0)" X+ test_library VDR dlfcn "dlfcn.h" "" "dlopen(0,0)" X test_library PTHREAD pthread "pthread.h" "-lpthread" "pthread_create(0,0,0,0)" X if enabled x11; then X- test_library X11 xext "X11/extensions/Xext.h" "-lXext" "" X- test_library X11 xshm "X11/extensions/XShm.h" "-lXext" "XShmQueryExtension(0)" X- test_library X11 xrender "X11/extensions/Xrender.h" "-lXrender" "XRenderQueryFormats(0)" X- test_library X11 xshape "X11/extensions/shape.h" "-lXext" "XShapeQueryExtension(0,0,0)" X- test_library X11 xrandr "X11/extensions/Xrandr.h" "-lXrandr" "XRRGetScreenInfo(0,0)" X- test_library X11 xdpms "X11/extensions/dpms.h" "-lXext" "DPMSDisable(0)" X- test_library X11 xinerama "X11/extensions/Xinerama.h" "-lXinerama" "XineramaQueryScreens(0,0)" X- test_library X11 opengl "GL/glx.h" "-lGL -lGLU -lglut" "glXQueryVersion(0,0,0)" X- test_library none vdpau "vdpau/vdpau_x11.h" "-lvdpau" "vdp_device_create_x11(0,0,0,0)" X+# test_library X11 xext "X11/extensions/Xext.h" "-lXext" "" X+ test_library X11 xext "X11/extensions/Xext.h" "-lXext" "" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xshm "X11/extensions/XShm.h" "-lXext" "XShmQueryExtension(0)" X+ test_library X11 xshm "X11/extensions/XShm.h" "-lXext" "XShmQueryExtension(0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xrender "X11/extensions/Xrender.h" "-lXrender" "XRenderQueryFormats(0)" X+ test_library X11 xrender "X11/extensions/Xrender.h" "-lXrender" "XRenderQueryFormats(0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xshape "X11/extensions/shape.h" "-lXext" "XShapeQueryExtension(0,0,0)" X+ test_library X11 xshape "X11/extensions/shape.h" "-lXext" "XShapeQueryExtension(0,0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xrandr "X11/extensions/Xrandr.h" "-lXrandr" "XRRGetScreenInfo(0,0)" X+ test_library X11 xrandr "X11/extensions/Xrandr.h" "-lXrandr" "XRRGetScreenInfo(0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xdpms "X11/extensions/dpms.h" "-lXext" "DPMSDisable(0)" X+ test_library X11 xdpms "X11/extensions/dpms.h" "-lXext" "DPMSDisable(0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 xinerama "X11/extensions/Xinerama.h" "-lXinerama" "XineramaQueryScreens(0,0)" X+ test_library X11 xinerama "X11/extensions/Xinerama.h" "-lXinerama" "XineramaQueryScreens(0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library X11 opengl "GL/glx.h" "-lGL -lGLU -lglut" "glXQueryVersion(0,0,0)" X+ test_library X11 opengl "GL/glx.h" "-lGL -lGLU -lglut" "glXQueryVersion(0,0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X+# test_library none vdpau "vdpau/vdpau_x11.h" "-lvdpau" "vdp_device_create_x11(0,0,0,0)" X+ test_library none vdpau "vdpau/vdpau_x11.h" "-lvdpau" "vdp_device_create_x11(0,0,0,0)" "-I${LOCALBASE}/include -L${LOCALBASE}/lib" X test_library X11 dbus-glib-1 \ X "dbus/dbus-glib.h" \ X "-ldbus-glib-1 -lgobject-2.0 -lglib-2.0" \ b508ef6e09cc604ef929e999703dbc09 echo x - multimedia/vdr-plugin-xineliboutput/files/patch-tools-cxsocket.c sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/files/patch-tools-cxsocket.c << 'e1531dad6b92967fc9fe0be0baf74d29' e1531dad6b92967fc9fe0be0baf74d29 echo x - multimedia/vdr-plugin-xineliboutput/files/patch-vdr-xineliboutput_CVS-20100718 sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/files/patch-vdr-xineliboutput_CVS-20100718 << '7a8b0ca75565ac126eefd21d89490f7a' 7a8b0ca75565ac126eefd21d89490f7a echo x - multimedia/vdr-plugin-xineliboutput/files/patch-xine_sxfe_frontend.c sed 's/^X//' >multimedia/vdr-plugin-xineliboutput/files/patch-xine_sxfe_frontend.c << 'af07fa7ff1dae4236d65d132944a6598' af07fa7ff1dae4236d65d132944a6598 echo c - multimedia/vdr-plugins/ mkdir -p multimedia/vdr-plugins/ > /dev/null 2>&1 echo x - multimedia/vdr-plugins/Makefile sed 's/^X//' >multimedia/vdr-plugins/Makefile << '87a09281c11f9baa448537448041f14a' X# New ports collection makefile for: vdr X# Date created: Sun Oct 17 21:15:34 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugins XPORTVERSION= 1.7.16 XCATEGORIES= multimedia XMASTER_SITES= # none XDISTFILES= # none XEXTRACT_ONLY= # none X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - plugin metaport X XNO_BUILD= yes X XOPTIONS= CONTROL "telnet control" On \ X EPGSEARCH "EPG search" On \ X FEMON "frontend monitor" On \ X INFOSATEPG "infosat EPG data via satellite" On \ X IPTV "IP television" On \ X OSDPIP "picture-in-picture" On \ X OSDTELETEXT "OSD teletext" On \ X REMOTE "non-lirc remote control (experimental)" On \ X SKINENIGMANG "Enigma-NG skin" On \ X STREAMDEV "stream device (server and client)" On \ X XINELIBOUTPUT "xineliboutput plugin/viewer" On \ X LIVE "live web plugin" On \ X VNSISERVER "VNSI server (for xbmc pvr branch - untested)" Off \ X SOFTDEVICE "softdevice (broken?)" Off X X.include X X.if defined(WITH_CONTROL) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-control.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-control X.endif X.if defined(WITH_EPGSEARCH) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-epgsearch.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-epgsearch X.endif X.if defined(WITH_FEMON) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-femon.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-femon X.endif X.if defined(WITH_INFOSATEPG) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-infosatepg.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-infosatepg X.endif X.if defined(WITH_IPTV) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-iptv.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-iptv X.endif X.if defined(WITH_OSDPIP) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-osdpip.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-osdpip X.endif X.if defined(WITH_OSDTELETEXT) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-osdteletext.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-osdteletext X.endif X.if defined(WITH_REMOTE) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-remote.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-remote X.endif X.if defined(WITH_SKINENIGMANG) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-skinenigmang.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-skinenigmang X.endif X.if defined(WITH_STREAMDEV) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-streamdev-server.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-streamdev X.endif X.if defined(WITH_XINELIBOUTPUT) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-xineliboutput.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-xineliboutput X.endif X.if defined(WITH_LIVE) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-live.so.1.7.16:${PORTSDIR}/www/vdr-plugin-live X.endif X.if defined(WITH_SOFTDEVICE) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-softdevice.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-softdevice X.endif X.if defined(WITH_VNSISERVER) XRUN_DEPENDS+= ${LOCALBASE}/lib/vdr/libvdr-vnsiserver.so.1.7.16:${PORTSDIR}/multimedia/vdr-plugin-softdevice X.endif X Xdo-install: # empty X X.include 87a09281c11f9baa448537448041f14a echo x - multimedia/vdr-plugins/pkg-descr sed 's/^X//' >multimedia/vdr-plugins/pkg-descr << 'aa4f3040d792ffe1abeb7c6f50097d39' XPreliminary port of the vdr development branch, use at your own risk! :) X XThis is just a metaport that lets you select the plugins you want to Xinstall. X XSee vdr/webcamd dvb thread(s) on the freebsd-multimedia list for FreeBSD Xnotes, some links are here: X X http://people.freebsd.org/~nox/dvb/ X Xand see these links for general vdr info: X X http://www.linuxtv.org/vdrwiki/index.php/Main_Page X http://www.vdr-portal.de/ X XWWW: http://www.tvdr.de/ aa4f3040d792ffe1abeb7c6f50097d39 echo c - devel/ mkdir -p devel/ > /dev/null 2>&1 echo c - devel/cxxtools/ mkdir -p devel/cxxtools/ > /dev/null 2>&1 echo x - devel/cxxtools/Makefile sed 's/^X//' >devel/cxxtools/Makefile << 'fd791760eac2d59b151398fe598158e1' X# New ports collection makefile for: cxxtools X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= cxxtools XPORTVERSION= 1.4.8 XCATEGORIES= devel XMASTER_SITES= http://www.tntnet.org/download/ X XMAINTAINER= nox@FreeBSD.org XCOMMENT= Collection of general-purpose C++ classes X XUSE_ICONV= yes XGNU_CONFIGURE= yes XCONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" XCONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" XMAKE_JOBS_SAFE= yes X X.include X X.if ${OSVERSION} < 700042 XLIB_DEPENDS+= boost_thread:${PORTSDIR}/devel/boost-libs X.endif X X.include fd791760eac2d59b151398fe598158e1 echo x - devel/cxxtools/distinfo sed 's/^X//' >devel/cxxtools/distinfo << '786dc34d62dfbec595ff935bcc1c664a' XSHA256 (cxxtools-1.4.8.tar.gz) = 95476dce9f47c87b46806b072d2327d221e50b1502ad44413074d70fc084bde1 XSIZE (cxxtools-1.4.8.tar.gz) = 451807 786dc34d62dfbec595ff935bcc1c664a echo x - devel/cxxtools/pkg-descr sed 's/^X//' >devel/cxxtools/pkg-descr << '68b539e3cbe3ecdc50b90a18b6eaa4be' XCxxtools is a collection of general-purpose C++ classes. X XWWW: http://www.tntnet.org/cxxtools.html 68b539e3cbe3ecdc50b90a18b6eaa4be echo x - devel/cxxtools/pkg-plist sed 's/^X//' >devel/cxxtools/pkg-plist << '8187c785b2132d48bef01a9220333e2c' Xbin/cxxtools-config Xlib/libcxxtools.a Xlib/libcxxtools.la Xlib/libcxxtools.so Xlib/libcxxtools.so.6 Xinclude/cxxtools/callable.h Xinclude/cxxtools/signals.h Xinclude/cxxtools/streamcounter.h Xinclude/cxxtools/xmltag.h Xinclude/cxxtools/byteorder.h Xinclude/cxxtools/void.h Xinclude/cxxtools/api.h Xinclude/cxxtools/typetraits.h Xinclude/cxxtools/md5.h Xinclude/cxxtools/atomicity.generic.h Xinclude/cxxtools/constmethod.tpp Xinclude/cxxtools/atomicity.h Xinclude/cxxtools/pollclass.h Xinclude/cxxtools/convert.h Xinclude/cxxtools/constmethod.h Xinclude/cxxtools/quotedprintablestream.h Xinclude/cxxtools/log.h Xinclude/cxxtools/dir.h Xinclude/cxxtools/iconvstream.h Xinclude/cxxtools/sudo.h Xinclude/cxxtools/cgi.h Xinclude/cxxtools/delegate.h Xinclude/cxxtools/pool.h Xinclude/cxxtools/thread.h Xinclude/cxxtools/inifile.h Xinclude/cxxtools/udpstream.h Xinclude/cxxtools/dlloader.h Xinclude/cxxtools/iniparser.h Xinclude/cxxtools/regex.h Xinclude/cxxtools/dynbuffer.h Xinclude/cxxtools/method.h Xinclude/cxxtools/atomicity.gcc.x86_64.h Xinclude/cxxtools/connection.h Xinclude/cxxtools/callable.tpp Xinclude/cxxtools/atomicity.gcc.ppc.h Xinclude/cxxtools/atomicity.pthread.h Xinclude/cxxtools/slot.h Xinclude/cxxtools/arg.h Xinclude/cxxtools/invokable.tpp Xinclude/cxxtools/sourceinfo.h Xinclude/cxxtools/tcpstream.h Xinclude/cxxtools/base64stream.h Xinclude/cxxtools/tee.h Xinclude/cxxtools/httpreply.h Xinclude/cxxtools/smartptr.h Xinclude/cxxtools/atomicity.gcc.mips.h Xinclude/cxxtools/multifstream.h Xinclude/cxxtools/mime.h Xinclude/cxxtools/any.h Xinclude/cxxtools/main.h Xinclude/cxxtools/function.tpp Xinclude/cxxtools/atomicity.gcc.arm.h Xinclude/cxxtools/invokable.h Xinclude/cxxtools/signals.tpp Xinclude/cxxtools/method.tpp Xinclude/cxxtools/hdstream.h Xinclude/cxxtools/atomicity.gcc.x86.h Xinclude/cxxtools/iconverter.h Xinclude/cxxtools/pipe.h Xinclude/cxxtools/connectable.h Xinclude/cxxtools/delegate.tpp Xinclude/cxxtools/pipestream.h Xinclude/cxxtools/syserror.h Xinclude/cxxtools/query_params.h Xinclude/cxxtools/fdstream.h Xinclude/cxxtools/net.h Xinclude/cxxtools/refcounted.h Xinclude/cxxtools/log/cxxtools_init.h Xinclude/cxxtools/log/log4cplus.h Xinclude/cxxtools/log/disable.h Xinclude/cxxtools/log/log4cxx_init.h Xinclude/cxxtools/log/disable_init.h Xinclude/cxxtools/log/log4cplus_init.h Xinclude/cxxtools/log/cxxtools.h Xinclude/cxxtools/log/log4cxx.h Xinclude/cxxtools/function.h Xinclude/cxxtools/slot.tpp Xinclude/cxxtools/fork.h Xinclude/cxxtools/properties.h Xinclude/cxxtools/atomicity.windows.h Xinclude/cxxtools/atomicity.gcc.sparc.h Xinclude/cxxtools/udp.h Xinclude/cxxtools/loginit.h Xinclude/cxxtools/noncopyable.h Xinclude/cxxtools/md5stream.h Xinclude/cxxtools/httprequest.h Xinclude/cxxtools/atomicity.sun.h Xinclude/cxxtools/uuencode.h Xinclude/cxxtools/hirestime.h Xinclude/cxxtools/config.h X@dirrm include/cxxtools/log X@dirrm include/cxxtools 8187c785b2132d48bef01a9220333e2c echo c - www/ mkdir -p www/ > /dev/null 2>&1 echo c - www/tntnet/ mkdir -p www/tntnet/ > /dev/null 2>&1 echo x - www/tntnet/Makefile sed 's/^X//' >www/tntnet/Makefile << 'bc0f3b26c8ffbb4d1ba0002a62189c18' X# New ports collection makefile for: tntnet X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= tntnet XPORTVERSION= 1.6.3 XCATEGORIES= www devel XMASTER_SITES= http://www.tntnet.org/download/ X XMAINTAINER= nox@FreeBSD.org XCOMMENT= Webapplicationserver for C++ X XLIB_DEPENDS= cxxtools:${PORTSDIR}/devel/cxxtools XBUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip X XUSE_ICONV= yes XPATCH_STRIP= -p1 XGNU_CONFIGURE= yes XCONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" XCONFIGURE_ARGS+= --localstatedir=/var X X.if defined(WITH_GNUTLS) XCONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lgnutls" XCONFIGURE_ARGS+= --with-ssl=gnutls XLIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls X.else XCONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" XCONFIGURE_ARGS+= --with-ssl=openssl X.endif X XMAKE_JOBS_SAFE= yes XMAN1= ecppc.1 ecppl.1 ecppll.1 tntnet-config.1 XMAN7= ecpp.7 tntnet.conf.7 tntnet.properties.7 XMAN8= tntnet.8 X XUSERS= www XGROUPS= www X Xpost-configure: X ${REINPLACE_CMD} 's/^\(#define[[:space:]]*HAVE_SENDFILE[[:space:]]*\).*/\1\0/' ${WRKSRC}/framework/common/config.h X Xpost-install: X @if [ ! -f ${ETCDIR}/tntnet.conf ]; then \ X ${CP} -p ${ETCDIR}/tntnet.conf.sample ${ETCDIR}/tntnet.conf ; \ X fi X @if [ ! -f ${ETCDIR}/mime.conf ]; then \ X ${CP} -p ${ETCDIR}/mime.conf.sample ${ETCDIR}/mime.conf ; \ X fi X @if [ ! -f ${ETCDIR}/tntnet.properties ]; then \ X ${CP} -p ${ETCDIR}/tntnet.properties.sample ${ETCDIR}/tntnet.properties ; \ X fi X X.include bc0f3b26c8ffbb4d1ba0002a62189c18 echo x - www/tntnet/distinfo sed 's/^X//' >www/tntnet/distinfo << 'ed0ba6c921a3ae92dd357a63c63f72ab' XSHA256 (tntnet-1.6.3.tar.gz) = 1c16547e4fe6c07f8fe1b9d2eeb750cb2061032f31880f93f2080b049d54a3a4 XSIZE (tntnet-1.6.3.tar.gz) = 1952122 ed0ba6c921a3ae92dd357a63c63f72ab echo x - www/tntnet/pkg-descr sed 's/^X//' >www/tntnet/pkg-descr << '6ccf9f5ed066647f0c4c8646248e3062' XTntnet is a modular, multithreaded, high performance webapplicationserver Xfor C++. To create webapplications Tntnet has a template-language called Xecpp similar to php, jsp or mason, where you can embed c++-code inside a Xhtml-page to generate active content. The ecpp-files are precompiled to Xc++-classes called components and compiled and linked into a shared Xlibrary. This process is done at compiletime. X XWWW: http://www.tntnet.org/index.html 6ccf9f5ed066647f0c4c8646248e3062 echo x - www/tntnet/pkg-plist sed 's/^X//' >www/tntnet/pkg-plist << '0f9a3c7b683772ba6b189a66fa5807c0' Xbin/ecppc Xbin/ecppl Xbin/ecppll Xbin/tntnet Xbin/tntnet-config X%%ETCDIR%%/tntnet X@unexec if cmp -s %D/etc/tntnet/mime.conf.sample %D/etc/tntnet/mime.conf; then rm -f %D/etc/tntnet/mime.conf; fi X%%ETCDIR%%/mime.conf.sample X@exec if [ ! -f %D/etc/tntnet/mime.conf ] ; then cp -p %D/%F %B/mime.conf; fi X@unexec if cmp -s %D/etc/tntnet/tntnet.conf.sample %D/etc/tntnet/tntnet.conf; then rm -f %D/etc/tntnet/tntnet.conf; fi X%%ETCDIR%%/tntnet.conf.sample X@exec if [ ! -f %D/etc/tntnet/tntnet.conf ] ; then cp -p %D/%F %B/tntnet.conf; fi X@unexec if cmp -s %D/etc/tntnet/tntnet.properties.sample %D/etc/tntnet/tntnet.properties; then rm -f %D/etc/tntnet/tntnet.properties; fi X%%ETCDIR%%/tntnet.properties.sample X@exec if [ ! -f %D/etc/tntnet/tntnet.properties ] ; then cp -p %D/%F %B/tntnet.properties; fi Xinclude/tnt/compident.h Xinclude/tnt/comploader.h Xinclude/tnt/component.h Xinclude/tnt/componentfactory.h Xinclude/tnt/contentdisposition.h Xinclude/tnt/contenttype.h Xinclude/tnt/convert.h Xinclude/tnt/cookie.h Xinclude/tnt/data.h Xinclude/tnt/deflatestream.h Xinclude/tnt/dispatcher.h Xinclude/tnt/ecpp.h Xinclude/tnt/encoding.h Xinclude/tnt/htmlescostream.h Xinclude/tnt/http.h Xinclude/tnt/httperror.h Xinclude/tnt/httpheader.h Xinclude/tnt/httpmessage.h Xinclude/tnt/httpparser.h Xinclude/tnt/httpreply.h Xinclude/tnt/httprequest.h Xinclude/tnt/inflatestream.h Xinclude/tnt/job.h Xinclude/tnt/langlib.h Xinclude/tnt/maptarget.h Xinclude/tnt/messageattribute.h Xinclude/tnt/messageheader.h Xinclude/tnt/messageheaderparser.h Xinclude/tnt/mimedb.h Xinclude/tnt/multipart.h Xinclude/tnt/object.h Xinclude/tnt/parser.h Xinclude/tnt/poller.h Xinclude/tnt/query_params.h Xinclude/tnt/regex.h Xinclude/tnt/savepoint.h Xinclude/tnt/scope.h Xinclude/tnt/scopemanager.h Xinclude/tnt/sessionscope.h Xinclude/tnt/sodata.h Xinclude/tnt/stringlessignorecase.h Xinclude/tnt/tntconfig.h Xinclude/tnt/tntnet.h Xinclude/tnt/unzipfile.h Xinclude/tnt/urlescostream.h Xinclude/tnt/urlmapper.h Xinclude/tnt/worker.h Xinclude/tnt/zdata.h Xlib/libtntnet.a Xlib/libtntnet.la Xlib/libtntnet.so Xlib/libtntnet.so.8 Xlib/libtntnet_cgi.a Xlib/libtntnet_cgi.la Xlib/libtntnet_cgi.so Xlib/libtntnet_cgi.so.8 Xlib/libtntnet_sdk.a Xlib/libtntnet_sdk.la Xlib/libtntnet_sdk.so Xlib/libtntnet_sdk.so.8 Xlib/tntnet/alldemos.a Xlib/tntnet/alldemos.la Xlib/tntnet/alldemos.so Xlib/tntnet/alldemos.so.0 Xlib/tntnet/calc.a Xlib/tntnet/calc.la Xlib/tntnet/calc.so Xlib/tntnet/calc.so.0 Xlib/tntnet/calcajax.a Xlib/tntnet/calcajax.la Xlib/tntnet/calcajax.so Xlib/tntnet/calcajax.so.0 Xlib/tntnet/calci18n.a Xlib/tntnet/calci18n.la Xlib/tntnet/calci18n.so Xlib/tntnet/calci18n.so.0 Xlib/tntnet/calcmvc.a Xlib/tntnet/calcmvc.la Xlib/tntnet/calcmvc.so Xlib/tntnet/calcmvc.so.0 Xlib/tntnet/chat.a Xlib/tntnet/chat.la Xlib/tntnet/chat.so Xlib/tntnet/chat.so.0 Xlib/tntnet/comp.a Xlib/tntnet/comp.la Xlib/tntnet/comp.so Xlib/tntnet/comp.so.0 Xlib/tntnet/config.a Xlib/tntnet/config.la Xlib/tntnet/config.so Xlib/tntnet/config.so.0 Xlib/tntnet/controls.a Xlib/tntnet/controls.la Xlib/tntnet/controls.so Xlib/tntnet/controls.so.0 Xlib/tntnet/cookie.a Xlib/tntnet/cookie.la Xlib/tntnet/cookie.so Xlib/tntnet/cookie.so.0 Xlib/tntnet/extlib.a Xlib/tntnet/extlib.la Xlib/tntnet/extlib.so Xlib/tntnet/extlib.so.0 Xlib/tntnet/hello.a Xlib/tntnet/hello.la Xlib/tntnet/hello.so Xlib/tntnet/hello.so.0 Xlib/tntnet/savepoint.a Xlib/tntnet/savepoint.la Xlib/tntnet/savepoint.so Xlib/tntnet/savepoint.so.0 Xlib/tntnet/session.a Xlib/tntnet/session.la Xlib/tntnet/session.so Xlib/tntnet/session.so.0 Xlib/tntnet/sprintf.a Xlib/tntnet/sprintf.la Xlib/tntnet/sprintf.so Xlib/tntnet/sprintf.so.0 Xlib/tntnet/strings.a Xlib/tntnet/strings.la Xlib/tntnet/strings.so Xlib/tntnet/strings.so.0 Xlib/tntnet/tntnet.a Xlib/tntnet/tntnet.la Xlib/tntnet/tntnet.so Xlib/tntnet/tntnet.so.8 Xlib/tntnet/upload.a Xlib/tntnet/upload.la Xlib/tntnet/upload.so Xlib/tntnet/upload.so.0 X@dirrm lib/tntnet X@dirrm include/tnt X@dirrm %%ETCDIR%% 0f9a3c7b683772ba6b189a66fa5807c0 echo c - www/tntnet/files/ mkdir -p www/tntnet/files/ > /dev/null 2>&1 echo x - www/tntnet/files/patch-etc sed 's/^X//' >www/tntnet/files/patch-etc << '5591d7b460832fe4a3d8cfb672b8dcda' X--- a/etc/Makefile.am X+++ b/etc/Makefile.am X@@ -1,30 +1,35 @@ X nobase_dist_noinst_DATA = \ X tntnet/tntnet.conf.in \ X- init.d/tntnet.in X+ init.d/tntnet.in \ X+ tntnet/mime.conf X X nobase_sysconf_DATA = \ X- tntnet/tntnet.conf \ X- init.d/tntnet X+ tntnet/tntnet.conf.sample \ X+ tntnet/tntnet X X nobase_dist_sysconf_DATA = \ X- tntnet/mime.conf X+ tntnet/mime.conf.sample X X nobase_nodist_sysconf_DATA = \ X- tntnet/tntnet.properties X+ tntnet/tntnet.properties.sample X+ X+tntnet/mime.conf.sample: tntnet/mime.conf X+ cp tntnet/mime.conf $@ X X-tntnet/tntnet.conf: tntnet/tntnet.conf.in Makefile X+tntnet/tntnet.conf.sample: tntnet/tntnet.conf.in Makefile X sed -e 's,@libdir\@,@libdir@,g;' \ X -e 's,@pkglibdir\@,@pkglibdir@,g;' \ X -e 's,@sysconfdir\@,@sysconfdir@,g;' \ X -e 's,@localstatedir\@,@localstatedir@,g;' \ X- -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet.conf X+ -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet.conf.sample X X-init.d/tntnet: init.d/tntnet.in Makefile X+tntnet/tntnet: init.d/tntnet.in Makefile X sed -e 's,@libdir\@,@libdir@,g;' \ X -e 's,@pkglibdir\@,@pkglibdir@,g;' \ X -e 's,@sysconfdir\@,@sysconfdir@,g;' \ X -e 's,@localstatedir\@,@localstatedir@,g;' \ X- -e 's,@datadir\@,@datadir@,g;' init.d/tntnet X+ -e 's/^function //;' \ X+ -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet X X-tntnet/tntnet.properties: Makefile X+tntnet/tntnet.properties.sample: Makefile X cxxtools-config --logfile @localstatedir@/log/tntnet/tntnet.log --properties tntnet >$@ X--- a/etc/Makefile.in X+++ b/etc/Makefile.in X@@ -194,17 +194,18 @@ target_os = @target_os@ X target_vendor = @target_vendor@ X nobase_dist_noinst_DATA = \ X tntnet/tntnet.conf.in \ X- init.d/tntnet.in X+ init.d/tntnet.in \ X+ tntnet/mime.conf X X nobase_sysconf_DATA = \ X- tntnet/tntnet.conf \ X- init.d/tntnet X+ tntnet/tntnet.conf.sample \ X+ tntnet/tntnet X X nobase_dist_sysconf_DATA = \ X- tntnet/mime.conf X+ tntnet/mime.conf.sample X X nobase_nodist_sysconf_DATA = \ X- tntnet/tntnet.properties X+ tntnet/tntnet.properties.sample X X all: all-am X X@@ -436,21 +437,25 @@ uninstall-am: uninstall-info-am uninstal X uninstall-nobase_sysconfDATA X X X-tntnet/tntnet.conf: tntnet/tntnet.conf.in Makefile X+tntnet/mime.conf.sample: tntnet/mime.conf X+ cp tntnet/mime.conf $@ X+ X+tntnet/tntnet.conf.sample: tntnet/tntnet.conf.in Makefile X sed -e 's,@libdir\@,@libdir@,g;' \ X -e 's,@pkglibdir\@,@pkglibdir@,g;' \ X -e 's,@sysconfdir\@,@sysconfdir@,g;' \ X -e 's,@localstatedir\@,@localstatedir@,g;' \ X- -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet.conf X+ -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet.conf.sample X X-init.d/tntnet: init.d/tntnet.in Makefile X+tntnet/tntnet: init.d/tntnet.in Makefile X sed -e 's,@libdir\@,@libdir@,g;' \ X -e 's,@pkglibdir\@,@pkglibdir@,g;' \ X -e 's,@sysconfdir\@,@sysconfdir@,g;' \ X -e 's,@localstatedir\@,@localstatedir@,g;' \ X- -e 's,@datadir\@,@datadir@,g;' init.d/tntnet X+ -e 's/^function //;' \ X+ -e 's,@datadir\@,@datadir@,g;' tntnet/tntnet X X-tntnet/tntnet.properties: Makefile X+tntnet/tntnet.properties.sample: Makefile X cxxtools-config --logfile @localstatedir@/log/tntnet/tntnet.log --properties tntnet >$@ X # Tell versions [3.59,3.63) of GNU make to not export all variables. X # Otherwise a system limit (for SysV at least) may be exceeded. X--- a/etc/tntnet/tntnet.conf.in X+++ b/etc/tntnet/tntnet.conf.in X@@ -2,12 +2,15 @@ X # X X PropertyFile @sysconfdir@/tntnet/tntnet.properties X-Listen 0.0.0.0 80 X+#Listen 0.0.0.0 80 X+Listen 127.1 80 X #SslListen 0.0.0.0 443 @sysconfdir@/tntnet/tntnet.pem X X Daemon 1 X-User www-data X-Group www-data X+#User www-data X+#Group www-data X+User www X+Group www X CompPath @libdir@/tntnet X X # set some limit to prevent DoS-attacks 5591d7b460832fe4a3d8cfb672b8dcda echo x - www/tntnet/files/patch-sdk-demos-calc-Makefile.in sed 's/^X//' >www/tntnet/files/patch-sdk-demos-calc-Makefile.in << 'cc32ed601898c9d40bbcc00812c6d2e9' X--- a/sdk/demos/calc/Makefile.in X+++ b/sdk/demos/calc/Makefile.in X@@ -467,7 +467,7 @@ info: info-am X X info-am: X X-install-data-am: install-docDATA X+install-data-am: #install-docDATA X X install-exec-am: install-pkglibLTLIBRARIES X cc32ed601898c9d40bbcc00812c6d2e9 echo c - www/vdr-plugin-live/ mkdir -p www/vdr-plugin-live/ > /dev/null 2>&1 echo x - www/vdr-plugin-live/Makefile sed 's/^X//' >www/vdr-plugin-live/Makefile << '7623fb71d34213031b300f2438d414c0' X# New ports collection makefile for: vdr_plugin_live X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr_plugin_live XPORTVERSION= 0.2.0 XPORTREVISION= 1 XCATEGORIES= www multimedia XMASTER_SITES= http://live.vdr-developer.org/downloads/ XDISTNAME= ${PORTNAME:S/_plugin_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - live web plugin X XLIB_DEPENDS+= tntnet:${PORTSDIR}/www/tntnet X XPORTDOCS= COPYING README XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION} XMAKE_ARGS+= INCLUDES="-I$(LOCALBASE)/include -I${WRKSRC}" X X.include "${.CURDIR}/../../multimedia/vdrdevel/Makefile.plugins" X Xpost-patch: post-patch-plugin X Xpost-install: X (cd ${WRKSRC}/${PLUGIN} && \ X ${COPYTREE_SHARE} \* ${PREFIX}/etc/vdr/plugins/${PLUGIN} ) X ${CHOWN} -R ${VDR_USER}:${VDR_GROUP} ${PREFIX}/etc/vdr/plugins/${PLUGIN} X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include 7623fb71d34213031b300f2438d414c0 echo x - www/vdr-plugin-live/distinfo sed 's/^X//' >www/vdr-plugin-live/distinfo << 'ab031bf99b4340cd8854db8f01e1f357' XSHA256 (vdr/vdr-live-0.2.0.tar.gz) = 30ac64040be4defb75beb9d3a5b0218694fc5b10486926acd989e6eb6c72ca55 XSIZE (vdr/vdr-live-0.2.0.tar.gz) = 560582 ab031bf99b4340cd8854db8f01e1f357 echo x - www/vdr-plugin-live/pkg-descr sed 's/^X//' >www/vdr-plugin-live/pkg-descr << '8d7dd626a5b7903b1bfe866c783a961a' Xhttp://www.vdr-wiki.de/wiki/index.php/Live-plugin X XLive, the "Live Interactive VDR Environment", is a plugin providing the Xpossibility to interactively control the VDR and some of it's plugins by Xa web interface. X XUnlike external utility programs that communicate with VDR and it's plugins Xby SVDRP, Live has direct access to VDR's data structures and is thus very Xfast. X XWWW: http://live.vdr-developer.org/ 8d7dd626a5b7903b1bfe866c783a961a echo x - www/vdr-plugin-live/pkg-plist sed 's/^X//' >www/vdr-plugin-live/pkg-plist << '10cf4a8c92a4e6caa13d2639158876ce' Xlib/vdr/libvdr-live.so.1.7.16 Xetc/vdr/plugins/live/css/DatePicker.css Xetc/vdr/plugins/live/css/siteprefs.css Xetc/vdr/plugins/live/img/active.png Xetc/vdr/plugins/live/img/arrow.png Xetc/vdr/plugins/live/img/arrow_rec.gif Xetc/vdr/plugins/live/img/bg_box_h.png Xetc/vdr/plugins/live/img/bg_box_l.png Xetc/vdr/plugins/live/img/bg_box_r.png Xetc/vdr/plugins/live/img/bg_header_h.png Xetc/vdr/plugins/live/img/bg_header_l.png Xetc/vdr/plugins/live/img/bg_header_r.png Xetc/vdr/plugins/live/img/bg_line.png Xetc/vdr/plugins/live/img/bg_line_top.png Xetc/vdr/plugins/live/img/bg_tools.png Xetc/vdr/plugins/live/img/button_blue.png Xetc/vdr/plugins/live/img/button_green.png Xetc/vdr/plugins/live/img/button_new.png Xetc/vdr/plugins/live/img/button_red.png Xetc/vdr/plugins/live/img/button_yellow.png Xetc/vdr/plugins/live/img/close.png Xetc/vdr/plugins/live/img/close_red.png Xetc/vdr/plugins/live/img/del.png Xetc/vdr/plugins/live/img/edit.png Xetc/vdr/plugins/live/img/english.png Xetc/vdr/plugins/live/img/favicon.ico Xetc/vdr/plugins/live/img/ffw.png Xetc/vdr/plugins/live/img/file.png Xetc/vdr/plugins/live/img/folder_closed.png Xetc/vdr/plugins/live/img/folder_open.png Xetc/vdr/plugins/live/img/german.png Xetc/vdr/plugins/live/img/help.png Xetc/vdr/plugins/live/img/imdb.png Xetc/vdr/plugins/live/img/inactive.png Xetc/vdr/plugins/live/img/info-win-b-l.png Xetc/vdr/plugins/live/img/info-win-b-r.png Xetc/vdr/plugins/live/img/info-win-m-l.png Xetc/vdr/plugins/live/img/info-win-m-r.png Xetc/vdr/plugins/live/img/info-win-t-l.png Xetc/vdr/plugins/live/img/info-win-t-r.png Xetc/vdr/plugins/live/img/logo.png Xetc/vdr/plugins/live/img/logo_login.png Xetc/vdr/plugins/live/img/menu_line_bg.png Xetc/vdr/plugins/live/img/minus.png Xetc/vdr/plugins/live/img/movie.png Xetc/vdr/plugins/live/img/on_dvd.png Xetc/vdr/plugins/live/img/msgbar_line_bg.png Xetc/vdr/plugins/live/img/one_downarrow.png Xetc/vdr/plugins/live/img/one_uparrow.png Xetc/vdr/plugins/live/img/pause.png Xetc/vdr/plugins/live/img/play.png Xetc/vdr/plugins/live/img/plus.png Xetc/vdr/plugins/live/img/record.png Xetc/vdr/plugins/live/img/record_timer.png Xetc/vdr/plugins/live/img/reload.png Xetc/vdr/plugins/live/img/remotecontrol.jpg Xetc/vdr/plugins/live/img/rounded-box-blue-bl.png Xetc/vdr/plugins/live/img/rounded-box-blue-br.png Xetc/vdr/plugins/live/img/rounded-box-blue-ml.png Xetc/vdr/plugins/live/img/rounded-box-blue-mr.png Xetc/vdr/plugins/live/img/rounded-box-blue-tl.png Xetc/vdr/plugins/live/img/rounded-box-blue-tr.png Xetc/vdr/plugins/live/img/rounded-box-green-bl.png Xetc/vdr/plugins/live/img/rounded-box-green-br.png Xetc/vdr/plugins/live/img/rounded-box-green-ml.png Xetc/vdr/plugins/live/img/rounded-box-green-mr.png Xetc/vdr/plugins/live/img/rounded-box-green-tl.png Xetc/vdr/plugins/live/img/rounded-box-green-tr.png Xetc/vdr/plugins/live/img/rounded-box-orange-bl.png Xetc/vdr/plugins/live/img/rounded-box-orange-br.png Xetc/vdr/plugins/live/img/rounded-box-orange-ml.png Xetc/vdr/plugins/live/img/rounded-box-orange-mr.png Xetc/vdr/plugins/live/img/rounded-box-orange-tl.png Xetc/vdr/plugins/live/img/rounded-box-orange-tr.png Xetc/vdr/plugins/live/img/rounded-box-redwine-bl.png Xetc/vdr/plugins/live/img/rounded-box-redwine-br.png Xetc/vdr/plugins/live/img/rounded-box-redwine-ml.png Xetc/vdr/plugins/live/img/rounded-box-redwine-mr.png Xetc/vdr/plugins/live/img/rounded-box-redwine-tl.png Xetc/vdr/plugins/live/img/rounded-box-redwine-tr.png Xetc/vdr/plugins/live/img/rwd.png Xetc/vdr/plugins/live/img/search.png Xetc/vdr/plugins/live/img/stop.png Xetc/vdr/plugins/live/img/stop_update.png Xetc/vdr/plugins/live/img/stream_button.png Xetc/vdr/plugins/live/img/timerconflict.gif Xetc/vdr/plugins/live/img/transparent.png Xetc/vdr/plugins/live/img/tv.jpg Xetc/vdr/plugins/live/img/zap.png Xetc/vdr/plugins/live/js/live/browserwin.js Xetc/vdr/plugins/live/js/live/hinttips.js Xetc/vdr/plugins/live/js/live/infowin.js Xetc/vdr/plugins/live/js/live/liveajax.js Xetc/vdr/plugins/live/js/live/pageenhance.js Xetc/vdr/plugins/live/js/live/vdr_status.js Xetc/vdr/plugins/live/js/live/vlc.js Xetc/vdr/plugins/live/js/mootools/DatePicker.js Xetc/vdr/plugins/live/js/mootools/mootools.v1.11.js Xetc/vdr/plugins/live/js/mootools/readme.mootools.config Xetc/vdr/plugins/live/themes/marine/css/theme.css Xetc/vdr/plugins/live/themes/marine/img/zap.png Xetc/vdr/plugins/live/themes/orange-blue/css/theme.css Xetc/vdr/plugins/live/themes/orange-blue/img/bg_box_h.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_box_l.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_box_r.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_header_h.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_header_l.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_header_r.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_line.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_line_top.png Xetc/vdr/plugins/live/themes/orange-blue/img/bg_tools.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-b-l.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-b-r.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-m-l.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-m-r.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-t-l.png Xetc/vdr/plugins/live/themes/orange-blue/img/info-win-t-r.png Xetc/vdr/plugins/live/themes/orange-blue/img/logo.png Xetc/vdr/plugins/live/themes/orange-blue/img/menu_line_bg.png Xetc/vdr/plugins/live/themes/orange-blue/img/remotecontrol.jpg Xetc/vdr/plugins/live/themes/orange-blue/img/tv.jpg Xetc/vdr/plugins/live/themes/orange-blue/img/zap.png Xetc/vdr/plugins/live/themes/redwine/css/theme.css Xetc/vdr/plugins/live/themes/redwine/img/bg_box_h.png Xetc/vdr/plugins/live/themes/redwine/img/bg_box_l.png Xetc/vdr/plugins/live/themes/redwine/img/bg_box_r.png Xetc/vdr/plugins/live/themes/redwine/img/bg_header_h.png Xetc/vdr/plugins/live/themes/redwine/img/bg_header_l.png Xetc/vdr/plugins/live/themes/redwine/img/bg_header_r.png Xetc/vdr/plugins/live/themes/redwine/img/bg_line.png Xetc/vdr/plugins/live/themes/redwine/img/bg_line_top.png Xetc/vdr/plugins/live/themes/redwine/img/bg_tools.png Xetc/vdr/plugins/live/themes/redwine/img/menu_line_bg.png Xetc/vdr/plugins/live/themes/redwine/img/zap.png Xetc/vdr/plugins/live/themes/veltliner/css/theme.css Xetc/vdr/plugins/live/themes/veltliner/img/bg_box_h.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_box_h1.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_box_l.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_box_r.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_header_h.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_header_l.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_header_r.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_line.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_line_top.png Xetc/vdr/plugins/live/themes/veltliner/img/bg_tools.png Xetc/vdr/plugins/live/themes/veltliner/img/button_blue.png Xetc/vdr/plugins/live/themes/veltliner/img/info-win-t-l.png Xetc/vdr/plugins/live/themes/veltliner/img/info-win-t-r.png Xetc/vdr/plugins/live/themes/veltliner/img/logo.png Xetc/vdr/plugins/live/themes/veltliner/img/logo_login.png Xetc/vdr/plugins/live/themes/veltliner/img/menu_line_bg.png Xetc/vdr/plugins/live/themes/veltliner/img/zap.png X@dirrm etc/vdr/plugins/live/themes/marine/css X@dirrm etc/vdr/plugins/live/themes/marine/img X@dirrm etc/vdr/plugins/live/themes/marine X@dirrm etc/vdr/plugins/live/themes/orange-blue/css X@dirrm etc/vdr/plugins/live/themes/orange-blue/img X@dirrm etc/vdr/plugins/live/themes/orange-blue X@dirrm etc/vdr/plugins/live/themes/redwine/css X@dirrm etc/vdr/plugins/live/themes/redwine/img X@dirrm etc/vdr/plugins/live/themes/redwine X@dirrm etc/vdr/plugins/live/themes/veltliner/css X@dirrm etc/vdr/plugins/live/themes/veltliner/img X@dirrm etc/vdr/plugins/live/themes/veltliner X@dirrm etc/vdr/plugins/live/themes X@dirrm etc/vdr/plugins/live/js/mootools X@dirrm etc/vdr/plugins/live/js/live X@dirrm etc/vdr/plugins/live/js X@dirrm etc/vdr/plugins/live/img X@dirrm etc/vdr/plugins/live/css X@dirrmtry etc/vdr/plugins/live 10cf4a8c92a4e6caa13d2639158876ce echo c - www/vdr-plugin-live/files/ mkdir -p www/vdr-plugin-live/files/ > /dev/null 2>&1 echo x - www/vdr-plugin-live/files/patch-Makefile sed 's/^X//' >www/vdr-plugin-live/files/patch-Makefile << '79440af7d7534e5ea8323605b6c1bcb4' X--- Makefile.orig X+++ Makefile X@@ -149,7 +149,11 @@ $(VERSIONSUFFIX): FORCE X X libvdr-$(PLUGIN).so: $(VERSIONSUFFIX) $(SUBDIRS) $(PLUGINOBJS) X $(CXX) $(LDFLAGS) -shared -o $@ $(PLUGINOBJS) -Wl,--whole-archive $(WEBLIBS) -Wl,--no-whole-archive $(LIBS) X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X ifneq ($(TNTVERS7),yes) X @echo "" X @echo "If LIVE was built successfully and you can try to use it!" X@@ -186,6 +190,9 @@ clean: $(SUBDIRS) X @-rm -f $(PLUGINOBJS) $(DEPFILE) *.so *.tgz core* *~ X @-rm -f $(VERSIONSUFFIX) X X+install: X+ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+ X .PRECIOUS: $(I18Npo) X X FORCE: 79440af7d7534e5ea8323605b6c1bcb4 echo c - www/vdradmin-am/ mkdir -p www/vdradmin-am/ > /dev/null 2>&1 echo x - www/vdradmin-am/Makefile sed 's/^X//' >www/vdradmin-am/Makefile << '09f94998e800f76642770f1ea9d384d7' X# New ports collection makefile for: vdradmin_am X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdradmin_am XPORTVERSION= 3.6.7 XCATEGORIES= www XMASTER_SITES= http://andreas.vdr-developer.org/vdradmin-am/download/ XDISTNAME= ${PORTNAME:S/_/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} X XMAINTAINER= multimedia@FreeBSD.org XCOMMENT= Video Disk Recorder - webinterface X XBUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \ X ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \ X p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \ X ${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL \ X ${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ X ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6 \ X ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \ X ${SITE_PERL}/HTTP/Date.pm:${PORTSDIR}/www/p5-libwww XRUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \ X p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \ X ${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL \ X ${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ X ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6 \ X ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \ X ${SITE_PERL}/HTTP/Date.pm:${PORTSDIR}/www/p5-libwww X XDIST_SUBDIR= vdr XPATCH_STRIP= -p1 XUSE_BZIP2= yes XWRKSRC= ${WRKDIR}/${PORTNAME:S/_/-/}-${DISTVERSION} XNO_BUILD= yes XMAN8= vdradmind.8 XUSE_RC_SUBR= vdradmind X XVIDEODIR= /video XLIBDIR= ${DATADIR} XMAKE_ENV+= LIBDIR=${LIBDIR} XMAKE_ENV+= ETCDIR=${ETCDIR} XMAKE_ENV+= DOCDIR=${DOCSDIR} XMAKE_ENV+= BINDIR=${PREFIX}/bin XMAKE_ENV+= LOCDIR=${PREFIX}/share/locale XMAKE_ENV+= MANDIR=${PREFIX}/man XMAKE_ENV+= LOGDIR=/var/log/${PORTNAME} XMAKE_ENV+= CACHEDIR=/var/cache/${PORTNAME} XMAKE_ENV+= PIDFILE=/var/run/${PORTNAME}/vdradmind.pid XMAKE_ENV+= VIDEODIR=${VIDEODIR} XMAKE_ENV+= EPGIMAGES=${VIDEODIR}/epgimages XMAKE_ENV+= VDRCONF=${PREFIX}/etc/vdr X XVDR_USER= vdr XVDR_GROUP= vdr XUSERS= ${VDR_USER} XGROUPS= ${VDR_GROUP} XPLIST_SUB= VDR_USER=${VDR_USER} XPLIST_SUB+= VDR_GROUP=${VDR_GROUP} X Xpost-patch: X @${REINPLACE_CMD} 1s-^#!/bin/bash-#!${LOCALBASE}/bin/bash- \ X ${WRKSRC}/install.sh ${WRKSRC}/make.sh X Xdo-install: X @${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d ${ETCDIR} X @${INSTALL_DATA} -m 644 ${FILESDIR}/vdradmind.conf ${ETCDIR}/vdradmind.conf.sample X @if [ ! -f ${ETCDIR}/vdradmind.conf ]; then \ X ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} -m 644 ${FILESDIR}/vdradmind.conf ${ETCDIR}; \ X fi X @${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d /var/cache/${PORTNAME} \ X /var/log/${PORTNAME} /var/run/${PORTNAME} X @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./install.sh) X X.include 09f94998e800f76642770f1ea9d384d7 echo x - www/vdradmin-am/distinfo sed 's/^X//' >www/vdradmin-am/distinfo << '60b89f17c424c980ae794b92d6f6a7e8' XSHA256 (vdr/vdradmin-am-3.6.7.tar.bz2) = 48fb4edb16f65e7f340bd57b4d205c1718e37f40d22bf3a76515812f3f45b39b XSIZE (vdr/vdradmin-am-3.6.7.tar.bz2) = 545850 60b89f17c424c980ae794b92d6f6a7e8 echo x - www/vdradmin-am/pkg-descr sed 's/^X//' >www/vdradmin-am/pkg-descr << '546633790d614fc1d7f8bac0273f63a9' Xhttp://www.vdr-wiki.de/wiki/index.php/Vdradmin_AM X XVDRAdmin-AM is a web based interface to VDR. X XWWW: http://andreas.vdr-developer.org/vdradmin-am/ 546633790d614fc1d7f8bac0273f63a9 echo x - www/vdradmin-am/pkg-plist sed 's/^X//' >www/vdradmin-am/pkg-plist << '69347206d988c02a5352051a59f76e39' Xbin/vdradmind X@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d %%ETCDIR%% X@unexec if cmp -s %D/etc/vdradmin_am/vdradmind.conf.sample %D/etc/vdradmin_am/vdradmind.conf; then rm -f %D/etc/vdradmin_am/vdradmind.conf; fi X%%ETCDIR%%/vdradmind.conf.sample X@exec if [ ! -f %D/etc/vdradmin_am/vdradmind.conf ] ; then cp -p %D/%F %B/vdradmind.conf; chown %%VDR_USER%%:%%VDR_GROUP%% %B/vdradmind.conf; fi Xshare/vdradmin_am/lib/MIME/Base64.pm Xshare/vdradmin_am/lib/Template/Plugin/Date.pm Xshare/vdradmin_am/lib/Template/Plugin/HTML.pm Xshare/vdradmin_am/lib/Template/Plugin/JavaScript.pm Xshare/vdradmin_am/lib/Template/Namespace/Constants.pm Xshare/vdradmin_am/lib/Template/Stash/XS.pm Xshare/vdradmin_am/lib/Template/Stash/Context.pm Xshare/vdradmin_am/lib/Template/Directive.pm Xshare/vdradmin_am/lib/Template/View.pm Xshare/vdradmin_am/lib/Template/Stash.pm Xshare/vdradmin_am/lib/Template/Plugin.pm Xshare/vdradmin_am/lib/Template/Iterator.pm Xshare/vdradmin_am/lib/Template/Provider.pm Xshare/vdradmin_am/lib/Template/Constants.pm Xshare/vdradmin_am/lib/Template/Config.pm Xshare/vdradmin_am/lib/Template/Context.pm Xshare/vdradmin_am/lib/Template/Grammar.pm Xshare/vdradmin_am/lib/Template/Service.pm Xshare/vdradmin_am/lib/Template/Base.pm Xshare/vdradmin_am/lib/Template/Parser.pm Xshare/vdradmin_am/lib/Template/Exception.pm Xshare/vdradmin_am/lib/Template/Document.pm Xshare/vdradmin_am/lib/Template/Plugins.pm Xshare/vdradmin_am/lib/Template/Filters.pm Xshare/vdradmin_am/lib/Template/Test.pm Xshare/vdradmin_am/lib/File/Temp.pm Xshare/vdradmin_am/lib/URI/Escape.pm Xshare/vdradmin_am/lib/Template.pm Xshare/vdradmin_am/template/default/default/fern_33.jpg Xshare/vdradmin_am/template/default/default/fern_36.jpg Xshare/vdradmin_am/template/default/default/fern_32.jpg Xshare/vdradmin_am/template/default/default/delete.png Xshare/vdradmin_am/template/default/default/edit.png Xshare/vdradmin_am/template/default/default/pfeile_nachlinks_soft.png Xshare/vdradmin_am/template/default/default/fern_13.jpg Xshare/vdradmin_am/template/default/default/cut.png Xshare/vdradmin_am/template/default/default/play.png Xshare/vdradmin_am/template/default/default/imdb.png Xshare/vdradmin_am/template/default/default/fern_mute.jpg Xshare/vdradmin_am/template/default/default/configure.png Xshare/vdradmin_am/template/default/default/rec_button.png Xshare/vdradmin_am/template/default/default/fern_05.jpg Xshare/vdradmin_am/template/default/default/folder_video.png Xshare/vdradmin_am/template/default/default/fern_12.jpg Xshare/vdradmin_am/template/default/default/fern_48.jpg Xshare/vdradmin_am/template/default/default/fern_10.jpg Xshare/vdradmin_am/template/default/default/fern_31.jpg Xshare/vdradmin_am/template/default/default/fern_09.jpg Xshare/vdradmin_am/template/default/default/fern_23.jpg Xshare/vdradmin_am/template/default/default/noise.gif Xshare/vdradmin_am/template/default/default/rec.gif Xshare/vdradmin_am/template/default/default/fern_40.jpg Xshare/vdradmin_am/template/default/default/fern_46.jpg Xshare/vdradmin_am/template/default/default/close.png Xshare/vdradmin_am/template/default/default/fern_47.jpg Xshare/vdradmin_am/template/default/default/view.png Xshare/vdradmin_am/template/default/default/fern_24.jpg Xshare/vdradmin_am/template/default/default/fern_back.jpg Xshare/vdradmin_am/template/default/default/pfeile_nachrechts.png Xshare/vdradmin_am/template/default/default/fern_06.jpg Xshare/vdradmin_am/template/default/default/pfeile_nachrechts_soft.png Xshare/vdradmin_am/template/default/default/fern_25.jpg Xshare/vdradmin_am/template/default/default/fern_43.jpg Xshare/vdradmin_am/template/default/default/fern_28.jpg Xshare/vdradmin_am/template/default/default/sortiert_desc.gif Xshare/vdradmin_am/template/default/default/sum_find.png Xshare/vdradmin_am/template/default/default/fern_11.jpg Xshare/vdradmin_am/template/default/default/info_button_disabled.png Xshare/vdradmin_am/template/default/default/fern_41.jpg Xshare/vdradmin_am/template/default/default/poempl_gelb.png Xshare/vdradmin_am/template/default/default/pfeile_nachlinks.png Xshare/vdradmin_am/template/default/default/sortiert_asc.gif Xshare/vdradmin_am/template/default/default/fern_42.jpg Xshare/vdradmin_am/template/default/default/help.png Xshare/vdradmin_am/template/default/default/fern_22.jpg Xshare/vdradmin_am/template/default/default/fern_03.jpg Xshare/vdradmin_am/template/default/default/tv_bottom.gif Xshare/vdradmin_am/template/default/default/fern_18.jpg Xshare/vdradmin_am/template/default/default/poempl_rot.png Xshare/vdradmin_am/template/default/default/udef_search.png Xshare/vdradmin_am/template/default/default/logo.png Xshare/vdradmin_am/template/default/default/aktion.png Xshare/vdradmin_am/template/default/default/fern_15.jpg Xshare/vdradmin_am/template/default/default/fern_08.jpg Xshare/vdradmin_am/template/default/default/fern_19.jpg Xshare/vdradmin_am/template/default/default/fern_39.jpg Xshare/vdradmin_am/template/default/default/poempl_grau.png Xshare/vdradmin_am/template/default/default/fern_07.jpg Xshare/vdradmin_am/template/default/default/poempl_gruen.png Xshare/vdradmin_am/template/default/default/info_button.png Xshare/vdradmin_am/template/default/default/fern_44.jpg Xshare/vdradmin_am/template/default/default/fern_45.jpg Xshare/vdradmin_am/template/default/default/stream.png Xshare/vdradmin_am/template/default/default/find.png Xshare/vdradmin_am/template/default/default/spacer.gif Xshare/vdradmin_am/template/default/error.html Xshare/vdradmin_am/template/default/timer_list.html Xshare/vdradmin_am/template/default/help_rec_list.html Xshare/vdradmin_am/template/default/prog_list2.html Xshare/vdradmin_am/template/default/at_timer_new.html Xshare/vdradmin_am/template/default/navigation.html Xshare/vdradmin_am/template/default/favicon.ico Xshare/vdradmin_am/template/default/prog_timeline.html Xshare/vdradmin_am/template/default/at_timer_list.html Xshare/vdradmin_am/template/default/help_at_timer_list.html Xshare/vdradmin_am/template/default/help_edit_epg.html Xshare/vdradmin_am/template/default/timeline.js Xshare/vdradmin_am/template/default/help_at_timer_new.html Xshare/vdradmin_am/template/default/prog_detail_form.html Xshare/vdradmin_am/template/default/vdr_cmds.html Xshare/vdradmin_am/template/default/config.html Xshare/vdradmin_am/template/default/epgsearch_new.html Xshare/vdradmin_am/template/default/prog_list.html Xshare/vdradmin_am/template/default/index.html Xshare/vdradmin_am/template/default/rc.html Xshare/vdradmin_am/template/default/timer_new.html Xshare/vdradmin_am/template/default/noauth.html Xshare/vdradmin_am/template/default/infobox.js Xshare/vdradmin_am/template/default/rec_list.html Xshare/vdradmin_am/template/default/tv.html Xshare/vdradmin_am/template/default/prog_summary.html Xshare/vdradmin_am/template/default/about.html Xshare/vdradmin_am/template/default/rec_edit.html Xshare/vdradmin_am/template/default/noperm.html Xshare/vdradmin_am/template/default/epgsearch_config.html Xshare/vdradmin_am/template/default/prog_detail.html Xshare/vdradmin_am/template/default/help_timer_list.html Xshare/vdradmin_am/template/default/library.js Xshare/vdradmin_am/template/default/help_timer_new.html Xshare/vdradmin_am/template/default/help_no.html Xshare/vdradmin_am/template/default/help_config.html Xshare/vdradmin_am/template/default/style.css Xshare/vdradmin_am/template/default/epgsearch_list.html Xshare/vdradmin_am/template/default/prog_summary2.html X%%PORTDOCS%%%%DOCSDIR%%/contrib/README.Streaming X%%PORTDOCS%%%%DOCSDIR%%/contrib/user.css.example X%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.macfly X%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY X%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.bigpatch X%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.ct X%%PORTDOCS%%%%DOCSDIR%%/contrib/vdradmind.bl_example X%%PORTDOCS%%%%DOCSDIR%%/REQUIREMENTS X%%PORTDOCS%%%%DOCSDIR%%/README.translators X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/LGPL.txt X%%PORTDOCS%%%%DOCSDIR%%/FAQ X%%PORTDOCS%%%%DOCSDIR%%/HISTORY X%%PORTDOCS%%%%DOCSDIR%%/CREDITS X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/INSTALL Xshare/locale/cs/LC_MESSAGES/vdradmin.mo Xshare/locale/de/LC_MESSAGES/vdradmin.mo Xshare/locale/es/LC_MESSAGES/vdradmin.mo Xshare/locale/fi/LC_MESSAGES/vdradmin.mo Xshare/locale/fr/LC_MESSAGES/vdradmin.mo Xshare/locale/it/LC_MESSAGES/vdradmin.mo Xshare/locale/nl/LC_MESSAGES/vdradmin.mo Xshare/locale/ru/LC_MESSAGES/vdradmin.mo X@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d /var/cache/vdradmin_am /var/log/vdradmin_am /var/run/vdradmin_am X@dirrmtry %%ETCDIR%% X@dirrm share/vdradmin_am/lib/MIME X@dirrm share/vdradmin_am/lib/File X@dirrm share/vdradmin_am/lib/URI X@dirrm share/vdradmin_am/lib/Template/Plugin X@dirrm share/vdradmin_am/lib/Template/Namespace X@dirrm share/vdradmin_am/lib/Template/Stash X@dirrm share/vdradmin_am/lib/Template X@dirrm share/vdradmin_am/lib X@dirrm share/vdradmin_am/template/default/default X@dirrm share/vdradmin_am/template/default X@dirrm share/vdradmin_am/template X@dirrm share/vdradmin_am X%%PORTDOCS%%@dirrm %%DOCSDIR%%/contrib X%%PORTDOCS%%@dirrm %%DOCSDIR%% 69347206d988c02a5352051a59f76e39 echo c - www/vdradmin-am/files/ mkdir -p www/vdradmin-am/files/ > /dev/null 2>&1 echo x - www/vdradmin-am/files/patch-install.sh sed 's/^X//' >www/vdradmin-am/files/patch-install.sh << '49316ea30a5fca830c7e1c3f496aee2e' X--- a/install.sh X+++ b/install.sh X@@ -148,7 +148,7 @@ function doInstall() X X makeDir $LIBDIR 1 && cp -r template lib $LIBDIR || exit 1 X makeDir $BINDIR || exit 1 X- makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL LGPL.txt README* REQUIREMENTS FAQ $DOCDIR || exit 1 X+ [ -n $NOPORTDOCS ] && makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL LGPL.txt README* REQUIREMENTS FAQ $DOCDIR || exit 1 X makeDir $MANDIR/man8 && cp vdradmind.pl.1 $MANDIR/man8/vdradmind.8 || exit 1 X X ( 49316ea30a5fca830c7e1c3f496aee2e echo x - www/vdradmin-am/files/vdradmind.conf sed 's/^X//' >www/vdradmin-am/files/vdradmind.conf << '222bd7ec721813f37e7eaa63a7aa611f' XAT_DESC = 0 XAT_FUNC = 0 XAT_LIFETIME = 99 XAT_MARGIN_BEGIN = 10 XAT_MARGIN_END = 10 XAT_OFFER = 1 XAT_PRIORITY = 99 XAT_SENDMAIL = 0 XAT_SORTBY = pattern XAT_TOOLTIP = 1 XAUTO_SAVE_CONFIG = 1 XCACHE_BG_UPDATE = 1 XCACHE_LASTUPDATE = 1272551398 XCACHE_REC_ENABLED = 1 XCACHE_REC_LASTUPDATE = 1272544309 XCACHE_REC_TIMEOUT = 60 XCACHE_TIMEOUT = 60 XCHANNELS_WANTED = XCHANNELS_WANTED_AUTOTIMER = 0 XCHANNELS_WANTED_PRG = 0 XCHANNELS_WANTED_PRG2 = 0 XCHANNELS_WANTED_SUMMARY = 0 XCHANNELS_WANTED_TIMELINE = 0 XCHANNELS_WANTED_WATCHTV = 0 XCHANNELS_WITHOUT_EPG = 1 XCMD_LINES = 20 XEPGIMAGES = /video/epgimages XEPG_PRUNE = 0 XEPG_START_TIME = 00:00 XEPG_SUBTITLE = 1 XEPG_SUMMARY = 0 XES_DESC = 0 XES_SORTBY = pattern XGUEST_ACCOUNT = 0 XGUI_POPUP_HEIGHT = 250 XGUI_POPUP_WIDTH = 500 XLANG = XLOCAL_NET = 0.0.0.0/32 XLOGFILE = syslog XLOGGING = 0 XLOGINPAGE = 0 XLOGLEVEL = 4 XMAIL_AUTH_PASS = XMAIL_AUTH_USER = XMAIL_FROM = autotimer@example.org XMAIL_SERVER = localhost XMAIL_TO = you@example.org XMOD_GZIP = 0 XNO_EVENTID = 0 XNO_EVENTID_ON = XPASSWORD = vdr XPASSWORD_GUEST = guest XPROG_SUMMARY_COLS = 3 XPS_VIEW = ext XRECORDINGS = 1 XREC_DESC = 0 XREC_EXT = m3u XREC_MIMETYPE = video/x-mpegurl XREC_SORTBY = name XSERVERHOST = 127.1 XSERVERPORT = 8001 XSKIN = default XSRCH1_ACTIVE = 1 XSRCH1_TITLE = Lookup movie in the Internet-Movie-Database (IMDb) XSRCH1_URL = http://akas.imdb.com/Tsearch?title=%TITLE% XSRCH2_ACTIVE = 0 XSRCH2_TITLE = XSRCH2_URL = XST_FUNC = 1 XST_LIVE_ON = 1 XST_REC_ON = 0 XST_STREAMDEV_HOST = XST_STREAMDEV_PORT = 3000 XST_URL = XST_VIDEODIR = XTEMPLATE = default XTIMES = 18:00, 20:00, 21:00, 22:00 XTL_TOOLTIP = 1 XTM_DESC = 0 XTM_LIFETIME = 99 XTM_MARGIN_BEGIN = 10 XTM_MARGIN_END = 10 XTM_PRIORITY = 99 XTM_SORTBY = day XTM_TT_LIST = 1 XTM_TT_TIMELINE = 1 XTV_EXT = m3u XTV_INTERVAL = 5 XTV_MIMETYPE = video/x-mpegurl XTV_SIZE = half XUSERNAME = vdr XUSERNAME_GUEST = guest XVDRCONFDIR = /usr/local/etc/vdr XVDR_HOST = localhost XVDR_PORT = 6419 XVIDEODIR = /video XZEITRAHMEN = 1 222bd7ec721813f37e7eaa63a7aa611f echo x - www/vdradmin-am/files/vdradmind.in sed 's/^X//' >www/vdradmin-am/files/vdradmind.in << '6ca1f6072432ebd1da4bcef54cdbb6aa' X#!/bin/sh X# X# $FreeBSD$ X# X# PROVIDE: vdradmind X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following line to /etc/rc.conf[.local] to enable vdradmin_am: X# X# vdradmind_enable="YES" X X. /etc/rc.subr X Xname=vdradmind Xrcvar=`set_rcvar` X Xcommand="%%PREFIX%%/bin/vdradmind" Xpidfile="/var/run/vdradmin_am/${name}.pid" X Xload_rc_config ${name} X: ${vdradmind_enable="NO"} X: ${vdradmind_user="vdr"} X Xrun_rc_command "$1" 6ca1f6072432ebd1da4bcef54cdbb6aa exit