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:   01-Oct-2003 10:32:00
  Branch: HEAD                             Handle: 2003100109315702

  Added files:
    openpkg-re/vcheck       vc.quagga
    openpkg-src/quagga      bgpd.conf ospfd.conf quagga.spec rc.quagga
                            ripd.conf vtysh.conf zebra.conf
  Modified files:
    openpkg-web             news.txt

  Log:
    new package: quagga 0.96.2 (Internet Routing Daemon)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.quagga
    1.1         +8  -0      openpkg-src/quagga/bgpd.conf
    1.1         +8  -0      openpkg-src/quagga/ospfd.conf
    1.1         +144 -0     openpkg-src/quagga/quagga.spec
    1.1         +98 -0      openpkg-src/quagga/rc.quagga
    1.1         +8  -0      openpkg-src/quagga/ripd.conf
    1.1         +5  -0      openpkg-src/quagga/vtysh.conf
    1.1         +8  -0      openpkg-src/quagga/zebra.conf
    1.6798      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.quagga
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.quagga
  --- /dev/null 2003-10-01 10:31:58.000000000 +0200
  +++ vc.quagga 2003-10-01 10:31:58.000000000 +0200
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog quagga = {
  +  version   = 0.96.2
  +  url       = http://www.quagga.net/download/
  +  regex     = quagga-(__VER__)\.tar\.gz
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/bgpd.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 bgpd.conf
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ bgpd.conf 2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,8 @@
  +!
  +!   bgpd.conf -- Zebra BGP Daemon Configuration
  +!
  +hostname bgpd
  +password zebra
  +enable password zebra
  +!router bgp
  +!
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/ospfd.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ospfd.conf
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ ospfd.conf        2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,8 @@
  +!
  +!   ospfd.conf -- Zebra OSPF Daemon Configuration
  +!
  +hostname ospfd
  +password zebra
  +enable password zebra
  +!router ospf
  +!
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/quagga.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 quagga.spec
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ quagga.spec       2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,144 @@
  +##
  +##  quagga.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:         quagga
  +Summary:      Internet Routing Daemon
  +URL:          http://www.quagga.net/
  +Vendor:       Kunihiro Ishiguro
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Network
  +License:      GPL
  +Version:      0.96.2
  +Release:      20031001
  +
  +#   list of sources
  +Source0:      http://www.quagga.net/download/quagga-%{version}.tar.gz
  +Source1:      rc.quagga
  +Source2:      bgpd.conf
  +Source3:      ospfd.conf
  +Source4:      ripd.conf
  +Source5:      zebra.conf
  +Source6:      vtysh.conf
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030718, gcc, perl
  +PreReq:       OpenPKG, openpkg >= 20030718
  +BuildPreReq:  readline
  +PreReq:       readline
  +AutoReq:      no
  +AutoReqProv:  no
  +Conflicts:    zebra
  +
  +%description
  +    Quagga (a fork of GNU Zebra) is free software (distributed under GNU
  +    Generic Public License) that manages TCP/IP based routing protocols.
  +    It supports BGP-4 protocol as described in RFC1771 (A Border Gateway
  +    Protocol 4) as well as RIPv1, RIPv2 and OSPFv2. Unlike traditional,
  +    Gated based, monolithic architectures and even the so-called "new
  +    modular architectures" that remove the burden of processing routing
  +    functions from the CPU and utilize special ASIC chips instead, Zebra
  +    software offers true modularity.
  +
  +%prep
  +    %setup -q
  +
  +%build
  +    #   configure package
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --sysconfdir=%{l_prefix}/etc/quagga \
  +        --localstatedir=%{l_prefix}/var/quagga \
  +        --enable-vtysh \
  +        --disable-ospf6d \
  +        --disable-ripngd \
  +        --disable-ipv6 \
  +        --without-libpam
  +
  +    #   build package
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +
  +    #   install package
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +
  +    #   strip down package
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/ospf6d.8
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/ripngd.8
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  +    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  +
  +    #   replace default configuration
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/quagga/*
  +    %{l_shtool} install -c -m 600 %{l_value -s -a} \
  +        %{SOURCE zebra.conf} %{SOURCE vtysh.conf} \
  +        %{SOURCE ripd.conf} %{SOURCE ospfd.conf} %{SOURCE bgpd.conf} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/quagga/
  +    %{l_shtool} install -c -m 600 /dev/null \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/quagga/zebra.conf.integrate
  +
  +    #   install run-command script
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE rc.quagga} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   make sure pid and log directory exists
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/quagga
  +
  +    #   determine package file list
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/quagga/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  +%post
  +    #   after upgrade, restart service
  +    [ $1 -eq 2 ] || exit 0
  +    eval `%{l_rc} quagga status 2>/dev/null`
  +    [ ".$quagga_active" = .yes ] && %{l_rc} quagga restart
  +    exit 0
  +
  +%preun
  +    #   before erase, stop service and remove log files
  +    [ $1 -eq 0 ] || exit 0
  +    %{l_rc} quagga stop 2>/dev/null
  +    rm -f $RPM_INSTALL_PREFIX/var/quagga/quagga.log* >/dev/null 2>&1 || true
  +    exit 0
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/rc.quagga
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.quagga
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ rc.quagga 2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,98 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.quagga -- Run-Commands
  +##
  +
  +%config
  +    quagga_enable="$openpkg_rc_def"
  +    quagga_protocols="rip ospf bgp"
  +    quagga_flags=""
  +    quagga_bind="127.0.0.1"
  +    quagga_port="2601"
  +    quagga_rip_flags=""
  +    quagga_rip_bind="${quagga_bind}"
  +    quagga_rip_port="2602"
  +    quagga_ospf_flags=""
  +    quagga_ospf_bind="${quagga_bind}"
  +    quagga_ospf_port="2604"
  +    quagga_bgp_flags=""
  +    quagga_bgp_bind="${quagga_bind}"
  +    quagga_bgp_port="2605"
  +    quagga_log_prolog="true"
  +    quagga_log_epilog="true"
  +    quagga_log_numfiles="10"
  +    quagga_log_minsize="1M"
  +    quagga_log_complevel="9"
  +
  +%status -u @l_susr@ -o
  +    quagga_usable="unknown"
  +    quagga_active="no"
  +    if [ -f @l_prefix@/var/quagga/zebra.pid ]; then
  +        kill -0 `cat @l_prefix@/var/quagga/zebra.pid` >/dev/null 2>&1 || true
  +        if [ $? -eq 0 ]; then
  +            quagga_active="yes"
  +        fi
  +    fi
  +    echo "quagga_enable=\"$quagga_enable\""
  +    echo "quagga_usable=\"$quagga_usable\""
  +    echo "quagga_active=\"$quagga_active\""
  +
  +%start -u @l_susr@
  +    rcService quagga enable yes || exit 0
  +    rcService quagga active yes && exit 0
  +    cd @l_prefix@/etc/quagga
  +    for i in zebra $quagga_protocols; do
  +        if [ ".$i" = .zebra ]; then
  +            midfix=""
  +            daemon="${i}";
  +        else
  +            midfix="${i}_";
  +            daemon="${i}d";
  +        fi
  +        if [ -x @l_prefix@/sbin/${daemon} ]; then
  +            flags=`eval echo \\\$quagga_${midfix}flags`;
  +            extra=`eval echo \\\$quagga_${midfix}bind`;
  +            echo $flags | grep -- -A >/dev/null
  +            if [ $? -ne 0 -a ".$extra" != . ]; then
  +                flags="$flags -A $extra"
  +            fi
  +            extra=`eval echo \\\$quagga_${midfix}port`;
  +            echo $flags | grep -- -P >/dev/null
  +            if [ $? -ne 0 -a ".$extra" != . ]; then
  +                flags="$flags -P $extra"
  +            fi
  +            @l_prefix@/sbin/${daemon} -d ${flags}
  +        fi
  +    done
  +    @l_prefix@/bin/vtysh -b
  +
  +%stop -u @l_susr@
  +    rcService quagga enable yes || exit 0
  +    rcService quagga active no  && exit 0
  +    if [ -f @l_prefix@/var/quagga/zebra.pid ]; then
  +        kill -TERM `cat @l_prefix@/var/quagga/zebra.pid` >/dev/null 2>&1 || true
  +    fi
  +    for protocol in $quagga_protocols; do
  +        if [ -f @l_prefix@/var/quagga/${protocol}d.pid ]; then
  +            kill -TERM `cat @l_prefix@/var/quagga/${protocol}d.pid` >/dev/null 2>&1 
|| true
  +        fi
  +    done
  +    sleep 1
  +    rm -f @l_prefix@/var/quagga/*.pid >/dev/null 2>&1 || true
  +
  +%restart -u @l_susr@
  +    rcService quagga enable yes || exit 0
  +    rcService quagga active no  && exit 0
  +    rc quagga stop start
  +
  +%daily -u @l_susr@
  +    rcService quagga enable yes || exit 0
  +
  +    #   rotate logfile
  +    shtool rotate -f \
  +        -n ${quagga_log_numfiles} -s ${quagga_log_minsize} -d \
  +        -z ${quagga_log_complevel} -m 640 -o @l_susr@ -g @l_mgrp@ \
  +        -P "${quagga_log_prolog}" \
  +        -E "${quagga_log_epilog} && rc quagga restart" \
  +        @l_prefix@/var/quagga/zebra.log
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/ripd.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ripd.conf
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ ripd.conf 2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,8 @@
  +!
  +!   ripd.conf -- Zebra RIP Daemon Configuration
  +!
  +hostname ripd
  +password zebra
  +enable password zebra
  +!router rip
  +!
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/vtysh.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vtysh.conf
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ vtysh.conf        2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,5 @@
  +!
  +!   vtysh.conf -- Zebra VTY Shell Configuration
  +!
  +username zebra nopassword
  +!
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/quagga/zebra.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 zebra.conf
  --- /dev/null 2003-10-01 10:32:00.000000000 +0200
  +++ zebra.conf        2003-10-01 10:32:00.000000000 +0200
  @@ -0,0 +1,8 @@
  +!
  +!   zebra.conf -- Zebra Daemon Configuration
  +!
  +hostname zebra
  +password zebra
  +enable password zebra
  +log file @l_prefix@/var/zebra/zebra.log
  +!
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.6797 -r1.6798 news.txt
  --- openpkg-web/news.txt      1 Oct 2003 08:29:13 -0000       1.6797
  +++ openpkg-web/news.txt      1 Oct 2003 08:31:58 -0000       1.6798
  @@ -1,3 +1,4 @@
  +01-Oct-2003: New package: P<quagga-0.96.2-20031001>
   01-Oct-2003: Upgraded package: P<zebra-0.93b-20031001>
   30-Sep-2003: Upgraded package: P<icewm-1.2.13-20030930>
   30-Sep-2003: Upgraded package: P<dmalloc-5.2.3-20030930>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to