[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-cvs
Subject:    [CVS] OpenPKG: openpkg-src/thunderbird/ thunderbird.pod thunderbird.sh...
From:       "Michael Schloh" <ms () openpkg ! org>
Date:       2005-03-30 10:27:38
Message-ID: 20050330102738.69A8E1B5B2C () master ! openpkg ! org
[Download RAW message or body]

  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /v/openpkg/cvs                   Email:  ms@openpkg.org
  Module: openpkg-src                      Date:   30-Mar-2005 12:27:38
  Branch: HEAD                             Handle: 2005033011273800

  Added files:
    openpkg-src/thunderbird thunderbird.pod thunderbird.sh
  Modified files:
    openpkg-src/thunderbird thunderbird.spec

  Log:
    add as per .spec packaged .pod and .sh files to CVS, correct
    description, but leave incorrect .pod flawed until further review

  Summary:
    Revision    Changes     Path
    1.1         +131 -0     openpkg-src/thunderbird/thunderbird.pod
    1.1         +200 -0     openpkg-src/thunderbird/thunderbird.sh
    1.2         +11 -5      openpkg-src/thunderbird/thunderbird.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/thunderbird/thunderbird.pod
  ============================================================================
  $ cvs diff -u -r0 -r1.1 thunderbird.pod
  --- /dev/null	2005-03-30 12:22:01 +0200
  +++ thunderbird.pod	2005-03-30 12:27:38 +0200
  @@ -0,0 +1,131 @@
  +##
  +##  firefox.pod -- Mozilla Firefox Startup Control Utility (manpage)
  +##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +=pod
  +
  +=head1 NAME
  +
  +B<firefox> -- Mozilla Firefox Startup Control Utility
  +
  +=head1 SYNOPSIS
  +
  +B<firefox>
  +[B<-v>|B<--verbose>]
  +[B<-w>|B<--window>]
  +[B<-t>|B<--tab>]
  +[B<-r>|B<-remote>|B<--remote> I<command>]
  +[I<url> ...]
  +
  +=head1 DESCRIPTION
  +
  +The B<firefox> command is small startup control utility for the
  +B<Mozilla Firefox> browser (http://www.mozilla.org/). It makes sure that
  +no more than one B<Mozilla Firefox> instance is running at the same time
  +and allows you to conveniently load URLs from the command line into new
  +browser windows, new browser tabs or into the currently open browser
  +view.
  +
  +The following command line options are recognized:
  +
  +=over 4
  +
  +=item B<-v>, B<--verbose>
  +
  +Displays verbose messages on F<stderr> while performing the
  +B<Mozilla Firefox> control actions.
  +
  +=item B<-w>, B<--window>
  +
  +Opens the URL(s) into new browser windows.
  +
  +=item B<-t>, B<--tab>
  +
  +Opens the URL(s) into new browser tabs.
  +
  +=item B<-r>, B<-remote>, B<--remote> I<command>
  +
  +This is for compatibility with the lower level C<mozilla>
  +executable. It just passes through the options I<command>.
  +
  +=back
  +
  +The following URL(s) are recognized on the command line:
  +
  +=over 4
  +
  +=item C<http://>..., C<https://...>, C<ftp://>...
  +
  +Fully qualified URLs are passed through as-is.
  +
  +=item C<google:>I<wordlist>
  +
  +Expands into a Google (http://www.google.com/) query URL for the given
  +I<wordlist>.
  +
  +=item C<leo:>I<wordlist>
  +
  +Expands into a Leo English/German Dictionary (http://dict.leo.org/)
  +query URL for the given I<wordlist>.
  +
  +=item C<ftpsearch:>I<wordlist>
  +
  +Expands into an AllTheWeb FTPSearch (http://www.alltheweb.com/) query URL for the \
given  +I<wordlist>.
  +
  +=item C<rfc:>I<number>
  +
  +Expands into a Zvon RFC retrival URL (http://zvon.org/) for the given
  +RFC I<number>.
  +
  +=item C<whois:>I<domain>
  +
  +Expands into a Geektools WHOIS query (http://www.geektools.com/) query URL
  +for the given I<domain>.
  +
  +=item C</>I<path>, I<path>
  +
  +Expands the absolute or relative Unix filesystem I<path> into a fully
  +qualified C<file> scheme URL.
  +
  +=item C<auto:>...
  +
  +Trys to autodetect the query.
  +
  +=back 
  +
  +Additionally any URL argument can contain an at-sign ("C<@>"), which
  +is replaced with the current contents of the X11 selection buffer.
  +
  +=head1 SEE ALSO
  +
  +http://www.mozilla.org/unix/remote.html
  +
  +=head1 HISTORY
  +
  +This utility was written in November 2002 by B<Ralf S. Engelschall>
  +E<lt>rse@engelschall.comE<gt> for use with the B<OpenPKG> I<mozilla>
  +package.
  +
  +=cut
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/thunderbird/thunderbird.sh
  ============================================================================
  $ cvs diff -u -r0 -r1.1 thunderbird.sh
  --- /dev/null	2005-03-30 12:22:01 +0200
  +++ thunderbird.sh	2005-03-30 12:27:38 +0200
  @@ -0,0 +1,200 @@
  +#!/bin/sh
  +##
  +##  thunderbird -- Mozilla Thunderbird Startup Control Utility
  +##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   configuration
  +thunderbird_dir="@l_prefix@/lib/thunderbird"
  +thunderbird_bin="@l_prefix@/lib/thunderbird/thunderbird"
  +xsel_bin="@l_prefix@/bin/xsel"
  +
  +#   option parsing
  +opt_v=no
  +opt_w=no
  +opt_t=no
  +opt_r=""
  +while [ ".$1" != . ]; do
  +    case $1 in
  +        -v|--verbose ) opt_v=yes; shift ;;
  +        -w|--window  ) opt_w=yes; shift ;;
  +        -t|--tab     ) opt_t=yes; shift ;;
  +        -r|-remote|--remote ) opt_r="$2"; shift; shift ;;
  +        -* ) echo "$0:ERROR: invalid option \"$1\"" 1>&2; exit 1 ;;
  +        * ) break ;;
  +    esac
  +done
  +if [ $# -eq 0 ]; then
  +    set -- ""
  +fi
  +
  +verbose () {
  +    if [ ".$opt_v" = .yes ]; then
  +        echo "thunderbird: $*" 1>&2
  +    fi
  +}
  +
  +#   establish Mozilla environment
  +MOZILLA_FIVE_HOME="$thunderbird_dir"
  +export MOZILLA_FIVE_HOME
  +LANG=en_US.ISO8859-1
  +export LANG
  +
  +#   special case of direct remote option
  +if [ ".$opt_r" != . ]; then
  +    verbose "exec: $thunderbird_bin -remote \"$opt_r\""
  +    exec $thunderbird_bin -remote "$opt_r"
  +fi
  +
  +#   determine Mozilla run-time status
  +$thunderbird_bin -remote "ping()" >/dev/null 2>&1
  +if [ $? -eq 0 ]; then
  +    verbose "process already running (available remotely)"
  +    restart=no
  +else
  +    verbose "process still not running (not available remotely)"
  +    restart=yes
  +fi
  +
  +#   open one or more URLs
  +first=yes
  +for url in "$@"; do
  +    #   determine URL to open
  +    if [ ".`echo .$url | grep '@'`" != . ]; then
  +        #   expand at-sign into X11 selection buffer
  +        xsel=`($xsel_bin --paste) 2>/dev/null`
  +        url=`echo "$url" | sed -e "s;@;$xsel;"`
  +    fi
  +    if [ ".$url" = . ]; then
  +        #   expand an empty URL into the internal blank page
  +        url="about:blank"
  +    else
  +        #   expand special URL constructs
  +        case "$url" in
  +            auto:* )
  +                url=`echo "$url" | sed -e 's;^auto:;;'`
  +                case "$url" in
  +                    http://* | https://* | ftp://* ) ;;
  +                    www.* ) url="http://$url" ;;
  +                    ftp.* ) url="ftp://$url" ;;
  +                    *.tar.gz | *.tgz ) url="ftpsearch:$url" ;;
  +                    *" "* ) url="google:$url" ;;
  +                    [0-9]* ) url="rfc:$url" ;;
  +                    * ) url="leo:$url" ;;
  +                esac
  +                ;;
  +        esac
  +        case "$url" in
  +            http://* | https://* | ftp://* )
  +                : # URL is already fully qualified
  +                ;;
  +            google:* ) 
  +                #   expand Google query
  +                url=`echo "$url" | sed -e 's;^google:;;' | tr ' ' '+'`
  +                url="http://www.google.com/search?q=$url"
  +                ;;
  +            leo:* ) 
  +                #   expand Leo Dictionary query
  +                url=`echo "$url" | sed -e 's;^leo:;;' | tr ' ' '+'`
  +                url="http://dict.leo.org/?search=$url"
  +                ;;
  +            ftpsearch:* ) 
  +                #   expand FTPSearch query
  +                url=`echo "$url" | sed -e 's;^ftpsearch:;;' | sed -e 's; ;%20;g'`
  +                url="http://www.alltheweb.com/search?advanced=1&cat=ftp&q=$url"
  +                ;;
  +            rfc:* )
  +                #   expand Zvon.org RFC query
  +                url=`echo "$url" | sed -e 's;^rfc:;;'`
  +                url="http://zvon.org/tmRFC/RFC$url/Output/index.html"
  +                ;;
  +            whois:* )
  +                #   expand Geektools.com WHOIS query
  +                url=`echo "$url" | sed -e 's;^whois:;;'`
  +                url="http://www.geektools.com/cgi-bin/proxy.cgi?query=$url"
  +                ;;
  +            jargon:* )
  +                #   expand UMEC Jargon File query
  +                url=`echo "$url" | sed -e 's;^jargon:;;' | tr ' ' '+'`
  +                url="http://www.tf.hut.fi/cgi-bin/jargon?search=$url"
  +                ;;
  +            /* ) 
  +                #   expand absolute filename into file URL
  +                url="file://$url"
  +                ;;
  +            * ) 
  +                #   expand relative filename into file URL
  +                url="file://`pwd`/$url"
  +                ;;
  +        esac
  +    fi
  +
  +    if [ ".$first" = .yes -a ".$restart" = .yes ]; then
  +        #   handling of first URL if restarting is necessary
  +        verbose "running new process"
  +        if [ ".$url" = ".about:blank" ]; then
  +            verbose "exec: $thunderbird_bin >/dev/null 2>&1 &"
  +            $thunderbird_bin >/dev/null 2>&1 &
  +        else
  +            verbose "exec: $thunderbird_bin \"$url\" >/dev/null 2>&1 &"
  +            $thunderbird_bin "$url" >/dev/null 2>&1 &
  +        fi
  +    else
  +        #   delayed waiting for process to be finally remotely available
  +        #   if it was started from scratch for the handling of the first
  +        #   URL. This way we wait only if necessary, i.e., if more than
  +        #   one URL was given.
  +        if [ ".$first" = .no -a ".$restart" = .yes ]; then
  +            verbose "waiting for new process to be available remotely"
  +            sleep 4 # give it a little bit of time to fully startup
  +            i=0
  +            while [ $i -lt 10 ]; do
  +                $thunderbird_bin -remote "ping()" >/dev/null 2>&1
  +                if [ $? -eq 0 ]; then
  +                    break
  +                fi
  +                sleep 1 # give it a little bit more time to startup
  +                i=`expr $i + 1`
  +            done
  +        fi
  +
  +        #   determine remote command
  +        if [ ".$opt_w" = .yes ]; then
  +            if [ ".$url" = ".about:blank" ]; then
  +                cmd="xfeDoCommand(openBrowser)"
  +            else
  +                cmd="openURL($url, new-window)"
  +            fi
  +        elif [ ".$opt_t" = .yes ]; then
  +            cmd="openURL($url, new-tab)"
  +        else
  +            cmd="openURL($url)"
  +        fi
  +
  +        #   perform remote command
  +        verbose "sending remote command to running process"
  +        verbose "exec: $thunderbird_bin -remote \"$cmd\" >/dev/null 2>&1"
  +        $thunderbird_bin -remote "$cmd" >/dev/null 2>&1
  +    fi
  +    first=no
  +done
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/thunderbird/thunderbird.spec
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 thunderbird.spec
  --- openpkg-src/thunderbird/thunderbird.spec	24 Mar 2005 18:03:30 -0000	1.1
  +++ openpkg-src/thunderbird/thunderbird.spec	30 Mar 2005 10:27:38 -0000	1.2
  @@ -33,10 +33,10 @@
   Group:        Web
   License:      MPL
   Version:      1.0.2
  -Release:      20050324
  +Release:      20050330
   
   #   package options
  -%option       with_optimize   yes
  +%option       with_optimize  yes
   
   #   list of sources
   Source0:      ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2
  @@ -57,9 +57,15 @@
   AutoReqProv:  no
   
   %description
  -    Firefox is a speedy, full-featured Web browser based on the Mozilla
  -    codebase. It uses the Mozilla Gecko engine for rendering the Mozilla
  -    Web content and XUL for presenting the GUI.
  +    Setting a new standard for email software, Thunderbird is Mozilla
  +    organizations' next generation standalone email and newsgroup
  +    client. Lightweight, fast, and extensible, it can be used as a
  +    companion to the Mozilla Firefox browser or simply by itself.
  +
  +    Furthermore, Thunderbird makes emailing safer, faster, and easier
  +    than ever before with the industry's best implementations of
  +    features such as intelligent spam filters, built-in RSS reader,
  +    quick search, and much more.
   
   %track
       prog thunderbird = {
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic