summaryrefslogtreecommitdiff
path: root/net/ripe-whois-tools
diff options
context:
space:
mode:
authorrh <rh>2001-05-18 11:39:29 +0000
committerrh <rh>2001-05-18 11:39:29 +0000
commit7ccdc6ea998fa47b32eeb265009ce59e849534c3 (patch)
treec3a2f36a684de93cb2043e34f2cc7022271d5850 /net/ripe-whois-tools
parentf7d0f3f248db51ed1623e4a6a08a8f20b2f08c11 (diff)
downloadpkgsrc-7ccdc6ea998fa47b32eeb265009ce59e849534c3.tar.gz
Initial import of of ripe-whois-tools-2.4, a set of whois database tools
for querying the extended ripe database. This package was provided in PR pkg/12979 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>, thanks!
Diffstat (limited to 'net/ripe-whois-tools')
-rw-r--r--net/ripe-whois-tools/Makefile21
-rw-r--r--net/ripe-whois-tools/distinfo7
-rw-r--r--net/ripe-whois-tools/patches/patch-aa39
-rw-r--r--net/ripe-whois-tools/patches/patch-ab39
-rw-r--r--net/ripe-whois-tools/patches/patch-ac52
-rw-r--r--net/ripe-whois-tools/pkg/DESCR23
-rw-r--r--net/ripe-whois-tools/pkg/PLIST5
7 files changed, 186 insertions, 0 deletions
diff --git a/net/ripe-whois-tools/Makefile b/net/ripe-whois-tools/Makefile
new file mode 100644
index 00000000000..5d42024aba6
--- /dev/null
+++ b/net/ripe-whois-tools/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+#
+
+DISTNAME= ripe-whois-tools-2.4
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.ripe.net/tools/
+
+MAINTAINER= seb@pbox.org
+COMMENT= RIPE WHOIS client and tools
+
+WRKSRC= ${WRKDIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+EXTRA_LIBS= -lcrypt
+.endif
+
+MAKE_ENV+= EXTRA_LIBS=${EXTRA_LIBS}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ripe-whois-tools/distinfo b/net/ripe-whois-tools/distinfo
new file mode 100644
index 00000000000..d7726545f37
--- /dev/null
+++ b/net/ripe-whois-tools/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+
+SHA1 (ripe-whois-tools-2.4.tar.gz) = 0ce107294de244da74efe01928596eaebe090a62
+Size (ripe-whois-tools-2.4.tar.gz) = 8613 bytes
+SHA1 (patch-aa) = b90ecd2cd29dabc37b7b35715a4cc1dbfdef2016
+SHA1 (patch-ab) = 241f9c51ceb834ae90d44b3567dd59116c5696f8
+SHA1 (patch-ac) = 2340f3e8abf02f6ecd3c32e52c076f11fc12773b
diff --git a/net/ripe-whois-tools/patches/patch-aa b/net/ripe-whois-tools/patches/patch-aa
new file mode 100644
index 00000000000..75d09493bef
--- /dev/null
+++ b/net/ripe-whois-tools/patches/patch-aa
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+
+--- Makefile.orig Mon Nov 16 17:38:32 1998
++++ Makefile
+@@ -19,14 +19,16 @@
+
+ DEFINES= -DRIPE
+ PROG= whois cryptpw
+-DESTDIR= /usr/local/bin
+-MANDIR= /usr/local/man/man1
+-INSTALL= install
+-# LIBS= -lresolv
++BINDIR= ${PREFIX}/bin
++MANDIR= ${PREFIX}/man/man1
++INSTALL_PROGRAM= ${BSD_INSTALL_PROGRAM}
++INSTALL_MAN= ${BSD_INSTALL_MAN}
++
+ CFLAGS= ${DEFINES}
++LIBS= ${EXTRA_LIBS}
+ #
+ # for BSDI
+-CC=shlicc2 -Wall -ansi -pedantic -O6 -m486
++#CC=shlicc2 -Wall -ansi -pedantic -O6 -m486
+ #
+ # for Linux
+ #CC=gcc -Wall -ansi -pedantic -O6 -m486
+@@ -45,8 +47,10 @@
+ $(CC) ${CFLAGS} cryptpw.c -o cryptpw ${LIBS}
+
+ install: ${PROG}
+- $(INSTALL) -c -s -m 755 ${PROG} networkupdate ${DESTDIR}
+- $(INSTALL) -c -m 444 whois.man ${MANDIR}/whois.1
++ ${INSTALL_PROGRAM} whois ${BINDIR}/ripe-whois
++ ${INSTALL_PROGRAM} cryptpw ${BINDIR}/ripe-cryptpw
++ ${INSTALL_PROGRAM} networkupdate ${BINDIR}/ripe-networkupdate
++ ${INSTALL_MAN} whois.man ${MANDIR}/ripe-whois.1
+
+ clean:
+ rm -f whois.o whois cryptpw cryptpw.o networkupdate networkupdate.o core
diff --git a/net/ripe-whois-tools/patches/patch-ab b/net/ripe-whois-tools/patches/patch-ab
new file mode 100644
index 00000000000..8da4593aa85
--- /dev/null
+++ b/net/ripe-whois-tools/patches/patch-ab
@@ -0,0 +1,39 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+
+--- whois.c.orig Tue Nov 17 12:32:56 1998
++++ whois.c
+@@ -84,11 +84,20 @@
+ #include <crypt.h>
+ #endif /* SYSV */
+
++#ifdef RIPE
++#include <sys/param.h>
++#define NICHOST "whois.ripe.net"
++#else
++#define NICHOST "whois.internic.net"
++#endif
++
+ #ifdef __STDC__
+ extern int getopt(int argc, char * const *argv, const char *optstring);
+ extern int kill(pid_t pid, int sig);
+ extern FILE *fdopen(int fildes, const char *type);
++#ifndef BSD
+ extern int gethostname(char *name, int namelen);
++#endif
+ #else /* !__STDC__ */
+ extern int gethostname();
+ #endif /* __STDC__ */
+@@ -140,13 +149,6 @@
+ #define RIPE
+ #endif /* !RIPE */
+ #endif /* TOPDOMAIN || CLEVER */
+-
+-#ifdef RIPE
+-#include <sys/param.h>
+-#define NICHOST "whois.ripe.net"
+-#else
+-#define NICHOST "whois.internic.net"
+-#endif
+
+ void usage()
+ {
diff --git a/net/ripe-whois-tools/patches/patch-ac b/net/ripe-whois-tools/patches/patch-ac
new file mode 100644
index 00000000000..dca7053f9c4
--- /dev/null
+++ b/net/ripe-whois-tools/patches/patch-ac
@@ -0,0 +1,52 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+
+--- whois.man.orig Tue Nov 17 12:35:51 1998
++++ whois.man
+@@ -1,9 +1,9 @@
+-.TH WHOIS 1 "94/09/07"
++.TH RIPE-WHOIS 1 "94/09/07"
+ .\" RIPE version marten@ripe.net 1.10 94/09/07
+ .SH NAME
+-whois \- TCP/IP Internet directory service, RIPE version
++ripe-whois \- TCP/IP Internet directory service, RIPE version
+ .SH SYNOPSIS
+-.B whois
++.B ripe-whois
+ [
+ .B \-aFSrR
+ ]
+@@ -32,12 +32,13 @@
+ ]
+ .I identifier
+
+-.B whois \-t
++.B ripe-whois \-t
+ .I type
+-.B whois \-v
++
++.B ripe-whois \-v
+ .I type
+ .SH DESCRIPTION
+-.B whois
++.B ripe-whois
+ searches for an object in the RIPE Network Management database.
+ The key can be either a name (such as "Karrenberg"),a nic-handle
+ (such as "DK58"),
+@@ -120,7 +121,7 @@
+ .LP
+ .SH EXAMPLES
+ .IP
+-.B example% whois karrenberg
++.B example% ripe-whois karrenberg
+ .IP
+ person: Daniel Karrenberg
+ .br
+@@ -146,7 +147,7 @@
+ .br
+ source: RIPE
+ .IP
+-.B example% whois -h whois.ripe.net -r 192.87.45.0/24
++.B example% ripe-whois -h whois.ripe.net -r 192.87.45.0/24
+ .IP
+ inetnum: 192.87.45.0
+ .br
diff --git a/net/ripe-whois-tools/pkg/DESCR b/net/ripe-whois-tools/pkg/DESCR
new file mode 100644
index 00000000000..0be3eadafca
--- /dev/null
+++ b/net/ripe-whois-tools/pkg/DESCR
@@ -0,0 +1,23 @@
+This is a set of C programs to be used in conjunction with the RIPE
+database. It contains the following programs:
+
+- whois
+ The RIPE version of the whois client program.
+ This is intended for European users as it will query a RIPE whois
+ server with extended whois capabilities rather than a standard whois
+ protocol server. The whois program is fully compatible with the
+ standard whois protocol and can thus replace your default whois
+ program.
+
+- networkupdate
+ A program that allows updating the RIPE database with the whois
+ protocol instead of the usual E-mail interface. This program can
+ usually only be used by the administrators of the whois server itself.
+ The updating mechanism is too powerfull (for now) to allow the general
+ public to use this mechanism. The server is protected by means of an
+ accesslist.
+
+- cryptpw
+ Calculate a crypted password with given password and salt.
+ This password can then be used in the 'auth:' field of maintainer
+ objects.
diff --git a/net/ripe-whois-tools/pkg/PLIST b/net/ripe-whois-tools/pkg/PLIST
new file mode 100644
index 00000000000..3a5b77c00e3
--- /dev/null
+++ b/net/ripe-whois-tools/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $
+bin/ripe-whois
+bin/ripe-networkupdate
+bin/ripe-cryptpw
+man/man1/ripe-whois.1