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: 30-Dec-2003 15:21:13
Branch: HEAD Handle: 2003123014211102
Added files:
openpkg-re/vcheck vc.rwhoisd
openpkg-src/rwhoisd rc.rwhoisd rwhoisd.patch rwhoisd.spec
Modified files:
openpkg-web news.txt
Log:
new package: rwhoisd 1.5.7.3 (Referral WHOIS Daemon)
Summary:
Revision Changes Path
1.1 +9 -0 openpkg-re/vcheck/vc.rwhoisd
1.1 +61 -0 openpkg-src/rwhoisd/rc.rwhoisd
1.1 +440 -0 openpkg-src/rwhoisd/rwhoisd.patch
1.1 +116 -0 openpkg-src/rwhoisd/rwhoisd.spec
1.7920 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.rwhoisd
============================================================================
$ cvs diff -u -r0 -r1.1 vc.rwhoisd
--- /dev/null 2003-12-30 15:21:11.000000000 +0100
+++ vc.rwhoisd 2003-12-30 15:21:11.000000000 +0100
@@ -0,0 +1,9 @@
+config = {
+}
+
+prog rwhoisd = {
+ version = 1.5.7.3
+ url = http://www.rwhois.net/ftp/
+ regex = rwhoisd-(__VER__)\.tar\.gz
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/rwhoisd/rc.rwhoisd
============================================================================
$ cvs diff -u -r0 -r1.1 rc.rwhoisd
--- /dev/null 2003-12-30 15:21:13.000000000 +0100
+++ rc.rwhoisd 2003-12-30 15:21:13.000000000 +0100
@@ -0,0 +1,61 @@
[EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+## rc.rwhoisd -- Run-Commands
+##
+
+%config
+ rwhoisd_enable="$openpkg_rc_def"
+ rwhoisd_log_prolog="true"
+ rwhoisd_log_epilog="true"
+ rwhoisd_log_numfiles="10"
+ rwhoisd_log_minsize="1M"
+ rwhoisd_log_complevel="9"
+
+%common
+ rwhoisd_cfgfile="@l_prefix@/etc/rwhoisd/rwhoisd.conf"
+ rwhoisd_pidfile="@l_prefix@/var/rwhoids/rwhoisd.pid"
+ rwhoisd_logfile="@l_prefix@/var/rwhoisd/rwhoisd.log"
+ rwhoisd_signal () {
+ [ -f $rwhoisd_pidfile ] && kill -$1 `cat $rwhoisd_pidfile`
+ }
+
+%status -u @l_rusr@ -o
+ rwhoisd_usable="unknown"
+ rwhoisd_active="no"
+ rcService rwhoisd enable yes && \
+ rwhoisd_signal 0 && rwhoisd_active="yes"
+ echo "rwhoisd_enable=\"$rwhoisd_enable\""
+ echo "rwhoisd_usable=\"$rwhoisd_usable\""
+ echo "rwhoisd_active=\"$rwhoisd_active\""
+
+%start -p 200 -u @l_rusr@
+ rcService rwhoisd enable yes || exit 0
+ rcService rwhoisd active yes && exit 0
+ @l_prefix@/sbin/rwhoisd -c $rwhoisd_cfgfile -d
+
+%stop -p 200 -u @l_rusr@
+ rcService rwhoisd enable yes || exit 0
+ rcService rwhoisd active yes || exit 0
+ rwhoisd_signal TERM
+ sleep 2
+ rm -f $rwhoisd_pidfile >/dev/null 2>&1 || true
+
+%restart -u @l_rusr@
+ rcService rwhoisd enable yes || exit 0
+ rc rwhoisd stop start
+
+%reload -u @l_rusr@
+ rcService rwhoisd enable yes || exit 0
+ rcService rwhoisd active no && exit 0
+ rwhoisd_signal HUP
+
+%daily -u @l_susr@
+ rcService rwhoisd enable yes || exit 0
+ @l_prefix@/sbin/rwhoisd -k rotate
+ shtool rotate -f \
+ -n ${rwhoisd_log_numfiles} -s ${rwhoisd_log_minsize} -d \
+ -z ${rwhoisd_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
+ -P "${rwhoisd_log_prolog}" \
+ -E "${rwhoisd_log_epilog}" \
+ $rwhoisd_logfile
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/rwhoisd/rwhoisd.patch
============================================================================
$ cvs diff -u -r0 -r1.1 rwhoisd.patch
--- /dev/null 2003-12-30 15:21:13.000000000 +0100
+++ rwhoisd.patch 2003-12-30 15:21:13.000000000 +0100
@@ -0,0 +1,440 @@
+Index: common/client_msgs.c
+--- common/client_msgs.c.orig 2001-10-29 17:34:11.000000000 +0100
++++ common/client_msgs.c 2003-12-30 11:36:26.000000000 +0100
+@@ -145,22 +145,16 @@
+ printf ("%%ok\n");
+ }
+
+-void print_response(va_alist)
+- va_dcl
++void print_response(int resp_no, char *format, ...)
+ {
+ va_list list;
+ int i;
+- int resp_no;
+- char *format;
+ FILE *fp;
+
+- va_start(list);
++ va_start(list, format);
+
+ fp = get_out_fp();
+
+- resp_no = va_arg(list, int);
+- format = va_arg(list, char *);
+-
+ for (i = 0; i < N_RESP; i++)
+ {
+ if (resp[i].resp_no == resp_no)
+@@ -181,5 +175,6 @@
+ vfprintf(fp, format, list);
+
+ fprintf(fp, "\n");
++ va_end(list);
+ }
+
+Index: common/client_msgs.h
+--- common/client_msgs.h.orig 2001-10-29 17:32:10.000000000 +0100
++++ common/client_msgs.h 2003-12-30 11:37:02.000000000 +0100
+@@ -85,7 +85,7 @@
+
+ void print_error PROTO((int err_no, char *str));
+
+-void print_response PROTO(());
++void print_response PROTO((int, char *, ...));
+
+ void print_ok PROTO((void));
+
+Index: common/common.h
+--- common/common.h.orig 2000-10-12 19:53:38.000000000 +0200
++++ common/common.h 2003-12-30 11:37:53.000000000 +0100
+@@ -13,6 +13,8 @@
+ #ifndef _COMMON_H_
+ #define _COMMON_H_
+
++/* the name 'log' conflicts with gcc-3.x builtin */
++#define log rwhoisd_log
+
+ /* Add prototype support. */
+ #ifndef PROTO
+@@ -56,7 +58,7 @@
+ # undef _VA_ALIGN
+ # undef __va_stack_arg
+ # endif
+-#include <varargs.h>
++#include <stdarg.h>
+ #endif /* HAVE_VPRINTF */
+
+ /* this should probably be #ifdef USG */
+Index: common/log.c
+--- common/log.c.orig 2001-11-21 22:44:55.000000000 +0100
++++ common/log.c 2003-12-30 11:38:39.000000000 +0100
+@@ -139,15 +139,11 @@
+ /* log_error: prints a error message to the console. This is intended
+ for server side errors only. */
+ void
+-log_error(va_alist)
+- va_dcl
++log_error(char *format, ...)
+ {
+ va_list list;
+- char *format;
+ char err_buf[MAX_LINE];
+-
+- va_start(list);
+- format = va_arg(list, char *);
++ va_start(list, format);
+
+ #ifdef HAVE_VSNPRINTF
+ vsnprintf(err_buf, sizeof(err_buf), format, list);
+@@ -164,15 +160,11 @@
+ /* log_warning: prints a warning message to the console. This is intended
+ for server side warnings only. */
+ void
+-log_warning(va_alist)
+- va_dcl
++log_warning(char *format, ...)
+ {
+ va_list list;
+- char *format;
+ char err_buf[MAX_LINE];
+-
+- va_start(list);
+- format = va_arg(list, char *);
++ va_start(list, format);
+
+ #ifdef HAVE_VSNPRINTF
+ vsnprintf(err_buf, sizeof(err_buf), format, list);
+Index: common/log.h
+--- common/log.h.orig 2000-10-12 19:53:39.000000000 +0200
++++ common/log.h 2003-12-30 11:39:22.000000000 +0100
+@@ -95,8 +95,8 @@
+ /* old prototypes for backward compatibility */
+
+ #define l_strerror strerror
+-void log_error PROTO(());
+-void log_warning PROTO(());
++void log_error PROTO((char *, ...));
++void log_warning PROTO((char *, ...));
+ char *get_client_hostname PROTO((int sock));
+ char *timestamp PROTO(());
+
+@@ -106,7 +106,7 @@
+ (L_LOG_EMERG, L_LOG_ALERT, etc. [see internal_log_level in
+ types.h) and SECTION is one of (NETWORK, QUERY, CONFIG, etc [see
+ log_section in types.h) */
+-void log PROTO(());
++void log PROTO((internal_log_levels, int, char *, ...));
+
+ void setup_logging PROTO((void));
+
+Index: common/rw_log.c
+--- common/rw_log.c.orig 2001-11-21 22:43:24.000000000 +0100
++++ common/rw_log.c 2003-12-30 11:39:48.000000000 +0100
+@@ -17,13 +17,10 @@
+ #include "types.h"
+
+ void
+-log(va_alist)
+- va_dcl
++log(internal_log_levels level, int section, char *format, ...)
+ {
+ va_list ap;
+- internal_log_levels level;
+ FILE *fp;
+- char *format;
+ char *filename;
+ char *hostname;
+ char message[MAX_LINE];
+@@ -31,18 +28,12 @@
+ char *section_name;
+ int fd;
+ int use_syslog;
+- int section;
+ int syslog_level;
+-
+- va_start(ap);
+- level = (internal_log_levels) va_arg(ap, int);
+- section = (int) va_arg(ap, int);
+- format = va_arg(ap, char*);
+-
++ va_start(ap, format);
+ /* verbosity sets the level at which we ignore log messages */
+ if (level > get_verbosity())
+ {
+- return;
++ goto end_proc; /* single point for va_end(ap) and return */
+ }
+
+ /* first we check to see if we're loggin to syslog or not */
+@@ -83,7 +74,7 @@
+ syslog_level = local_to_syslog(level);
+ if (syslog_level < 0)
+ {
+- return;
++ goto end_proc; /* single point for va_end(ap) and return */
+ }
+
+ syslog(syslog_level, "%s", message);
+@@ -93,7 +84,7 @@
+ {
+ filename = get_log_filename(level);
+
+- if (filename == NULL) return;
++ if (filename == NULL) goto end_proc; /* single point for va_end(ap) and
return */
+
+ if (STR_EQ(filename, "stderr"))
+ {
+@@ -142,4 +133,7 @@
+
+ fclose(fp);
+ }
++end_proc: /* single point for va_end(ap) and return */
++ va_end(ap);
++ return;
+ }
+Index: sample.data/Makefile.in
+--- sample.data/Makefile.in.orig 1999-09-14 21:20:47.000000000 +0200
++++ sample.data/Makefile.in 2003-12-30 11:32:30.000000000 +0100
+@@ -15,7 +15,9 @@
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+
+-RWHOIS_ROOT_DIR = $(prefix)
++DESTDIR =
++
++RWHOIS_ROOT_DIR = $(DESTDIR)$(etcdir)/rwhoisd/samples
+
+ FILES = \
+ a.com \
+@@ -31,6 +33,7 @@
+ all:
+
+ install:
++ - [ -d $(RWHOIS_ROOT_DIR) ] && mkdir -p $(RWHOIS_ROOT_DIR)
+ @for file in $(FILES); do \
+ echo "installing $$file into $(RWHOIS_ROOT_DIR)"; \
+ ($(CP) -pr $(srcdir)/$$file $(RWHOIS_ROOT_DIR)) || exit 1; \
+Index: sample.data/rwhoisd.conf
+--- sample.data/rwhoisd.conf.orig 1997-11-26 00:23:46.000000000 +0100
++++ sample.data/rwhoisd.conf 2003-12-30 11:32:30.000000000 +0100
+@@ -12,13 +12,13 @@
+ # normal default is ""
+ # NOTE: you want to change this.
+
+-root-dir: /home/databases/rwhoisd
++root-dir: @l_prefix@/etc/rwhoisd
+
+ # bin-path: Where to find extra binaries.
+ # bin-path: bin means <root-dir>/bin
+ # bin-path: /usr/local/bin means /usr/local/bin.
+ # normal default is "bin"
+-# bin-path: bin
++bin-path: @l_prefix@/bin
+
+ # auth-area-file: The config file that contains the list of authority areas.
+ # This file is required.
+@@ -66,7 +66,7 @@
+ # %see-also can be locally resolved. If omitted, rwhoisd will attempt
+ # derive the value
+
+-# local-host: rwhois.a.com
++# local-host: rwhois.example.com
+
+ # local-port: The advertised port that rwhoisd listens to. The IANA
+ # assigned port for RWhois is 4321 (and so that is the default).
+@@ -109,19 +109,19 @@
+ # users group, as found in /etc/passwd.
+ # note that this really, really should be an unprivileged user
+ # this options doesn't have a default.
+-userid: rwhoisd
++userid: @l_rusr@
+
+ # pid-file: where to put the file containing the pid of the server.
+ # normal default is "rwhoisd.pid"
+
+ # pid-file: /var/run/rwhoisd.pid
+-pid-file: rwhoisd.pid
++pid-file: @l_prefix@/var/rwhoisd/rwhoisd.pid
+
+ # server contact: who to contact about problems related to the server
+ # itself.
+ # this option doesn't have a default.
+
+-server-contact: [EMAIL PROTECTED]
++server-contact: [EMAIL PROTECTED]
+
+ # use-syslog: whether or not to log using syslog;
+ # if it isn't logging to syslog, it attempts to log to files (see below)
+@@ -138,20 +138,20 @@
+ # to log to if not overridden by at a particular level.
+ # normal default is "rwhoisd.log"
+
+-# default-log-file: rwhoisd.log
++default-log-file: @l_prefix@/var/rwhoisd/rwhoisd.log
+
+ # <level>-log-file: if not logging to syslog, log messages at <level>
+ # to this file. <level> is one of {emergency, alert, crit, err, warn,
+ # notice, info, debug}
+
+-# emergency-log-file: rwhois.crit.log
+-# alert-log-file: rwhois.crit.log
+-# crit-log-file: rwhois.crit.log
+-# err-log-file: rwhois.err.log
+-# warn-log-file: rwhois.err.log
+-# notice-log-file: rwhois.info.log
+-# info-log-file: rwhois.info.log
+-# debug-log-file: rwhois.info.log
++emergency-log-file: @l_prefix@/var/rwhoisd/rwhois.crit.log
++alert-log-file: @l_prefix@/var/rwhoisd/rwhois.crit.log
++crit-log-file: @l_prefix@/var/rwhoisd/rwhois.crit.log
++err-log-file: @l_prefix@/var/rwhoisd/rwhois.err.log
++warn-log-file: @l_prefix@/var/rwhoisd/rwhois.err.log
++notice-log-file: @l_prefix@/var/rwhoisd/rwhois.info.log
++info-log-file: @l_prefix@/var/rwhoisd/rwhois.info.log
++debug-log-file: @l_prefix@/var/rwhoisd/rwhois.info.log
+
+ # verbosity: set the level at which you want logging to occur. The
+ # higher the number, the more logging occurs. The value is a number
+@@ -189,7 +189,7 @@
+ # security feature, making it harder to interpose a bogus version of
+ # pgp. If not set, it uses the server's PATH to find the binary.
+
+-# pgp-bin-path: /usr/local/bin/pgp
++# pgp-bin-path: @l_prefix@/bin/pgp
+
+ # pgp-keyring-path: the path to the directory containing the pgp
+ # public and private keyrings (pubring.pgp, secring.pgp, etc).
+Index: server/Makefile.in
+--- server/Makefile.in.orig 2000-05-11 18:10:25.000000000 +0200
++++ server/Makefile.in 2003-12-30 11:32:30.000000000 +0100
+@@ -9,11 +9,13 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ bindir = $(exec_prefix)/bin
+-etcdir = $(exec_prefix)/etc
++sbindir = $(exec_prefix)/sbin
+
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+
++DESTDIR =
++
+ # local libs/includes
+ COMMON_INC = -I$(srcdir)/../common
+ COMMON_LIBS = -L../common -lrwcommon
+@@ -96,12 +98,12 @@
+ #
+
+ install:
+- if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
+- if [ ! -d $(etcdir) ]; then mkdir $(etcdir); fi
+- $(INSTALL) rwhoisd $(etcdir)
++ if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir $(DESTDIR)$(exec_prefix); fi
++ if [ ! -d $(DESTDIR)$(sbindir) ]; then mkdir $(DESTDIR)$(sbindir); fi
++ $(INSTALL) rwhoisd $(DESTDIR)$(sbindir)
+
+ uninstall:
+- $(RM) $(etcdir)/rwhoisd
++ $(RM) $(DESTDIR)$(sbindir)/rwhoisd
+
+ clean:
+ rm -f *.[oa]
+Index: server/notify.c
+--- server/notify.c.orig 2000-10-12 19:56:14.000000000 +0200
++++ server/notify.c 2003-12-30 11:40:22.000000000 +0100
+@@ -75,25 +75,19 @@
+
+ /* log notify information */
+ int
+-log_entry(va_alist)
+- va_dcl
++log_entry(char *filename, char *format, ...)
+ {
+ va_list ap;
+ FILE *fp;
+- char *format;
+- char *filename;
+ char *hostname;
+-
+- va_start(ap);
+- filename = va_arg (ap, char*);
+- format = va_arg(ap, char*);
+-
++ va_start(ap, format);
+ /* lock the file */
+ fp = get_file_lock(filename, "a", 60);
+ if (!fp)
+ {
+ log(L_LOG_ERR, DIRECTIVES, "could not open file '%s' for writing: %s",
+ filename, strerror(errno));
++ va_end(ap);
+ return FALSE;
+ }
+
+@@ -106,6 +100,7 @@
+
+ release_file_lock(filename, fp);
+
++ va_end(ap);
+ return (TRUE);
+ }
+
+Index: tools/rwhois_deleter/Makefile.in
+--- tools/rwhois_deleter/Makefile.in.orig 1998-07-10 20:37:25.000000000 +0200
++++ tools/rwhois_deleter/Makefile.in 2003-12-30 11:32:30.000000000 +0100
+@@ -13,6 +13,8 @@
+ bindir = $(exec_prefix)/bin
+ etcdir = $(exec_prefix)/etc
+
++DESTDIR =
++
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+
+@@ -52,12 +54,12 @@
+ # procedural
+
+ install:
+- if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
+- if [ ! -d $(bindir) ]; then mkdir $(bindir); fi
+- $(INSTALL) rwhois_deleter $(bindir)
++ if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir $(DESTDIR)$(exec_prefix); fi
++ if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir $(DESTDIR)$(bindir); fi
++ $(INSTALL) rwhois_deleter $(DESTDIR)$(bindir)
+
+ uninstall:
+- $(RM) $(bindir)/rwhois_deleter
++ $(RM) $(DESTDIR)$(bindir)/rwhois_deleter
+
+ clean:
+ rm -f *.o rwhois_deleter
+Index: tools/rwhois_indexer/Makefile.in
+--- tools/rwhois_indexer/Makefile.in.orig 1998-01-11 07:20:04.000000000 +0100
++++ tools/rwhois_indexer/Makefile.in 2003-12-30 11:32:30.000000000 +0100
+@@ -13,6 +13,8 @@
+ bindir = $(exec_prefix)/bin
+ etcdir = $(exec_prefix)/etc
+
++DESTDIR =
++
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+
+@@ -52,12 +54,12 @@
+ # procedural
+
+ install:
+- if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
+- if [ ! -d $(bindir) ]; then mkdir $(bindir); fi
+- $(INSTALL) rwhois_indexer $(bindir)
++ if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir $(DESTDIR)$(exec_prefix); fi
++ if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir $(DESTDIR)$(bindir); fi
++ $(INSTALL) rwhois_indexer $(DESTDIR)$(bindir)
+
+ uninstall:
+- $(RM) $(bindir)/rwhois_indexer
++ $(RM) $(DESTDIR)$(bindir)/rwhois_indexer
+
+ clean:
+ rm -f *.o rwhois_indexer
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/rwhoisd/rwhoisd.spec
============================================================================
$ cvs diff -u -r0 -r1.1 rwhoisd.spec
--- /dev/null 2003-12-30 15:21:13.000000000 +0100
+++ rwhoisd.spec 2003-12-30 15:21:13.000000000 +0100
@@ -0,0 +1,116 @@
+##
+## rwhoisd.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: rwhoisd
+Summary: Referral WHOIS Daemon
+URL: http://www.rwhois.net/
+Vendor: Verisign GRS
+Packager: The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group: Network
+License: GPL
+Version: 1.5.7.3
+Release: 20031230
+
+# list of sources
+Source0: http://www.rwhois.net/ftp/rwhoisd-%{version}.tar.gz
+Source1: rc.rwhoisd
+Patch0: rwhoisd.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20030103, make
+PreReq: OpenPKG, openpkg >= 20030103
+AutoReq: no
+AutoReqProv: no
+
+%description
+ RWhois (Referral Whois) is a Directory Services protocol which
+ extends and enhances the Whois concept in a hierarchical and
+ scalable fashion. It focuses on the distribution of "network
+ objects"--the data representing Internet resources or people--and
+ uses the inherently hierarchical nature of these network objects
+ (domain names, Internet Protocol (IP) networks, email addresses) to
+ more accurately discover the requested information.
+
+%prep
+ %setup -q
+ %patch -p0
+ %{l_shtool} subst -s \
+ -e "s;/usr/local/bin/perl;%{l_prefix}/bin/perl;g" \
+ tools/scripts/rwhois.pl
+
+%build
+ # configure package
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix}
+
+ # build package
+ %{l_make} %{l_mflags}
+
+%install
+ # install package
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix} \
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rwhoisd/samples \
+ $RPM_BUILD_ROOT%{l_prefix}/var/rwhoisd
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+
+ # post-adjust package
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
+ mv $RPM_BUILD_ROOT%{l_prefix}/etc/rwhoisd/samples/* \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rwhoisd/
+ rmdir $RPM_BUILD_ROOT%{l_prefix}/etc/rwhoisd/samples
+ %{l_shtool} subst %{l_value -s -a} \
+ -e "s;^root-dir: $RPM_BUILD_ROOT%{l_prefix};root-dir: %{l_prefix};g" \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rwhoisd/rwhoisd.conf
+
+ # 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.rwhoisd} \
+ $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/rwhoisd/rwhoisd.*' \
+ '%attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/rwhoisd'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.7919 -r1.7920 news.txt
--- openpkg-web/news.txt 30 Dec 2003 12:03:13 -0000 1.7919
+++ openpkg-web/news.txt 30 Dec 2003 14:21:11 -0000 1.7920
@@ -1,3 +1,4 @@
+30-Dec-2003: New package: P<rwhoisd-1.5.7.3-20031230>
30-Dec-2003: Upgraded package: P<perl-mail-20031230-20031230>
30-Dec-2003: Upgraded package: P<doclifter-1.5-20031230>
30-Dec-2003: Upgraded package: P<tcpdump-3.8.1-20031230>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]