summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2007-11-11 13:46:31 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2007-11-11 13:46:31 +0000
commit87fa70674178c20f1349c40c024cc1850277b192 (patch)
treedbf45806c590de0b190fff1f0e006c18c920e736 /net-www
parentStable on ppc wrt bug 198788 (diff)
downloadgentoo-2-87fa70674178c20f1349c40c024cc1850277b192.tar.gz
gentoo-2-87fa70674178c20f1349c40c024cc1850277b192.tar.bz2
gentoo-2-87fa70674178c20f1349c40c024cc1850277b192.zip
initial ebuild; find older versions on overlay vdr-testing
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-www')
-rw-r--r--net-www/xxv/ChangeLog11
-rw-r--r--net-www/xxv/Manifest32
-rw-r--r--net-www/xxv/files/digest-xxv-1.03
-rw-r--r--net-www/xxv/files/xxv87
-rw-r--r--net-www/xxv/files/xxv-1.0-logerror.patch29
-rw-r--r--net-www/xxv/files/xxvd-1.0.cfg162
-rw-r--r--net-www/xxv/files/xxvd-logrotate27
-rw-r--r--net-www/xxv/metadata.xml16
-rw-r--r--net-www/xxv/xxv-1.0.ebuild191
9 files changed, 558 insertions, 0 deletions
diff --git a/net-www/xxv/ChangeLog b/net-www/xxv/ChangeLog
new file mode 100644
index 000000000000..8176696e3ccd
--- /dev/null
+++ b/net-www/xxv/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-www/xxv
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/xxv/ChangeLog,v 1.1 2007/11/11 13:46:30 hd_brummy Exp $
+
+*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/net-www/xxv/Manifest b/net-www/xxv/Manifest
new file mode 100644
index 000000000000..079001ead6e1
--- /dev/null
+++ b/net-www/xxv/Manifest
@@ -0,0 +1,32 @@
+AUX xxv 1740 RMD160 a2faea008afc9382ef7a1073c30b2481b85c9c7b SHA1 1f157bef81a493c964ea6818e37796814f08d0bf SHA256 ab5cd7d4e355f14cac5f21dd7f08150ecb4c2bb76b0567e37a7ee48398200eb5
+MD5 6e78288f325f0cfe4bc7fb8b4e89c567 files/xxv 1740
+RMD160 a2faea008afc9382ef7a1073c30b2481b85c9c7b files/xxv 1740
+SHA256 ab5cd7d4e355f14cac5f21dd7f08150ecb4c2bb76b0567e37a7ee48398200eb5 files/xxv 1740
+AUX xxv-1.0-logerror.patch 1477 RMD160 3795497ed97d16af9f7b10874619f567e723cc86 SHA1 712257f3d7a98da402f3c67bbd41b6bb132ff0a3 SHA256 ac8db7fb3d75be90dc33fdf427265dcd14355e572500140718fce2c731166822
+MD5 b99d3ff598f81530bb8dbc1aea69e60b files/xxv-1.0-logerror.patch 1477
+RMD160 3795497ed97d16af9f7b10874619f567e723cc86 files/xxv-1.0-logerror.patch 1477
+SHA256 ac8db7fb3d75be90dc33fdf427265dcd14355e572500140718fce2c731166822 files/xxv-1.0-logerror.patch 1477
+AUX xxvd-1.0.cfg 2257 RMD160 2f0ed9987f6a85fa4bc1a7ae68b31251f4e72b00 SHA1 f82efba3aefb1216067767e52236e119da6d65dc SHA256 a49c7c402e8c9990f84e8b3ae5207559f9dd9262075b5ab0606058ff08061016
+MD5 6a6086c79c2c4751db403abb2be9ed22 files/xxvd-1.0.cfg 2257
+RMD160 2f0ed9987f6a85fa4bc1a7ae68b31251f4e72b00 files/xxvd-1.0.cfg 2257
+SHA256 a49c7c402e8c9990f84e8b3ae5207559f9dd9262075b5ab0606058ff08061016 files/xxvd-1.0.cfg 2257
+AUX xxvd-logrotate 381 RMD160 3526cbf23399be665214b05511a7d3c771c8d657 SHA1 3f5d949f845da3fce701f7076bcf758b591b10cd SHA256 c2e0af3e4f9def151d0bd1fbafdfc8451e458c3755415dd6e8f8bb8bc2b32514
+MD5 5f7d88f22df3a6206fd2b71eb7c6f30d files/xxvd-logrotate 381
+RMD160 3526cbf23399be665214b05511a7d3c771c8d657 files/xxvd-logrotate 381
+SHA256 c2e0af3e4f9def151d0bd1fbafdfc8451e458c3755415dd6e8f8bb8bc2b32514 files/xxvd-logrotate 381
+DIST xxv-1.0.tgz 1740659 RMD160 94df23da24d2dc228de542882ad84b4d69a81882 SHA1 4858a32f2b23f760a3cb902dc27d1db8f2a43f2c SHA256 8d9d2146141589da450178604121fc050e3c186dddf902d1224d013a3bd0d2cf
+EBUILD xxv-1.0.ebuild 4421 RMD160 128c9aa9bc7d0fc91cbe6a216f9a2b02f969a698 SHA1 300496a30bb72d6d8e1258dbe23949f96fd8a779 SHA256 a46a0ceddba4358c9757d7efc3141bf35ebf63462817df8e2f4a5d7ce7d42b5d
+MD5 b235923bfbd1abadd49afbd9888f26a5 xxv-1.0.ebuild 4421
+RMD160 128c9aa9bc7d0fc91cbe6a216f9a2b02f969a698 xxv-1.0.ebuild 4421
+SHA256 a46a0ceddba4358c9757d7efc3141bf35ebf63462817df8e2f4a5d7ce7d42b5d xxv-1.0.ebuild 4421
+MISC ChangeLog 376 RMD160 d79520332e37fd5a3c9ab9161b186246c0ca6ccd SHA1 94e53e424c0a108a44cb5ad96c9f98d953f10215 SHA256 d26b393e1483793c02365b452d1f807fecca69b5a681179e1afc14db368e00c9
+MD5 502766ea79a965fc774071746dcf11a3 ChangeLog 376
+RMD160 d79520332e37fd5a3c9ab9161b186246c0ca6ccd ChangeLog 376
+SHA256 d26b393e1483793c02365b452d1f807fecca69b5a681179e1afc14db368e00c9 ChangeLog 376
+MISC metadata.xml 505 RMD160 d9f9f87054d19eb338514ec2a2420e0326cdd820 SHA1 c06a6dd13457eba71d2f85bc0a89ea7660f21a8e SHA256 48e92504e7bab6cb0434cbe74e562ec43a6250f1d530c7533a311b516179890c
+MD5 cfe09b1dfa7ae8b1caa376a6e771f2d3 metadata.xml 505
+RMD160 d9f9f87054d19eb338514ec2a2420e0326cdd820 metadata.xml 505
+SHA256 48e92504e7bab6cb0434cbe74e562ec43a6250f1d530c7533a311b516179890c metadata.xml 505
+MD5 9409262cdc328ac49e942fc4dc4d3ed3 files/digest-xxv-1.0 217
+RMD160 dd23a539f69d2d82a4d1fb24f185c16b1da84dc1 files/digest-xxv-1.0 217
+SHA256 1816b0280f27fbb2edc0ce02ab5c30ab5681142d305e928987402a2432a91dd0 files/digest-xxv-1.0 217
diff --git a/net-www/xxv/files/digest-xxv-1.0 b/net-www/xxv/files/digest-xxv-1.0
new file mode 100644
index 000000000000..e10a05ce9179
--- /dev/null
+++ b/net-www/xxv/files/digest-xxv-1.0
@@ -0,0 +1,3 @@
+MD5 dc784f443c02a3b84a8833272bb789c7 xxv-1.0.tgz 1740659
+RMD160 94df23da24d2dc228de542882ad84b4d69a81882 xxv-1.0.tgz 1740659
+SHA256 8d9d2146141589da450178604121fc050e3c186dddf902d1224d013a3bd0d2cf xxv-1.0.tgz 1740659
diff --git a/net-www/xxv/files/xxv b/net-www/xxv/files/xxv
new file mode 100644
index 000000000000..cbbdc2836504
--- /dev/null
+++ b/net-www/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/net-www/xxv/files/xxv,v 1.1 2007/11/11 13:46:31 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/net-www/xxv/files/xxv-1.0-logerror.patch b/net-www/xxv/files/xxv-1.0-logerror.patch
new file mode 100644
index 000000000000..3c65bbda47e4
--- /dev/null
+++ b/net-www/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/net-www/xxv/files/xxvd-1.0.cfg b/net-www/xxv/files/xxvd-1.0.cfg
new file mode 100644
index 000000000000..b18f899ba581
--- /dev/null
+++ b/net-www/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/net-www/xxv/files/xxvd-logrotate b/net-www/xxv/files/xxvd-logrotate
new file mode 100644
index 000000000000..8c6d576853d3
--- /dev/null
+++ b/net-www/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/net-www/xxv/files/xxvd-logrotate,v 1.1 2007/11/11 13:46:31 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/net-www/xxv/metadata.xml b/net-www/xxv/metadata.xml
new file mode 100644
index 000000000000..5c407e0a40e3
--- /dev/null
+++ b/net-www/xxv/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+</pkgmetadata>
diff --git a/net-www/xxv/xxv-1.0.ebuild b/net-www/xxv/xxv-1.0.ebuild
new file mode 100644
index 000000000000..fd5e9eb73d1b
--- /dev/null
+++ b/net-www/xxv/xxv-1.0.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/xxv/xxv-1.0.ebuild,v 1.1 2007/11/11 13:46:30 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="http://download.berlios.de/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="mplayer"
+
+RDEPEND=">=media-video/vdr-1.2.6
+ perl-core/Test-Simple
+ perl-core/MIME-Base64
+ perl-core/Time-HiRes
+ dev-perl/DBI
+ dev-perl/Event
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ dev-perl/DBD-mysql
+ dev-db/mysql
+ dev-perl/Locale-gettext
+ dev-perl/WWW-Mechanize
+ dev-perl/GD
+ dev-perl/GDGraph
+ dev-perl/GD-Graph3d
+ dev-perl/Proc-ProcessTable
+ dev-perl/WWW-Mechanize-FormFiller
+ dev-perl/XML-RSS
+ dev-perl/Net-XMPP
+ dev-perl/Term-ReadLine-Perl
+ dev-perl/Term-ReadLine-Gnu
+ dev-perl/TimeDate
+ dev-perl/Template-Toolkit
+ dev-perl/Log-Log4perl
+ dev-perl/SOAP-Lite
+ dev-perl/Net-IP
+ dev-perl/Data-Random
+ dev-perl/Net-Amazon
+ dev-perl/JSON
+ dev-perl/Net-Telnet
+ dev-perl/Socket6
+ dev-perl/IO-Socket-INET6
+ media-video/vdr2jpeg
+ media-fonts/ttf-bitstream-vera"
+
+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
+
+ epatch "${FILESDIR}"/"${P}"-logerror.patch
+}
+
+src_compile() {
+:
+}
+
+src_install() {
+
+ doinitd "${FILESDIR}"/xxv
+
+ dobin bin/xxvd
+
+ insinto /etc/"${PN}"
+ newins "${FILESDIR}"/xxvd-"${PV}".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.txt COPYING.txt LIESMICH.txt NEWS.txt README.txt TODO.txt 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 "You have to create a empty DB for XXV"
+ 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}"
+}