diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2009-04-11 23:02:00 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2009-04-11 23:02:00 +0000 |
commit | f5a7295b218a34fc6f25bbc95fa8132ed56db45a (patch) | |
tree | dc026bd9a3ca22cd6f05be5d929df21a39890c17 /www-misc | |
parent | Add KDE 4.2.2 (diff) | |
download | gentoo-2-f5a7295b218a34fc6f25bbc95fa8132ed56db45a.tar.gz gentoo-2-f5a7295b218a34fc6f25bbc95fa8132ed56db45a.tar.bz2 gentoo-2-f5a7295b218a34fc6f25bbc95fa8132ed56db45a.zip |
packed moved net-www/xxv - www-misc/xxv #265569
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'www-misc')
-rw-r--r-- | www-misc/xxv/ChangeLog | 88 | ||||
-rw-r--r-- | www-misc/xxv/files/xxv | 87 | ||||
-rw-r--r-- | www-misc/xxv/files/xxv-1.0-logerror.patch | 29 | ||||
-rw-r--r-- | www-misc/xxv/files/xxv.utf8-v2 | 99 | ||||
-rw-r--r-- | www-misc/xxv/files/xxvd-1.0.cfg | 162 | ||||
-rw-r--r-- | www-misc/xxv/files/xxvd-logrotate | 27 | ||||
-rw-r--r-- | www-misc/xxv/metadata.xml | 20 | ||||
-rw-r--r-- | www-misc/xxv/xxv-1.0.1-r1.ebuild | 188 | ||||
-rw-r--r-- | www-misc/xxv/xxv-1.2-r1.ebuild | 186 | ||||
-rw-r--r-- | www-misc/xxv/xxv-1.2.1402.ebuild | 182 |
10 files changed, 1068 insertions, 0 deletions
diff --git a/www-misc/xxv/ChangeLog b/www-misc/xxv/ChangeLog new file mode 100644 index 000000000000..230e005a0466 --- /dev/null +++ b/www-misc/xxv/ChangeLog @@ -0,0 +1,88 @@ +# ChangeLog for net-www/xxv +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/ChangeLog,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + + 11 Apr 2009; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/xxv-1.0-logerror.patch, +files/xxvd-1.0.cfg, +files/xxv, + +files/xxv.utf8-v2, +files/xxvd-logrotate, +metadata.xml, + +xxv-1.0.1-r1.ebuild, +xxv-1.2-r1.ebuild, +xxv-1.2.1402.ebuild: + packed moved net-www/xxv - www-misc/xxv #265569 + +*xxv-1.2.1402 (06 Apr 2009) + + 06 Apr 2009; Joerg Bornkessel <hd_brummy@gentoo.org> -files/xxv.utf8, + +files/xxv.utf8-v2, -xxv-1.2.1359.ebuild, -xxv-1.2.1383.ebuild, + +xxv-1.2.1402.ebuild: + new (unmasked) snapshot; utf-8 support; cleanup hardmasked versions + + 05 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> -xxv-1.2.1308.ebuild, + -xxv-1.2.1315.ebuild: + cleanup next try + +*xxv-1.2.1383 (05 Jan 2009) + + 05 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/xxv.utf8, + xxv-1.0.1-r1.ebuild, xxv-1.2-r1.ebuild, +xxv-1.2.1383.ebuild: + new test snap, new utf8 initscript, cleanup, fixed src_uri to berlios + mirror + + 18 Nov 2008; Torsten Veller <tove@gentoo.org> xxv-1.0.1-r1.ebuild, + xxv-1.2-r1.ebuild, xxv-1.2.1308.ebuild, xxv-1.2.1315.ebuild, + xxv-1.2.1359.ebuild: + New virtuals: Compress-Zlib + +*xxv-1.2.1359 (27 Oct 2008) + + 27 Oct 2008; Joerg Bornkessel <hd_brummy@gentoo.org> +xxv-1.2.1359.ebuild: + svn 1359 snapshot added, masked by package.mask + + 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + +*xxv-1.2.1315 (24 Mar 2008) + + 24 Mar 2008; Joerg Bornkessel <hd_brummy@gentoo.org> +xxv-1.2.1315.ebuild: + svn snapshot r1315 added for testing utf8 handling, masked by package.mask + +*xxv-1.2.1308 (11 Mar 2008) + + 11 Mar 2008; Joerg Bornkessel <hd_brummy@gentoo.org> +files/xxv.utf8, + +xxv-1.2.1308.ebuild: + svn snapshot r1308 added for testing utf8 handling, masked by package.mask + +*xxv-1.2-r1 (01 Mar 2008) + + 01 Mar 2008; Joerg Bornkessel <hd_brummy@gentoo.org> -xxv-1.0.ebuild, + -xxv-1.0.1.ebuild, xxv-1.0.1-r1.ebuild, -xxv-1.2.ebuild, + +xxv-1.2-r1.ebuild: + clean up; moved perl-core to virtual stuff, bug 211623 + +*xxv-1.2 (24 Feb 2008) + + 24 Feb 2008; Joerg Bornkessel <hd_brummy@gentoo.org> +xxv-1.2.ebuild: + version bump + +*xxv-1.0.1-r1 (05 Dec 2007) + + 05 Dec 2007; Joerg Bornkessel <hd_brummy@gentoo.org> +xxv-1.0.1-r1.ebuild: + Version include new use-flag themes; this will support an extra package with + more skins + + 03 Dec 2007; Joerg Bornkessel <hd_brummy@gentoo.org> xxv-1.0.1.ebuild: + added missing perl modul + + 03 Dec 2007; Joerg Bornkessel <hd_brummy@gentoo.org> xxv-1.0.1.ebuild: + fixed/updated perl modul depencies + +*xxv-1.0.1 (02 Dec 2007) + + 02 Dec 2007; Joerg Bornkessel <hd_brummy@gentoo.org> +xxv-1.0.1.ebuild: + version bump + +*xxv-1.0 (11 Nov 2007) + + 11 Nov 2007; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/xxv-1.0-logerror.patch, +files/xxvd-1.0.cfg, +files/xxv, + +files/xxvd-logrotate, +metadata.xml, +xxv-1.0.ebuild: + initial ebuild; find older versions on overlay vdr-testing + diff --git a/www-misc/xxv/files/xxv b/www-misc/xxv/files/xxv new file mode 100644 index 000000000000..97560fd8ac1d --- /dev/null +++ b/www-misc/xxv/files/xxv @@ -0,0 +1,87 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/files/xxv,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +RUNAS_USER="vdr" + +# some fixed Path +CONFIGFILE="/etc/xxv/xxvd.cfg" +PIDFILE="/var/run/xxv/xxvd.pid" +XXV_BIN="/usr/bin/xxvd" + +LANGUAGE="de_DE" + +# Set Verbose Level 0 -> 5 +VERBOSE="3" + +#set -xv + +depend() { + need vdr + after net +} + +kill_vdradmin() { + + # Check at first, is VDR-Admin running + # Stopping, while running on same ports + # You can comment the next 4 Lines if you running VDR-Admind on different Ports + if [ -f /var/run/vdradmind.pid ] ; then + ebegin "VDR-Admin will Stop at first now" + /etc/init.d/vdradmind stop + fi +} + +xxv_kill_pid() { + + # After unclear stop, xxvd.pid will not removed, fixed with next line + if [ -e ${PIDFILE} -a ! -L /var/lib/init.d/started/xxv ] ; then + rm ${PIDFILE} + killall xxvd 2>&1 > /dev/null + fi +} + +xxv_kill_initfile() { + + # After unclear stop, init file in /var/lib/init.d/started/ still not removed + 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>&1 > /dev/null + fi +} + +start() { + + kill_vdradmin + + # Finaly start XXV :) + export LANG="${LANGUAGE}" + ebegin "Start xxv" + start-stop-daemon --nicelevel 15 --pidfile ${PIDFILE} --start -c ${RUNAS_USER} --exec ${XXV_BIN} -- \ + -configfile=${CONFIGFILE} -verbose=${VERBOSE} -pidfile=${PIDFILE} + eend $? +} + + +stop() { + + ebegin "Stopping xxv" + 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/xxv-1.0-logerror.patch b/www-misc/xxv/files/xxv-1.0-logerror.patch new file mode 100644 index 000000000000..3c65bbda47e4 --- /dev/null +++ b/www-misc/xxv/files/xxv-1.0-logerror.patch @@ -0,0 +1,29 @@ +--- html/bloecke/tooltip.tmpl (Revision 1189) ++++ html/bloecke/tooltip.tmpl (Arbeitskopie) +@@ -7,6 +7,6 @@ + IF !ttp_offset;ttp_offset = 0;END %?> + <a href="<?% IF link;link;ELSE;"#";END %?>"<?% IF eventid %?> + onmouseover="ttpreq(this, '<?% escape(title) %?> +- <?% IF subtitle.length > 0 %?>~<?% escape(subtitle) %?> ++ <?% IF subtitle && subtitle.length > 0 %?>~<?% escape(subtitle) %?> + <?% END %?>',<?% eventid %?>, <?% ttp_offset %?>);" + <?% END %?> > +Index: html/tlist.tmpl +=================================================================== +--- html/tlist.tmpl (Revision 1189) ++++ html/tlist.tmpl (Arbeitskopie) +@@ -51,10 +51,10 @@ + <?% END %?> + </tr> + <?% FOREACH zeile = data %?> +- <?% aktiv = ( zeile.1 mod 2 ); +- vps = zeile.1 mod 8 div 4; ++ <?% aktiv= ( zeile.1 ? zeile.1 mod 2 : 0 ); ++ vps= ( zeile.1 ? zeile.1 mod 8 div 4 : 0 ); + day = date.format(zeile.9, "%A, %x", locale); +- IF aktiv; rest = rest - zeile.last; END; ++ IF aktiv; rest = rest - zeile.13; END; + %?> + <?% IF oldDay != day %?> + <tr><td colspan='<?% zeile.size + 1 %?>' bgcolor='#DDDDDD'><b><?% day %?></b></td><tr> + diff --git a/www-misc/xxv/files/xxv.utf8-v2 b/www-misc/xxv/files/xxv.utf8-v2 new file mode 100644 index 000000000000..890cd511e58a --- /dev/null +++ b/www-misc/xxv/files/xxv.utf8-v2 @@ -0,0 +1,99 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/files/xxv.utf8-v2,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +RUNAS_USER="vdr" + +# Set Verbose Level 0 -> 5 +VERBOSE="1" + +#set -xv + +# some fixed Path +CONFIGFILE="/etc/xxv/xxvd.cfg" +PIDFILE="/var/run/xxv/xxvd.pid" +XXV_BIN="/usr/bin/xxvd" + + +depend() { + need vdr + after net +} + +kill_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 + logger -t xxv "vdradmin stopped by xxv initscript" + logger -t xxv "xxv and vdradmin can not run on same port" + fi +} + +xxv_kill_pid() { + + # After unclear stop, xxvd.pid will not removed, fixed with next line + if [ -e ${PIDFILE} -a ! -L /var/lib/init.d/started/xxv ] ; then + rm ${PIDFILE} + killall xxvd 2>&1 > /dev/null + fi +} + +xxv_kill_initfile() { + + # After unclear stop, init file in /var/lib/init.d/started/ still not removed + 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>&1 > /dev/null + fi +} + +set_utf8_charset() { + local capfile=/usr/share/vdr/capabilities.sh + [ -e "${capfile}" ] && . ${capfile} + if [ "${CAP_UTF8}" = "1" -o "${VDR_CAN_HANDLE_UTF8}" = "yes" ]; then + # do not clean out utf8 + XXV_UTF8="-utf8" + fi +} + +start() { + kill_vdradmin + set_utf8_charset + + ebegin "Start xxv" + + start-stop-daemon --nicelevel 15 --pidfile ${PIDFILE} --start -c ${RUNAS_USER} --exec ${XXV_BIN} -- \ + ${XXV_UTF8} -configfile=${CONFIGFILE} -verbose=${VERBOSE} -pidfile=${PIDFILE} + eend $? +} + + +stop() { + + ebegin "Stopping xxvd" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + + xxv_kill_pid + xxv_kill_initfile +# killall xxvd 2>&1 > /dev/null + + 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..a17519108a77 --- /dev/null +++ b/www-misc/xxv/files/xxvd-logrotate @@ -0,0 +1,27 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/files/xxvd-logrotate,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +/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..9e7443e949b4 --- /dev/null +++ b/www-misc/xxv/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <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.0.1-r1.ebuild b/www-misc/xxv/xxv-1.0.1-r1.ebuild new file mode 100644 index 000000000000..174b91ca50c0 --- /dev/null +++ b/www-misc/xxv/xxv-1.0.1-r1.ebuild @@ -0,0 +1,188 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/xxv-1.0.1-r1.ebuild,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +inherit eutils + +DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)" +HOMEPAGE="http://xxv.berlios.de/content/view/37/1/" +SRC_URI="mirror://berlios/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="mplayer themes" + +RDEPEND=">=media-video/vdr-1.2.6 + media-video/vdr2jpeg + media-fonts/ttf-bitstream-vera + dev-db/mysql + virtual/perl-CGI + virtual/perl-Digest-MD5 + virtual/perl-Getopt-Long + virtual/perl-MIME-Base64 + virtual/perl-Time-HiRes + virtual/perl-Compress-Zlib + dev-perl/Config-Tiny + dev-perl/Digest-HMAC + dev-perl/Encode-Detect + dev-perl/GD + dev-perl/DateManip + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/Event + dev-perl/IO-Socket-INET6 + dev-perl/JSON + 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/TextToHTML + dev-perl/Template-Toolkit + dev-perl/SOAP-Lite + dev-perl/XML-RSS + themes? ( =x11-themes/${PN}-skins-${PV} )" + +PDEPEND="mplayer? ( media-video/mplayer )" + +SHAREDIR="/usr/share/${PN}" +LIBDIR="/usr/lib/${PN}" + +DB_VERS="25" + +pkg_setup() { + + if ! built_with_use dev-perl/GD png gif ; then + echo + eerror "Please recompile dev-perl/GD with" + eerror "USE=\"png gif\"" + die "dev-perl/GD need png and gif support" + fi + + if ! has_version "net-www/${PN}"; then + echo + einfo "Before you install xxv at first time you should read" + einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv German only available" + echo + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + 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:\$RealBin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \ + -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \ + -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \ + -e "s:\$RealBin/../share/fonts/:/usr/share/fonts/:" + + sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl +} + +src_compile() { +: +} + +src_install() { + + doinitd "${FILESDIR}"/xxv + + dobin bin/xxvd + + insinto /etc/"${PN}" + newins "${FILESDIR}"/xxvd-1.0.cfg 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,vtx} + + 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 COPYING LIESMICH NEWS README TODO TUTORIAL.txt.gz + fowners vdr:vdr /usr/share/doc/"${P}" + + doman xxvd.1 +} + +pkg_postinst() { + + if has_version "net-www/${PN}"; then + if has_version "=<net-www/${PN}-0.91_pre1002" ; then + echo + einfo "An update of XXV Database is needed" + echo + einfo "emerge --config ${PN}" + echo + einfo "will update your XXV Database" + fi + else + einfo "If this is a new install" + einfo "you have to create a empty DB for XXV" + echo + einfo "do this by:" + einfo "cd ${SHAREDIR}/contrib" + eerror "read the README" + einfo "edit create-database.sql and run" + einfo "emerge --config ${PN}" + echo + einfo "Set your own language in" + einfo "${SHAREDIR}/locale" + echo + einfo "For First Time Login in Browser use:" + einfo "Pass:Login = xxv:xxv" + echo + eerror "edit /etc/xxv/xxvd.cfg !" + fi +} + +pkg_config() { + + if has_version "=<net-www/${PN}-0.91_pre1002"; then + cd "${ROOT}"/"${SHAREDIR}"/contrib + ./update-xxv + else + cd "${ROOT}"/"${SHAREDIR}" + cat ./contrib/create-database.sql | mysql -u root -p + fi +} + +pkg_postrm() { + + einfo "Cleanup for old "${P}" files" + rm -r /usr/share/doc/"${P}" +} diff --git a/www-misc/xxv/xxv-1.2-r1.ebuild b/www-misc/xxv/xxv-1.2-r1.ebuild new file mode 100644 index 000000000000..035d3ee56513 --- /dev/null +++ b/www-misc/xxv/xxv-1.2-r1.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/xxv-1.2-r1.ebuild,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +inherit eutils + +DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)" +HOMEPAGE="http://xxv.berlios.de/content/view/40/1/" +SRC_URI="mirror://berlios/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="mplayer themes" + +RDEPEND=">=media-video/vdr-1.2.6 + media-video/vdr2jpeg + media-fonts/ttf-bitstream-vera + dev-db/mysql + virtual/perl-CGI + virtual/perl-Digest-MD5 + virtual/perl-Getopt-Long + virtual/perl-MIME-Base64 + virtual/perl-Time-HiRes + virtual/perl-Compress-Zlib + dev-perl/Config-Tiny + dev-perl/Digest-HMAC + dev-perl/Encode-Detect + dev-perl/GD + dev-perl/DateManip + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/Event + dev-perl/IO-Socket-INET6 + dev-perl/JSON + 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/TextToHTML + dev-perl/Template-Toolkit + dev-perl/SOAP-Lite + dev-perl/XML-RSS + themes? ( =x11-themes/${PN}-skins-${PV} )" + +PDEPEND="mplayer? ( media-video/mplayer )" + +SHAREDIR="/usr/share/${PN}" +LIBDIR="/usr/lib/${PN}" + +DB_VERS="26" + +db_update_check() { + + DB_VERS_OLD="`cat /var/db/pkg/net-www/xxv-*/xxv-*.ebuild | grep DB_VERS | cut -c10-11`" + + if [ "${DB_VERS_OLD}" -lt "${DB_VERS}" ]; then + echo + elog "An update of XXV Database is needed !!!" + echo + elog "cd ${SHAREDIR}/contrib" + elog "run ./update-xxv -h for more info" + echo + else + 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 "edit create-database.sql and run" + elog "emerge --config ${PN}" + echo + elog "Set your own language in" + elog "${SHAREDIR}/locale" + echo + elog "For First Time Login in Browser use:" + elog "Pass:Login = xxv:xxv" + echo + eerror "edit /etc/xxv/xxvd.cfg !" + fi +} + +pkg_setup() { + + if ! built_with_use dev-perl/GD png gif ; then + echo + eerror "Please recompile dev-perl/GD with" + eerror "USE=\"png gif\"" + die "dev-perl/GD need png and gif support" + fi + + if ! has_version "net-www/${PN}"; then + echo + einfo "Before you install xxv at first time you should read" + einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv German only available" + echo + fi + + db_update_check +} + +src_unpack() { + unpack ${A} + cd "${S}" + + 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:\$RealBin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \ + -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \ + -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \ + -e "s:\$RealBin/../share/fonts/:/usr/share/fonts/:" + + sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl +} + +src_compile() { +: +} + +src_install() { + + doinitd "${FILESDIR}"/xxv + + dobin bin/xxvd + + insinto /etc/"${PN}" + newins "${FILESDIR}"/xxvd-1.0.cfg 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 + + 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 LIESMICH NEWS README TUTORIAL.txt.gz + 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}" +} diff --git a/www-misc/xxv/xxv-1.2.1402.ebuild b/www-misc/xxv/xxv-1.2.1402.ebuild new file mode 100644 index 000000000000..f0cb1950245e --- /dev/null +++ b/www-misc/xxv/xxv-1.2.1402.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/xxv/xxv-1.2.1402.ebuild,v 1.1 2009/04/11 23:02:00 hd_brummy Exp $ + +EAPI="2" + +inherit eutils versionator + +#MY_PV=$(get_version_component_range 3) +#MY_P="${PN}-${MY_PV}" + +DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)" +HOMEPAGE="http://xxv.berlios.de/content/view/40/1/" +SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="mplayer themes" + +RDEPEND=">=media-video/vdr-1.2.6 + media-video/vdr2jpeg + media-fonts/ttf-bitstream-vera + dev-db/mysql + virtual/perl-CGI + virtual/perl-Digest-MD5 + virtual/perl-Getopt-Long + virtual/perl-MIME-Base64 + virtual/perl-Time-HiRes + virtual/perl-Compress-Zlib + dev-perl/Config-Tiny + dev-perl/Digest-HMAC + dev-perl/Encode-Detect + dev-perl/GD[png,gif] + dev-perl/DateManip + dev-perl/DBD-mysql + dev-perl/DBI + dev-perl/Event + dev-perl/IO-Socket-INET6 + dev-perl/JSON + 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/TextToHTML + dev-perl/Template-Toolkit + dev-perl/SOAP-Lite + dev-perl/XML-RSS + themes? ( >=x11-themes/${PN}-skins-${PV} )" + +PDEPEND="mplayer? ( media-video/mplayer )" + +SHAREDIR="/usr/share/${PN}" +LIBDIR="/usr/lib/${PN}" + +DB_VERS="31" + +db_update_check() { + + DB_VERS_OLD="`cat /var/db/pkg/net-www/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 XXV Database is needed !!!" + echo + elog "cd ${SHAREDIR}/contrib" + elog "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 "edit create-database.sql and run" + elog "emerge --config ${PN}" + echo + elog "Set your own language in" + elog "${SHAREDIR}/locale" + echo + elog "For First Time Login in Browser use:" + elog "Pass:Login = xxv:xxv" + echo + eerror "edit /etc/xxv/xxvd.cfg !" + fi +} + +pkg_setup() { + + if ! has_version "net-www/${PN}"; then + echo + einfo "After you install xxv at first time you should read" + einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv German only available" + echo + fi + + db_update_check +} + +src_unpack() { + unpack ${A} + cd "${S}" + + 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:\$RealBin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \ + -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \ + -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \ + -e "s:\$RealBin/../share/fonts/:/usr/share/fonts/:" \ + -e "s:\$RealBin/../share/xmltv:${SHAREDIR}/xmltv:" + + sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl +} + +src_install() { + + newinitd "${FILESDIR}"/xxv.utf8-v2 xxv + + dobin bin/xxvd + + insinto /etc/"${PN}" + newins "${FILESDIR}"/xxvd-1.0.cfg 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 LIESMICH NEWS README TUTORIAL.txt.gz + 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}" +} |