VDRAdmin-AM is a web based interface to VDR.

WWW: http://andreas.vdr-developer.org/vdradmin-am/
This commit is contained in:
Juergen Lock 2011-03-26 19:23:46 +00:00
parent 1f0ac5b7c6
commit 049a06b059
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271814
8 changed files with 397 additions and 0 deletions

View File

@ -1862,6 +1862,7 @@
SUBDIR += validator
SUBDIR += varnish
SUBDIR += vdr-plugin-live
SUBDIR += vdradmin-am
SUBDIR += vee
SUBDIR += videocache
SUBDIR += visitors

77
www/vdradmin-am/Makefile Normal file
View File

@ -0,0 +1,77 @@
# New ports collection makefile for: vdradmin-am
# Date created: Wed Apr 14 18:11:42 CEST 2010
# Whom: Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= vdradmin-am
PORTVERSION= 3.6.7
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://andreas.vdr-developer.org/vdradmin-am/download/
MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - webinterface
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \
${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL \
${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-IO-Compress \
${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 \
${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
${SITE_PERL}/HTTP/Date.pm:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Template-Plugin-JavaScript>=0:${PORTSDIR}/www/p5-Template-Plugin-JavaScript \
${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL \
${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-IO-Compress \
${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 \
${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
${SITE_PERL}/HTTP/Date.pm:${PORTSDIR}/www/p5-libwww
DIST_SUBDIR= vdr
PATCH_STRIP= -p1
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${PORTNAME:S/_/-/}-${DISTVERSION}
NO_BUILD= yes
MAN8= vdradmind.8
USE_RC_SUBR= vdradmind
VIDEODIR= /video
LIBDIR= ${DATADIR}
MAKE_ENV+= LIBDIR=${LIBDIR}
MAKE_ENV+= ETCDIR=${ETCDIR}
MAKE_ENV+= DOCDIR=${DOCSDIR}
MAKE_ENV+= BINDIR=${PREFIX}/bin
MAKE_ENV+= LOCDIR=${PREFIX}/share/locale
MAKE_ENV+= MANDIR=${PREFIX}/man
MAKE_ENV+= LOGDIR=/var/log/${PORTNAME}
MAKE_ENV+= CACHEDIR=/var/cache/${PORTNAME}
MAKE_ENV+= PIDFILE=/var/run/${PORTNAME}/vdradmind.pid
MAKE_ENV+= VIDEODIR=${VIDEODIR}
MAKE_ENV+= EPGIMAGES=${VIDEODIR}/epgimages
MAKE_ENV+= VDRCONF=${PREFIX}/etc/vdr
VDR_USER= vdr
VDR_GROUP= vdr
USERS= ${VDR_USER}
GROUPS= ${VDR_GROUP}
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
post-patch:
@${REINPLACE_CMD} 1s-^#!/bin/bash-#!${LOCALBASE}/bin/bash- \
${WRKSRC}/install.sh ${WRKSRC}/make.sh
do-install:
@${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d ${ETCDIR}
@${INSTALL_DATA} -m 644 ${FILESDIR}/vdradmind.conf ${ETCDIR}/vdradmind.conf.sample
@if [ ! -f ${ETCDIR}/vdradmind.conf ]; then \
${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} -m 644 ${FILESDIR}/vdradmind.conf ${ETCDIR}; \
fi
@${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d /var/cache/${PORTNAME} \
/var/log/${PORTNAME} /var/run/${PORTNAME}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./install.sh)
.include <bsd.port.mk>

2
www/vdradmin-am/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (vdr/vdradmin-am-3.6.7.tar.bz2) = 48fb4edb16f65e7f340bd57b4d205c1718e37f40d22bf3a76515812f3f45b39b
SIZE (vdr/vdradmin-am-3.6.7.tar.bz2) = 545850

View File

@ -0,0 +1,11 @@
--- a/install.sh
+++ b/install.sh
@@ -148,7 +148,7 @@ function doInstall()
makeDir $LIBDIR 1 && cp -r template lib $LIBDIR || exit 1
makeDir $BINDIR || exit 1
- makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL LGPL.txt README* REQUIREMENTS FAQ $DOCDIR || exit 1
+ [ -n $NOPORTDOCS ] && makeDir $DOCDIR && cp -r contrib COPYING CREDITS HISTORY INSTALL LGPL.txt README* REQUIREMENTS FAQ $DOCDIR || exit 1
makeDir $MANDIR/man8 && cp vdradmind.pl.1 $MANDIR/man8/vdradmind.8 || exit 1
(

View File

@ -0,0 +1,97 @@
AT_DESC = 0
AT_FUNC = 0
AT_LIFETIME = 99
AT_MARGIN_BEGIN = 10
AT_MARGIN_END = 10
AT_OFFER = 1
AT_PRIORITY = 99
AT_SENDMAIL = 0
AT_SORTBY = pattern
AT_TOOLTIP = 1
AUTO_SAVE_CONFIG = 1
CACHE_BG_UPDATE = 1
CACHE_LASTUPDATE = 1272551398
CACHE_REC_ENABLED = 1
CACHE_REC_LASTUPDATE = 1272544309
CACHE_REC_TIMEOUT = 60
CACHE_TIMEOUT = 60
CHANNELS_WANTED =
CHANNELS_WANTED_AUTOTIMER = 0
CHANNELS_WANTED_PRG = 0
CHANNELS_WANTED_PRG2 = 0
CHANNELS_WANTED_SUMMARY = 0
CHANNELS_WANTED_TIMELINE = 0
CHANNELS_WANTED_WATCHTV = 0
CHANNELS_WITHOUT_EPG = 1
CMD_LINES = 20
EPGIMAGES = /video/epgimages
EPG_PRUNE = 0
EPG_START_TIME = 00:00
EPG_SUBTITLE = 1
EPG_SUMMARY = 0
ES_DESC = 0
ES_SORTBY = pattern
GUEST_ACCOUNT = 0
GUI_POPUP_HEIGHT = 250
GUI_POPUP_WIDTH = 500
LANG =
LOCAL_NET = 0.0.0.0/32
LOGFILE = syslog
LOGGING = 0
LOGINPAGE = 0
LOGLEVEL = 4
MAIL_AUTH_PASS =
MAIL_AUTH_USER =
MAIL_FROM = autotimer@example.org
MAIL_SERVER = localhost
MAIL_TO = you@example.org
MOD_GZIP = 0
NO_EVENTID = 0
NO_EVENTID_ON =
PASSWORD = vdr
PASSWORD_GUEST = guest
PROG_SUMMARY_COLS = 3
PS_VIEW = ext
RECORDINGS = 1
REC_DESC = 0
REC_EXT = m3u
REC_MIMETYPE = video/x-mpegurl
REC_SORTBY = name
SERVERHOST = 127.1
SERVERPORT = 8001
SKIN = default
SRCH1_ACTIVE = 1
SRCH1_TITLE = Lookup movie in the Internet-Movie-Database (IMDb)
SRCH1_URL = http://akas.imdb.com/Tsearch?title=%TITLE%
SRCH2_ACTIVE = 0
SRCH2_TITLE =
SRCH2_URL =
ST_FUNC = 1
ST_LIVE_ON = 1
ST_REC_ON = 0
ST_STREAMDEV_HOST =
ST_STREAMDEV_PORT = 3000
ST_URL =
ST_VIDEODIR =
TEMPLATE = default
TIMES = 18:00, 20:00, 21:00, 22:00
TL_TOOLTIP = 1
TM_DESC = 0
TM_LIFETIME = 99
TM_MARGIN_BEGIN = 10
TM_MARGIN_END = 10
TM_PRIORITY = 99
TM_SORTBY = day
TM_TT_LIST = 1
TM_TT_TIMELINE = 1
TV_EXT = m3u
TV_INTERVAL = 5
TV_MIMETYPE = video/x-mpegurl
TV_SIZE = half
USERNAME = vdr
USERNAME_GUEST = guest
VDRCONFDIR = /usr/local/etc/vdr
VDR_HOST = localhost
VDR_PORT = 6419
VIDEODIR = /video
ZEITRAHMEN = 1

View File

@ -0,0 +1,25 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: vdradmind
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable vdradmin_am:
#
# vdradmind_enable="YES"
. /etc/rc.subr
name=vdradmind
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/vdradmind"
pidfile="/var/run/vdradmin_am/${name}.pid"
load_rc_config ${name}
: ${vdradmind_enable="NO"}
: ${vdradmind_user="vdr"}
run_rc_command "$1"

View File

@ -0,0 +1,5 @@
http://www.vdr-wiki.de/wiki/index.php/Vdradmin_AM
VDRAdmin-AM is a web based interface to VDR.
WWW: http://andreas.vdr-developer.org/vdradmin-am/

179
www/vdradmin-am/pkg-plist Normal file
View File

@ -0,0 +1,179 @@
bin/vdradmind
@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d %%ETCDIR%%
@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
%%ETCDIR%%/vdradmind.conf.sample
@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
share/vdradmin-am/lib/MIME/Base64.pm
share/vdradmin-am/lib/Template/Plugin/Date.pm
share/vdradmin-am/lib/Template/Plugin/HTML.pm
share/vdradmin-am/lib/Template/Plugin/JavaScript.pm
share/vdradmin-am/lib/Template/Namespace/Constants.pm
share/vdradmin-am/lib/Template/Stash/XS.pm
share/vdradmin-am/lib/Template/Stash/Context.pm
share/vdradmin-am/lib/Template/Directive.pm
share/vdradmin-am/lib/Template/View.pm
share/vdradmin-am/lib/Template/Stash.pm
share/vdradmin-am/lib/Template/Plugin.pm
share/vdradmin-am/lib/Template/Iterator.pm
share/vdradmin-am/lib/Template/Provider.pm
share/vdradmin-am/lib/Template/Constants.pm
share/vdradmin-am/lib/Template/Config.pm
share/vdradmin-am/lib/Template/Context.pm
share/vdradmin-am/lib/Template/Grammar.pm
share/vdradmin-am/lib/Template/Service.pm
share/vdradmin-am/lib/Template/Base.pm
share/vdradmin-am/lib/Template/Parser.pm
share/vdradmin-am/lib/Template/Exception.pm
share/vdradmin-am/lib/Template/Document.pm
share/vdradmin-am/lib/Template/Plugins.pm
share/vdradmin-am/lib/Template/Filters.pm
share/vdradmin-am/lib/Template/Test.pm
share/vdradmin-am/lib/File/Temp.pm
share/vdradmin-am/lib/URI/Escape.pm
share/vdradmin-am/lib/Template.pm
share/vdradmin-am/template/default/default/fern_33.jpg
share/vdradmin-am/template/default/default/fern_36.jpg
share/vdradmin-am/template/default/default/fern_32.jpg
share/vdradmin-am/template/default/default/delete.png
share/vdradmin-am/template/default/default/edit.png
share/vdradmin-am/template/default/default/pfeile_nachlinks_soft.png
share/vdradmin-am/template/default/default/fern_13.jpg
share/vdradmin-am/template/default/default/cut.png
share/vdradmin-am/template/default/default/play.png
share/vdradmin-am/template/default/default/imdb.png
share/vdradmin-am/template/default/default/fern_mute.jpg
share/vdradmin-am/template/default/default/configure.png
share/vdradmin-am/template/default/default/rec_button.png
share/vdradmin-am/template/default/default/fern_05.jpg
share/vdradmin-am/template/default/default/folder_video.png
share/vdradmin-am/template/default/default/fern_12.jpg
share/vdradmin-am/template/default/default/fern_48.jpg
share/vdradmin-am/template/default/default/fern_10.jpg
share/vdradmin-am/template/default/default/fern_31.jpg
share/vdradmin-am/template/default/default/fern_09.jpg
share/vdradmin-am/template/default/default/fern_23.jpg
share/vdradmin-am/template/default/default/noise.gif
share/vdradmin-am/template/default/default/rec.gif
share/vdradmin-am/template/default/default/fern_40.jpg
share/vdradmin-am/template/default/default/fern_46.jpg
share/vdradmin-am/template/default/default/close.png
share/vdradmin-am/template/default/default/fern_47.jpg
share/vdradmin-am/template/default/default/view.png
share/vdradmin-am/template/default/default/fern_24.jpg
share/vdradmin-am/template/default/default/fern_back.jpg
share/vdradmin-am/template/default/default/pfeile_nachrechts.png
share/vdradmin-am/template/default/default/fern_06.jpg
share/vdradmin-am/template/default/default/pfeile_nachrechts_soft.png
share/vdradmin-am/template/default/default/fern_25.jpg
share/vdradmin-am/template/default/default/fern_43.jpg
share/vdradmin-am/template/default/default/fern_28.jpg
share/vdradmin-am/template/default/default/sortiert_desc.gif
share/vdradmin-am/template/default/default/sum_find.png
share/vdradmin-am/template/default/default/fern_11.jpg
share/vdradmin-am/template/default/default/info_button_disabled.png
share/vdradmin-am/template/default/default/fern_41.jpg
share/vdradmin-am/template/default/default/poempl_gelb.png
share/vdradmin-am/template/default/default/pfeile_nachlinks.png
share/vdradmin-am/template/default/default/sortiert_asc.gif
share/vdradmin-am/template/default/default/fern_42.jpg
share/vdradmin-am/template/default/default/help.png
share/vdradmin-am/template/default/default/fern_22.jpg
share/vdradmin-am/template/default/default/fern_03.jpg
share/vdradmin-am/template/default/default/tv_bottom.gif
share/vdradmin-am/template/default/default/fern_18.jpg
share/vdradmin-am/template/default/default/poempl_rot.png
share/vdradmin-am/template/default/default/udef_search.png
share/vdradmin-am/template/default/default/logo.png
share/vdradmin-am/template/default/default/aktion.png
share/vdradmin-am/template/default/default/fern_15.jpg
share/vdradmin-am/template/default/default/fern_08.jpg
share/vdradmin-am/template/default/default/fern_19.jpg
share/vdradmin-am/template/default/default/fern_39.jpg
share/vdradmin-am/template/default/default/poempl_grau.png
share/vdradmin-am/template/default/default/fern_07.jpg
share/vdradmin-am/template/default/default/poempl_gruen.png
share/vdradmin-am/template/default/default/info_button.png
share/vdradmin-am/template/default/default/fern_44.jpg
share/vdradmin-am/template/default/default/fern_45.jpg
share/vdradmin-am/template/default/default/stream.png
share/vdradmin-am/template/default/default/find.png
share/vdradmin-am/template/default/default/spacer.gif
share/vdradmin-am/template/default/error.html
share/vdradmin-am/template/default/timer_list.html
share/vdradmin-am/template/default/help_rec_list.html
share/vdradmin-am/template/default/prog_list2.html
share/vdradmin-am/template/default/at_timer_new.html
share/vdradmin-am/template/default/navigation.html
share/vdradmin-am/template/default/favicon.ico
share/vdradmin-am/template/default/prog_timeline.html
share/vdradmin-am/template/default/at_timer_list.html
share/vdradmin-am/template/default/help_at_timer_list.html
share/vdradmin-am/template/default/help_edit_epg.html
share/vdradmin-am/template/default/timeline.js
share/vdradmin-am/template/default/help_at_timer_new.html
share/vdradmin-am/template/default/prog_detail_form.html
share/vdradmin-am/template/default/vdr_cmds.html
share/vdradmin-am/template/default/config.html
share/vdradmin-am/template/default/epgsearch_new.html
share/vdradmin-am/template/default/prog_list.html
share/vdradmin-am/template/default/index.html
share/vdradmin-am/template/default/rc.html
share/vdradmin-am/template/default/timer_new.html
share/vdradmin-am/template/default/noauth.html
share/vdradmin-am/template/default/infobox.js
share/vdradmin-am/template/default/rec_list.html
share/vdradmin-am/template/default/tv.html
share/vdradmin-am/template/default/prog_summary.html
share/vdradmin-am/template/default/about.html
share/vdradmin-am/template/default/rec_edit.html
share/vdradmin-am/template/default/noperm.html
share/vdradmin-am/template/default/epgsearch_config.html
share/vdradmin-am/template/default/prog_detail.html
share/vdradmin-am/template/default/help_timer_list.html
share/vdradmin-am/template/default/library.js
share/vdradmin-am/template/default/help_timer_new.html
share/vdradmin-am/template/default/help_no.html
share/vdradmin-am/template/default/help_config.html
share/vdradmin-am/template/default/style.css
share/vdradmin-am/template/default/epgsearch_list.html
share/vdradmin-am/template/default/prog_summary2.html
%%PORTDOCS%%%%DOCSDIR%%/contrib/README.Streaming
%%PORTDOCS%%%%DOCSDIR%%/contrib/user.css.example
%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.macfly
%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY
%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.bigpatch
%%PORTDOCS%%%%DOCSDIR%%/contrib/HISTORY.ct
%%PORTDOCS%%%%DOCSDIR%%/contrib/vdradmind.bl_example
%%PORTDOCS%%%%DOCSDIR%%/REQUIREMENTS
%%PORTDOCS%%%%DOCSDIR%%/README.translators
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/LGPL.txt
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/HISTORY
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
share/locale/cs/LC_MESSAGES/vdradmin.mo
share/locale/de/LC_MESSAGES/vdradmin.mo
share/locale/es/LC_MESSAGES/vdradmin.mo
share/locale/fi/LC_MESSAGES/vdradmin.mo
share/locale/fr/LC_MESSAGES/vdradmin.mo
share/locale/it/LC_MESSAGES/vdradmin.mo
share/locale/nl/LC_MESSAGES/vdradmin.mo
share/locale/ru/LC_MESSAGES/vdradmin.mo
@exec /usr/bin/install -o %%VDR_USER%% -g %%VDR_GROUP%% -d /var/cache/vdradmin-am /var/log/vdradmin-am /var/run/vdradmin-am
@dirrmtry %%ETCDIR%%
@dirrm share/vdradmin-am/lib/MIME
@dirrm share/vdradmin-am/lib/File
@dirrm share/vdradmin-am/lib/URI
@dirrm share/vdradmin-am/lib/Template/Plugin
@dirrm share/vdradmin-am/lib/Template/Namespace
@dirrm share/vdradmin-am/lib/Template/Stash
@dirrm share/vdradmin-am/lib/Template
@dirrm share/vdradmin-am/lib
@dirrm share/vdradmin-am/template/default/default
@dirrm share/vdradmin-am/template/default
@dirrm share/vdradmin-am/template
@dirrm share/vdradmin-am
%%PORTDOCS%%@dirrm %%DOCSDIR%%/contrib
%%PORTDOCS%%@dirrm %%DOCSDIR%%