diff options
author | James FitzGibbon <jfitz@FreeBSD.org> | 1997-05-30 20:13:24 +0000 |
---|---|---|
committer | James FitzGibbon <jfitz@FreeBSD.org> | 1997-05-30 20:13:24 +0000 |
commit | 16b58c70f39365b46f923a5b13fed4b8dbfbae58 (patch) | |
tree | e005cb5490bfb8737469131f0595e27c4e2bc92a /net/rwhoisd/files | |
parent | Import of a util to create PalPilot Doc format files from text files (diff) |
Import of the InterNIC's referral whois server and client
Notes
Notes:
svn path=/head/; revision=6647
Diffstat (limited to 'net/rwhoisd/files')
-rw-r--r-- | net/rwhoisd/files/patch-aa | 78 | ||||
-rw-r--r-- | net/rwhoisd/files/patch-ab | 19 | ||||
-rw-r--r-- | net/rwhoisd/files/patch-ac | 31 | ||||
-rw-r--r-- | net/rwhoisd/files/patch-ad | 61 | ||||
-rw-r--r-- | net/rwhoisd/files/patch-ae | 20 |
5 files changed, 209 insertions, 0 deletions
diff --git a/net/rwhoisd/files/patch-aa b/net/rwhoisd/files/patch-aa new file mode 100644 index 000000000000..bcb60067f649 --- /dev/null +++ b/net/rwhoisd/files/patch-aa @@ -0,0 +1,78 @@ +--- Makefile.in.orig Thu Aug 8 20:37:37 1996 ++++ Makefile.in Fri May 23 03:06:12 1997 +@@ -2,7 +2,7 @@ + @SET_MAKE@ + + # set install program +-INSTALL = @INSTALL@ ++INSTALL = /usr/bin/install -c -s -o bin -g bin + + # set prefix values + prefix = @prefix@ +@@ -25,12 +25,12 @@ + PARSER_DIR = $(TOOLS_DIR)/rwhoisparse + LIBWRAP_DIR = tools/tcpd_wrapper + CLIENT_DIR = client +-SAMPLE_DATA_DIR = @SAMPLE_DATA_DIR@ ++SAMPLE_DATA_DIR = ${RWHOIS_ROOT_DIR} + LIBRWHOIS = librwhois.a + LIBMKDB = libmkdb.a + LIBWRAP = libwrap.a + +-all: librwhois libmkdb libwrap make-server indexer parser make-client ++all: librwhois libmkdb make-server indexer parser make-client + + librwhois: + @echo "Making $(LIBRWHOIS)" +@@ -77,7 +77,7 @@ + + install-chroot: + @echo "Setup chroot stuff" +- chroot.sh $(RWHOIS_ROOT_DIR) ++ ./chroot.sh $(RWHOIS_ROOT_DIR) + + install-client: + @echo "Installing RWhois Client" +@@ -86,21 +86,13 @@ + install-sample-data: sample-data-install + + sample-data-install: +- @echo "Setting up for quickie install with sample data" +- @echo "This is located in `pwd`/sample.data" +- @echo "Setting up RWhois default data directory (data will reside here)" ++ if [ -d ${.CURDIR}/sample.data/bin ]; then rm -r ${.CURDIR}/sample.data/bin; fi ++ if [ -d ${.CURDIR}/sample.data/etc ]; then rm -r ${.CURDIR}/sample.data/etc; fi ++ cp -r ${.CURDIR}/sample.data/ ${SAMPLE_DATA_DIR} + (sh tools/install/setup_rwhois_conf $(SAMPLE_DATA_DIR)) +- @echo "Setting up index scripts" + (sh tools/install/setup_index_scripts $(SAMPLE_DATA_DIR)) +- @echo "Copying the indexer into the sample data area" +- if [ $(SAMPLE_DATA_DIR) != $(RWHOIS_ROOT_DIR) ]; then \ +- if [ ! -d $(SAMPLE_DATA_DIR)/bin ]; then \ +- mkdir $(SAMPLE_DATA_DIR)/bin; \ +- fi; \ +- cp $(RWHOIS_ROOT_DIR)/bin/rmkdbindex $(SAMPLE_DATA_DIR)/bin; \ +- fi +- @echo "Running index scripts" + (sh tools/install/run_index_scripts $(SAMPLE_DATA_DIR)) ++ /usr/sbin/chown -R nobody ${SAMPLE_DATA_DIR}/data ${SAMPLE_DATA_DIR}/rwhois.log + + clean: + @echo "Cleaning Server" +@@ -109,8 +101,6 @@ + (cd $(COMMON_DIR); $(MAKE) clean) + @echo "Cleaning MKDB" + (cd $(MKDB_DIR); $(MAKE) clean) +- @echo "Cleaning TCPD stuff" +- (cd $(LIBWRAP_DIR); $(MAKE) clean) + @echo "Cleaning RWhois Indexer" + (cd $(INDEXER_DIR); $(MAKE) clean) + @echo "Cleaning RWhois Parser" +@@ -133,7 +123,6 @@ + (cd $(MKDB_DIR); $(MAKE) distclean) + (cd $(INDEXER_DIR); $(MAKE) distclean) + (cd $(PARSER_DIR); $(MAKE) distclean) +- (cd $(LIBWRAP_DIR); $(MAKE) clean) + (cd $(CLIENT_DIR); $(MAKE) distclean) + + dist: diff --git a/net/rwhoisd/files/patch-ab b/net/rwhoisd/files/patch-ab new file mode 100644 index 000000000000..90489b414c71 --- /dev/null +++ b/net/rwhoisd/files/patch-ab @@ -0,0 +1,19 @@ +--- client/Makefile.in.orig Wed Sep 25 18:10:48 1996 ++++ client/Makefile.in Fri May 23 02:34:00 1997 +@@ -6,7 +6,7 @@ + + CC = @CC@ + RANLIB = @RANLIB@ +-INSTALL = @INSTALL@ ++INSTALL = /usr/bin/install -c -s -o bin -g bin + + + # +@@ -56,6 +56,7 @@ + install: + if [ ! -d $(bindir) ]; then mkdir $(bindir); fi + $(INSTALL) rwhois $(bindir) ++ /bin/ln -sf ${PREFIX}/lib/rwhois/bin/rwhois ${PREFIX}/bin/rwhois + + clean: + rm -f rwhois *.o *~ librwclient.a diff --git a/net/rwhoisd/files/patch-ac b/net/rwhoisd/files/patch-ac new file mode 100644 index 000000000000..7832c52b13c2 --- /dev/null +++ b/net/rwhoisd/files/patch-ac @@ -0,0 +1,31 @@ +--- server/Makefile.in.orig Wed Sep 25 13:03:56 1996 ++++ server/Makefile.in Fri May 9 22:48:56 1997 +@@ -7,14 +7,15 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + bindir = $(exec_prefix)/bin ++sbindir = $(exec_prefix)/sbin + etcdir = $(exec_prefix)/etc + + # local libs/includes + COMMON_INC = -I../common + COMMON_LIBS = -L../common -lrwhois + +-WRAP_INC = -I../tools/tcpd_wrapper +-WRAP_LIBS = -L../tools/tcpd_wrapper -lwrap ++WRAP_INC = -I${PREFIX}/include ++WRAP_LIBS = -L${PREFIX}/lib -lwrap + + MKDB_INC = -I../mkdb + MKDB_LIBS = -L../mkdb -lmkdb +@@ -77,8 +78,8 @@ + $(CC) -c $(CFLAGS) $(LOCAL_INC) $*.c + + install: +- if [ ! -d $(etcdir) ]; then mkdir $(etcdir); fi +- $(INSTALL) rwhoisd $(etcdir) ++ if [ ! -d $(sbindir) ]; then mkdir -p $(sbindir); fi ++ $(INSTALL) rwhoisd $(sbindir) + + clean: + rm -f *.[oa] diff --git a/net/rwhoisd/files/patch-ad b/net/rwhoisd/files/patch-ad new file mode 100644 index 000000000000..ec4db806a4fe --- /dev/null +++ b/net/rwhoisd/files/patch-ad @@ -0,0 +1,61 @@ +--- chroot.sh.orig Wed Jul 31 15:34:34 1996 ++++ chroot.sh Fri May 23 02:12:03 1997 +@@ -10,9 +10,15 @@ + #umask 022 + + RWHOIS_ROOT_DIR=$1 +-COPY="cp" ++COPY="/bin/cp" + + # check if these directories exist ++if test ! -d ${RWHOIS_ROOT_DIR} ++then ++ echo "make directory ${RWHOIS_ROOT_DIR}." ++ mkdir ${RWHOIS_ROOT_DIR} ++fi ++ + if test ! -d ${RWHOIS_ROOT_DIR}/etc + then + echo "make directory ${RWHOIS_ROOT_DIR}/etc". +@@ -35,20 +41,37 @@ + then + echo "make directory ${RWHOIS_ROOT_DIR}/usr" + mkdir $RWHOIS_ROOT_DIR/usr +- mkdir $RWHOIS_ROOT_DIR/usr/lib +-elif test ! -d $RWHOIS_ROOT_DIR/usr/lib ++fi ++ ++if test ! -d $RWHOIS_ROOT_DIR/usr/lib + then + echo "make directory ${RWHOIS_ROOT_DIR}/usr/lib" + mkdir $RWHOIS_ROOT_DIR/usr/lib + fi + ++if test ! -d $RWHOIS_ROOT_DIR/usr/libexec ++then ++ echo "make directory ${RWHOIS_ROOT_DIR}/usr/libexec" ++ mkdir $RWHOIS_ROOT_DIR/usr/libexec ++fi ++ + #copy /etc/resolv.conf to (rwhois_root)/etc + $COPY /etc/resolv.conf ${RWHOIS_ROOT_DIR}/etc + + #copy /usr/lib/files to (rwhois_root)/usr/lib +- $COPY /usr/lib/ld.so /usr/lib/libnsl.so.1 /usr/lib/libsocket.so.1 /usr/lib/libc.so.1 /usr/lib/libdl.so.1 /usr/lib/libintl.so.1 /usr/lib/libmp.so.1 /usr/lib/libw.so.1 /usr/lib/libmapmalloc.so.1 $RWHOIS_ROOT_DIR/usr/lib ++ $COPY /usr/lib/libc.so.* ${PREFIX}/lib/libwrap.so.* $RWHOIS_ROOT_DIR/usr/lib ++ ++#copy /usr/lib/files to (rwhois_root)/usr/lib ++ $COPY /usr/libexec/ld.so $RWHOIS_ROOT_DIR/usr/libexec + + #copy /usr/bin/execut. to (rwhois_root)/bin +- $COPY /usr/bin/sh /usr/bin/sort $RWHOIS_ROOT_DIR/bin ++ $COPY /bin/sh /usr/bin/sort /bin/date $RWHOIS_ROOT_DIR/bin + ++# make /dev/zero ++if test ! -d $RWHOIS_ROOT_DIR/dev ++then ++ echo "make directory ${RWHOIS_ROOT_DIR}/dev" ++ mkdir $RWHOIS_ROOT_DIR/dev ++ mknod $RWHOIS_ROOT_DIR/dev/zero c 2 12 ++fi + echo "done" diff --git a/net/rwhoisd/files/patch-ae b/net/rwhoisd/files/patch-ae new file mode 100644 index 000000000000..9fcaee9d93a5 --- /dev/null +++ b/net/rwhoisd/files/patch-ae @@ -0,0 +1,20 @@ +--- sample.data/rwhois.conf.orig Fri May 23 01:59:32 1997 ++++ sample.data/rwhois.conf Fri May 23 02:00:37 1997 +@@ -10,7 +10,7 @@ + # to. If it is not set, it will default to the current working + # directory. + # NOTE: you want to change this. +-root-dir: /home/devel2/davidb/src/rwhois-dev/sample.data ++root-dir: /usr/local/lib/rwhois + + # schema-file: The config file that contains the top-level schema + # information. This file must exist. The old 'object-file' refers to +@@ -85,7 +85,7 @@ + # chrooted: NO + + # userid: If run as root, rwhoisd will change to this user +-userid: davidb ++userid: nobody + + # verbosity: What level of reporting (to the console) do you wish. + # The default is '1'. '0' is quiet and numbers greater then '1' are |