summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-tv/vdrplugin-rebuild/ChangeLog75
-rw-r--r--media-tv/vdrplugin-rebuild/Manifest14
-rw-r--r--media-tv/vdrplugin-rebuild/files/vdrplugin-rebuild-0.2282
-rw-r--r--media-tv/vdrplugin-rebuild/metadata.xml9
-rw-r--r--media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild38
5 files changed, 0 insertions, 418 deletions
diff --git a/media-tv/vdrplugin-rebuild/ChangeLog b/media-tv/vdrplugin-rebuild/ChangeLog
deleted file mode 100644
index 6ba2c38e4830..000000000000
--- a/media-tv/vdrplugin-rebuild/ChangeLog
+++ /dev/null
@@ -1,75 +0,0 @@
-# ChangeLog for media-tv/vdrplugin-rebuild
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/ChangeLog,v 1.16 2008/06/15 08:29:59 zmedico Exp $
-
- 15 Jun 2008; Zac Medico <zmedico@gentoo.org> vdrplugin-rebuild-0.2.ebuild:
- Bug #226505 - For compatibility with phase execution order in
- >=portage-2.1.5, call has_version inside pkg_preinst instead of
- pkg_postinst.
-
- 27 Nov 2007; Matthias Schwarzott <zzam@gentoo.org>
- vdrplugin-rebuild-0.2.ebuild:
- Fixed quoting.
-
- 08 Oct 2007; Matthias Schwarzott <zzam@gentoo.org>
- vdrplugin-rebuild-0.2.ebuild:
- Block >=media-tv/gentoo-vdr-scripts-0.4.2 as that will absorb
- vdrplugin-rebuild. Fixed quoting.
-
- 13 Mar 2007; Matthias Schwarzott <zzam@gentoo.org>
- files/vdrplugin-rebuild-0.2:
- Replaced external program which by bash-internal type -p.
-
- 07 Feb 2007; Matthias Schwarzott <zzam@gentoo.org>
- -files/vdrplugin-rebuild-0.1, -vdrplugin-rebuild-0.1.ebuild:
- Removed old ebuild.
-
- 05 Jan 2007; Joerg Bornkessel <hd_brummy@gentoo.org>
- vdrplugin-rebuild-0.2.ebuild:
- einfo converted to elog
-
- 09 Dec 2006; Matthias Schwarzott <zzam@gentoo.org>
- vdrplugin-rebuild-0.2.ebuild:
- Marked stable on x86.
-
-*vdrplugin-rebuild-0.2 (19 Oct 2006)
-
- 19 Oct 2006; Matthias Schwarzott <zzam@gentoo.org>
- +files/vdrplugin-rebuild-0.2, +vdrplugin-rebuild-0.2.ebuild:
- Added new version with new database format. pkg_postinst populates the new
- database from looking at /var/db/pkg.
-
- 01 Aug 2006; Matthias Schwarzott <zzam@gentoo.org> metadata.xml:
- Assigned to VDR-Project.
-
- 02 Apr 2006; Matthias Schwarzott <zzam@gentoo.org>
- files/vdrplugin-rebuild-0.1:
- Added comment line.
-
- 13 Sep 2005; Matthias Schwarzott <zzam@gentoo.org>
- vdrplugin-rebuild-0.1.ebuild:
- Marked stable on x86.
-
- 13 Sep 2005; Matthias Schwarzott <zzam@gentoo.org>
- files/vdrplugin-rebuild-0.1:
- Report right version number.
-
- 08 Aug 2005; David Holm <dholm@gentoo.org> vdrplugin-rebuild-0.1.ebuild:
- Added to ~ppc.
-
- 08 Aug 2005; Matthias Schwarzott <zzam@gentoo.org>
- files/vdrplugin-rebuild-0.1:
- changed help texts from referring kernel modules to vdrplugins
-
- 07 Aug 2005; Matthias Schwarzott <zzam@gentoo.org>
- vdrplugin-rebuild-0.1.ebuild:
- Added to ~amd64.
-
-*vdrplugin-rebuild-0.1 (07 Aug 2005)
-
- 07 Aug 2005; Matthias Schwarzott <zzam@gentoo.org>
- +files/vdrplugin-rebuild-0.1, +metadata.xml,
- +vdrplugin-rebuild-0.1.ebuild:
- import of program to rebuild all installed vdrplugins, code and ebuild is
- from sys-kernel/module-rebuild-0.5
-
diff --git a/media-tv/vdrplugin-rebuild/Manifest b/media-tv/vdrplugin-rebuild/Manifest
deleted file mode 100644
index 482b2cca876e..000000000000
--- a/media-tv/vdrplugin-rebuild/Manifest
+++ /dev/null
@@ -1,14 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX vdrplugin-rebuild-0.2 6397 RMD160 af72422b2d96501d0a975f8f3b6088511cd9c8b6 SHA1 e5a3df936e07cc8ddd6b17d8a59ccefbbe9ceea3 SHA256 be3afaad7a1de981044cf2397c816f74a0e24918bf56193213755ee8d97aa675
-EBUILD vdrplugin-rebuild-0.2.ebuild 993 RMD160 b9a84bc3a5015f7f4614e7021ae2f3b1c21f79a0 SHA1 4b7bb07a21a38b136065300ff42191f5f57be29a SHA256 9aeef82fd944ab3aa754a05c98a1a2bcb814e73ab636e86c9d86f0651bafc4d4
-MISC ChangeLog 2581 RMD160 161faebadddb6863c8df8f42059cbb44e6df98bf SHA1 6e9a9390b6ebf50c9086f54ddddce2ae87e7a8e4 SHA256 82ecc843605095d6f0d206065c4625208a6a37e8613bb963be8151d01c4cbcf9
-MISC metadata.xml 257 RMD160 8bee49b98c59996aaaa019fb2c764c08d8004507 SHA1 d2419394e7d5c7463d7dea33e9190ebd57484531 SHA256 0dd45fbbaf1c6173535e371e3ff8a3faa41f3f89123ac9dffe338998599ebe26
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkhU0w4ACgkQ/ejvha5XGaM9fgCeOAjYt597IqrjKnda7xyw7X+M
-dp4AoLNzRYnhZlw0RhB3nby5EylTqypN
-=mtxY
------END PGP SIGNATURE-----
diff --git a/media-tv/vdrplugin-rebuild/files/vdrplugin-rebuild-0.2 b/media-tv/vdrplugin-rebuild/files/vdrplugin-rebuild-0.2
deleted file mode 100644
index c9de15495741..000000000000
--- a/media-tv/vdrplugin-rebuild/files/vdrplugin-rebuild-0.2
+++ /dev/null
@@ -1,282 +0,0 @@
-#!/bin/bash
-#######################################
-# Inspiration from bug #34921
-# Thanks to Paul Varner
-
-# Distributed under the GPL v2
-# Written by John Mylchreest (johnm@gentoo.org)
-
-# This version is based on module-rebuild-0.5
-
-# Changed for vdrplugins by Matthias Schwarzott (zzam@gentoo.org)
-# Copyright Gentoo Linux
-
-# Changed to a new db-format with seperate files for each ebuild.
-
-if [[ `id -u` != 0 ]]; then
- echo "This application must be ran as root."
- exit 1
-fi
-
-R_VERSION="0.2"
-R_MODULES="${ROOT}/usr/share/vdr/vdrplugin-rebuild"
-R_PORTAGEQ="`type -p portageq 2>/dev/null`"
-if [[ -z ${R_PORTAGEQ} ]]; then
- echo "** FATAL: Unable to find portageq."
- exit 1
-fi
-R_PORTDIR=`${R_PORTAGEQ} portdir`
-R_VDBPATH=`${R_PORTAGEQ} vdb_path`
-R_OPTION_X=0;
-R_OPTION_C=0;
-
-package_valid() {
- local package=${1}
- [[ -z ${package} ]] && return 1
- [[ -z ${package/*\/*} ]] && return 0 || return 1
-}
-
-package_valid_strict() {
- local package=${1}
- package_valid ${package} && [[ -z ${package%%*-[0-9]*} ]] && return 0 || return 1
-}
-
-package_exists() {
- local package=${1}
-
- package=${package%-[0-9]*}
- if $(${R_PORTAGEQ} has_version / ${package}); then
- return 0
- else
- return 1
- fi
-}
-
-db_module_exists() {
- local package=${1} dbfile
-
- dbfile=${R_MODULES}/${package/\//-}
-
- [[ -e ${dbfile} ]] && grep -q VDRPLUGIN_DB ${dbfile} && return 0
- return 1
-}
-
-db_module_add() {
- local package=${1}
-
- if db_module_exists ${package}; then
- echo -e "${C_BOLD}** Module ${package} already exists in vdrplugindb.${C_NORM}"
- return 0
- else
- if package_exists ${package}; then
- echo -e "${C_BOLD}${C_GREEN}** Adding ${package} to vdrplugindb.${C_NORM}"
- local ebuild=${package%-[0-9]*}
- local ebuild_v="${package#${ebuild}-}"
- cat <<-EOT > ${R_MODULES}/${package/\//-}
- VDRPLUGIN_DB=1
- CREATOR=vdrplugin-rebuild-POPULATE
- EBUILD=${ebuild}
- EBUILD_V=${ebuild_v}
- EOT
- return 0
- else
- echo -e "${C_RED}** Unable to locate an available ebuild for ${package}.${C_NORM}"
- echo "** Please manually emerge ${package} first."
- fi
- fi
- return 1
-}
-
-db_module_del() {
- local package=${1}
-
- if db_module_exists ${package}; then
- echo "** Removing ${package} from vdrplugindb."
- rm ${R_MODULES}/${package/\//-}
- return 0
- else
- echo "** ${package} not found in vdrplugindb."
- return 1
- fi
-}
-
-db_module_list() {
- local dbfile line auto pkg a=0 b=0 ebuild ebuild_v
-
- for dbfile in $(find /usr/share/vdr/vdrplugin-rebuild/ -type f); do
- grep -q VDRPLUGIN_DB=1 ${dbfile} || continue
- eval $(source ${dbfile}; echo ebuild=${EBUILD}; echo ebuild_v=${EBUILD_V})
-
- auto=1
-
- if [[ ${R_OPTION_X} == 1 ]]; then
- pkg=${ebuild}
- package_valid ${pkg}
- else
- pkg=${ebuild}-${ebuild_v}
- package_valid_strict ${pkg} && pkg="=${pkg}"
- fi
-
- if [[ ${auto} = 1 ]]; then
- tomerge[${a}]=${pkg}
- a=$((${a} + 1))
- else
- toignore[${b}]=${pkg}
- b=$((${b} + 1))
- fi
- done
-
- pkg="${tomerge[@]}${toignore[@]}"
- if [[ -z ${pkg} ]]; then
- echo -e "${C_BOLD}${C_RED}** There are no known modules. Quitting.${C_NORM}"
- exit 1
- fi
-
- if [[ -n ${tomerge[@]} ]]; then
- echo -e "${C_BOLD}${C_GREEN}** Packages which I will emerge are:${C_NORM}"
- for pkg in ${tomerge[@]}; do
- echo -e "\t${pkg}"
- done
- fi
-
- if [[ -n ${toignore[@]} ]]; then
- echo -e "${C_BOLD}${C_GREEN}** Packages which I will ignore are:${C_NORM}"
- for pkg in ${toignore[@]}; do
- echo -e "\t${pkg}"
- done
- fi
-}
-
-db_module_populate() {
- local i x=0 pkg version list pad
-
- echo -e "${C_BOLD}${C_GREEN}** Populating database with installed Packages.${C_NORM}"
- # Lets find them all
- # chances are we will get a few dupes in here.
- for pkg in `grep -i /usr/lib/vdr/plugins/libvdr ${R_VDBPATH}/*/*/CONTENTS`; do
- pad=""; x=0;
-
- if [[ -z ${pkg//${R_VDBPATH}*} ]]; then
- for((i=0;i<=${#pkg};i++)); do
- [[ ${pkg:${i}:1} = / ]] && x=$((${x} + 1));
- [[ ${x} == 4 ]] || [[ ${x} == 5 ]] && pad="${pad}${pkg:${i}:1}";
- done
- # Remove any dupes
- list=${list//${pad:1}}
- list="${list} ${pad:1}"
- fi
- done
-
- for pkg in ${list}; do
- db_module_add ${pkg};
- done
-}
-
-db_module_merge() {
- local i pkg
-
- echo -e "${C_BOLD}** Preparing to merge modules:${C_NORM}"
- db_module_list >/dev/null
-
- if [[ -z ${tomerge[@]} ]]; then
- echo -e "${C_BOLD}${C_RED}** No packages to merge. Quitting.${C_NORM}"
- exit 1
- fi
-
- echo -e "${C_BOLD}${C_GREEN}** Packages which I will emerge are:"${C_NORM}
- for pkg in ${tomerge[@]}; do
- echo -e "\t${pkg}"
- done
-
- for((i=1;i<6;i++)); do
- echo -en "${C_BOLD}${C_RED}$((6 - ${i})) ${C_NORM}"
- sleep 1
- done
- echo
-
- emerge --oneshot --nodeps ${tomerge[@]}
-}
-
-phelp() {
-cat << EOF
-vdrplugin-rebuild [options] action [category/package]
-Version: ${R_VERSION}
-
-Where options are:
- -X - Emerge based on package names,
- not exact versions.
- -C - Disable all coloured output.
-
-Where action is one of:
- add - Add package to vdrplugindb.
- del - Delete a package from vdrplugindb.
- list - List packages to auto-rebuild.
- rebuild - Rebuild packages.
- populate - Populate the database with any
- packages which currently install
- plugins for vdr.
-
-EOF
-
-}
-
-check_validity() {
- local package=${1} strict=${2:-0} ret=1
-
- [[ ${strict} = 0 ]] && package_valid ${package} && ret=0
- [[ ${strict} = 1 ]] && package_valid_strict ${package} && ret=0
-
- if [[ ${ret} != 0 ]]; then
- echo "** Please pass the fully qualified package. For example:"
- echo "** media-plugins/vdr-femon-0.9.1"
- exit 1
- fi
-}
-
-while getopts "XC" options; do
- case ${options} in
- X) R_OPTION_X='1';;
- C) R_OPTION_C='1';;
- *) phelp; exit 1;;
- esac
-done
-
-if [[ ${R_OPTION_C} == 0 ]]; then
- C_BOLD='\e[1m'
- C_NORM='\e[0m'
- C_GREEN='\e[32m'
- C_RED='\e[31m'
-else
- C_BOLD=''
- C_NORM=''
- C_GREEN=''
- C_RED=''
-fi
-
-x=0
-for i in ${@:${OPTIND}}; do
- if [[ ${i:0:1} != - ]]; then
- R_PARAMS[${x}]=${i}
- x=$((${x} + 1))
- fi
-done
-unset i x
-
-# If the vdrplugindb doesnt exist, lets populate it automatically.
-if [[ ! -d ${R_MODULES} ]]; then
- echo -e "${C_BOLD}${C_RED}No vdrplugindb found...${C_NORM}"
-
- mkdir -p ${R_MODULES}
-
- echo -e "${C_BOLD}Populating vdrplugindb...${C_NORM}"
- R_PARAMS[0]=populate
-fi
-
-case ${R_PARAMS[0]} in
- add) check_validity ${R_PARAMS[1]} 1; db_module_add ${R_PARAMS[1]};;
- del) check_validity ${R_PARAMS[1]}; db_module_del ${R_PARAMS[1]};;
- list) db_module_list;;
- rebuild) db_module_merge;;
- populate) db_module_populate;;
- *) phelp; exit 1;;
-esac
diff --git a/media-tv/vdrplugin-rebuild/metadata.xml b/media-tv/vdrplugin-rebuild/metadata.xml
deleted file mode 100644
index 7b718b6f9765..000000000000
--- a/media-tv/vdrplugin-rebuild/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?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>
-</pkgmetadata>
diff --git a/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild b/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild
deleted file mode 100644
index 96832ae26309..000000000000
--- a/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/vdrplugin-rebuild/vdrplugin-rebuild-0.2.ebuild,v 1.7 2008/06/15 08:29:59 zmedico Exp $
-
-DESCRIPTION="A utility to rebuild any plugins for vdr which you have installed."
-HOMEPAGE="http://www.gentoo.org/"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
-IUSE=""
-
-RDEPEND="!>=media-tv/gentoo-vdr-scripts-0.4.2"
-
-src_install() {
- newsbin "${FILESDIR}/${P%_rc*}" ${PN}
- keepdir /usr/share/vdr/vdrplugin-rebuild
-}
-
-pkg_preinst() {
- has_version "<=${CATEGORY}/${PN}-0.1"
- previous_less_or_equal_to_0_1=$?
-}
-
-pkg_postinst() {
- if [[ $previous_less_or_equal_to_0_1 = 0 ]] ; then
- # populate new database
- "${ROOT}"/usr/sbin/vdrplugin-rebuild populate
-
- local OLD_DB="${ROOT}"/var/lib/vdrplugin-rebuild
- if [[ -d "${OLD_DB}" ]]; then
- elog "Removing old vdrplugindb."
- rm "${OLD_DB}"/vdrplugindb*
- rmdir "${OLD_DB}"
- fi
- fi
-}