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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web openpkg$ Date:   27-Nov-2003 11:48:22
  Branch: HEAD                             Handle: 2003112710481903

  Added files:
    openpkg-re/vcheck       vc.distcc
    openpkg-src/distcc      distcc.patch distcc.spec rc.distcc
  Modified files:
    openpkg-web             news.txt

  Log:
    new package: distcc 2.11.2 (Distributing C Compiler Framework)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.distcc
    1.1         +14 -0      openpkg-src/distcc/distcc.patch
    1.1         +126 -0     openpkg-src/distcc/distcc.spec
    1.1         +70 -0      openpkg-src/distcc/rc.distcc
    1.7557      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.distcc
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.distcc
  --- /dev/null 2003-11-27 11:48:20.000000000 +0100
  +++ vc.distcc 2003-11-27 11:48:20.000000000 +0100
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog distcc = {
  +  version   = 2.11.2
  +  url       = http://distcc.samba.org/download.html
  +  regex     = distcc-(__VER__)\.tar\.bz2
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/distcc/distcc.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 distcc.patch
  --- /dev/null 2003-11-27 11:48:22.000000000 +0100
  +++ distcc.patch      2003-11-27 11:48:22.000000000 +0100
  @@ -0,0 +1,14 @@
  +Index: Makefile.in
  +--- Makefile.in.orig 2003-10-13 08:09:48.000000000 +0200
  ++++ Makefile.in      2003-11-27 11:14:12.000000000 +0100
  +@@ -370,8 +370,8 @@
  + 
  + [EMAIL PROTECTED]@: $(mon_obj) $(gnome_obj)
  +     $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS)    \
  +-            `pkg-config --cflags --libs $(GNOME_PACKAGES) ` \
  +-            $(mon_obj) $(gnome_obj)
  ++            `pkg-config --cflags $(GNOME_PACKAGES) ` \
  ++            $(mon_obj) $(gnome_obj) `pkg-config --libs $(GNOME_PACKAGES)`
  + 
  + 
  + ## Dist targets
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/distcc/distcc.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 distcc.spec
  --- /dev/null 2003-11-27 11:48:22.000000000 +0100
  +++ distcc.spec       2003-11-27 11:48:22.000000000 +0100
  @@ -0,0 +1,126 @@
  +##
  +##  distcc.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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:         distcc
  +Summary:      Distributing C Compiler Framework
  +URL:          http://distcc.samba.org/
  +Vendor:       Martin Pool
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Network
  +License:      GPL
  +Version:      2.11.2
  +Release:      20031127
  +
  +#   package option
  +%option       with_x11 no
  +
  +#   list of sources
  +Source0:      http://distcc.samba.org/ftp/distcc/distcc-%{version}.tar.bz2
  +Source1:      rc.distcc
  +Patch0:       distcc.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030103, popt
  +PreReq:       OpenPKG, openpkg >= 20030103
  +%if "%{with_x11}" == "yes"
  +BuildPreReq:  X11, gtk2
  +PreReq:       X11, gtk2
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    distcc is a program to distribute builds of C, C++, Objective C or
  +    Objective C++ code across several machines on a network. distcc
  +    should always generate the same results as a local build, is simple
  +    to install and use, and is often two or more times faster than a
  +    local compile. distcc does not require all machines to share a
  +    filesystem, have synchronized clocks, or to have the same libraries
  +    or header files installed. They can even have different processors
  +    or operating systems, if cross-compilers are installed.
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    #   configure program
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    LIBS="-lpopt" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --sysconfdir=%{l_prefix}/etc/distcc \
  +%if "%{with_x11}" == "yes"
  +        --with-gtk \
  +%endif
  +        --without-included-popt
  +
  +    #   build program
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    #   install program
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  +
  +    #   post-adjust installation
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/distcc
  +
  +    #   create additional directories
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/distcc \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/distcc/tmp \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/distcc/run
  +
  +    #   install hosts configuration
  +    echo "localhost" >hosts
  +    %{l_shtool} install -c -m 644 \
  +        hosts $RPM_BUILD_ROOT%{l_prefix}/etc/distcc/
  +
  +    #   install run-command script
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE rc.distcc} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/distcc/*' \
  +        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/distcc/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/distcc/rc.distcc
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.distcc
  --- /dev/null 2003-11-27 11:48:22.000000000 +0100
  +++ rc.distcc 2003-11-27 11:48:22.000000000 +0100
  @@ -0,0 +1,70 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.distcc -- Run-Commands
  +##
  +
  +%config
  +    distcc_enable="$openpkg_rc_def"
  +    distcc_listen="127.0.0.1"
  +    distcc_accept="127.0.0.1/8"
  +    distcc_flags=""
  +    distcc_log_prolog="true"
  +    distcc_log_epilog="true"
  +    distcc_log_numfiles="10"
  +    distcc_log_minsize="1M"
  +    distcc_log_complevel="9"
  +
  +%common
  +    distcc_tmpdir="@l_prefix@/var/distcc/tmp"
  +    distcc_pidfile="@l_prefix@/var/distcc/run/distcc.pid"
  +    distcc_logfile="@l_prefix@/var/distcc/run/distcc.log"
  +    distcc_signal () {
  +        [ -f $distcc_pidfile ] && kill -$1 `cat $distcc_pidfile`
  +    }
  +
  +%status -u @l_susr@ -o
  +    distcc_usable="unknown"
  +    distcc_active="no"
  +    rcService distcc enable yes && \
  +        distcc_signal 0 && distcc_active="yes"
  +    echo "distcc_enable=\"$distcc_enable\""
  +    echo "distcc_usable=\"$distcc_usable\""
  +    echo "distcc_active=\"$distcc_active\""
  +
  +%start -p 100 -u @l_susr@
  +    rcService distcc enable yes || exit 0
  +    rcService distcc active yes && exit 0
  +    flags=""
  +    flags="$flags --daemon"
  +    flags="$flags --user \"@[EMAIL PROTECTED]""
  +    flags="$flags --listen \"$distcc_listen\""
  +    for accept in $distcc_accept; do
  +        flags="$flags --allow \"$accept\""
  +    done
  +    flags="$flags --pid-file $distcc_pidfile"
  +    flags="$flags --log-file $distcc_logfile "
  +    flags="$flags $distcc_flags"
  +    eval TMPDIR="$distcc_tmpdir" \
  +        @l_prefix@/bin/distccd $flags
  +
  +%stop -p 100 -u @l_susr@
  +    rcService distcc enable yes || exit 0
  +    rcService distcc active no  && exit 0
  +    distcc_signal TERM
  +    sleep 2
  +    rm -f $distcc_pidfile >/dev/null 2>&1 || true
  +
  +%restart -p 100 -u @l_susr@
  +    rcService distcc enable yes || exit 0
  +    rcService distcc active no  && exit 0
  +    rc distcc stop start
  +
  +%daily -u @l_susr@
  +    rcService distcc enable yes || exit 0
  +    shtool rotate -f \
  +        -n ${distcc_log_numfiles} -s ${distcc_log_minsize} -d \
  +        -z ${distcc_log_complevel} -m 664 -o @l_susr@ -g @l_mgrp@ \
  +        -P "${distcc_log_prolog}" \
  +        -E "${distcc_log_epilog} && rc distcc restart" \
  +        $distcc_logfile
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.7556 -r1.7557 news.txt
  --- openpkg-web/news.txt      27 Nov 2003 09:36:32 -0000      1.7556
  +++ openpkg-web/news.txt      27 Nov 2003 10:48:20 -0000      1.7557
  @@ -1,3 +1,4 @@
  +27-Nov-2003: New package: P<distcc-2.11.2-20031127>
   27-Nov-2003: Upgraded package: P<gcc34-3.4s20031126-20031127>
   27-Nov-2003: Upgraded package: P<db-4.2.50.0-20031127>
   27-Nov-2003: Upgraded package: P<siege-2.57-20031127>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to