diff options
author | seb <seb@pkgsrc.org> | 2001-10-16 22:40:11 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2001-10-16 22:40:11 +0000 |
commit | b95d14c13a77fc854b131c34f15c1fdcd4844af8 (patch) | |
tree | 0ed21c1bac5bf3f381e1406b84da5c48e958c488 | |
parent | 678d2968b78acdcb6c6db17ea5d7403acfc24ba5 (diff) | |
download | pkgsrc-b95d14c13a77fc854b131c34f15c1fdcd4844af8.tar.gz |
Added traceroute-as version 991603, a traceroute capable of reporting the AS
number of hops.
-rw-r--r-- | net/traceroute-as/Makefile | 27 | ||||
-rw-r--r-- | net/traceroute-as/distinfo | 5 | ||||
-rw-r--r-- | net/traceroute-as/patches/patch-aa | 121 | ||||
-rw-r--r-- | net/traceroute-as/pkg/DESCR | 5 | ||||
-rw-r--r-- | net/traceroute-as/pkg/MESSAGE | 7 | ||||
-rw-r--r-- | net/traceroute-as/pkg/PLIST | 4 |
6 files changed, 169 insertions, 0 deletions
diff --git a/net/traceroute-as/Makefile b/net/traceroute-as/Makefile new file mode 100644 index 00000000000..251c9714c88 --- /dev/null +++ b/net/traceroute-as/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/16 22:40:11 seb Exp $ +# + +DISTNAME= traceroute_991603.tar +PKGNAME= traceroute-as-991603 +CATEGORIES= net +MASTER_SITES= ftp://ftp.nikhef.nl/pub/network/ +EXTRACT_SUFX= .Z + +MAINTAINER= seb@netbsd.org +COMMENT= Traceroute capable of reporting the AS number of hops + +WRKSRC= ${WRKDIR} + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +PKG_SYSDEFS= -DSYSV +PKG_LIBRARIES= -lresolv -lsocket -lnsl +.endif + +MAKE_FLAGS+= CC=${CC:Q} PKG_CFLAGS=${CFLAGS:Q} PKG_SYSDEFS=${PKG_SYSDEFS:Q} +MAKE_FLAGS+= PKG_LIBRARIES=${PKG_LIBRARIES:Q} +INSTALL_PROGRAM_SUID= ${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m 4555 +MAKE_ENV+= BSD_INSTALL_PROGRAM_SUID="${INSTALL_PROGRAM_SUID}" + +.include "../../mk/bsd.pkg.mk" diff --git a/net/traceroute-as/distinfo b/net/traceroute-as/distinfo new file mode 100644 index 00000000000..a88acb24f16 --- /dev/null +++ b/net/traceroute-as/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/16 22:40:11 seb Exp $ + +SHA1 (traceroute_991603.tar.Z) = 84a66a5acc87ca74a74c7a091f288f0886d71d2e +Size (traceroute_991603.tar.Z) = 75111 bytes +SHA1 (patch-aa) = 3370d57975369c049773e8fa1b31bbb5403c0dd9 diff --git a/net/traceroute-as/patches/patch-aa b/net/traceroute-as/patches/patch-aa new file mode 100644 index 00000000000..767c531719e --- /dev/null +++ b/net/traceroute-as/patches/patch-aa @@ -0,0 +1,121 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/10/16 22:40:11 seb Exp $ + +--- Makefile.orig Fri Aug 28 10:40:36 1998 ++++ Makefile +@@ -5,10 +5,10 @@ + # ---------------------------------------------------------------------- + + # This is where the traceroute executable will go. +-DESTBIN = /usr/local/etc ++DESTBIN = $(DESTDIR)$(PREFIX)/sbin + + # This is where the traceroute manual page will go. +-DESTMAN = /usr/local/man ++DESTMAN = $(DESTDIR)$(PREFIX)/man + + BINDIR = $(DESTBIN) + MANDIR = $(DESTMAN)/man8 +@@ -42,7 +42,7 @@ + SYSDEFS = -D_BSD_SOURCE + #endif + +-SYSDEFS = ++SYSDEFS = $(PKG_SYSDEFS) + + # ---------------------------------------------------------------------- + # Configuration definitions. +@@ -53,7 +53,7 @@ + CONFIGDEFS = -DOLD_RES_STATE + #endif + +-CONFIGDEFS = ++CONFIGDEFS = $(PKG_CONFIGDEFS) + + # ---------------------------------------------------------------------- + # Include file directories. +@@ -79,7 +79,7 @@ + COPTS = + COPTS = -O + +-CFLAGS = $(COPTS) $(DEFS) ++CFLAGS = $(PKG_CFLAGS) $(DEFS) + + # Select your favorite compiler. + CC = /usr/ucb/cc #if defined(solaris) && BSD +@@ -113,7 +113,7 @@ + LIBS = -lsocket -lnsl #if defined(solaris) && not BSD + LIBS = + +-LIBRARIES = $(RES) $(COMPLIB) $(LIBS) ++LIBRARIES = $(PKG_LIBRARIES) + + LDFLAGS = + +@@ -121,10 +121,11 @@ + # Miscellaneous definitions. + # ---------------------------------------------------------------------- + +-MAKE = make $(MFLAGS) +- +-# This assumes the BSD install. +-INSTALL = install -c ++INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM) ++INSTALL_PROGRAM_SUID = $(BSD_INSTALL_PROGRAM_SUID) ++INSTALL_PROGRAM_DIR = $(BSD_INSTALL_PROGRAM_DIR) ++INSTALL_MAN = $(BSD_INSTALL_MAN) ++INSTALL_MAN_DIR = $(BSD_INSTALL_MAN_DIR) + + # Grrr + SHELL = /bin/sh +@@ -144,13 +145,13 @@ + + UHDR = aslookup.h port.h exit.h + USRC = aslookup.c vers.c +-UOBJ = aslookup.o vers.o ++UOBJ = aslookup-std.o vers-std.o + UTIL = aslookup + + PACKAGE = traceroute + TARFILE = $(PACKAGE).tar + +-CLEANUP = $(PROG) $(UTIL) $(OBJS) $(TARFILE) $(TARFILE).Z ++CLEANUP = $(PROG) $(UTIL) $(OBJS) $(UOBJ) $(TARFILE) $(TARFILE).Z + + # ---------------------------------------------------------------------- + # Rules for installation. +@@ -161,25 +162,29 @@ + MODE = 4755 + STRIP = -s + +-all: $(PROG) ++all: $(PROG) $(UTIL) + + $(OBJS): $(SRCS) $(HDRS) + + $(PROG): $(OBJS) + $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBRARIES) + +-install: $(PROG) +- $(INSTALL) -m $(MODE) -o $(OWNER) -g $(GROUP) $(STRIP) $(PROG) $(BINDIR) ++install: $(PROG) $(UTIL) man ++ $(INSTALL_PROGRAM_DIR) $(BINDIR) ++ $(INSTALL_PROGRAM_SUID) traceroute $(BINDIR)/traceroute-as ++ $(INSTALL_PROGRAM) aslookup $(BINDIR)/aslookup + + man: $(MANS) +- $(INSTALL) -m 444 traceroute.8 $(MANDIR) ++ $(INSTALL_MAN_DIR) $(MANDIR) ++ $(INSTALL_MAN) traceroute.8 $(MANDIR)/traceroute-as.8 + + clean: + rm -f $(CLEANUP) *.o a.out core + + $(UTIL): $(USRC) $(UHDR) +- $(CC) $(CFLAGS) -DSTANDALONE -o $(UTIL) $(USRC) $(LIBRARIES) +- rm -f $(UOBJ) ++ $(CC) $(CFLAGS) -DSTANDALONE -c aslookup.c -o aslookup-std.o ++ $(CC) $(CFLAGS) -DSTANDALONE -c vers.c -o vers-std.o ++ $(CC) $(CFLAGS) -o $(UTIL) aslookup-std.o vers-std.o $(LIBRARIES) + + # ---------------------------------------------------------------------- + # Rules for maintenance. diff --git a/net/traceroute-as/pkg/DESCR b/net/traceroute-as/pkg/DESCR new file mode 100644 index 00000000000..ad3e08cf889 --- /dev/null +++ b/net/traceroute-as/pkg/DESCR @@ -0,0 +1,5 @@ +This traceroute implements an unique feature: it can query a whois server +and report the Autonomous System number (AS, see RFC1930) of the routers +along the path. +This packages also contains `aslookup' a command line utility for querying +a whois server and returning the AS number of supplied IP addresses. diff --git a/net/traceroute-as/pkg/MESSAGE b/net/traceroute-as/pkg/MESSAGE new file mode 100644 index 00000000000..0ca40f0a243 --- /dev/null +++ b/net/traceroute-as/pkg/MESSAGE @@ -0,0 +1,7 @@ +====================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2001/10/16 22:40:11 seb Exp $ + +WARNING! +This package installs ${PREFIX}/sbin/traceroute-as as setuid root! + +====================================================================== diff --git a/net/traceroute-as/pkg/PLIST b/net/traceroute-as/pkg/PLIST new file mode 100644 index 00000000000..479c2e20fe0 --- /dev/null +++ b/net/traceroute-as/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/16 22:40:11 seb Exp $ +man/man8/traceroute-as.8 +sbin/aslookup +sbin/traceroute-as |