Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 692666
Collapse All | Expand All

(-)a/vdr-plugin.eselect (-2 / +21 lines)
Lines 2-14 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id: bashcomp.eselect 367 2007-03-28 14:35:23Z pioto $
3
# $Id: bashcomp.eselect 367 2007-03-28 14:35:23Z pioto $
4
4
5
inherit multilib
6
5
DESCRIPTION="Manage VDR plugins"
7
DESCRIPTION="Manage VDR plugins"
6
MAINTAINER="zzam@gentoo.org"
8
MAINTAINER="zzam@gentoo.org"
7
SVN_DATE='$Date: 2010-01-22 21:28:20 +0100 (Fr, 22. Jan 2010) $'
9
SVN_DATE='$Date: 2010-01-22 21:28:20 +0100 (Fr, 22. Jan 2010) $'
8
VERSION=$(svn_date_to_version "${SVN_DATE}")
10
VERSION=$(svn_date_to_version "${SVN_DATE}")
9
11
10
find_plugins() {
12
find_plugins() {
11
	local plugins plugin f plugindir="${ROOT}/usr/lib/vdr/plugins"
13
	local plugins plugin f plugindir="${ROOT}/usr/$(lib_dir)/vdr/plugins"
12
14
13
	for f in ${plugindir}/libvdr-*.so* ; do
15
	for f in ${plugindir}/libvdr-*.so* ; do
14
		[[ -e ${f} ]] || continue
16
		[[ -e ${f} ]] || continue
Lines 42-48 is_enabled() { Link Here
42
}
44
}
43
45
44
plugin_exists() {
46
plugin_exists() {
45
	local f plugindir="${ROOT}/usr/lib/vdr/plugins"
47
	local f plugindir="${ROOT}/usr/$(lib_dir)/vdr/plugins"
46
48
47
	for f in ${plugindir}/libvdr-${1}.so.*; do
49
	for f in ${plugindir}/libvdr-${1}.so.*; do
48
		[[ -e "${f}" ]] && return 0
50
		[[ -e "${f}" ]] && return 0
Lines 50-55 plugin_exists() { Link Here
50
	return 1
52
	return 1
51
}
53
}
52
54
55
lib_dir() {
56
	local lib_list=$(list_libdirs)
57
	if [[ ${lib_list} =~ .*lib64.* && \
58
			-n $(ls -d ${ROOT}/usr/lib64/vdr/plugins 2> /dev/null) ]] ; then
59
			echo "lib64"
60
	elif [[ ${lib_list} =~ .*lib32.* && \
61
			-n $(ls -d ${ROOT}/usr/lib32/vdr/plugins 2> /dev/null) ]] ; then
62
			echo "lib32"
63
	elif [[ ${lib_list} =~ .*libx32.* && \
64
			-n $(ls -d ${ROOT}/usr/libx32/vdr/plugins 2> /dev/null) ]] ; then
65
			echo "libx32"
66
	else
67
			echo "lib"
68
	fi
69
}
70
71
53
### show action ###
72
### show action ###
54
73
55
describe_show() {
74
describe_show() {

Return to bug 692666