Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 258414 Details for
Bug 68434
net-misc/tigervnc should coexist with net-misc/tightvnc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
vnc eselect module. usage is obvious enough
vnc.eselect (text/plain), 2.51 KB, created by
Thomas Zwaagstra
on 2010-12-30 00:27:16 UTC
(
hide
)
Description:
vnc eselect module. usage is obvious enough
Filename:
MIME Type:
Creator:
Thomas Zwaagstra
Created:
2010-12-30 00:27:16 UTC
Size:
2.51 KB
patch
obsolete
># -*-eselect-*- vim: ft=eselect ># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >DESCRIPTION="Manage the VNC provider" >MAINTAINER="Tom" >VERSION="0.1" > >symlink_creator() { > local target=${1} > if is_number "${target}" ; then > local targets=( $(find_targets) ) > target="${targets[target - 1]}${3}" > fi > > echo "target: ${target}" > > if [[ -z ${1} ]] ; then > # no parameter > die -q "You didn't tell me what VNC provider to symlink" > elif [[ -L ${EROOT}${2} ]] ; then > # existing symlink > if ! remove_symlink ${2}; then > die -q "Couldn't remove existing symlink" > elif ! set_symlink "${1}" "${2}"; then > die -q "Couldn't set a new symlink" > fi > elif [[ -e "${EROOT}${2}" ]] ; then > # we have something strange > die -q "${EROOT}${2} exists but is not a symlink" > else > set_symlink "${1}" "${2}" || die -q "Couldn't set a new symlink" > fi >} > ># find a list of VNC providers >find_targets() { > local f > for f in "${EROOT}"/usr/bin/*vncviewer ; do > if [[ ! -L ${f} ]]; then > basename "${f}" | sed 's/vncviewer$//' > fi > done >} > ># try to remove the kernel symlink >remove_symlink() { > rm "${EROOT}${1}" > #echo "${EROOT}${1}" >} > ># set the kernel symlink >set_symlink() { > > if [[ -z ${target} ]] ; then > die -q "Target \"${1}\" doesn't appear to be valid!" > elif [[ -e ${EROOT}/usr/bin/${target} ]] ; then > ln -s "${target}" "${2}" > fi >} > >### show action ### > >describe_show() { > echo "Show the current VNC provider" >} > >do_show() { > write_list_start "Current VNC provider:" > if [[ -L ${EROOT}/usr/bin/vncviewer ]] ; then > local kernel=$(canonicalise "${EROOT}/usr/bin/vncviewer") > write_kv_list_entry "${kernel%/}" "" > else > write_kv_list_entry "(unset)" "" > fi >} > >### list action ### > >describe_list() { > echo "List available VNC providers" >} > >do_list() { > local i targets=( $(find_targets) ) > write_list_start "Available VNC providers:" > for (( i = 0; i < ${#targets[@]}; i++ )) ; do > [[ ${targets[i]} = \ > $(basename "$(canonicalise "${EROOT}/usr/src/linux")") ]] \ > && targets[i]=$(highlight_marker "${targets[i]}") > done > write_numbered_list -m "(none found)" "${targets[@]}" >} > >### set action ### > >describe_set() { > echo "Set the VNC provider" >} > >describe_set_parameters() { > echo "<target>" >} > >describe_set_options() { > echo "target : Target name or number (from 'list' action)" >} > >do_set() { > > for command in "vncviewer" "vncconfig" "vncserver" "x0vncserver" "vncpasswd" "Xvnc"; do > #if [[ -e "${vncprefix}" ]]; then > symlink_creator "${1}" "/usr/bin/${command}" ${command} > #fi > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 68434
:
258411
|
258412
| 258414