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:   04-Dec-2008 12:54:42
  Branch: HEAD                             Handle: 2008120411544200

  Added files:
    openpkg-src/conman      conman.conf conman.spec rc.conman

  Log:
    new package: conman 0.2.3 (Console Manager)

  Summary:
    Revision    Changes     Path
    1.1         +34 -0      openpkg-src/conman/conman.conf
    1.1         +107 -0     openpkg-src/conman/conman.spec
    1.1         +65 -0      openpkg-src/conman/rc.conman
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/conman/conman.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 conman.conf
  --- /dev/null 2008-12-04 12:52:56 +0100
  +++ conman.conf       2008-12-04 12:54:42 +0100
  @@ -0,0 +1,34 @@
  +##
  +##  conman.conf -- ConMan configuration
  +##
  +
  +server  loopback=on
  +server  port=7890
  +server  keepalive=on
  +
  +server  logdir="@l_prefix@/var/conman/log"
  +server  logfile="conmand.log,info"
  +server  timestamp=1d
  +
  +server  pidfile="@l_prefix@/var/conman/run/conmand.pid"
  +server  execpath="@l_prefix@/lib/conman/exec"
  +
  +#   console to TCP port
  +#console name="local-mta" \
  +#        dev="127.0.0.1:25" \
  +#        log="console-local-mta.log" \
  +#        logopts="nosanitize,notimestamp"
  +
  +#   console to program
  +#console name="local-ssh" \
  +#        dev="ssh.exp localhost 22 root <password>" \
  +#        log="console-local-ssh.log" \
  +#        logopts="nosanitize,notimestamp"
  +
  +#   console to device
  +#console name="local-serial0" \
  +#        dev="/dev/cuad0" \
  +#        log="console-local-serial0.log" \
  +#        logopts="nosanitize,notimestamp" \
  +#        seropts="9600,8n1"
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/conman/conman.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 conman.spec
  --- /dev/null 2008-12-04 12:52:56 +0100
  +++ conman.spec       2008-12-04 12:54:42 +0100
  @@ -0,0 +1,107 @@
  +##
  +##  conman.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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:         conman
  +Summary:      Console Manager
  +URL:          http://home.gna.org/conman/
  +Vendor:       Chris Dunlap
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Network
  +License:      GPL
  +Version:      0.2.3
  +Release:      20081204
  +
  +#   list of sources
  +Source0:      
http://download.gna.org/conman/%{version}/conman-%{version}.tar.bz2
  +Source1:      rc.conman
  +Source2:      conman.conf
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823
  +PreReq:       OpenPKG, openpkg >= 20060823
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    ConMan is a serial console management program designed to support a
  +    large number of console devices and simultaneous users. It supports
  +    local serial devices, remote terminal servers (via the Telnet
  +    protocol), Unix domain sockets, and external processes (e.g., using
  +    Expect to control connections over telnet, ssh, or ipmi-sol). Its
  +    features include: logging (and optionally timestamping) console
  +    device output to file; connecting to consoles in monitor (R/O)
  +    or interactive (R/W) mode; allowing clients to share or steal
  +    console write privileges and broadcasting client output to multiple
  +    consoles.
  +
  +%track
  +    prog conman = {
  +        version   = %{version}
  +        url       = http://download.gna.org/conman/
  +        regex     = (\d+\.\d+\.\d+(\.d\d+)?)/
  +    }
  +
  +%prep
  +    %setup -q
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --sysconfdir=%{l_prefix}/etc/conman \
  +        --mandir=%{l_prefix}/man
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/conman/logrotate.d
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/conman/init.d
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/conman/default
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE conman.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/conman/
  +    %{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.conman} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/conman
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/conman/*' \
  +        '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/conman'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/conman/rc.conman
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.conman
  --- /dev/null 2008-12-04 12:52:56 +0100
  +++ rc.conman 2008-12-04 12:54:42 +0100
  @@ -0,0 +1,65 @@
  [EMAIL PROTECTED]@/bin/openpkg rc
  +##
  +##  rc.conman -- Run-Commands
  +##
  +
  +%config
  +    conman_enable="$openpkg_rc_def"
  +    conman_log_prolog="true"
  +    conman_log_epilog="true"
  +    conman_log_numfiles="10"
  +    conman_log_minsize="1M"
  +    conman_log_complevel="9"
  +
  +%common
  +    conman_logfile="@l_prefix@/var/conman/log/conmand.log"
  +    conman_signal () {
  +        kill -$1 [EMAIL PROTECTED]@/sbin/conmand -q`
  +    }
  +
  +%status -u @l_susr@ -o
  +    conman_usable="unknown"
  +    conman_active="no"
  +    rcService conman enable yes && \
  +        conman_signal 0 && conman_active="yes"
  +    echo "conman_enable=\"$conman_enable\""
  +    echo "conman_usable=\"$conman_usable\""
  +    echo "conman_active=\"$conman_active\""
  +
  +%start -u @l_susr@
  +    rcService conman enable yes || exit 0
  +    rcService conman active yes && exit 0
  +    @l_prefix@/sbin/conmand
  +
  +%stop -u @l_susr@
  +    rcService conman enable yes || exit 0
  +    rcService conman active no  && exit 0
  +    @l_prefix@/sbin/conmand -k
  +
  +%restart -u @l_susr@
  +    rcService conman enable yes || exit 0
  +    rcService conman active no  && exit 0
  +    rc conman stop start
  +
  +%reload -u @l_susr@
  +    rcService conman enable yes || exit 0
  +    rcService conman active no  && exit 0
  +    @l_prefix@/sbin/conmand -r
  +
  +%daily -u @l_susr@
  +    rcService conman enable yes || exit 0
  +    shtool rotate -f \
  +        -n ${conman_log_numfiles} -s ${conman_log_minsize} -d \
  +        -z ${conman_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \
  +        -P "${conman_log_prolog}" \
  +        -E "${conman_log_epilog}; rc conman reload" \
  +        $conman_logfile
  +    for logfile in @l_prefix@/var/conman/log/console-*.log; do
  +        shtool rotate -f \
  +            -n ${conman_log_numfiles} -s ${conman_log_minsize} -d \
  +            -z ${conman_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \
  +            -P "${conman_log_prolog}" \
  +            -E "${conman_log_epilog}; rc conman reload" \
  +            $logfile
  +    done
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to