diff options
author | jfitz <jfitz@FreeBSD.org> | 1997-05-31 04:13:24 +0800 |
---|---|---|
committer | jfitz <jfitz@FreeBSD.org> | 1997-05-31 04:13:24 +0800 |
commit | d4c1d3f4dcab2fdd2ca4e548e39e0594d5c2ded1 (patch) | |
tree | 1cb126fd3df74c9079ecf0d2ef2496aff33b2777 /net | |
parent | 3843993d0ac401a73d0fa9f340e3bf0dd781b009 (diff) | |
download | freebsd-ports-graphics-d4c1d3f4dcab2fdd2ca4e548e39e0594d5c2ded1.tar.gz freebsd-ports-graphics-d4c1d3f4dcab2fdd2ca4e548e39e0594d5c2ded1.tar.zst freebsd-ports-graphics-d4c1d3f4dcab2fdd2ca4e548e39e0594d5c2ded1.zip |
Import of the InterNIC's referral whois server and client
Diffstat (limited to 'net')
-rw-r--r-- | net/rwhois/Makefile | 40 | ||||
-rw-r--r-- | net/rwhois/distinfo | 1 | ||||
-rw-r--r-- | net/rwhois/files/patch-aa | 78 | ||||
-rw-r--r-- | net/rwhois/files/patch-ab | 19 | ||||
-rw-r--r-- | net/rwhois/files/patch-ac | 31 | ||||
-rw-r--r-- | net/rwhois/files/patch-ad | 61 | ||||
-rw-r--r-- | net/rwhois/files/patch-ae | 20 | ||||
-rw-r--r-- | net/rwhois/pkg-comment | 1 | ||||
-rw-r--r-- | net/rwhois/pkg-descr | 24 | ||||
-rw-r--r-- | net/rwhois/pkg-plist | 124 | ||||
-rw-r--r-- | net/rwhoisd/Makefile | 40 | ||||
-rw-r--r-- | net/rwhoisd/distinfo | 1 | ||||
-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 | ||||
-rw-r--r-- | net/rwhoisd/pkg-comment | 1 | ||||
-rw-r--r-- | net/rwhoisd/pkg-descr | 24 | ||||
-rw-r--r-- | net/rwhoisd/pkg-plist | 124 |
20 files changed, 798 insertions, 0 deletions
diff --git a/net/rwhois/Makefile b/net/rwhois/Makefile new file mode 100644 index 00000000000..afdd2b468c9 --- /dev/null +++ b/net/rwhois/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: rwhois +# Version required: 1.0b9.2 +# Date created: May 9th 1997 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= rwhois-1.0B9.2 +PKGNAME= rwhois-1.0b9.2 +CATEGORIES= net +MASTER_SITES= ftp://ftp.rwhois.net/pub/ + +MAINTAINER= jfitz@FreeBSD.ORG + +HAS_CONFIGURE= YES +CONFIGURE_ARGS= --prefix=${PREFIX}/lib/rwhois + +LIB_DEPENDS= wrap\\.7\\.:${PORTSDIR}/security/tcp_wrapper + +INSTALL_TARGET= install install-sample-data install-chroot + +MAN8= rmkdbindex.8 rwhoisd.8 + +post-install: + ${MKDIR} -p ${PREFIX}/share/doc/rwhois + ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/rwhois + ${MV} ${PREFIX}/share/doc/rwhois/rmkdbindex.8 ${PREFIX}/man/man8 + ${MV} ${PREFIX}/share/doc/rwhois/rwhoisd.8 ${PREFIX}/man/man8 + @ echo "Installing ${PREFIX}/etc/rc.d/rwhoisd.sh startup file..." + @ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "#" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "# remove or comment the following line and uncomment the one below it once you have" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "# configured your server's data" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "echo \"rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details.\"" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "#[ -x /usr/local/lib/rwhois/sbin/rwhoisd ] && /usr/local/lib/rwhois/sbin/rwhoisd -c /usr/local/lib/rwhois/rwhois.conf & && echo -n ' rwhoisd'" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + chmod 751 ${PREFIX}/etc/rc.d/rwhoisd.sh + +.include <bsd.port.mk> diff --git a/net/rwhois/distinfo b/net/rwhois/distinfo new file mode 100644 index 00000000000..50f82961594 --- /dev/null +++ b/net/rwhois/distinfo @@ -0,0 +1 @@ +MD5 (rwhois-1.0B9.2.tar.gz) = f444b79637ffd78b92961e63137cc83b diff --git a/net/rwhois/files/patch-aa b/net/rwhois/files/patch-aa new file mode 100644 index 00000000000..bcb60067f64 --- /dev/null +++ b/net/rwhois/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/rwhois/files/patch-ab b/net/rwhois/files/patch-ab new file mode 100644 index 00000000000..90489b414c7 --- /dev/null +++ b/net/rwhois/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/rwhois/files/patch-ac b/net/rwhois/files/patch-ac new file mode 100644 index 00000000000..7832c52b13c --- /dev/null +++ b/net/rwhois/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/rwhois/files/patch-ad b/net/rwhois/files/patch-ad new file mode 100644 index 00000000000..ec4db806a4f --- /dev/null +++ b/net/rwhois/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/rwhois/files/patch-ae b/net/rwhois/files/patch-ae new file mode 100644 index 00000000000..9fcaee9d93a --- /dev/null +++ b/net/rwhois/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 diff --git a/net/rwhois/pkg-comment b/net/rwhois/pkg-comment new file mode 100644 index 00000000000..5040e73aad8 --- /dev/null +++ b/net/rwhois/pkg-comment @@ -0,0 +1 @@ +the Internic referral whois server diff --git a/net/rwhois/pkg-descr b/net/rwhois/pkg-descr new file mode 100644 index 00000000000..3d3ad5de360 --- /dev/null +++ b/net/rwhois/pkg-descr @@ -0,0 +1,24 @@ +What is Referral Whois (RWhois)? + +With the exponential growth of the Internet, a central Whois database that +provides host and network information of systems connected to the Internet, +and electronic mail (email) addresses of the users of those systems has +proven to be very inefficient. The sheer size and effort needed to maintain +a centralized database necessitates an alternate, decentralized approach to +storing and retrieving this information. + +RWhois is a Directory Services protocol which extends and enhances the Whois +concept in a hierarchical and scaleable 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. + +RWhois synthesizes concepts from other, established Internet protocols to +create a more useful way to find resources across the Internet. The RWhois +protocol and architecture derive a great deal of structure from the Domain +Name System (DNS) [RFC 1034] and borrow directory service concepts from +other directory service efforts, primarily [X.500]. The protocol is also +influenced by earlier established Internet protocols, such as the Simple +Mail Transport Protocol (SMTP) [RFC 821] for response codes. + diff --git a/net/rwhois/pkg-plist b/net/rwhois/pkg-plist new file mode 100644 index 00000000000..ae07ce3c1b8 --- /dev/null +++ b/net/rwhois/pkg-plist @@ -0,0 +1,124 @@ +bin/rwhois +etc/rc.d/rwhoisd.sh +lib/rwhois/attribute_defs/asn.tmpl +lib/rwhois/attribute_defs/domain.tmpl +lib/rwhois/attribute_defs/host.tmpl +lib/rwhois/attribute_defs/network.tmpl +lib/rwhois/attribute_defs/nic.tmpl +lib/rwhois/attribute_defs/org.tmpl +lib/rwhois/attribute_defs/referral.tmpl +lib/rwhois/attribute_defs/soa.tmpl +lib/rwhois/attribute_defs/user.tmpl +lib/rwhois/bin/date +lib/rwhois/bin/rmkdbindex +lib/rwhois/bin/rwhois +lib/rwhois/bin/rwhoisparse +lib/rwhois/bin/sh +lib/rwhois/bin/sort +lib/rwhois/data/asn/asn.txt +lib/rwhois/data/asn/local-0.ndx +lib/rwhois/data/asn/local.db +lib/rwhois/data/asn/null.ca +lib/rwhois/data/domain/local-0.ndx +lib/rwhois/data/domain/local.db +lib/rwhois/data/domain/null.ca +lib/rwhois/data/domain/shoe-me.com.txt +lib/rwhois/data/host/local-0.ndx +lib/rwhois/data/host/local.db +lib/rwhois/data/host/null.ca +lib/rwhois/data/host/shoe_me.txt +lib/rwhois/data/network/local-0.ndx +lib/rwhois/data/network/local.db +lib/rwhois/data/network/null.ca +lib/rwhois/data/network/shoe-me.net.txt +lib/rwhois/data/referral/local-0.ndx +lib/rwhois/data/referral/local.db +lib/rwhois/data/referral/shoe-me-more.txt +lib/rwhois/data/soa/internic.txt +lib/rwhois/data/soa/local-0.ndx +lib/rwhois/data/soa/local.db +lib/rwhois/data/soa/null.ca +lib/rwhois/data/soa/shoe-me.txt +lib/rwhois/data/user/local-0.ndx +lib/rwhois/data/user/local.db +lib/rwhois/data/user/null.ca +lib/rwhois/data/user/shoe-me.be.txt +lib/rwhois/data/user/shoe-me.multiple.txt +lib/rwhois/data/user/shoe.gif +lib/rwhois/dev/zero +lib/rwhois/etc/resolv.conf +lib/rwhois/index_scripts/index_all +lib/rwhois/index_scripts/index_asn +lib/rwhois/index_scripts/index_domain +lib/rwhois/index_scripts/index_host +lib/rwhois/index_scripts/index_network +lib/rwhois/index_scripts/index_nic +lib/rwhois/index_scripts/index_org +lib/rwhois/index_scripts/index_referral +lib/rwhois/index_scripts/index_soa +lib/rwhois/index_scripts/index_user +lib/rwhois/output_templates/asn.full.output +lib/rwhois/output_templates/domain.full.output +lib/rwhois/output_templates/domain.sum.output +lib/rwhois/output_templates/host.contact.output +lib/rwhois/output_templates/host.full.output +lib/rwhois/output_templates/host.sum.output +lib/rwhois/output_templates/network.full.output +lib/rwhois/output_templates/network.ripe.output +lib/rwhois/output_templates/network.sum.output +lib/rwhois/output_templates/network.swip.output +lib/rwhois/output_templates/nic.full.output +lib/rwhois/output_templates/org.full.output +lib/rwhois/output_templates/referral.full.output +lib/rwhois/output_templates/soa.full.output +lib/rwhois/output_templates/user.contact.output +lib/rwhois/output_templates/user.full.output +lib/rwhois/output_templates/user.ripe.output +lib/rwhois/output_templates/user.sum.output +lib/rwhois/output_templates/user.swip.output +lib/rwhois/rwhois.allow +lib/rwhois/rwhois.conf +lib/rwhois/rwhois.conf.orig +lib/rwhois/rwhois.define +lib/rwhois/rwhois.deny +lib/rwhois/rwhois.directive +lib/rwhois/rwhois.display +lib/rwhois/rwhois.help +lib/rwhois/rwhois.log +lib/rwhois/rwhois.objects +lib/rwhois/rwhois.root +lib/rwhois/sbin/rwhoisd +lib/rwhois/usr/lib/libc.so.3.0 +lib/rwhois/usr/lib/libwrap.so.7.4 +lib/rwhois/usr/libexec/ld.so +man/man8/rmkdbindex.8.gz +man/man8/rwhoisd.8.gz +share/doc/rwhois/EXAMPLES +share/doc/rwhois/INSTALLATION +share/doc/rwhois/NEWS +share/doc/rwhois/PROBLEMS +share/doc/rwhois/README +share/doc/rwhois/TODO +share/doc/rwhois/operations_guide.txt +share/doc/rwhois/sample.data.explained +@dirrm lib/rwhois/attribute_defs/ +@dirrm lib/rwhois/bin/ +@dirrm lib/rwhois/data/asn/ +@dirrm lib/rwhois/data/domain/ +@dirrm lib/rwhois/data/host/ +@dirrm lib/rwhois/data/network/ +@dirrm lib/rwhois/data/referral/ +@dirrm lib/rwhois/data/soa/ +@dirrm lib/rwhois/data/user/ +@dirrm lib/rwhois/data/ +@dirrm lib/rwhois/dev/ +@dirrm lib/rwhois/etc/ +@dirrm lib/rwhois/index_scripts/ +@dirrm lib/rwhois/output_templates/ +@dirrm lib/rwhois/sbin/ +@dirrm lib/rwhois/tmp/ +@dirrm lib/rwhois/usr/lib/ +@dirrm lib/rwhois/usr/libexec/ +@dirrm lib/rwhois/usr/ +@dirrm lib/rwhois/ +@dirrm share/doc/rwhois
\ No newline at end of file diff --git a/net/rwhoisd/Makefile b/net/rwhoisd/Makefile new file mode 100644 index 00000000000..afdd2b468c9 --- /dev/null +++ b/net/rwhoisd/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: rwhois +# Version required: 1.0b9.2 +# Date created: May 9th 1997 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= rwhois-1.0B9.2 +PKGNAME= rwhois-1.0b9.2 +CATEGORIES= net +MASTER_SITES= ftp://ftp.rwhois.net/pub/ + +MAINTAINER= jfitz@FreeBSD.ORG + +HAS_CONFIGURE= YES +CONFIGURE_ARGS= --prefix=${PREFIX}/lib/rwhois + +LIB_DEPENDS= wrap\\.7\\.:${PORTSDIR}/security/tcp_wrapper + +INSTALL_TARGET= install install-sample-data install-chroot + +MAN8= rmkdbindex.8 rwhoisd.8 + +post-install: + ${MKDIR} -p ${PREFIX}/share/doc/rwhois + ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/rwhois + ${MV} ${PREFIX}/share/doc/rwhois/rmkdbindex.8 ${PREFIX}/man/man8 + ${MV} ${PREFIX}/share/doc/rwhois/rwhoisd.8 ${PREFIX}/man/man8 + @ echo "Installing ${PREFIX}/etc/rc.d/rwhoisd.sh startup file..." + @ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "#" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "# remove or comment the following line and uncomment the one below it once you have" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "# configured your server's data" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "echo \"rwhoisd not started; sample data still in place. See ${PREFIX}/share/doc/rwhois for details.\"" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + @ echo "#[ -x /usr/local/lib/rwhois/sbin/rwhoisd ] && /usr/local/lib/rwhois/sbin/rwhoisd -c /usr/local/lib/rwhois/rwhois.conf & && echo -n ' rwhoisd'" >> ${PREFIX}/etc/rc.d/rwhoisd.sh + chmod 751 ${PREFIX}/etc/rc.d/rwhoisd.sh + +.include <bsd.port.mk> diff --git a/net/rwhoisd/distinfo b/net/rwhoisd/distinfo new file mode 100644 index 00000000000..50f82961594 --- /dev/null +++ b/net/rwhoisd/distinfo @@ -0,0 +1 @@ +MD5 (rwhois-1.0B9.2.tar.gz) = f444b79637ffd78b92961e63137cc83b diff --git a/net/rwhoisd/files/patch-aa b/net/rwhoisd/files/patch-aa new file mode 100644 index 00000000000..bcb60067f64 --- /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 00000000000..90489b414c7 --- /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 00000000000..7832c52b13c --- /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 00000000000..ec4db806a4f --- /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 00000000000..9fcaee9d93a --- /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 diff --git a/net/rwhoisd/pkg-comment b/net/rwhoisd/pkg-comment new file mode 100644 index 00000000000..5040e73aad8 --- /dev/null +++ b/net/rwhoisd/pkg-comment @@ -0,0 +1 @@ +the Internic referral whois server diff --git a/net/rwhoisd/pkg-descr b/net/rwhoisd/pkg-descr new file mode 100644 index 00000000000..3d3ad5de360 --- /dev/null +++ b/net/rwhoisd/pkg-descr @@ -0,0 +1,24 @@ +What is Referral Whois (RWhois)? + +With the exponential growth of the Internet, a central Whois database that +provides host and network information of systems connected to the Internet, +and electronic mail (email) addresses of the users of those systems has +proven to be very inefficient. The sheer size and effort needed to maintain +a centralized database necessitates an alternate, decentralized approach to +storing and retrieving this information. + +RWhois is a Directory Services protocol which extends and enhances the Whois +concept in a hierarchical and scaleable 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. + +RWhois synthesizes concepts from other, established Internet protocols to +create a more useful way to find resources across the Internet. The RWhois +protocol and architecture derive a great deal of structure from the Domain +Name System (DNS) [RFC 1034] and borrow directory service concepts from +other directory service efforts, primarily [X.500]. The protocol is also +influenced by earlier established Internet protocols, such as the Simple +Mail Transport Protocol (SMTP) [RFC 821] for response codes. + diff --git a/net/rwhoisd/pkg-plist b/net/rwhoisd/pkg-plist new file mode 100644 index 00000000000..ae07ce3c1b8 --- /dev/null +++ b/net/rwhoisd/pkg-plist @@ -0,0 +1,124 @@ +bin/rwhois +etc/rc.d/rwhoisd.sh +lib/rwhois/attribute_defs/asn.tmpl +lib/rwhois/attribute_defs/domain.tmpl +lib/rwhois/attribute_defs/host.tmpl +lib/rwhois/attribute_defs/network.tmpl +lib/rwhois/attribute_defs/nic.tmpl +lib/rwhois/attribute_defs/org.tmpl +lib/rwhois/attribute_defs/referral.tmpl +lib/rwhois/attribute_defs/soa.tmpl +lib/rwhois/attribute_defs/user.tmpl +lib/rwhois/bin/date +lib/rwhois/bin/rmkdbindex +lib/rwhois/bin/rwhois +lib/rwhois/bin/rwhoisparse +lib/rwhois/bin/sh +lib/rwhois/bin/sort +lib/rwhois/data/asn/asn.txt +lib/rwhois/data/asn/local-0.ndx +lib/rwhois/data/asn/local.db +lib/rwhois/data/asn/null.ca +lib/rwhois/data/domain/local-0.ndx +lib/rwhois/data/domain/local.db +lib/rwhois/data/domain/null.ca +lib/rwhois/data/domain/shoe-me.com.txt +lib/rwhois/data/host/local-0.ndx +lib/rwhois/data/host/local.db +lib/rwhois/data/host/null.ca +lib/rwhois/data/host/shoe_me.txt +lib/rwhois/data/network/local-0.ndx +lib/rwhois/data/network/local.db +lib/rwhois/data/network/null.ca +lib/rwhois/data/network/shoe-me.net.txt +lib/rwhois/data/referral/local-0.ndx +lib/rwhois/data/referral/local.db +lib/rwhois/data/referral/shoe-me-more.txt +lib/rwhois/data/soa/internic.txt +lib/rwhois/data/soa/local-0.ndx +lib/rwhois/data/soa/local.db +lib/rwhois/data/soa/null.ca +lib/rwhois/data/soa/shoe-me.txt +lib/rwhois/data/user/local-0.ndx +lib/rwhois/data/user/local.db +lib/rwhois/data/user/null.ca +lib/rwhois/data/user/shoe-me.be.txt +lib/rwhois/data/user/shoe-me.multiple.txt +lib/rwhois/data/user/shoe.gif +lib/rwhois/dev/zero +lib/rwhois/etc/resolv.conf +lib/rwhois/index_scripts/index_all +lib/rwhois/index_scripts/index_asn +lib/rwhois/index_scripts/index_domain +lib/rwhois/index_scripts/index_host +lib/rwhois/index_scripts/index_network +lib/rwhois/index_scripts/index_nic +lib/rwhois/index_scripts/index_org +lib/rwhois/index_scripts/index_referral +lib/rwhois/index_scripts/index_soa +lib/rwhois/index_scripts/index_user +lib/rwhois/output_templates/asn.full.output +lib/rwhois/output_templates/domain.full.output +lib/rwhois/output_templates/domain.sum.output +lib/rwhois/output_templates/host.contact.output +lib/rwhois/output_templates/host.full.output +lib/rwhois/output_templates/host.sum.output +lib/rwhois/output_templates/network.full.output +lib/rwhois/output_templates/network.ripe.output +lib/rwhois/output_templates/network.sum.output +lib/rwhois/output_templates/network.swip.output +lib/rwhois/output_templates/nic.full.output +lib/rwhois/output_templates/org.full.output +lib/rwhois/output_templates/referral.full.output +lib/rwhois/output_templates/soa.full.output +lib/rwhois/output_templates/user.contact.output +lib/rwhois/output_templates/user.full.output +lib/rwhois/output_templates/user.ripe.output +lib/rwhois/output_templates/user.sum.output +lib/rwhois/output_templates/user.swip.output +lib/rwhois/rwhois.allow +lib/rwhois/rwhois.conf +lib/rwhois/rwhois.conf.orig +lib/rwhois/rwhois.define +lib/rwhois/rwhois.deny +lib/rwhois/rwhois.directive +lib/rwhois/rwhois.display +lib/rwhois/rwhois.help +lib/rwhois/rwhois.log +lib/rwhois/rwhois.objects +lib/rwhois/rwhois.root +lib/rwhois/sbin/rwhoisd +lib/rwhois/usr/lib/libc.so.3.0 +lib/rwhois/usr/lib/libwrap.so.7.4 +lib/rwhois/usr/libexec/ld.so +man/man8/rmkdbindex.8.gz +man/man8/rwhoisd.8.gz +share/doc/rwhois/EXAMPLES +share/doc/rwhois/INSTALLATION +share/doc/rwhois/NEWS +share/doc/rwhois/PROBLEMS +share/doc/rwhois/README +share/doc/rwhois/TODO +share/doc/rwhois/operations_guide.txt +share/doc/rwhois/sample.data.explained +@dirrm lib/rwhois/attribute_defs/ +@dirrm lib/rwhois/bin/ +@dirrm lib/rwhois/data/asn/ +@dirrm lib/rwhois/data/domain/ +@dirrm lib/rwhois/data/host/ +@dirrm lib/rwhois/data/network/ +@dirrm lib/rwhois/data/referral/ +@dirrm lib/rwhois/data/soa/ +@dirrm lib/rwhois/data/user/ +@dirrm lib/rwhois/data/ +@dirrm lib/rwhois/dev/ +@dirrm lib/rwhois/etc/ +@dirrm lib/rwhois/index_scripts/ +@dirrm lib/rwhois/output_templates/ +@dirrm lib/rwhois/sbin/ +@dirrm lib/rwhois/tmp/ +@dirrm lib/rwhois/usr/lib/ +@dirrm lib/rwhois/usr/libexec/ +@dirrm lib/rwhois/usr/ +@dirrm lib/rwhois/ +@dirrm share/doc/rwhois
\ No newline at end of file |