diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2009-04-11 23:23:28 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2009-04-11 23:23:28 +0000 |
commit | d5b935ed7e01d70f6960a11b37f51d80dbbbeb09 (patch) | |
tree | c1da331e5edc92e0f3652fad198fff1292bb625e | |
parent | Version bump. (diff) | |
download | historical-d5b935ed7e01d70f6960a11b37f51d80dbbbeb09.tar.gz historical-d5b935ed7e01d70f6960a11b37f51d80dbbbeb09.tar.bz2 historical-d5b935ed7e01d70f6960a11b37f51d80dbbbeb09.zip |
package moved net-www/xxv - www-misc/xxv #265569
Package-Manager: portage-2.1.6.7/cvs/Linux i686
-rw-r--r-- | www-misc/vdradmin-am/ChangeLog | 206 | ||||
-rw-r--r-- | www-misc/vdradmin-am/Manifest | 22 | ||||
-rw-r--r-- | www-misc/vdradmin-am/files/confd-2 | 14 | ||||
-rw-r--r-- | www-misc/vdradmin-am/files/vdradmin-4 | 45 | ||||
-rw-r--r-- | www-misc/vdradmin-am/files/vdradmin-am-config-autoflush.diff | 10 | ||||
-rw-r--r-- | www-misc/vdradmin-am/files/vdradmin-rc-3 | 45 | ||||
-rw-r--r-- | www-misc/vdradmin-am/metadata.xml | 22 | ||||
-rw-r--r-- | www-misc/vdradmin-am/vdradmin-am-3.6.2.ebuild | 172 | ||||
-rw-r--r-- | www-misc/vdradmin-am/vdradmin-am-3.6.4-r1.ebuild | 180 | ||||
-rw-r--r-- | www-misc/vdradmin-am/vdradmin-am-3.6.4.ebuild | 174 |
10 files changed, 890 insertions, 0 deletions
diff --git a/www-misc/vdradmin-am/ChangeLog b/www-misc/vdradmin-am/ChangeLog new file mode 100644 index 000000000000..8c0e4162f739 --- /dev/null +++ b/www-misc/vdradmin-am/ChangeLog @@ -0,0 +1,206 @@ +# ChangeLog for net-www/vdradmin-am +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + + 11 Apr 2009; Joerg Bornkessel <hd_brummy@gentoo.org> +files/confd-2, + +files/vdradmin-rc-3, +files/vdradmin-4, + +files/vdradmin-am-config-autoflush.diff, +metadata.xml, + +vdradmin-am-3.6.2.ebuild, +vdradmin-am-3.6.4.ebuild, + +vdradmin-am-3.6.4-r1.ebuild: + package moved net-www/xxv - www-misc/xxv #265569 + + 11 Apr 2009; Joerg Bornkessel <hd_brummy@gentoo.org> +files/confd-2, + +files/vdradmin-rc-3, +files/vdradmin-4, + +files/vdradmin-am-config-autoflush.diff, +metadata.xml, + +vdradmin-am-3.6.2.ebuild, +vdradmin-am-3.6.4.ebuild, + +vdradmin-am-3.6.4-r1.ebuild: + package moved net-www/xxv - www-misc/xxv #265569 + + 08 Mar 2009; Joerg Bornkessel <hd_brummy@gentoo.org> + vdradmin-am-3.6.4.ebuild, vdradmin-am-3.6.4-r1.ebuild: + fixed fail on install, changed vdradmin.pl to vdradmin in ebuild + + 15 Feb 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/vdradmin-rc-3, + files/vdradmin-4: + added --pidfile for baselayout2 start script part, bug 255423; thanks to + D. Pillmeier + + 13 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/vdradmin-4, + metadata.xml, +vdradmin-am-3.6.4-r1.ebuild: + bug #171947; added version to run vdradmin-am on a vdr-less install, use + -vdr then + +*vdradmin-am-3.6.4-r1 (07 Jan 2009) + + 07 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/vdradmin-4, + +vdradmin-am-3.6.4-r1.ebuild: + #171947 vdradmin-am can now install on vdr-less system if use-flag vdr is + disabled; using EAPI to enable use-flag vdr by default + +*vdradmin-am-3.6.4 (05 Jan 2009) + + 05 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> -files/vdradmin-2, + +files/vdradmin-4, -vdradmin-am-3.5.3.ebuild, + -vdradmin-am-3.6.0_beta.ebuild, -vdradmin-am-3.6.0_rc.ebuild, + -vdradmin-am-3.6.0.ebuild, -vdradmin-am-3.6.1.ebuild, + -vdradmin-am-3.6.1-r1.ebuild, vdradmin-am-3.6.2.ebuild, + +vdradmin-am-3.6.4.ebuild: + versions bump; vdradmin-am-3.6.2 stabel on x86; clean up old versions + + 18 Nov 2008; Torsten Veller <tove@gentoo.org> vdradmin-am-3.5.3.ebuild, + vdradmin-am-3.6.0_beta.ebuild, vdradmin-am-3.6.0_rc.ebuild, + vdradmin-am-3.6.0.ebuild, vdradmin-am-3.6.1.ebuild, + vdradmin-am-3.6.1-r1.ebuild, vdradmin-am-3.6.2.ebuild: + New virtuals: Compress-Zlib + +*vdradmin-am-3.6.2 (30 Jun 2008) + + 30 Jun 2008; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.6.2.ebuild: + Version bumped. utf8 support is now contained by default. + + 29 Apr 2008; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.6.1-r1.ebuild: + Marked stable on x86. + +*vdradmin-am-3.6.1-r1 (29 Feb 2008) + + 29 Feb 2008; Matthias Schwarzott <zzam@gentoo.org> +files/vdradmin-rc-3, + +vdradmin-am-3.6.1-r1.ebuild: + Fix initscript on openrc, thanks to Daniel Pielmeier + <daniel.pielmeier@googlemail.com>. + +*vdradmin-am-3.6.1 (20 Dec 2007) + + 20 Dec 2007; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.5.3.ebuild, vdradmin-am-3.6.0_beta.ebuild, + vdradmin-am-3.6.0_rc.ebuild, vdradmin-am-3.6.0.ebuild, + +vdradmin-am-3.6.1.ebuild: + Version bumped. Fixed quoting. + + 21 Sep 2007; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.6.0.ebuild: + Updated to fixed tarball. + +*vdradmin-am-3.6.0 (21 Sep 2007) + + 21 Sep 2007; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.6.0.ebuild: + Version bumped. + +*vdradmin-am-3.6.0_rc (27 Aug 2007) + + 27 Aug 2007; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.6.0_rc.ebuild: + Version bumped. + +*vdradmin-am-3.6.0_beta (18 Aug 2007) + + 18 Aug 2007; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.6.0_beta.ebuild: + Version bumped. + + 26 Jun 2007; Matthias Schwarzott <zzam@gentoo.org> + -files/vdradmin-am-3.4.7_opera-search.diff, -vdradmin-am-3.4.7-r1.ebuild: + Removed old ebuild. + + 04 Jun 2007; Matthias Schwarzott <zzam@gentoo.org> files/vdradmin-2: + Remove some bashisms. + + 13 Mar 2007; Matthias Schwarzott <zzam@gentoo.org> -files/vdradmin, + -vdradmin-am-3.4.6.ebuild, -vdradmin-am-3.4.7.ebuild, + -vdradmin-am-3.5.0.ebuild, -vdradmin-am-3.5.1.ebuild, + -vdradmin-am-3.5.2-r2.ebuild: + Cleaned up almost all old versions, but latest and latest that supports old + vdradmin-autotimers. + + 13 Mar 2007; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.5.3.ebuild: + Marked stable on x86. + + 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: + Transition to Manifest2. + + 25 Jan 2007; Joerg Bornkessel <hd_brummy@gentoo.org> + files/digest-vdradmin-am-3.5.3, Manifest: + digest fixed; damnd, some changes afterwards in sources + +*vdradmin-am-3.5.3 (25 Jan 2007) + + 25 Jan 2007; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.5.3.ebuild: + Version bumped. + +*vdradmin-am-3.5.2-r2 (21 Jan 2007) + + 21 Jan 2007; Matthias Schwarzott <zzam@gentoo.org> + -vdradmin-am-3.5.2.ebuild, -vdradmin-am-3.5.2-r1.ebuild, + +vdradmin-am-3.5.2-r2.ebuild: + Now remove all additional packages, keep only one that is new. + +*vdradmin-am-3.5.2-r1 (19 Jan 2007) + + 19 Jan 2007; Matthias Schwarzott <zzam@gentoo.org> + +vdradmin-am-3.5.2-r1.ebuild: + No longer install modules already provided by dependencies, and added URI to + depend, makes creating initial config no longer fail (and if, then die), + thanks to Sebastian Kemper <sebastian_ml@gmx.net>. + + 06 Jan 2007; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.4.6.ebuild, vdradmin-am-3.4.7.ebuild, + vdradmin-am-3.4.7-r1.ebuild, vdradmin-am-3.5.0.ebuild, + vdradmin-am-3.5.1.ebuild, vdradmin-am-3.5.2.ebuild: + Converted to elog. + + 18 Dec 2006; Matthias Schwarzott <zzam@gentoo.org> + vdradmin-am-3.4.6.ebuild, vdradmin-am-3.4.7.ebuild, + vdradmin-am-3.4.7-r1.ebuild, vdradmin-am-3.5.0.ebuild, + vdradmin-am-3.5.1.ebuild, vdradmin-am-3.5.2.ebuild: + Removed useless RESTRICT-statement. + +*vdradmin-am-3.5.2 (08 Dec 2006) + + 08 Dec 2006; Matthias Schwarzott <zzam@gentoo.org> files/confd-2, + +vdradmin-am-3.5.2.ebuild: + Version bumped. Added small comment about ports below 1024. + + 07 Dec 2006; Matthias Schwarzott <zzam@gentoo.org> files/vdradmin-2: + Let the init-script correct permission errors of the tmp-directory. + +*vdradmin-am-3.5.1 (02 Dec 2006) + + 02 Dec 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + +vdradmin-am-3.5.1.ebuild: + version bump + +*vdradmin-am-3.5.0 (11 Nov 2006) + + 11 Nov 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + +vdradmin-am-3.5.0.ebuild: + version bump + +*vdradmin-am-3.4.7-r1 (06 Nov 2006) + + 06 Nov 2006; Matthias Schwarzott <zzam@gentoo.org> +files/confd-2, + +files/vdradmin-2, +files/vdradmin-am-3.4.7_opera-search.diff, + +files/vdradmin-am-config-autoflush.diff, +vdradmin-am-3.4.7-r1.ebuild: + Copied revision from vdr-testing overlay. Contains patch for problem with + opera-browser. Init-script disables utf8 for non utf8-enabled vdr. Ebuild + now generates a good initial-configuration with correct pathes. + + 15 Oct 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + vdradmin-am-3.4.7.ebuild: + fixed unicode handling; tanks to L.Muresan on #151396 + +*vdradmin-am-3.4.7 (29 Sep 2006) + + 29 Sep 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + +vdradmin-am-3.4.7.ebuild: + version bump + +*vdradmin-am-3.4.6 (14 Jul 2006) + + 14 Jul 2006; Joerg Bornkessel <hd_brummy@gentoo.org> +files/vdradmin, + +metadata.xml, +vdradmin-am-3.4.6.ebuild: + initial import; find older versions on gentoo.de overlay + diff --git a/www-misc/vdradmin-am/Manifest b/www-misc/vdradmin-am/Manifest new file mode 100644 index 000000000000..779169c0d790 --- /dev/null +++ b/www-misc/vdradmin-am/Manifest @@ -0,0 +1,22 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX confd-2 295 RMD160 292ac9960158dc09b5c31adf85b49c29a5f2ca1b SHA1 07f5964bb3eaa0962d37ae7af0d049246cdb4ac5 SHA256 87d9c7449946c2724e0ddeb4de7c2eeee492b99f813131e47dafd9e860f8649f +AUX vdradmin-4 1233 RMD160 69642b2cd806403bc35c5793320c69e9667e47b7 SHA1 f0ae719ac48d2f5a6b28fcf881546a6508297dd1 SHA256 a2389c1f3ba47885a2711c407b876c067b3a2867fbcddc4c05fc54d9eadf08e3 +AUX vdradmin-am-config-autoflush.diff 654 RMD160 f6d0a31c424c6a45d8786d2b98e9872e5e3ded5f SHA1 1a4b61fa0c218cecffb6530cabe5c59577b1df67 SHA256 1687001c6114cb373643982fb73a78e7656c70d253e9ff0d89b7ed466133f950 +AUX vdradmin-rc-3 1243 RMD160 fb8930b6a54b087d396d8da5cf30c0f52ad5d99b SHA1 d2a43268d548811bb303b3e3a0e3f85efbe9c9d9 SHA256 b26fe417beaa7332a876928aa5f9effc5ee925ad85da9a6351ad299c9eb5f808 +DIST vdradmin-am-3.6.2.tar.bz2 685651 RMD160 5b01d0da1305093e6da35728f13af5671db02bcd SHA1 3b71d1a87639995a1b716986c9f8fa9a2a7c9410 SHA256 53821d339b3e17f42948a68baa289134d6f79f41cef96db13bb14b4cbf69f188 +DIST vdradmin-am-3.6.4.tar.bz2 718142 RMD160 e8e4f6da9b20e5696598ac1493549a154ebb9f7b SHA1 c65ca82df04891ac3b71d3e46e0d2b6d4355bd4f SHA256 aa956001b47feaaf7297d89fb15bfc17eeeb2c6125123abe7ce134e7d0ceb6b0 +EBUILD vdradmin-am-3.6.2.ebuild 4626 RMD160 dd5ac02c48f7130949cb4232f952001e5593c69c SHA1 ef1b3fb27f80d259e7015a6c3613f48b2f3be824 SHA256 d90aed5fdd275fc86504fc6d10255ca7e63895f8e0278342125c54c4921aa10b +EBUILD vdradmin-am-3.6.4-r1.ebuild 4859 RMD160 a52a5fcd182eb58d80771b9e8c808f37c019d730 SHA1 03bf101876c0b6cd3d7b62e1c15d2a35fb8fc6c1 SHA256 e56c1692eaa7821122b4e94771fa561205ba8062724be4097852421689c8281a +EBUILD vdradmin-am-3.6.4.ebuild 4648 RMD160 fee722fd6254b866dd0be03f4584e08fecad4bf1 SHA1 af6a04d76b6635b2a53bb12db75c74b1a48b31e8 SHA256 ec4096d111a426fd37a9ae4a04905fcff04f3974ae194f93a429e4e5e495b46e +MISC ChangeLog 7407 RMD160 41bee14c7205c71002a60ce4457a460204f7d61e SHA1 6e5fe4734e30cf1a2cf5b61a33967ff673b7d948 SHA256 a9b00279ec1853d621a0b7b874e08985759cc7999cf959ba5803776b28c48d32 +MISC metadata.xml 652 RMD160 c1c8a6d8b9632d603faace3e12b8d8f44afe8b5e SHA1 9eaeaf7403a8221c85d71615e2457be10796e98f SHA256 40a987f0caed004be4922c4d2a5f96472db5dc68aede439e3541a35c6ee8d412 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) +Comment: added by hd_brummy@gentoo.org + +iD8DBQFJ4SZ8dn07HTTCgIoRAm+5AJ46DXvVKiuVmC7uTuhtMZVeyWvVzQCeLnpT +qop1L5CwQohisevldL/vsvs= +=NV15 +-----END PGP SIGNATURE----- diff --git a/www-misc/vdradmin-am/files/confd-2 b/www-misc/vdradmin-am/files/confd-2 new file mode 100644 index 000000000000..c77b6056db64 --- /dev/null +++ b/www-misc/vdradmin-am/files/confd-2 @@ -0,0 +1,14 @@ +# Settings for vdradmin-am + +# Enable this when you know that your +# vdr-binary does support utf8 +# +#VDR_CAN_HANDLE_UTF8=yes + + +# Run vdradmin-am as this user: +# +# If you want vdradmin to run on a port below 1024 you +# should nevertheless have vdradmin running as root. +# +VDRADMIN_USER="vdradmin" diff --git a/www-misc/vdradmin-am/files/vdradmin-4 b/www-misc/vdradmin-am/files/vdradmin-4 new file mode 100644 index 000000000000..43ef2b199934 --- /dev/null +++ b/www-misc/vdradmin-am/files/vdradmin-4 @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-4,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + +depend() { + use vdr +} + +set_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 + : + else + l=$(locale | sed -e 's/\.[uU][tT][fF]\(-\)\?8//' -e 's/^/export /') + eval $l + fi +} + +start() { + ebegin "Starting vdradmin-am" + + : ${VDRADMIN_USER:=vdradmin} + + # Guarantee that vdradmin can access its tmp-dir + chown -R "${VDRADMIN_USER}:vdradmin" /var/tmp/vdradmin + + set_charset + if [ -x /etc/init.d/root ]; then + # running on baselayout-2/openrc + start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" --pidfile /var/tmp/vdradmin/vdradmind.pid \ + --exec /usr/bin/perl /usr/bin/vdradmind + else + start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" --exec /usr/bin/vdradmind + fi + eend $? +} + +stop() { + ebegin "Stopping vdradmin-am" + start-stop-daemon --stop --quiet --pidfile /var/tmp/vdradmin/vdradmind.pid + eend $? +} diff --git a/www-misc/vdradmin-am/files/vdradmin-am-config-autoflush.diff b/www-misc/vdradmin-am/files/vdradmin-am-config-autoflush.diff new file mode 100644 index 000000000000..fb87e362d9ff --- /dev/null +++ b/www-misc/vdradmin-am/files/vdradmin-am-config-autoflush.diff @@ -0,0 +1,10 @@ +--- vdradmind.pl.orig 2006-10-19 13:59:19.000000000 +0200 ++++ vdradmind.pl 2006-10-19 13:59:54.000000000 +0200 +@@ -343,6 +343,7 @@ + if (/--config|-c/) { + ReadConfig() if (-e $CONFFILE); + LoadTranslation(); ++ STDOUT->autoflush(1); + $CONFIG{VDR_HOST} = Question(gettext("What's your VDR hostname (e.g video.intra.net)?"), $CONFIG{VDR_HOST}); + $CONFIG{VDR_PORT} = Question(gettext("On which port does VDR listen to SVDRP queries?"), $CONFIG{VDR_PORT}); + $CONFIG{SERVERHOST} = Question(gettext("On which address should VDRAdmin-AM listen (0.0.0.0 for any)?"), $CONFIG{SERVERHOST}); diff --git a/www-misc/vdradmin-am/files/vdradmin-rc-3 b/www-misc/vdradmin-am/files/vdradmin-rc-3 new file mode 100644 index 000000000000..9933c7eecc00 --- /dev/null +++ b/www-misc/vdradmin-am/files/vdradmin-rc-3 @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-rc-3,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + +depend() { + need vdr +} + +set_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 + : + else + l=$(locale | sed -e 's/\.[uU][tT][fF]\(-\)\?8//' -e 's/^/export /') + eval $l + fi +} + +start() { + ebegin "Starting vdradmin-am" + + : ${VDRADMIN_USER:=vdradmin} + + # Guarantee that vdradmin can access its tmp-dir + chown -R "${VDRADMIN_USER}:vdradmin" /var/tmp/vdradmin + + set_charset + if [ -x /etc/init.d/root ]; then + # running on baselayout-2/openrc + start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" --pidfile /var/tmp/vdradmin/vdradmind.pid \ + --exec /usr/bin/perl /usr/bin/vdradmind.pl + else + start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" --exec /usr/bin/vdradmind.pl + fi + eend $? +} + +stop() { + ebegin "Stopping vdradmin-am" + start-stop-daemon --stop --quiet --pidfile /var/tmp/vdradmin/vdradmind.pid + eend $? +} diff --git a/www-misc/vdradmin-am/metadata.xml b/www-misc/vdradmin-am/metadata.xml new file mode 100644 index 000000000000..613721190802 --- /dev/null +++ b/www-misc/vdradmin-am/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>media-tv</herd> + <maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</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="vdr"> + Support for media-video/vdr. + Disable this if the VDR you want to control runs at a remote machine. + </flag> + </use> +</pkgmetadata> diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.2.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.2.ebuild new file mode 100644 index 000000000000..e55ee418baad --- /dev/null +++ b/www-misc/vdradmin-am/vdradmin-am-3.6.2.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/vdradmin-am-3.6.2.ebuild,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + +inherit eutils + +MY_P="${P/_/}" + +DESCRIPTION="WWW Admin for the Video Disk Recorder" +HOMEPAGE="http://andreas.vdr-developer.org/" +SRC_URI="http://andreas.vdr-developer.org/download/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND="dev-lang/perl + dev-perl/Template-Toolkit + >=virtual/perl-Compress-Zlib-1.2.2 + media-video/vdr + virtual/perl-Compress-Zlib + dev-perl/Locale-gettext + dev-perl/Authen-SASL + dev-perl/Digest-HMAC + dev-perl/URI + sys-devel/gettext" +RDEPEND="${DEPEND}" + +ETC_DIR="/etc/vdradmin" +LIB_DIR="/usr/share/vdradmin" +VDRADMIN_USER="vdradmin" +VDRADMIN_GROUP="vdradmin" +TMP_DIR=/var/tmp/vdradmin + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewuser ${VDRADMIN_USER} -1 /bin/bash ${TMP_DIR} +} + +src_unpack() { + + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-config-autoflush.diff + sed -i vdradmind.pl \ + -e "/COMPILE_DIR/s-/tmp-${TMP_DIR}-" \ + -e "s-/var/run/vdradmind.pid-/var/tmp/vdradmin/vdradmind.pid-" +} + +src_install() { + + newinitd "${FILESDIR}"/vdradmin-rc-3 vdradmin + newconfd "${FILESDIR}"/confd-2 vdradmin + + dobin vdradmind.pl + + insinto ${LIB_DIR}/template + doins -r "${S}"/template/* + + insinto ${LIB_DIR}/lib/Template/Plugin + doins -r "${S}"/lib/Template/Plugin/JavaScript.pm + + insinto /usr/share/locale/ + doins -r "${S}"/locale/* + + exeinto ${LIB_DIR} + doexe autotimer2searchtimer.pl + + dodoc HISTORY INSTALL CREDITS README* REQUIREMENTS FAQ + docinto contrib + dodoc "${S}"/contrib/* + + diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}" + keepdir "${ETC_DIR}" + keepdir "${TMP_DIR}" + + dosed "s:FILES_IN_SYSTEM = 0;:FILES_IN_SYSTEM = 1;:g" /usr/bin/vdradmind.pl +} + +pkg_preinst() { + if [[ -f ${ROOT}${ETC_DIR}/vdradmind.conf ]]; then + cp "${ROOT}"${ETC_DIR}/vdradmind.conf "${D}"${ETC_DIR}/vdradmind.conf + else + elog "Creating a new config-file." + echo + + cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf + VDRCONFDIR = /etc/vdr + VIDEODIR = /var/vdr/video + EPG_FILENAME = /var/vdr/video/epg.data + EPGIMAGES = /var/vdr/video/epgimages + PASSWORD = gentoo-vdr + USERNAME = gentoo-vdr + EOF + # feed it with newlines + yes "" \ + | "${D}"/usr/bin/vdradmind.pl --cfgdir "${D}"${ETC_DIR} --config \ + |sed -e 's/: /: \n/g' + + [[ ${PIPESTATUS[1]} == "0" ]] || die "Failed to create initial configuration." + + elog + elog "Created default user/password: gentoo-vdr/gentoo-vdr" + elog + elog "you can run \"emerge --config vdradmin-am\" if" + elog "the default-values for vdr does not match your" + elog "installation or change it in Setup-Menu of Web-Interface." + elog + fi + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${D}"${ETC_DIR}/vdradmind.conf +} + +pkg_postinst() { + if [[ -d ${ROOT}${ETC_DIR} ]]; then + local owner=$(stat ${ROOT}${ETC_DIR} -c "%U") + if [[ ${owner} != vdradmin ]]; then + elog "Changing ownership of ${ETC_DIR}." + chown -R ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR} + fi + fi + + if [[ -d ${ROOT}/tmp/usr/share/vdradmin ]]; then + ewarn "You have a leftover directory of vdradmin." + ewarn "You can safely remove it with:" + ewarn "# rm -rf /tmp/usr/share/vdradmin/template" + ewarn "# rmdir -p /tmp/usr/share/vdradmin" + fi + + local DEST=/etc/vdr/plugins/epgsearch/epgsearch.conf + local SOURCE=${ETC_DIR}/vdradmind.at + if [[ -s ${ROOT}${SOURCE} ]]; then + ewarn "If you used the autotimer of vdradmin," + ewarn "it is a good idea to convert them now" + ewarn "to use with epgsearch." + ewarn + if [[ ! -d ${ROOT}/etc/vdr/plugins/epgsearch ]]; then + ewarn "# install -d -o vdr -g vdr /etc/vdr/plugins/epgsearch" + fi + + local SIZE=0 + + [[ -e ${DEST} ]] && SIZE=$(grep '^[^#]' ${ROOT}${DEST}|wc -l) + + ewarn "If vdr is running with epgsearch-Plugin loaded you can use (recommended):" + local BASE_CMD="${LIB_DIR}/autotimer2searchtimer.pl -i ${SOURCE}" + ewarn "# ${BASE_CMD} -s" + + ewarn + ewarn "Else you can use this:" + if [[ ${SIZE} == 0 ]]; then + ewarn "# ${BASE_CMD} -o ${DEST}" + else + ewarn "You already have some timers defined!." + ewarn "# ${BASE_CMD} -o ${DEST}.new" + ewarn + ewarn "You need to merge epgsearch.conf and epgsearch.conf.new on your own." + ewarn + fi + ewarn "# chown vdr:vdr ${DEST}" + ewarn + ewarn "If you are sure that epgsearch has got all your timer," + ewarn "then you can delete vdradmin-autotimers." + ewarn "# rm ${SOURCE}" + fi +} + +pkg_config() { + /usr/bin/vdradmind.pl -c + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR}/vdradmind.conf +} diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.4-r1.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.4-r1.ebuild new file mode 100644 index 000000000000..23da75336f85 --- /dev/null +++ b/www-misc/vdradmin-am/vdradmin-am-3.6.4-r1.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/vdradmin-am-3.6.4-r1.ebuild,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + +EAPI="1" + +inherit eutils + +MY_P="${P/_/}" + +DESCRIPTION="WWW Admin for the Video Disk Recorder" +HOMEPAGE="http://andreas.vdr-developer.org/" +SRC_URI="http://andreas.vdr-developer.org/download/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="+vdr" + +DEPEND="dev-lang/perl + dev-perl/Template-Toolkit + >=virtual/perl-Compress-Zlib-1.2.2 + vdr? ( media-video/vdr ) + virtual/perl-Compress-Zlib + dev-perl/Locale-gettext + dev-perl/Authen-SASL + dev-perl/Digest-HMAC + dev-perl/URI + sys-devel/gettext" +RDEPEND="${DEPEND}" + +ETC_DIR="/etc/vdradmin" +LIB_DIR="/usr/share/vdradmin" +VDRADMIN_USER="vdradmin" +VDRADMIN_GROUP="vdradmin" +TMP_DIR=/var/tmp/vdradmin + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewuser ${VDRADMIN_USER} -1 /bin/bash ${TMP_DIR} + + if ! use vdr; then + elog "You can run vdradmin-am outside a vdr install" + elog "but be shure for minimal functionality," + elog "you have access to vdr's epg.data file" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-config-autoflush.diff + sed -i vdradmind.pl \ + -e "/COMPILE_DIR/s-/tmp-${TMP_DIR}-" \ + -e "s-/var/run/vdradmind.pid-/var/tmp/vdradmin/vdradmind.pid-" +} + +src_install() { + newinitd "${FILESDIR}"/vdradmin-4 vdradmin + newconfd "${FILESDIR}"/confd-2 vdradmin + + newbin vdradmind.pl vdradmind + + insinto ${LIB_DIR}/template + doins -r "${S}"/template/* + + insinto ${LIB_DIR}/lib/Template/Plugin + doins -r "${S}"/lib/Template/Plugin/JavaScript.pm + + insinto /usr/share/locale/ + doins -r "${S}"/locale/* + + exeinto ${LIB_DIR} + doexe autotimer2searchtimer.pl + + doman vdradmind.pl.1 + + dodoc HISTORY INSTALL CREDITS README* REQUIREMENTS FAQ ChangeLog + docinto contrib + dodoc "${S}"/contrib/* + + diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}" + keepdir "${ETC_DIR}" + keepdir "${TMP_DIR}" + + dosed "s:FILES_IN_SYSTEM = 0;:FILES_IN_SYSTEM = 1;:g" /usr/bin/vdradmind +} + +pkg_preinst() { + if [[ -f ${ROOT}${ETC_DIR}/vdradmind.conf ]]; then + cp "${ROOT}"${ETC_DIR}/vdradmind.conf "${D}"${ETC_DIR}/vdradmind.conf + else + elog "Creating a new config-file." + echo + + cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf + VDRCONFDIR = /etc/vdr + VIDEODIR = /var/vdr/video + EPG_FILENAME = /var/vdr/video/epg.data + EPGIMAGES = /var/vdr/video/epgimages + PASSWORD = gentoo-vdr + USERNAME = gentoo-vdr + EOF + # feed it with newlines + yes "" \ + | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \ + |sed -e 's/: /: \n/g' + + [[ ${PIPESTATUS[1]} == "0" ]] || die "Failed to create initial configuration." + + elog + elog "Created default user/password: gentoo-vdr/gentoo-vdr" + elog + elog "you can run \"emerge --config vdradmin-am\" if" + elog "the default-values for vdr does not match your" + elog "installation or change it in Setup-Menu of Web-Interface." + elog + fi + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${D}"${ETC_DIR}/vdradmind.conf +} + +pkg_postinst() { + if [[ -d ${ROOT}${ETC_DIR} ]]; then + local owner=$(stat ${ROOT}${ETC_DIR} -c "%U") + if [[ ${owner} != vdradmin ]]; then + elog "Changing ownership of ${ETC_DIR}." + chown -R ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR} + fi + fi + + if [[ -d ${ROOT}/tmp/usr/share/vdradmin ]]; then + ewarn "You have a leftover directory of vdradmin." + ewarn "You can safely remove it with:" + ewarn "# rm -rf /tmp/usr/share/vdradmin/template" + ewarn "# rmdir -p /tmp/usr/share/vdradmin" + fi + + local DEST=/etc/vdr/plugins/epgsearch/epgsearch.conf + local SOURCE=${ETC_DIR}/vdradmind.at + if [[ -s ${ROOT}${SOURCE} ]]; then + ewarn "If you used the autotimer of vdradmin," + ewarn "it is a good idea to convert them now" + ewarn "to use with epgsearch." + ewarn + if [[ ! -d ${ROOT}/etc/vdr/plugins/epgsearch ]]; then + ewarn "# install -d -o vdr -g vdr /etc/vdr/plugins/epgsearch" + fi + + local SIZE=0 + + [[ -e ${DEST} ]] && SIZE=$(grep '^[^#]' ${ROOT}${DEST}|wc -l) + + ewarn "If vdr is running with epgsearch-Plugin loaded you can use (recommended):" + local BASE_CMD="${LIB_DIR}/autotimer2searchtimer.pl -i ${SOURCE}" + ewarn "# ${BASE_CMD} -s" + + ewarn + ewarn "Else you can use this:" + if [[ ${SIZE} == 0 ]]; then + ewarn "# ${BASE_CMD} -o ${DEST}" + else + ewarn "You already have some timers defined!." + ewarn "# ${BASE_CMD} -o ${DEST}.new" + ewarn + ewarn "You need to merge epgsearch.conf and epgsearch.conf.new on your own." + ewarn + fi + ewarn "# chown vdr:vdr ${DEST}" + ewarn + ewarn "If you are sure that epgsearch has got all your timer," + ewarn "then you can delete vdradmin-autotimers." + ewarn "# rm ${SOURCE}" + fi +} + +pkg_config() { + /usr/bin/vdradmind -c + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR}/vdradmind.conf +} diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.4.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.4.ebuild new file mode 100644 index 000000000000..73fa24a060c7 --- /dev/null +++ b/www-misc/vdradmin-am/vdradmin-am-3.6.4.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/vdradmin-am-3.6.4.ebuild,v 1.1 2009/04/11 23:23:28 hd_brummy Exp $ + +inherit eutils + +MY_P="${P/_/}" + +DESCRIPTION="WWW Admin for the Video Disk Recorder" +HOMEPAGE="http://andreas.vdr-developer.org/" +SRC_URI="http://andreas.vdr-developer.org/download/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND="dev-lang/perl + dev-perl/Template-Toolkit + >=virtual/perl-Compress-Zlib-1.2.2 + media-video/vdr + virtual/perl-Compress-Zlib + dev-perl/Locale-gettext + dev-perl/Authen-SASL + dev-perl/Digest-HMAC + dev-perl/URI + sys-devel/gettext" +RDEPEND="${DEPEND}" + +ETC_DIR="/etc/vdradmin" +LIB_DIR="/usr/share/vdradmin" +VDRADMIN_USER="vdradmin" +VDRADMIN_GROUP="vdradmin" +TMP_DIR=/var/tmp/vdradmin + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewuser ${VDRADMIN_USER} -1 /bin/bash ${TMP_DIR} +} + +src_unpack() { + + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-config-autoflush.diff + sed -i vdradmind.pl \ + -e "/COMPILE_DIR/s-/tmp-${TMP_DIR}-" \ + -e "s-/var/run/vdradmind.pid-/var/tmp/vdradmin/vdradmind.pid-" +} + +src_install() { + + newinitd "${FILESDIR}"/vdradmin-4 vdradmin + newconfd "${FILESDIR}"/confd-2 vdradmin + + newbin vdradmind.pl vdradmind + + insinto ${LIB_DIR}/template + doins -r "${S}"/template/* + + insinto ${LIB_DIR}/lib/Template/Plugin + doins -r "${S}"/lib/Template/Plugin/JavaScript.pm + + insinto /usr/share/locale/ + doins -r "${S}"/locale/* + + exeinto ${LIB_DIR} + doexe autotimer2searchtimer.pl + + doman vdradmind.pl.1 + + dodoc HISTORY INSTALL CREDITS README* REQUIREMENTS FAQ + docinto contrib + dodoc "${S}"/contrib/* + + diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}" + keepdir "${ETC_DIR}" + keepdir "${TMP_DIR}" + + dosed "s:FILES_IN_SYSTEM = 0;:FILES_IN_SYSTEM = 1;:g" /usr/bin/vdradmind +} + +pkg_preinst() { + if [[ -f ${ROOT}${ETC_DIR}/vdradmind.conf ]]; then + cp "${ROOT}"${ETC_DIR}/vdradmind.conf "${D}"${ETC_DIR}/vdradmind.conf + else + elog "Creating a new config-file." + echo + + cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf + VDRCONFDIR = /etc/vdr + VIDEODIR = /var/vdr/video + EPG_FILENAME = /var/vdr/video/epg.data + EPGIMAGES = /var/vdr/video/epgimages + PASSWORD = gentoo-vdr + USERNAME = gentoo-vdr + EOF + # feed it with newlines + yes "" \ + | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \ + |sed -e 's/: /: \n/g' + + [[ ${PIPESTATUS[1]} == "0" ]] || die "Failed to create initial configuration." + + elog + elog "Created default user/password: gentoo-vdr/gentoo-vdr" + elog + elog "you can run \"emerge --config vdradmin-am\" if" + elog "the default-values for vdr does not match your" + elog "installation or change it in Setup-Menu of Web-Interface." + elog + fi + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${D}"${ETC_DIR}/vdradmind.conf +} + +pkg_postinst() { + if [[ -d ${ROOT}${ETC_DIR} ]]; then + local owner=$(stat ${ROOT}${ETC_DIR} -c "%U") + if [[ ${owner} != vdradmin ]]; then + elog "Changing ownership of ${ETC_DIR}." + chown -R ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR} + fi + fi + + if [[ -d ${ROOT}/tmp/usr/share/vdradmin ]]; then + ewarn "You have a leftover directory of vdradmin." + ewarn "You can safely remove it with:" + ewarn "# rm -rf /tmp/usr/share/vdradmin/template" + ewarn "# rmdir -p /tmp/usr/share/vdradmin" + fi + + local DEST=/etc/vdr/plugins/epgsearch/epgsearch.conf + local SOURCE=${ETC_DIR}/vdradmind.at + if [[ -s ${ROOT}${SOURCE} ]]; then + ewarn "If you used the autotimer of vdradmin," + ewarn "it is a good idea to convert them now" + ewarn "to use with epgsearch." + ewarn + if [[ ! -d ${ROOT}/etc/vdr/plugins/epgsearch ]]; then + ewarn "# install -d -o vdr -g vdr /etc/vdr/plugins/epgsearch" + fi + + local SIZE=0 + + [[ -e ${DEST} ]] && SIZE=$(grep '^[^#]' ${ROOT}${DEST}|wc -l) + + ewarn "If vdr is running with epgsearch-Plugin loaded you can use (recommended):" + local BASE_CMD="${LIB_DIR}/autotimer2searchtimer.pl -i ${SOURCE}" + ewarn "# ${BASE_CMD} -s" + + ewarn + ewarn "Else you can use this:" + if [[ ${SIZE} == 0 ]]; then + ewarn "# ${BASE_CMD} -o ${DEST}" + else + ewarn "You already have some timers defined!." + ewarn "# ${BASE_CMD} -o ${DEST}.new" + ewarn + ewarn "You need to merge epgsearch.conf and epgsearch.conf.new on your own." + ewarn + fi + ewarn "# chown vdr:vdr ${DEST}" + ewarn + ewarn "If you are sure that epgsearch has got all your timer," + ewarn "then you can delete vdradmin-autotimers." + ewarn "# rm ${SOURCE}" + fi +} + +pkg_config() { + /usr/bin/vdradmind -c + chown ${VDRADMIN_USER}:${VDRADMIN_GROUP} "${ROOT}"${ETC_DIR}/vdradmind.conf +} |