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:   02-Nov-2003 12:55:16
  Branch: HEAD                             Handle: 2003110211550112

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

  Log:
    new package: oidentd 2.0.7 (RFC1413 Identification Daemon)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.oidentd
    1.1         +21 -0      openpkg-src/oidentd/oidentd.conf
    1.1         +36 -0      openpkg-src/oidentd/oidentd.patch
    1.1         +105 -0     openpkg-src/oidentd/oidentd.spec
    1.1         +66 -0      openpkg-src/oidentd/rc.oidentd
    1.7266      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.oidentd
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.oidentd
  --- /dev/null 2003-11-02 12:55:03.000000000 +0100
  +++ vc.oidentd        2003-11-02 12:55:04.000000000 +0100
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog oidentd = {
  +  version   = 2.0.7
  +  url       = http://prdownloads.sourceforge.net/sourceforge/ojnk/
  +  regex     = oidentd-(__VER__)\.tar\.gz
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/oidentd/oidentd.conf
  ============================================================================
  $ cvs diff -u -r0 -r1.1 oidentd.conf
  --- /dev/null 2003-11-02 12:55:13.000000000 +0100
  +++ oidentd.conf      2003-11-02 12:55:14.000000000 +0100
  @@ -0,0 +1,21 @@
  +##
  +##  oidentd.conf -- Ident Daemon Configuration
  +##
  +
  +default {
  +    default {
  +        deny spoof
  +        deny spoof_all
  +        deny spoof_privport
  +        allow random_numeric
  +        allow numeric
  +        allow hide
  +    }
  +}
  +
  +user root {
  +    default {
  +        force reply "UNKNOWN"
  +    }
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/oidentd/oidentd.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 oidentd.patch
  --- /dev/null 2003-11-02 12:55:13.000000000 +0100
  +++ oidentd.patch     2003-11-02 12:55:15.000000000 +0100
  @@ -0,0 +1,36 @@
  +Index: src/oidentd.h
  +--- src/oidentd.h.orig       2003-07-11 16:11:25.000000000 +0200
  ++++ src/oidentd.h    2003-11-02 12:46:08.000000000 +0100
  +@@ -33,6 +33,12 @@
  + #define UPREFIX                     "user"
  + 
  + /*
  ++** System-wide PID file.
  ++*/
  ++
  ++#define PIDFILE             "/var/run/oidentd.pid"
  ++
  ++/*
  + ** System-wide configuration file.
  + */
  + 
  +Index: src/oidentd.c
  +--- src/oidentd.c.orig       2003-04-24 02:03:54.000000000 +0200
  ++++ src/oidentd.c    2003-11-02 12:47:42.000000000 +0100
  +@@ -97,6 +97,16 @@
  +             exit(-1);
  +     }
  + 
  ++    {
  ++        pid_t pid;
  ++        FILE *fp;
  ++        pid = getpid();
  ++        if ((fp = fopen(PIDFILE, "w")) == NULL)
  ++            o_log(NORMAL, "Fatal: Error writing to pidfile: %s", PIDFILE);
  ++        fprintf(fp, "%ld\n", (long)pid);
  ++        fclose(fp);
  ++    }
  ++
  +     if (!opt_enabled(STDIO)) {
  +             listen_fds = setup_listen(addr, htons(listen_port));
  +             if (listen_fds == NULL || listen_fds[0] == -1) {
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/oidentd/oidentd.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 oidentd.spec
  --- /dev/null 2003-11-02 12:55:13.000000000 +0100
  +++ oidentd.spec      2003-11-02 12:55:15.000000000 +0100
  @@ -0,0 +1,105 @@
  +##
  +##  oidentd.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:         oidentd
  +Summary:      RFC1413 Identification Daemon
  +URL:          http://dev.ojnk.net/
  +Vendor:       Ojnk Software Design
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Network
  +License:      GPL
  +Version:      2.0.7
  +Release:      20031102
  +
  +#   list of sources
  +Source0:      
http://osdn.dl.sourceforge.net/sourceforge/ojnk/oidentd-%{version}.tar.gz
  +Source1:      oidentd.conf
  +Source2:      rc.oidentd
  +Patch0:       oidentd.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030103
  +PreReq:       OpenPKG, openpkg >= 20030103
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    oidentd is an Ident (RFC1413 compliant) daemon which can handle
  +    local and IP masqueraded/NA connections. It has a flexible mechanism
  +    for specifying Ident responses. Users can even be granted permission
  +    to specify their own ident responses. Responses can be specified
  +    according to host and port pairs.
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    #   configure program
  +    %{l_shtool} subst \
  +        -e 's;/etc/oidentd\.conf;%{l_prefix}/etc/oident/oidentd.conf;' \
  +        -e 's;/etc/oidentd_masq\.conf;%{l_prefix}/etc/oident/oidentd_masq.conf;' \
  +        -e 's;/var/run/oidentd.pid;%{l_prefix}/var/oident/oidentd.pid;' \
  +        src/oidentd.h
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix}
  +
  +    #   build program
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    #   install program
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  +
  +    #   install additional files
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/oidentd \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/oidentd
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE rc.oidentd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE oidentd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/oidentd/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/oidentd/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/oidentd/rc.oidentd
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.oidentd
  --- /dev/null 2003-11-02 12:55:13.000000000 +0100
  +++ rc.oidentd        2003-11-02 12:55:16.000000000 +0100
  @@ -0,0 +1,66 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.oidentd -- Run-Commands
  +##
  +
  +%config
  +    oidentd_enable="$openpkg_rc_def"
  +    oidentd_listen="127.0.0.1"
  +    oidentd_maxclients="32"
  +    oidentd_timeout="20"
  +    oidentd_flags=""
  +    oidentd_log_prolog="true"
  +    oidentd_log_epilog="true"
  +    oidentd_log_numfiles="10"
  +    oidentd_log_minsize="1M"
  +    oidentd_log_complevel="9"
  +
  +%common
  +    oidentd_pidfile="@l_prefix@/var/oidentd/oidentd.pid"
  +    oidentd_logfile="@l_prefix@/var/oidentd/oidentd.log"
  +    oidentd_signal () {
  +        [ -f $oidentd_pidfile ] && kill -$1 `cat $oidentd_pidfile`
  +    }
  +
  +%status -u @l_susr@ -o
  +    oidentd_usable="unknown"
  +    oidentd_active="no"
  +    rcService oidentd enable yes && \
  +        oidentd_signal 0 && oidentd_active="yes"
  +    echo "oidentd_enable=\"$oidentd_enable\""
  +    echo "oidentd_usable=\"$oidentd_usable\""
  +    echo "oidentd_active=\"$oidentd_active\""
  +
  +%start -p 100 -u @l_susr@
  +    rcService oidentd enable yes || exit 0
  +    rcService oidentd active yes && exit 0
  +    @l_prefix@/sbin/oidentd \
  +        --address=${oidentd_listen} \
  +        --limit=${oidentd_maxclient} \
  +        --timeout=${oidentd_timeout} \
  +        --other="Unix/OpenPKG" \
  +        --nosyslog \
  +        ${oidentd_flags} \
  +        >/dev/null 2>>${oidentd_logfile}
  +
  +%stop -p 100 -u @l_susr@
  +    rcService oidentd enable yes || exit 0
  +    rcService oidentd active no  && exit 0
  +    oidentd_signal TERM
  +    sleep 2
  +    rm -f $oidentd_pidfile >/dev/null 2>&1 || true
  +
  +%restart -p 100 -u @l_susr@
  +    rcService oidentd enable yes || exit 0
  +    rcService oidentd active no  && exit 0
  +    rc oidentd stop start
  +
  +%daily -u @l_susr@
  +    rcService oidentd enable yes || exit 0
  +    shtool rotate -f \
  +        -n ${oidentd_log_numfiles} -s ${oidentd_log_minsize} -d \
  +        -z ${oidentd_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
  +        -P "${oidentd_log_prolog}" \
  +        -E "${oidentd_log_epilog} && rc oidentd restart" \
  +        ${oidentd_logfile}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.7265 -r1.7266 news.txt
  --- openpkg-web/news.txt      2 Nov 2003 11:33:27 -0000       1.7265
  +++ openpkg-web/news.txt      2 Nov 2003 11:55:06 -0000       1.7266
  @@ -1,3 +1,4 @@
  +02-Nov-2003: New package: P<oidentd-2.0.7-20031102>
   02-Nov-2003: Upgraded package: P<openpkg-20031102-20031102>
   02-Nov-2003: Upgraded package: P<aspell-0.50.4.1-20031102>
   02-Nov-2003: Upgraded package: P<perl-sys-20031102-20031102>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to