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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   24-Mar-2005 19:03:30
  Branch: HEAD                             Handle: 2005032418033000

  Added files:
    openpkg-src/thunderbird thunderbird.patch thunderbird.spec

  Log:
    new package: thunderbird 1.0.2 (Graphical Mail Client)

  Summary:
    Revision    Changes     Path
    1.1         +119 -0     openpkg-src/thunderbird/thunderbird.patch
    1.1         +227 -0     openpkg-src/thunderbird/thunderbird.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/thunderbird/thunderbird.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 thunderbird.patch
  --- /dev/null 2005-03-24 19:00:11 +0100
  +++ thunderbird.patch 2005-03-24 19:03:30 +0100
  @@ -0,0 +1,119 @@
  +Index: nsprpub/pr/include/md/_freebsd.h
  +--- nsprpub/pr/include/md/_freebsd.h.orig    Sat Feb 16 09:12:55 2002
  ++++ nsprpub/pr/include/md/_freebsd.h Thu Aug  8 19:31:23 2002
  +@@ -40,6 +40,7 @@
  + #if __FreeBSD__ >= 2
  + #include <osreldate.h>  /* for __FreeBSD_version */
  + #endif
  ++#include <sys/param.h>
  + #include <sys/syscall.h>
  + 
  + #define PR_LINKER_ARCH      "freebsd"
  +Index: nsprpub/pr/include/md/_pth.h
  +--- nsprpub/pr/include/md/_pth.h.orig        2002-12-12 00:10:39 +0100
  ++++ nsprpub/pr/include/md/_pth.h     2004-12-27 19:52:48 +0100
  +@@ -90,7 +90,7 @@
  + #define _PT_PTHREAD_MUTEXATTR_INIT        pthread_mutexattr_init
  + #define _PT_PTHREAD_MUTEXATTR_DESTROY     pthread_mutexattr_destroy
  + #define _PT_PTHREAD_MUTEX_INIT(m, a)      pthread_mutex_init(&(m), &(a))
  +-#define _PT_PTHREAD_MUTEX_IS_LOCKED(m)    (EBUSY == 
pthread_mutex_trylock(&(m)))
  ++#define _PT_PTHREAD_MUTEX_IS_LOCKED(m)    (0 != pthread_mutex_trylock(&(m)))
  + #if defined(DARWIN)
  + #define _PT_PTHREAD_CONDATTR_INIT(x)      0
  + #else
  +Index: nsprpub/pr/src/md/unix/unix.c
  +--- nsprpub/pr/src/md/unix/unix.c.orig       Sat May 31 18:06:04 2003
  ++++ nsprpub/pr/src/md/unix/unix.c    Sat May 31 18:04:43 2003
  +@@ -65,7 +65,8 @@
  +  * PRInt32* pointer to a _PRSockLen_t* pointer.
  +  */
  + #if defined(HAVE_SOCKLEN_T) \
  +-    || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
  ++    || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \
  ++    || defined(FREEBSD)
  + #define _PRSockLen_t socklen_t
  + #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \
  +     || defined(AIX4_1) || defined(LINUX) || defined(SONY) \
  +@@ -73,7 +74,7 @@
  +     || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \
  +     || defined(NEXTSTEP) || defined(QNX)
  + #define _PRSockLen_t int
  +-#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \
  ++#elif (defined(AIX) && !defined(AIX4_1)) \
  +     || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \
  +     || defined(DGUX) || defined(VMS) || defined(NTO)
  + #define _PRSockLen_t size_t
  +Index: nsprpub/pr/src/pthreads/ptio.c
  +--- nsprpub/pr/src/pthreads/ptio.c.orig      2003-07-15 00:12:19 +0200
  ++++ nsprpub/pr/src/pthreads/ptio.c   2004-12-27 19:54:28 +0100
  +@@ -189,7 +189,7 @@
  + #endif
  + #endif
  + 
  +-#ifdef DARWIN
  ++#if defined(DARWIN) || defined(FREEBSD)
  + static PRBool _pr_ipv6_v6only_on_by_default;
  + /* The IPV6_V6ONLY socket option is not defined on Mac OS X 10.1. */
  + #ifndef IPV6_V6ONLY
  +@@ -1154,7 +1154,7 @@
  +     _pr_stderr = pt_SetMethods(2, PR_DESC_FILE, PR_FALSE, PR_TRUE);
  +     PR_ASSERT(_pr_stdin && _pr_stdout && _pr_stderr);
  + 
  +-#ifdef DARWIN
  ++#if defined(DARWIN) || defined(FREEBSD)
  +     /* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option
  +      * is turned on by default, contrary to what RFC 3493, Section
  +      * 5.3 says.  So we have to turn it off.  Find out whether we
  +@@ -3462,7 +3462,7 @@
  +     if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno);
  +     else
  +     {
  +-#ifdef DARWIN
  ++#if defined(DARWIN) || defined(FREEBSD)
  +         if ((domain == AF_INET6) && _pr_ipv6_v6only_on_by_default)
  +         {
  +             int on = 0;
  +@@ -3470,6 +3470,17 @@
  +                     &on, sizeof(on));
  +         }
  + #endif
  ++#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \
  ++    defined(__FreeBSD__) && defined(IPV6_V6ONLY)
  ++            if (domain == PR_AF_INET6) {
  ++                    int opt = 0;
  ++                    if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY,
  ++                        &opt, sizeof(opt))) {
  ++                            close(osfd);
  ++                            return NULL;
  ++                    }
  ++            }
  ++#endif  
  +         fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE);
  +         if (fd == NULL) close(osfd);
  +     }
  +Index: layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp
  +--- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig  2005-02-04 
20:01:59 +0100
  ++++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp       2005-02-04 
20:02:52 +0100
  +@@ -50,6 +50,11 @@
  + #include "nsRenderingContextGTK.h"
  + #include <gdk/gdkx.h>
  + #include <cairo.h>
  ++#ifdef CAIRO_HAS_XLIB_SURFACE
  ++#include <cairo-xlib.h>
  ++#else
  ++#error Require Cairo with Xlib backend
  ++#endif
  + 
  + /**
  +  * \addtogroup cairo_renderer Cairo Rendering Engine
  +Index: layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp
  +--- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig    
2004-03-16 22:40:07 +0100
  ++++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2005-02-04 
20:03:40 +0100
  +@@ -50,6 +50,7 @@
  + #include "nsIDOMSVGRect.h"
  + #include "nsSVGTypeCIDs.h"
  + #include "nsIComponentManager.h"
  ++#include <stdlib.h>
  + #include <cairo.h>
  + 
  + /**
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/thunderbird/thunderbird.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 thunderbird.spec
  --- /dev/null 2005-03-24 19:00:11 +0100
  +++ thunderbird.spec  2005-03-24 19:03:30 +0100
  @@ -0,0 +1,227 @@
  +##
  +##  thunderbird.spec -- OpenPKG RPM Package Specification
  +##  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.
  +##
  +
  +#   package information
  +Name:         thunderbird
  +Summary:      Graphical Mail Client
  +URL:          http://www.mozilla.org/products/thunderbird/
  +Vendor:       The Mozilla Project
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Web
  +License:      MPL
  +Version:      1.0.2
  +Release:      20050324
  +
  +#   package options
  +%option       with_optimize   yes
  +
  +#   list of sources
  +Source0:      
ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}-source.tar.bz2
  +Source1:      thunderbird.sh
  +Source2:      thunderbird.pod
  +Patch0:       thunderbird.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc, perl, pkgconfig
  +PreReq:       OpenPKG, openpkg >= 20040130, xsel, wmctrl
  +BuildPreReq:  X11, glib, gtk, png, jpeg, orbit, libiconv
  +PreReq:       X11, glib, gtk, png, jpeg, orbit, libiconv
  +BuildPreReq:  infozip, zlib, openssl, freetype, cairo, cairo::with_x11 = yes
  +PreReq:       infozip, zlib, openssl, freetype, cairo, cairo::with_x11 = yes
  +AutoReq:      no
  +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.
  +
  +%track
  +    prog thunderbird = {
  +        version   = %{version}
  +        url       = 
ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/
  +        regex     = (__VER__)
  +        url       = 
ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/__NEWVER__/source/
  +        regex     = thunderbird-(__VER__)-source\.tar\.bz2
  +    }
  +
  +%prep
  +    #   extract source distribution
  +    %setup -q -n mozilla
  +
  +    #   patch source distribution
  +    %patch -p0
  +
  +    #   strip down source distribution (save disk space)
  +    find . -type d -name "CVS" -print | xargs rm -rf
  +    find . -type d -name "macbuild" -print | xargs rm -rf
  +    find . -type f -name ".cvsignore" -print | xargs rm -f
  +    find . -type f -name "makefile.win" -print | xargs rm -f
  +    find . -type f -name "MANIFEST" -print | xargs rm -f
  +    rm -rf build/package
  +
  +%build
  +    #   determine X11 paths
  +    x11_libdir=`%{l_rc} --query x11_libdir`
  +    x11_incdir=`%{l_rc} --query x11_incdir`
  +
  +    #   determine build flags
  +    CC="%{l_cc}"
  +    CXX="%{l_cxx}"
  +    CFLAGS="%{l_cflags} %{l_cppflags} -I${x11_incdir}"
  +    CXXFLAGS="%{l_cxxflags} -Wno-deprecated %{l_cppflags}"
  +    CPPFLAGS="%{l_cppflags glib} -I${x11_incdir}"
  +    LDFLAGS="-L`pwd`/dist/bin -L`pwd`/dist/lib -L`pwd`/dist/lib/components"
  +    LDFLAGS="$LDFLAGS %{l_ldflags} -L${x11_libdir}"
  +    LIBS="`%{l_prefix}/bin/gtk-config --libs`"
  +    GLIB_CONFIG="%{l_prefix}/bin/glib-config"
  +    GTK_CONFIG="%{l_prefix}/bin/gtk-config"
  +    LIBIDL_CONFIG="%{l_prefix}/bin/libIDL-config"
  +    PERL="%{l_prefix}/bin/perl"
  +    MOZILLA_OFFICIAL=1
  +    BUILD_OFFICIAL=1
  +    MOZ_THUNDERBIRD=1
  +    export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS
  +    export GLIB_CONFIG GTK_CONFIG LIBIDL_CONFIG
  +    export MOZILLA_OFFICIAL BUILD_OFFICIAL
  +    export MOZ_THUNDERBIRD
  +
  +    #   configure source
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --libdir=%{l_prefix}/lib/thunderbird \
  +        --with-default-mozilla-five-home=%{l_prefix}/lib/thunderbird \
  +        --includedir=%{l_prefix}/include/thunderbird \
  +        --with-x \
  +        --x-includes=`%{l_rc} --query x11_incdir` \
  +        --x-libraries=`%{l_rc} --query x11_libdir` \
  +        --enable-default-toolkit=gtk \
  +        --with-gtk-prefix=%{l_prefix} \
  +        --with-glib-prefix=%{l_prefix} \
  +        --with-libIDL-prefix=%{l_prefix} \
  +        --with-system-jpeg=%{l_prefix} \
  +        --with-system-png=%{l_prefix} \
  +        --with-system-zlib=%{l_prefix} \
  +        --with-ft-prefix=%{l_prefix} \
  +        --with-user-appdir=.thunderbird \
  +        --enable-extensions=default \
  +        --enable-jsd \
  +        --enable-crypto \
  +        --enable-chrome-format=jar \
  +        --enable-svg \
  +        --enable-svg-renderer-cairo \
  +        --enable-static \
  +        --enable-strip \
  +%if "%{with_optimize}" == "yes"
  +        --enable-optimize="-O2" \
  +%else
  +        --disable-optimize \
  +%endif
  +        --enable-mailnews \
  +        --enable-composer \
  +        --disable-browser \
  +        --disable-xft \
  +        --disable-freetype2 \
  +        --disable-xinerama \
  +        --disable-shared \
  +        --disable-tests \
  +        --disable-ldap \
  +        --disable-accessibility \
  +        --disable-debug \
  +        --disable-dtd-debug \
  +        --disable-pedantic \
  +        --disable-auto-deps \
  +        --disable-md \
  +        --disable-cpp-exceptions \
  +        --disable-cpp-rtti \
  +        --disable-xterm-updates \
  +        --disable-elf-dynstr-gc \
  +        --disable-installer \
  +        --disable-profilesharing \
  +        --enable-single-profile \
  +        --with-pthreads
  +
  +    #   build program
  +    %{l_make} %{l_mflags}
  +
  +    #   post adjustments to built program
  +    ( cd dist/bin
  +      #   prepare for multi-user usage
  +      LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
  +      MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
  +      ./regxpcom || true
  +      ./regchrome || true
  +      touch chrome/user-skins.rdf chrome/user-locales.rdf
  +
  +      #   re-adjust paths to reflect final location
  +      %{l_shtool} subst \
  +          -e "s;`pwd`;%{l_prefix}/lib/thunderbird;" \
  +          components/xpti.dat components/compreg.dat
  +
  +      #   strip down installation tree
  +      find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
  +      rm -f mozilla-config mkdepend nsinstall bloaturls.txt TestGtk* LICENSE 
README
  +      rm -rf res/samples
  +
  +      #   workaround run-time startup problems
  +      mkdir .autoreg >/dev/null 2>&1 || true
  +    ) || exit $?
  +
  +    #   generate manual page for startup convenience wrapper
  +    %{l_prefix}/bin/pod2man \
  +        --section=1 --quotes=none \
  +        --release="Mozilla %{version}" --center="%{packager}" \
  +        %{SOURCE thunderbird.pod} >thunderbird.1
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +
  +    #   generate temporary installation tree
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/thunderbird \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1
  +
  +    #   move files into temporary installation tree
  +    ( cd dist/bin && %{l_tar} -chf - . ) |\
  +        ( cd $RPM_BUILD_ROOT%{l_prefix}/lib/thunderbird && %{l_tar} -xf - ) 
|| exit $?
  +
  +    #   add startup convenience wrapper
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE thunderbird.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/thunderbird
  +    %{l_shtool} install -c -m 644 \
  +        thunderbird.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to