summaryrefslogtreecommitdiff
path: root/www-misc/xxv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-misc/xxv
reinit the tree, so we can have metadata
Diffstat (limited to 'www-misc/xxv')
-rw-r--r--www-misc/xxv/Manifest8
-rw-r--r--www-misc/xxv/files/xxv.utf8-v5100
-rw-r--r--www-misc/xxv/files/xxvd-1.0.cfg162
-rw-r--r--www-misc/xxv/files/xxvd-logrotate26
-rw-r--r--www-misc/xxv/metadata.xml19
-rw-r--r--www-misc/xxv/xxv-1.6.1-r1.ebuild190
6 files changed, 505 insertions, 0 deletions
diff --git a/www-misc/xxv/Manifest b/www-misc/xxv/Manifest
new file mode 100644
index 000000000000..a112a53864ed
--- /dev/null
+++ b/www-misc/xxv/Manifest
@@ -0,0 +1,8 @@
+AUX xxv.utf8-v5 2006 SHA256 29276ffecfe81323c9f883e3eeb900a6dd218604b5168498e4fbe909691f5ddd SHA512 049045e65f653701e4642cadce259eb73855f2a13364d89a8d0f4b08e41d1feac3096d9e339398add4587a0d6ca9be86051f7c7fa0d30b8807c0b1d2b0871a29 WHIRLPOOL 32f36c4d03643c4805f3d6551372f0b22ab647550e295ddee9701e591a5f118ec185b438d542a277a5a64b3eb1526e0a0f050745a848ff3fb9d4e83861e31317
+AUX xxvd-1.0.cfg 2257 SHA256 a49c7c402e8c9990f84e8b3ae5207559f9dd9262075b5ab0606058ff08061016 SHA512 b1507123e680b7766e07a1d45234f2769dc1bedb0a8a2eceb9162c82fb5f888c2963f9f432c6de4591da047ba48ac3ade1e2b0c67ddb7ed86d761fbb4f948646 WHIRLPOOL 9e0c81095841862686b8518fbdb394ffc19e1e7661cfa7c54bb625db234749781f2778f6f89f1ec06db040416a4103ab36c59867ecbc32a03f976eb6cdd8cd89
+AUX xxvd-logrotate 367 SHA256 bdbbd18a42a7706b096f61a132db6c6c7bd4f5403cb18da9433fc03e190d9901 SHA512 b10918d478a42f90a9f24e3b358fc8af7fd8366146a42291ea6c5bed258414d834348dd58688f260aecc69c4f76af362c881ebd5a4abef52c1244310a8751c0e WHIRLPOOL 7c261dd2d18435d8c96dedddc0a6f47cba10cb105a9206ada61d584cc5d5386b7f559f3ba99a3d4c58ea490d384a5cb2eb5299b5f00327f970827c26c6e35d38
+DIST xxv-1.6.1.tgz 992065 SHA256 14288f7fb4c16c536e0c861b4f213bc1a7bf19e036b6d37777989acaa9b82643 SHA512 e5171ea02d00d7c07d0faf5361a5261bf882d3c5a996b864593216a941c35f823b09431579341f43cf75f87dd42a1635275e8a24b393d407c83c7eb299095566 WHIRLPOOL 5cf598c7bb688ff143e74cf9f6047c3f7f05a6ddf200708d7b5f8c05cf19b917ac2a790440a850e3b131e374c2263704f2560e024c531fbcdd93851d019806c1
+EBUILD xxv-1.6.1-r1.ebuild 4665 SHA256 616bfbc4264bbecbdbebdd9f9f2fc3a06f092c899ea230ab09ef0a9121d763da SHA512 41dcf75b7ffffaab12dc49a94fdacf44ec8ca52dd16b8d122725ac1a96f4eab3bf7c2362722ad8501bf49b93397e76f1f1da5e4721a5542ae84be322cb34a5f6 WHIRLPOOL c1867362f5f6c9b7966fbc43d047e68cdafb3d7fc6f0ec2b20a84b3754286efc3d88db1449947f1229cfc47df980664e19f851544cf6614ef013fe96b3d3a4ba
+MISC ChangeLog 3214 SHA256 f2fc5a4df704d62296fd280c1c523ded6a14ab1e5e96665d7e467c736afaa55d SHA512 1e12a20b1165bd3410165eae6452b59bb9d401d461e84f2c139c407cf66e902373b6433d9ea19e9678a8c27f85a17f3873f4c689202b2511c17c543b9a48972f WHIRLPOOL 4d4664b0c8fdbf9e4c6cd64f32a09199929252e02e948776b17b24c7084dd9fb65726b36e9e2f04b49d4576cd6c9d48c9d3a3599dae2623fc2063c593f5045e7
+MISC ChangeLog-2015 6630 SHA256 70b0276c5fa7eb154d9a767b0b0cfc2d39c5aaaf4328ea4a30cf48856cf6660c SHA512 9fc73099c83a789e92c97f712d9b5642de9aad94d4703050ff4e2d46266ebb833e1be9775ebb272335d9db0f5b916960aa369a376645c3612ee846a15502e888 WHIRLPOOL 390eed6e7529628195e0e6e2e1c9ba66ff8b8d8521f0c3b37e70b7b4dac4eaf9cb8fad5354c8283570f821397bf126d694236067e39c4383b1f536ade6b026d6
+MISC metadata.xml 599 SHA256 6e0f74a1ec47af5938fb4dced9fca17a5bd4a0e2888067333d5f91457967f8ad SHA512 840993092f3f752b59ec9c2a8401c3befad44463116b6febc0692e06a8e781238f19e84a0112c15b9e96e3c4c1a75344c34697c6c8590f657f50a6deeb9e7e8c WHIRLPOOL ca8ce13222997c827c4b9e7c69f6d6f1b4d6919b88b933de98aaaccd3b3517ab41d9fd8c563d4a4299ca4ff92fea05c2be81308bb12fb7fdc1543140dc7521fd
diff --git a/www-misc/xxv/files/xxv.utf8-v5 b/www-misc/xxv/files/xxv.utf8-v5
new file mode 100644
index 000000000000..1a6880c7aacd
--- /dev/null
+++ b/www-misc/xxv/files/xxv.utf8-v5
@@ -0,0 +1,100 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+RUNAS_USER="vdr"
+
+# Set Verbose Level 0 -> 5
+VERBOSE="1"
+
+#export LANG=de_DE.utf8
+
+depend() {
+ need vdr
+}
+
+# some fixed Path
+CONFIGFILE="/etc/xxv/xxvd.cfg"
+PIDFILE="/var/run/xxv/xxvd.pid"
+XXV_BIN="/usr/bin/xxvd"
+LOGFILE="/var/log/xxv/xxvd.log"
+
+xxv_logger() {
+ printf "\tXXV running as user: ${RUNAS_USER}\n" >> "${LOGFILE}"
+ printf "\tVerbose Level: ${VERBOSE}\n" >> "${LOGFILE}"
+ printf "\tYou can change this in xxv init script\n\n" >> "${LOGFILE}"
+}
+
+check_vdradmin() {
+
+ # Check at first, is VDR-Admin running
+ # Stopping, while running on same ports
+ if [ -n "`netstat -anp | grep vdradmin | grep 8080`" ] ; then
+ echo
+ eerror "VDR-Admin will Stop at first now"
+ eerror "vdradmin and xxv can not run on the same port"
+ echo
+ /etc/init.d/vdradmin stop
+ fi
+}
+
+xxv_kill_pid() {
+
+ # After unclear stop, xxvd.pid will not removed, fixed with next line
+ if [ ! -x /etc/init.d/root ]; then
+ if [ -e ${PIDFILE} -a ! -L /var/lib/init.d/started/xxv ]; then
+ rm ${PIDFILE}
+ killall xxvd 2> /dev/null
+ fi
+ fi
+
+}
+
+xxv_kill_initfile() {
+
+ # After unclear stop, init file in /var/lib/init.d/started/ still not removed
+
+ if [ ! -x /etc/init.d/root ]; then
+ if [ -L /var/lib/init.d/started/xxv -a ! -e ${PIDFILE} ]; then
+ rm /var/lib/init.d/started/xxv
+ /etc/init.d/xxv zap
+ killall xxvd 2> /dev/null
+ fi
+ fi
+
+}
+
+start() {
+ check_vdradmin
+ xxv_logger
+
+ ebegin "Start xxv"
+ echo
+ einfo "xxv running as user: ${RUNAS_USER}"
+ einfo "Verbose Level: ${VERBOSE}"
+
+ start-stop-daemon --nicelevel 15 --pidfile ${PIDFILE} --start -u ${RUNAS_USER} --exec ${XXV_BIN} -- \
+ -configfile=${CONFIGFILE} -verbose=${VERBOSE} -pidfile=${PIDFILE}
+ eend $?
+}
+
+
+stop() {
+
+ ebegin "Stopping xxvd"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+
+ xxv_kill_pid
+ xxv_kill_initfile
+
+ eend $?
+}
+
+#restart() {
+
+# xxv_kill_pid
+# xxv_kill_initfile
+
+# svc_stop
+# svc_start
+#}
diff --git a/www-misc/xxv/files/xxvd-1.0.cfg b/www-misc/xxv/files/xxvd-1.0.cfg
new file mode 100644
index 000000000000..b18f899ba581
--- /dev/null
+++ b/www-misc/xxv/files/xxvd-1.0.cfg
@@ -0,0 +1,162 @@
+[AUTOTIMER]
+active=y
+exclude=POS > 250
+interval=300
+
+[CHANNELS]
+empty=n
+file=/etc/vdr/channels.conf
+filterCA=0,1,2,3,4
+interval=300
+stripCH=short,long;provider
+
+[EPG]
+epgfile=/var/vdr/epg.data
+epgimages=/var/vdr/video/epgimages
+interval=300
+periods=12:00,18:00,20:20,22:00,23:00,00:00,02:00,04:00
+restart=3
+timeframe=2
+
+[GRAB]
+file=/tmp/live.jpg
+font=VeraBI.ttf
+imgfontsize=12
+imgquality=90
+imgtext=[?- i = channel.split(" ") -?][[? i.shift ?]] [? i.join(" ") ?]: [? event.Title ?]
+vpos=20
+xsize=480
+ysize=360
+
+[General]
+DSN=DBI:mysql:database=xxv;host=localhost;port=3306
+Language=de_DE
+PWD=xpix97
+USR=xpix
+initscript=/etc/init.d/xxv
+
+[HTTPD]
+Clients=1000
+HtmlRoot=html
+Port=8080
+StartPage=schema
+active=y
+
+[INTERFACE]
+Clients=5
+Port=8002
+active=y
+
+[LOGREAD]
+active=y
+rows=100
+syslog=/var/log/syslog
+tail=/usr/bin/tail
+
+[MUSIC]
+active=y
+clients=5
+coverimages=/var/cache/xxv/cover
+host=192.168.0.23
+path=/var/lib/video.00/MUSIC
+port=8100
+proxy=
+
+[NEWS::JABBER]
+active=n
+level=1
+passwd=password
+receiveUser=receiveUser@jabber.org
+user=newsxxv@jabber.org
+
+[NEWS::MAIL]
+active=n
+address=xxv@example.com
+interval=6
+level=1
+smtp=smtp.googlemail.com
+spwd=password
+susr=user
+
+[NEWS::RSS]
+active=y
+level=1
+
+[NEWS::VDR]
+active=y
+level=1
+
+[RECORDS]
+commandfile=/etc/vdr/reccmds.conf
+interval=600
+previewbinary=/usr/bin/vdr2jpeg
+previewcommand=vdr2jpeg
+previewcount=3
+previewimages=/var/cache/xxv/preview
+previewlistthumbs=n
+previewlog=/var/log/xxv/xxvd_mplayer.log
+vfat=n
+videodir=/var/vdr/video
+
+[REMOTE]
+active=y
+commands=/etc/vdr/commands.conf
+
+[REPORT]
+active=y
+host=www.dyndns.org
+interval=6
+
+[ROBOT]
+active=y
+interval=3600
+
+[STATUS]
+active=y
+dfBinary=/bin/df
+font=VeraBI.ttf
+history=1
+interval=15
+wcBinary=/usr/bin/wc
+whoBinary=/usr/bin/who
+
+[STREAM]
+host=192.168.0.23
+netvideo=\\192.168.0.23\video
+
+[SVDRP]
+VdrHost=localhost
+VdrPort=2001
+
+[TELNET]
+Clients=5
+Port=8001
+active=y
+
+[TIMERS]
+DVBCards=1
+Lifetime=50
+Priority=50
+afterminutes=5
+deactive=y
+file=/etc/vdr/timers.conf
+interval=300
+prevminutes=1
+
+[USER]
+active=y
+noAuth=192.168.0.0/24, 127.0.0.1/32
+tempimages=/var/cache/xxv/temp
+withAuth=192.168.1.0/24
+
+[VTX]
+active=y
+cache=packed
+dir=/var/cache/vdr/vtx
+vtximages=./share/vtx
+
+[WAPD]
+Clients=5
+Port=8085
+WMLRoot=/usr/share/xxv-0.91_pre1126/wml
+active=y
diff --git a/www-misc/xxv/files/xxvd-logrotate b/www-misc/xxv/files/xxvd-logrotate
new file mode 100644
index 000000000000..da5bf2627a93
--- /dev/null
+++ b/www-misc/xxv/files/xxvd-logrotate
@@ -0,0 +1,26 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+/var/log/xxv/xxvd.log {
+ compress
+ daily
+ dateext
+ maxage 365
+ rotate 99
+ size=+4096k
+ notifempty
+ missingok
+ copytruncate
+}
+
+/var/log/xxv/xxvd_mplayer.log {
+ compress
+ daily
+ dateext
+ maxage 365
+ rotate 99
+ size=+4096k
+ notifempty
+ missingok
+ copytruncate
+}
diff --git a/www-misc/xxv/metadata.xml b/www-misc/xxv/metadata.xml
new file mode 100644
index 000000000000..974f0802cc90
--- /dev/null
+++ b/www-misc/xxv/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
+ <longdescription lang="en">
+ To program and steer central service over a Browser the VDR
+ </longdescription>
+ <longdescription lang="de">
+ Zentraler Dienst um ueber einen Browser den VDR zu programmiern
+ und zu steuern.
+ </longdescription>
+ <use>
+ <flag name="themes">Enable more themes via
+ <pkg>x11-themes/xxv-skins</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/www-misc/xxv/xxv-1.6.1-r1.ebuild b/www-misc/xxv/xxv-1.6.1-r1.ebuild
new file mode 100644
index 000000000000..201fd74841e1
--- /dev/null
+++ b/www-misc/xxv/xxv-1.6.1-r1.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils versionator
+
+VERSION="718" # every bump, new version
+
+DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)"
+HOMEPAGE="http://projects.vdr-developer.org/projects/xxv"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
+ mirror://gentoo/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="-mplayer themes"
+
+RDEPEND=">=media-video/vdr-1.2.6
+ media-video/vdr2jpeg
+ media-fonts/corefonts
+ virtual/mysql
+ dev-perl/CGI
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-MIME-Base64
+ virtual/perl-Time-HiRes
+ virtual/perl-IO-Compress
+ dev-perl/Config-Tiny
+ dev-perl/Date-Manip
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/Digest-HMAC
+ dev-perl/Encode-Detect
+ dev-perl/Event
+ dev-perl/Font-TTF
+ dev-perl/GD[png,gif]
+ dev-perl/IO-Socket-INET6
+ dev-perl/JSON
+ dev-perl/JSON-XS
+ dev-perl/Linux-Inotify2
+ dev-perl/Locale-gettext
+ dev-perl/MP3-Info
+ dev-perl/Net-Amazon
+ dev-perl/Net-Telnet
+ dev-perl/Net-XMPP
+ dev-perl/Proc-ProcessTable
+ dev-perl/SOAP-Lite
+ dev-perl/txt2html
+ dev-perl/Template-GD
+ dev-perl/Template-Toolkit
+ dev-perl/XML-RSS
+ themes? ( >=x11-themes/${PN}-skins-1.6 )"
+
+PDEPEND="mplayer? ( media-video/mplayer )"
+
+SHAREDIR="/usr/share/${PN}"
+LIBDIR="/usr/lib/${PN}"
+
+DB_VERS="32"
+
+db_update_check() {
+
+ DB_VERS_OLD="`cat /var/db/pkg/www-misc/xxv-*/xxv-*.ebuild | grep DB_VERS | head -n 1 | cut -c10-11`"
+
+ if [ "${DB_VERS_OLD}" -lt "${DB_VERS}" ]; then
+ echo
+ elog "An update of the XXV Database is necessary !!!"
+ echo
+ elog "\tcd ${SHAREDIR}/contrib"
+ echo
+ elog "\tIt is really important to edit the create-database.sql file first"
+ elog "\tdue to UTF-8 Support changes in the MySQL DB !!!"
+ echo
+ elog "\tafter this run ./update-xxv -h for more info"
+ echo
+ else
+ echo
+ elog "If this is a new install"
+ elog "You have to create an empty DB for XXV"
+ echo
+ elog "do this by:"
+ elog "cd ${SHAREDIR}/contrib"
+ eerror "read the README"
+ elog "For UTF-8 support it is really important to"
+ elog "edit create-database.sql file first and run"
+ elog "emerge --config ${PN}"
+ elog "afterwards"
+ echo
+ elog "Set your own language in"
+ elog "${SHAREDIR}/locale"
+ echo
+ elog "The default user/password is:"
+ elog "User/Password: xxv:xxv"
+ elog "You should change it immediately!"
+ echo
+ eerror "edit /etc/xxv/xxvd.cfg !"
+ fi
+}
+
+pkg_setup() {
+
+ if ! has_version "www-misc/${PN}"; then
+ echo
+ einfo "After you install xxv the very first time you should consider to read"
+ einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv (German only)"
+ echo
+ fi
+
+ db_update_check
+}
+
+src_prepare() {
+
+ sed -i "${S}"/bin/xxvd \
+ -e "s:debian:Gentoo:" \
+ -e "s:/var/log/xxvd.log:/var/log/xxv/xxvd.log:" \
+ -e "s:/var/run/xxvd.pid:/var/run/xxv/xxvd.pid:" \
+ -e "s:\$RealBin/../lib:${LIBDIR}:" \
+ -e "s:\$RealBin/../locale:${SHAREDIR}/locale:" \
+ -e "s:\$RealBin/../lib/XXV/MODULES:${LIBDIR}/XXV/MODULES:" \
+ -e "s:\$RealBin/../etc/xxvd.cfg:/etc/xxv/xxvd.cfg:" \
+ -e "s:\$RealBin/../doc:/usr/share/doc/${P}:" \
+ -e "s:HTMLDIR => \"\$RealBin/../:HTMLDIR => \"${SHAREDIR}/skins:" \
+ -e "s:\$RealBin/../share/vtx:${SHAREDIR}/vtx:" \
+ -e "s:\$Real Bin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \
+ -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \
+ -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \
+ -e "s:\$RealBin/../share/fonts/ttf-bitstream-vera:/usr/share/fonts/corefonts:" \
+ -e "s:\$RealBin/../share/xmltv:${SHAREDIR}/xmltv:"
+
+ sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl
+}
+
+src_install() {
+
+ newinitd "${FILESDIR}"/xxv.utf8-v5 xxv
+
+ dobin bin/xxvd
+
+ insinto /etc/"${PN}"
+ newins "${FILESDIR}"/xxvd-1.0.cfg xxvd.cfg
+ chown vdr:vdr "${D}"/etc/"${PN}"/xxvd.cfg
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/xxvd-logrotate xxvd
+
+ diropts -m755 -ovdr -gvdr
+ keepdir /var/cache/xxv
+ keepdir /var/run/xxv
+ keepdir /var/log/xxv
+
+ insinto "${LIBDIR}"
+ doins -r "${S}"/lib/*
+
+ insinto "${SHAREDIR}"
+ doins -r "${S}"/share/{news,xmltv}
+
+ insinto "${SHAREDIR}"/locale
+ doins -r "${S}"/locale/*
+ fperms 0755 "${SHAREDIR}"/locale/xgettext.pl
+
+ insinto "${SHAREDIR}"/contrib
+ doins -r "${S}"/contrib/*
+ fperms 0755 "${SHAREDIR}"/contrib/update-xxv
+
+ insinto "${SHAREDIR}"/skins
+ doins -r "${S}"/{html,wml}
+ doins "${S}"/doc/docu.tmpl
+
+ cd "${S}"/doc
+ insinto /usr/share/doc/"${P}"
+ doins docu.tmpl CHANGELOG README
+ fowners vdr:vdr /usr/share/doc/"${P}"
+
+ doman xxvd.1
+}
+
+pkg_config() {
+
+ cd "${ROOT}"/"${SHAREDIR}"
+ cat ./contrib/create-database.sql | mysql -u root -p
+}
+
+pkg_postrm() {
+
+ einfo "Cleanup for old "${P}" files"
+ rm -r /usr/share/doc/"${P}"
+}