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:   07-Oct-2003 10:26:53
  Branch: HEAD                             Handle: 2003100709265102

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

  Log:
    new package: xinetd 2.3.12 (Extended Internet Daemon)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.xinetd
    1.1         +67 -0      openpkg-src/xinetd/rc.xinetd
    1.1         +144 -0     openpkg-src/xinetd/xinetd.conf
    1.1         +44 -0      openpkg-src/xinetd/xinetd.patch
    1.1         +117 -0     openpkg-src/xinetd/xinetd.spec
    1.6893      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.xinetd
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.xinetd
  --- /dev/null 2003-10-07 10:26:51.000000000 +0200
  +++ vc.xinetd 2003-10-07 10:26:51.000000000 +0200
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog xinetd = {
  +  version   = 2.3.12
  +  url       = http://www.xinetd.org/
  +  regex     = xinetd-(__VER__)\.tar\.gz
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xinetd/rc.xinetd
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.xinetd
  --- /dev/null 2003-10-07 10:26:53.000000000 +0200
  +++ rc.xinetd 2003-10-07 10:26:53.000000000 +0200
  @@ -0,0 +1,67 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.xinetd -- Run-Commands
  +##
  +
  +%config
  +    xinetd_enable="$openpkg_rc_def"
  +    xinetd_proclimit_auth="64"
  +    xinetd_proclimit_prog="64"
  +    xinetd_log_prolog="true"
  +    xinetd_log_epilog="true"
  +    xinetd_log_numfiles="10"
  +    xinetd_log_minsize="1M"
  +    xinetd_log_complevel="9"
  +
  +%common
  +    xinetd_logfile="@l_prefix@/var/xinetd/xinetd.log"
  +    xinetd_pidfile="@l_prefix@/var/xinetd/xinetd.pid"
  +    xinetd_signal () {
  +        [ -f $xinetd_pidfile ] && kill -$1 `cat $xinetd_pidfile`
  +    }
  +
  +%status -u @l_susr@ -o
  +    xinetd_usable="unknown"
  +    xinetd_active="no"
  +    rcService xinetd enable yes && \
  +        xinetd_signal 0 && xinetd_active="yes"
  +    echo "xinetd_enable=\"$xinetd_enable\""
  +    echo "xinetd_usable=\"$xinetd_usable\""
  +    echo "xinetd_active=\"$xinetd_active\""
  +
  +%start -p 100 -u @l_susr@
  +    rcService xinetd enable yes || exit 0
  +    rcService xinetd active yes && exit 0
  +    @l_prefix@/sbin/xinetd \
  +        -filelog $xinetd_logfile \
  +        -pidfile $xinetd_pidfile \
  +        -logprocs $xinetd_proclimit_auth \
  +        -limit $xinetd_proclimit_prog \
  +        -stayalive
  +
  +%stop -p 100 -u @l_susr@
  +    rcService xinetd enable yes || exit 0
  +    rcService xinetd active no  && exit 0
  +    xinetd_signal TERM
  +    sleep 2
  +
  +%restart -p 100 -u @l_susr@
  +    rcService xinetd enable yes || exit 0
  +    rcService xinetd active no  && exit 0
  +    rc xinetd stop start
  +
  +%reload -p 100 -u @l_susr@
  +    rcService xinetd enable yes || exit 0
  +    rcService xinetd active no  && exit 0
  +    xinetd_signal HUP
  +    sleep 2
  +
  +%daily -u @l_susr@
  +    rcService xinetd enable yes || exit 0
  +    shtool rotate -f \
  +        -n ${xinetd_log_numfiles} -s ${xinetd_log_minsize} -d \
  +        -z ${xinetd_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
  +        -P "${xinetd_log_prolog}" \
  +        -E "${xinetd_log_epilog} && rc xinetd reload" \
  +        $xinetd_logfile
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xinetd/xinetd.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xinetd.conf
  --- /dev/null 2003-10-07 10:26:53.000000000 +0200
  +++ xinetd.conf       2003-10-07 10:26:53.000000000 +0200
  @@ -0,0 +1,144 @@
  +##
  +##  xinetd.conf -- xinetd(8) configuration
  +##
  +
  +#   The default settings
  +defaults {
  +    instances      = 60
  +    log_type       = FILE @l_prefix@/var/xinetd/xinetd.log
  +    log_on_success = HOST PID
  +    log_on_failure = HOST
  +    cps            = 25 30
  +}
  +
  +#   An internal xinetd service, listing active services.
  +service services
  +{
  +    type        = INTERNAL UNLISTED
  +    port        = 9098
  +    socket_type = stream
  +    protocol    = tcp
  +    wait        = no
  +    disable     = yes
  +    only_from   = 127.0.0.1
  +}
  +
  +#   An xinetd internal service which generate characters. The xinetd
  +#   internal service which continuously generates characters until the
  +#   connection is dropped. This is the TCP version.
  +service chargen
  +{
  +    type        = INTERNAL
  +    id          = chargen-stream
  +    socket_type = stream
  +    protocol    = tcp
  +    user        = root
  +    wait        = no
  +    disable     = yes
  +}
  +
  +#   An xinetd internal service which generate characters. The xinetd
  +#   internal service which continuously generates characters until the
  +#   connection is dropped. This is the UDP version.
  +service chargen
  +{
  +    type        = INTERNAL UNLISTED
  +    id          = chargen-dgram
  +    socket_type = dgram
  +    protocol    = udp
  +    user        = root
  +    wait        = yes
  +    port        = 19
  +    disable     = yes
  +}
  +
  +#   An xinetd internal service which echo's characters back to clients.
  +#   This is the TCP version.
  +service echo
  +{
  +    type        = INTERNAL
  +    id          = echo-stream
  +    socket_type = stream
  +    protocol    = tcp
  +    user        = root
  +    wait        = no
  +    disable     = yes
  +}
  +
  +#   An xinetd internal service which echo's characters back to clients.
  +#   This is the UDP version.
  +service echo
  +{
  +    type        = INTERNAL UNLISTED
  +    id          = echo-dgram
  +    socket_type = dgram
  +    protocol    = udp
  +    user        = root
  +    wait        = yes
  +    port        = 7
  +    disable     = yes
  +}
  +
  +#   An internal xinetd service which gets the current system time then
  +#   prints it out in a format like this: "Wed Nov 13 22:30:27 EST 2002".
  +#   This is the TCP version.
  +service daytime
  +{
  +    type        = INTERNAL
  +    id          = daytime-stream
  +    socket_type = stream
  +    protocol    = tcp
  +    user        = root
  +    wait        = no
  +    disable     = yes
  +}
  +
  +#   An internal xinetd service which gets the current system time then
  +#   prints it out in a format like this: "Wed Nov 13 22:30:27 EST 2002".
  +#   This is the UDP version.
  +service daytime
  +{
  +    type        = INTERNAL UNLISTED
  +    id          = daytime-dgram
  +    socket_type = dgram
  +    protocol    = udp
  +    user        = root
  +    wait        = yes
  +    port        = 13
  +    disable     = yes
  +}
  +
  +#   An RFC 868 time server. This protocol provides a site-independent,
  +#   machine readable date and time. The Time service sends back to the
  +#   originating source the time in seconds since midnight on January
  +#   first 1900. This is the TCP version.
  +service time
  +{
  +    type        = INTERNAL
  +    id          = time-stream
  +    socket_type = stream
  +    protocol    = tcp
  +    user        = root
  +    wait        = no
  +    disable     = yes
  +}
  +
  +#   An RFC 868 time server. This protocol provides a site-independent,
  +#   machine readable date and time. The Time service sends back to the
  +#   originating source the time in seconds since midnight on January
  +#   first 1900. This is the UDP version.
  +service time
  +{
  +    type        = INTERNAL UNLISTED
  +    id          = time-dgram
  +    socket_type = dgram
  +    protocol    = udp
  +    user        = root
  +    wait        = yes
  +    port        = 37
  +    disable     = yes
  +}
  +
  +#   Include possibly existing additional service descriptions
  +includedir @l_prefix@/etc/xinetd/xinetd.d
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xinetd/xinetd.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xinetd.patch
  --- /dev/null 2003-10-07 10:26:53.000000000 +0200
  +++ xinetd.patch      2003-10-07 10:26:53.000000000 +0200
  @@ -0,0 +1,44 @@
  +--- libs/src/sio/siosup.c.reconfig   2003-09-02 22:09:49.000000000 -0400
  ++++ libs/src/sio/siosup.c    2003-09-02 22:10:01.000000000 -0400
  +@@ -861,7 +861,7 @@
  +    int n_fds = 4; /* Let's bump 4 at a time for hysteresis */
  + 
  +    /* If the fd is out of range of the proposed size, make n_fds big enough */
  +-   if (fd > (__sio_n_descriptors+n_fds))
  ++   if (fd >= (__sio_n_descriptors+n_fds))
  +       n_fds += fd - __sio_n_descriptors;
  + 
  + #ifdef HAVE_MMAP
  +--- xinetd/Makefile.in.orig  Sun Jun  8 00:47:24 2003
  ++++ xinetd/Makefile.in       Sat Sep 27 21:24:00 2003
  +@@ -40,7 +40,7 @@
  + 
  + INSTALL_CMD = @INSTALL@
  + 
  +-LIBS        = -lsio -lmisc -lxlog -lstr -lpset -lportable @LIBS@
  ++LIBS        = -lsio -lmisc -lxlog -lpset -lportable -lstr @LIBS@
  + 
  + INCLUDEDIR  = -I../libs/include
  + LIBDIR      = -L../libs/lib
  +--- xinetd/defs.h.orig       Thu Jun 14 11:29:09 2001
  ++++ xinetd/defs.h    Sat Jun 30 15:41:43 2001
  +@@ -96,7 +96,7 @@
  + /*
  +  * Used for listen(2)
  +  */
  +-#define LISTEN_BACKLOG               7
  ++#define LISTEN_BACKLOG               64
  + 
  + /*
  +  * When explicit values are given for enum's, that is because the structures 
  +--- xinetd/xconv.pl.orig     Wed Aug 16 01:32:49 2000
  ++++ xinetd/xconv.pl  Sat Nov 11 14:46:21 2000
  +@@ -40,7 +40,7 @@
  +     } else {
  +             print "\twait        = yes\n";
  +     }
  +-    @user = split /\./, $command[4];
  ++    @user = split /[:\.]/, $command[4];
  +     print "\tuser        = $user[0]\n";
  +     if( defined $user[1] ) {
  +             print "\tgroup       = $user[1]\n";
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xinetd/xinetd.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xinetd.spec
  --- /dev/null 2003-10-07 10:26:53.000000000 +0200
  +++ xinetd.spec       2003-10-07 10:26:53.000000000 +0200
  @@ -0,0 +1,117 @@
  +##
  +##  xinetd.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:         xinetd
  +Summary:      Extended Internet Daemon
  +URL:          http://www.xinetd.org/
  +Vendor:       Panos
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Network
  +License:      GPL
  +Version:      2.3.12
  +Release:      20031007
  +
  +#   list of sources
  +Source0:      http://www.xinetd.org/xinetd-%{version}.tar.gz
  +Source1:      xinetd.conf
  +Source2:      rc.xinetd
  +Patch0:       xinetd.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030103
  +PreReq:       OpenPKG, openpkg >= 20030103, perl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    xinetd is a secure replacement for the standard Unix service inetd(8).
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    #   configure program
  +    %{l_shtool} subst \
  +        -e 's;/etc/xinetd.conf;%{l_prefix}/etc/xinetd/xinetd.conf;' \
  +        -e 's;/var/run/xinetd.dump;%{l_prefix}/var/xinetd/xinetd.dump;' \
  +        xinetd/xconfig.h
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --with-loadavg \
  +        --without-inet6
  +
  +    #   build program
  +    %{l_make} %{l_mflags}
  +
  +%install
  +    #   install program
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install \
  +        prefix=$RPM_BUILD_ROOT%{l_prefix} \
  +        exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  +
  +    #   post-adjust installation
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/sbin/xconv.pl \
  +        $RPM_BUILD_ROOT%{l_prefix}/sbin/xconv
  +    %{l_shtool} subst \
  +        -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
  +        $RPM_BUILD_ROOT%{l_prefix}/sbin/xconv
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/man/man8/xconv.pl.8 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man8/xconv.8
  +
  +    #   create additional directories
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/xinetd/xinetd.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/xinetd
  +
  +    #   install default configuration and run-command script
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE xinetd.conf} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/xinetd/
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE rc.xinetd} \
  +        $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/xinetd/xinetd.conf'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.6892 -r1.6893 news.txt
  --- openpkg-web/news.txt      7 Oct 2003 07:54:28 -0000       1.6892
  +++ openpkg-web/news.txt      7 Oct 2003 08:26:51 -0000       1.6893
  @@ -1,3 +1,4 @@
  +07-Oct-2003: New package: P<xinetd-2.3.12-20031007>
   07-Oct-2003: Upgraded package: P<rt-3.0.6-20031007>
   07-Oct-2003: Upgraded package: P<perl-gd-20031007-20031007>
   07-Oct-2003: Upgraded package: P<perl-gfx-20031007-20031007>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to