diff options
Diffstat (limited to 'net-mgmt/wide-dhcp/files')
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-aa | 22 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-ac | 53 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-ae | 18 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-ag | 18 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-aq | 19 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-as | 122 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-aw | 20 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-az | 53 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-ba | 11 |
9 files changed, 0 insertions, 336 deletions
diff --git a/net-mgmt/wide-dhcp/files/patch-aa b/net-mgmt/wide-dhcp/files/patch-aa deleted file mode 100644 index d76aca16f6d9..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-aa +++ /dev/null @@ -1,22 +0,0 @@ ---- client/Makefile.FreeBSD.orig Fri Jan 1 06:21:32 1999 -+++ client/Makefile.FreeBSD Sun Feb 7 10:38:40 1999 -@@ -2,16 +2,16 @@ - OBJ = dhcpc_subr.o flushroute.o getmac.o common_subr.o dhcpc.o - - CC = cc --CFLAGS = -O2 -I. -I../server -DRETRY_FOREVER #-DMOBILE_IP -DDEBUG -+CFLAGS += -O2 -I. -I../server -DRETRY_FOREVER #-DMOBILE_IP -DDEBUG - LDFLAGS = - --PREFIX = /usr/local -+#PREFIX = /usr/local - SBIN = $(PREFIX)/sbin - LIBEXEC = $(PREFIX)/libexec - MAN = $(PREFIX)/man - CP = /bin/cp - RM = /bin/rm --GZIP = /usr/bin/gzip -+GZIP = /usr/bin/touch # don't `gzip' anything for FreeBSD - - dhcpc: ${OBJ} - ${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS} diff --git a/net-mgmt/wide-dhcp/files/patch-ac b/net-mgmt/wide-dhcp/files/patch-ac deleted file mode 100644 index 36fcc36aa7d7..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-ac +++ /dev/null @@ -1,53 +0,0 @@ ---- client/dhcpc_subr.c.orig Fri Jan 1 06:21:08 1999 -+++ client/dhcpc_subr.c Sun Feb 7 10:46:25 1999 -@@ -170,6 +170,8 @@ - - int config_if(); - void set_route(); -+void set_resolv(); -+void set_hostname(); - void make_decline(); - void make_release(); - Long generate_xid(); -@@ -3221,4 +3223,41 @@ - - buf += OPTLEN(buf) + 1; - return(0); -+} -+ -+void -+set_resolv(param) -+struct dhcp_param *param; -+{ -+ FILE *fp; -+ int i; -+ -+ /* -+ * set resolv.conf -+ */ -+ if (param && param->dns_server != NULL) { -+ if (param->dns_server->num && param->dns_server->addr != NULL) { -+ unlink(_PATH_RESCONF); -+ if ((fp = fopen(_PATH_RESCONF, "w")) == NULL) { -+ return; -+ } -+ if (param->dns_domain != NULL) -+ fprintf(fp, "domain %s\n", param->dns_domain); -+ if (param->dns_server->addr) -+ for (i = 0; i < param->dns_server->num; i++) { -+ fprintf(fp,"nameserver %s\n",inet_ntoa(param->dns_server->addr[i])); -+ } -+ fclose(fp); -+ } -+ } -+} -+ -+void -+set_hostname(param) -+struct dhcp_param *param; -+{ -+ if (param && param->hostname != NULL) { -+ sethostname(param->hostname,strlen(param->hostname)); -+ } -+ return; - } diff --git a/net-mgmt/wide-dhcp/files/patch-ae b/net-mgmt/wide-dhcp/files/patch-ae deleted file mode 100644 index 2b565f37a4e9..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-ae +++ /dev/null @@ -1,18 +0,0 @@ ---- server/Makefile.FreeBSD.orig Tue Jan 26 02:13:13 1999 -+++ server/Makefile.FreeBSD Sun Feb 7 10:54:41 1999 -@@ -5,13 +5,13 @@ - CFLAGS = -O2 -I. #-DMAC_FILTER #-DCOMPAT_RFC1541 #-DNOICMPCHK - LDFLAGS = - --PREFIX = /usr/local -+#PREFIX = /usr/local - SBIN = ${PREFIX}/sbin - LIBEXEC = ${PREFIX}/libexec - MAN = ${PREFIX}/man - CP = /bin/cp - RM = /bin/rm --GZIP = /usr/bin/gzip -+GZIP = /usr/bin/touch # don't `gzip' anything for FreeBSD - - dhcps: ${OBJ} - ${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS} diff --git a/net-mgmt/wide-dhcp/files/patch-ag b/net-mgmt/wide-dhcp/files/patch-ag deleted file mode 100644 index 403705393395..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-ag +++ /dev/null @@ -1,18 +0,0 @@ ---- relay/Makefile.FreeBSD.orig Fri Jan 1 02:25:43 1999 -+++ relay/Makefile.FreeBSD Sun Feb 7 10:56:47 1999 -@@ -4,13 +4,13 @@ - CFLAGS = -O2 -I. -I../server - LDFLAGS = - --PREFIX = /usr/local -+#PREFIX = /usr/local - SBIN = ${PREFIX}/sbin - LIBEXEC = ${PREFIX}/libexec - MAN = ${PREFIX}/man - CP = /bin/cp - RM = /bin/rm --GZIP = /usr/bin/gzip -+GZIP = /usr/bin/touch # don't `gzip' anything for FreeBSD - - relay: ${OBJ} - ${CC} ${CFLAGS} -o relay ${OBJ} ${LDFLAGS} diff --git a/net-mgmt/wide-dhcp/files/patch-aq b/net-mgmt/wide-dhcp/files/patch-aq deleted file mode 100644 index c2b9b0000741..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-aq +++ /dev/null @@ -1,19 +0,0 @@ ---- tools/Makefile.FreeBSD.orig Fri Jan 1 02:31:45 1999 -+++ tools/Makefile.FreeBSD Sun Feb 7 11:00:20 1999 -@@ -1,14 +1,14 @@ - CC = cc - CFLAGS = -O2 -I. -I../server - --PREFIX = /usr/local -+#PREFIX = /usr/local - SBIN = ${PREFIX}/sbin - LIBEXEC = ${PREFIX}/libexec - MAN = ${PREFIX}/man - - CP = /bin/cp - RM = /bin/rm --GZIP = /usr/bin/gzip -+GZIP = /usr/bin/touch # don't `gzip' anything for FreeBSD - - dhcpm: dhcpm.c ../server/dhcp.h - $(CC) $(CFLAGS) dhcpm.c -o dhcpm diff --git a/net-mgmt/wide-dhcp/files/patch-as b/net-mgmt/wide-dhcp/files/patch-as deleted file mode 100644 index c7263ff2a1a4..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-as +++ /dev/null @@ -1,122 +0,0 @@ ---- client/dhcpc.c.orig Fri Jan 1 05:20:08 1999 -+++ client/dhcpc.c Sun Feb 7 11:17:59 1999 -@@ -88,6 +88,7 @@ - struct dhcp_reqspec reqspec; - struct if_info intface; - struct dhcp_param *param_list; -+int f_resolv, f_hostname; - char pid_filename[MAXPATHLEN]; - char cache_filename[MAXPATHLEN]; - -@@ -256,6 +257,14 @@ - if (config_if(&intface, &addr, &mask, &brdaddr) == 0) { - set_route(paramp); - } -+#ifdef __FreeBSD__ -+ if (f_resolv) { -+ set_resolv(param_list); -+ } -+ if (f_hostname) { -+ set_hostname(param_list); -+ } -+#endif - #endif - - return; -@@ -293,7 +302,7 @@ - /* - * split conditions into pieces for debugging - */ --#ifndef sun -+#if !defined(sun) && !defined(__FreeBSD__) - if (ntohs(rcv.ip->ip_len) < MINDHCPLEN + UDPHL + IPHL) - return(0); - if (ntohs(rcv.udp->uh_ulen) < MINDHCPLEN + UDPHL) -@@ -350,7 +359,7 @@ - /* - * split conditions into pieces for debugging - */ --#ifndef sun -+#if !defined(sun) && !defined(__FreeBSD__) - if (ntohs(rcv.ip->ip_len) < MINDHCPLEN + UDPHL + IPHL) - return(0); - if (ntohs(rcv.udp->uh_ulen) < MINDHCPLEN + UDPHL) -@@ -1789,7 +1798,11 @@ - void - usage() - { -- fprintf(stderr, "Usage: dhcpc [-d] if_name\n"); -+#ifdef __FreeBSD__ -+ fprintf(stderr, "Usage: dhcpc [-v] [-drn] if_name\n"); -+#else -+ fprintf(stderr, "Usage: dhcpc [-v] [-d] if_name\n"); -+#endif - exit(1); - } - -@@ -1809,26 +1822,39 @@ - { - int debug = 0; - int n = 0; -+ int count; - struct if_info ifinfo; - - bzero(&reqspec, sizeof(reqspec)); - bzero(&ifinfo, sizeof(ifinfo)); - -- while (*++argv && argv[0][0] == '-') { -- switch (argv[0][1]) { -- case 'v': -- version(); -- break; -- case 'd': -- debug = 1; -- break; -- default: -- usage(); -- break; -- } -- } -- if (argv[0] == NULL) usage(); -+#ifdef __FreeBSD__ -+#define COM_OPTS "vdrn" -+#else -+#define COM_OPTS "vd" -+#endif - -+ while ((count = getopt(argc, argv, COM_OPTS)) != EOF) { -+ switch (count) { -+ case 'v': -+ version(); -+ case 'd': -+ debug = 1; -+ break; -+#ifdef __FreeBSD__ -+ case 'r': -+ f_resolv = 1; -+ break; -+ case 'n': -+ f_hostname = 1; -+ break; -+#endif -+ } -+ } -+ argc -= optind; -+ argv += optind; -+ -+ if (argc < 1) usage(); - strcpy(ifinfo.name, argv[0]); - - /* -@@ -1859,6 +1885,11 @@ - reqspec.reqlist.list[reqspec.reqlist.len++] = SUBNET_MASK; - reqspec.reqlist.list[reqspec.reqlist.len++] = ROUTER; - reqspec.reqlist.list[reqspec.reqlist.len++] = BRDCAST_ADDR; -+#ifdef __FreeBSD__ -+ reqspec.reqlist.list[reqspec.reqlist.len++] = DNS_DOMAIN; -+ reqspec.reqlist.list[reqspec.reqlist.len++] = DNS_SERVER; -+ reqspec.reqlist.list[reqspec.reqlist.len++] = HOSTNAME; -+#endif - - n = dhcp_client(&ifinfo); - unlink(pid_filename); diff --git a/net-mgmt/wide-dhcp/files/patch-aw b/net-mgmt/wide-dhcp/files/patch-aw deleted file mode 100644 index 23a9473fa546..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-aw +++ /dev/null @@ -1,20 +0,0 @@ ---- db_sample.bak/dhcpdb.pool Thu Jul 21 19:39:46 1994 -+++ db_sample/dhcpdb.pool Sun Mar 23 00:07:21 1997 -@@ -2,12 +2,14 @@ - global:!snmk=255.255.255.224:tmof=32400: - - # define different master entries for each subnet. . . -+# `dnsv' is IP address of DNS server. -+# `dnsd' is domain name of your domain. - subnet30:tblc=global:rout=133.4.30.1:dht1=500:dht2=850:\ -- :brda=133.4.30.31: -+ :brda=133.4.30.31:dnsv=133.4.30.10:dnsd=you.domain.name: - - # entries for manual allocation (DHCP, BOOTP) --3001: :ipad=133.4.30.1:tblc=subnet30:clid="1:0x0080c75fdc03": --3002: :ipad=133.4.30.2:tblc=subnet30:clid="1:0x08004600e5d5": -+3001: :ipad=133.4.30.1:hstn="yourclient1.host.name":tblc=subnet30:clid="1:0x0080c75fdc03": -+3002: :ipad=133.4.30.2:hstn="yourclient2.host.name":tblc=subnet30:clid="1:0x08004600e5d5": - - # entries for dynamic allocation (DHCP) - 3003: :ipad=133.4.30.3:dfll=3600:maxl=7200:tblc=subnet30: diff --git a/net-mgmt/wide-dhcp/files/patch-az b/net-mgmt/wide-dhcp/files/patch-az deleted file mode 100644 index ab04b6ed492f..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-az +++ /dev/null @@ -1,53 +0,0 @@ ---- client/dhcpc.8.orig Sat Jan 9 20:54:01 1999 -+++ client/dhcpc.8 Sun Feb 7 11:27:29 1999 -@@ -5,7 +5,7 @@ - .SH SYNOPSIS - .B dhcpc - [ --.B \-d -+.B \-drn - ] - .I interface - .SH DESCRIPTION -@@ -26,7 +26,7 @@ - requests server to assign the same address as before. - To get the same address, - .B dhcpc --creates file named /etc/dhcpc_cache.interface -+creates file named /var/db/dhcpc_cache.interface - (or /var/db/dhcpc_cache.interface for BSD/OS and FreeBSD). This - file name could be configured when it is compiled. But it is required - that the file must remains after the host reboot. For example, the -@@ -38,6 +38,21 @@ - .B dhcpc - runs in foreground and debugging mode. - .LP -+If the -+.B \-r -+option is specified, and if your DHCP server supplies the DNS address, -+.B dhcpc -+overwrites "/etc/resolv.conf" with supplied address. -+.LP -+If the -+.B \-n -+option is specified, and if your DHCP server supplies the hostname of -+the client, -+.B dhcpc -+call -+.B sethostname(3) -+with supplied name. -+.LP - The DHCP client can verify whether its assigned information is still - valid at any time. - .B dhcpc -@@ -70,6 +85,10 @@ - .TP - .B /etc/dhcpc_cache.interface - The file to record previously assigned informations (for others) -+.TP -+.B /var/run/dhcpc.[interface name].pid -+File which includes process ID -+.PD - .PD - .SH SEE ALSO - R. Droms, diff --git a/net-mgmt/wide-dhcp/files/patch-ba b/net-mgmt/wide-dhcp/files/patch-ba deleted file mode 100644 index c98ed7d460fe..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-ba +++ /dev/null @@ -1,11 +0,0 @@ ---- server/dhcps.8.orig Fri Jan 1 05:28:25 1999 -+++ server/dhcps.8 Sun Feb 7 11:30:56 1999 -@@ -37,7 +37,7 @@ - .B dhcps - manages these with files, /etc/dhcpdb.pool and /etc/dhcpdb.bind - (/var/db/dhcpdb.bind for BSD/OS and FreeBSD). It is possible to change --these path with command line option. -+this path with command line options. - .LP - Also - .B dhcps |