summaryrefslogtreecommitdiff
path: root/net/gated
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>1998-06-26 00:23:37 +0000
committerchristos <christos@pkgsrc.org>1998-06-26 00:23:37 +0000
commit82500efd0dbcdc9e94d631da0a082e249aa0abe8 (patch)
tree9c2d594003404e057510b46f5e2babb63de36713 /net/gated
parent4b692b15cfa89c760af2dda1c058e46baf587007 (diff)
downloadpkgsrc-82500efd0dbcdc9e94d631da0a082e249aa0abe8.tar.gz
gated package from FreeBSD
Diffstat (limited to 'net/gated')
-rw-r--r--net/gated/patches/patch-aa11
-rw-r--r--net/gated/patches/patch-ab42
-rw-r--r--net/gated/patches/patch-ac45
-rw-r--r--net/gated/patches/patch-ad10
-rw-r--r--net/gated/pkg/COMMENT1
-rw-r--r--net/gated/pkg/DESCR4
-rw-r--r--net/gated/pkg/PLIST8
-rwxr-xr-xnet/gated/scripts/configure18
8 files changed, 139 insertions, 0 deletions
diff --git a/net/gated/patches/patch-aa b/net/gated/patches/patch-aa
new file mode 100644
index 00000000000..43494d6db40
--- /dev/null
+++ b/net/gated/patches/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.orig Thu Jun 25 17:37:44 1998
++++ Makefile Thu Jun 25 17:45:38 1998
+@@ -70,7 +70,7 @@
+ # Makefile for gated root directory
+ #
+ #
+-gated: src
++all: src
+ (cd src; make)
+
+ install: src man install-man
diff --git a/net/gated/patches/patch-ab b/net/gated/patches/patch-ab
new file mode 100644
index 00000000000..0cea50e9d63
--- /dev/null
+++ b/net/gated/patches/patch-ab
@@ -0,0 +1,42 @@
+--- src/task.c.orig Fri Jul 18 06:45:02 1997
++++ src/task.c Wed Oct 1 21:40:45 1997
+@@ -5868,12 +5868,20 @@
+ }
+
+ /* Remove our association with a controling tty */
+-#ifdef USE_SETPGRP
++#if defined(USE_SETPGRP) || defined(USE_SETSID)
++#if defined(USE_SETPGRP)
+ t = setpgrp();
+ if (t < 0) {
+ perror("task_daemonize: setpgrp");
+ exit(1);
+ }
++#else /* USE_SETPGRP */
++ t = setsid();
++ if (t < 0) {
++ perror("task_daemonize: setsid");
++ exit(1);
++ }
++#endif /* USE_SETPGRP */
+
+ task_signal_ignore(SIGHUP);
+
+@@ -5892,7 +5900,7 @@
+ /* Parent */
+ exit(0);
+ }
+-#else /* USE_SETPGRP */
++#else /* defined(USE_SETPGRP) || defined(USE_SETSID) */
+ t = setpgrp(0, getpid());
+ if (t < 0) {
+ perror("task_daemonize: setpgrp");
+@@ -5907,7 +5915,7 @@
+ }
+ (void) close(t);
+ }
+-#endif /* USE_SETPGRP */
++#endif /* defined(USE_SETPGRP) || defined(USE_SETSID) */
+ }
+
+ /* Close all open files */
diff --git a/net/gated/patches/patch-ac b/net/gated/patches/patch-ac
new file mode 100644
index 00000000000..62898e9bf89
--- /dev/null
+++ b/net/gated/patches/patch-ac
@@ -0,0 +1,45 @@
+--- /dev/null Thu Jun 25 17:09:49 1998
++++ src/configs/netbsd Thu Jun 25 17:41:46 1998
+@@ -0,0 +1,42 @@
++#
++# $Id: patch-ac,v 1.1 1998/06/26 00:23:38 christos Exp $
++# Configuration for freebsd-2.0 alpha (i386)
++#
++
++bindir /usr/pkg/bin
++sbindir /usr/pkg/sbin
++mandir /usr/pkg/man
++mantype bsd42
++
++cc cc
++#cflags -g
++cwflags -W -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow
++cflags -O -g
++
++ldflags -lkvm
++
++lex lex
++lflags -p -Cfe
++yflags -d -v
++
++mkdep mkdep -flag -MM
++
++options INCLUDE_UNISTD INCLUDE_PATHS GID_T=gid_t
++options POSIX_SIGNALS HAVE_WAITPID USE_SETSID
++options VARIABLE_MASKS SOCKET_LENGTHS SOCKADDR_DL INCLUDE_IF_DL
++options KRT_RTREAD_KINFO KRT_IFREAD_KINFO KRT_RT_SOCK USE_SYSCTL
++options KRT_LLADDR_NONE KRT_SYMBOLS_SYSCTL KVM_TYPE_BSD44 KSYM_VERSION=VRS_SYM
++options KRT_SOCKET_TYPE="PF_ROUTE, SOCK_RAW, AF_UNSPEC"
++options U_INT8=u_int8_t U_INT16=u_int16_t U_INT32=u_int32_t U_INT64=u_int64_t
++options S_INT8=int8_t S_INT16=int16_t S_INT32=int32_t S_INT64=int64_t
++options GDC_RESOURCE GDCCORENAME=""%s.core""
++
++gdc_group wheel
++
++path_dump /var/tmp/%s_dump
++path_dumpdir /var/tmp
++path_pid /var/run/%s.pid
++path_version /var/run/%s.version
++path_unix /netbsd
++
++protocols bgp egp hello icmp rip ospf iso slsp isis rdisc
diff --git a/net/gated/patches/patch-ad b/net/gated/patches/patch-ad
new file mode 100644
index 00000000000..4b75d8159f6
--- /dev/null
+++ b/net/gated/patches/patch-ad
@@ -0,0 +1,10 @@
+--- src/sockaddr.h.orig Wed Oct 1 21:55:58 1997
++++ src/sockaddr.h Wed Oct 1 21:55:13 1997
+@@ -126,6 +126,7 @@
+ } sockaddr_un;
+
+ /* The maximum possible address length */
++#undef SOCK_MAXADDRLEN /* override BSD4.4's 255 due to memory cost */
+ #define SOCK_MAXADDRLEN 20
+
+ #define AF_LL 253 /* Link level address */
diff --git a/net/gated/pkg/COMMENT b/net/gated/pkg/COMMENT
new file mode 100644
index 00000000000..b27c23a55d8
--- /dev/null
+++ b/net/gated/pkg/COMMENT
@@ -0,0 +1 @@
+Routing protocol daemon.
diff --git a/net/gated/pkg/DESCR b/net/gated/pkg/DESCR
new file mode 100644
index 00000000000..ee2e3842cc6
--- /dev/null
+++ b/net/gated/pkg/DESCR
@@ -0,0 +1,4 @@
+GateD routing protocol daemon
+
+This program implements various routing protocols such as OSPF, RIP, EGP,
+HELLO, BGP, ISIS, et al.
diff --git a/net/gated/pkg/PLIST b/net/gated/pkg/PLIST
new file mode 100644
index 00000000000..6704a46b8c9
--- /dev/null
+++ b/net/gated/pkg/PLIST
@@ -0,0 +1,8 @@
+man/man8/gated.8.gz
+man/man8/ripquery.8.gz
+man/man8/ospf_monitor.8.gz
+man/man8/gdc.8.gz
+sbin/gated
+bin/ripquery
+bin/ospf_monitor
+bin/gdc
diff --git a/net/gated/scripts/configure b/net/gated/scripts/configure
new file mode 100755
index 00000000000..f87d4030182
--- /dev/null
+++ b/net/gated/scripts/configure
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Configure gated
+#
+cd $WRKSRC
+
+for file in Makefile src/Makefile src/util/Makefile.template ; do
+ mv $file $file.orig
+ sed -e 's/^true:;$/true:/' -e 's/^[ ]*$//' $file.orig >$file
+done
+
+cd src
+
+obj=obj.`util/archtype`
+mkdir -p $obj
+
+cp configs/netbsd $obj/Config
+rm -f Config