diff options
Diffstat (limited to 'net-mgmt/wide-dhcp')
-rw-r--r-- | net-mgmt/wide-dhcp/Makefile | 61 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/distinfo | 1 | ||||
-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 | 319 | ||||
-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 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample | 30 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/pkg-comment | 1 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/pkg-descr | 66 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/pkg-plist | 17 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/pkg-req | 13 |
16 files changed, 0 insertions, 722 deletions
diff --git a/net-mgmt/wide-dhcp/Makefile b/net-mgmt/wide-dhcp/Makefile deleted file mode 100644 index 1078aaaf5ac4..000000000000 --- a/net-mgmt/wide-dhcp/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -# ex:ts=8 -# Ports collection makefile for: dhcp -# Date created: 21 November 1995 -# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp> -# -# $FreeBSD$ -# - -PORTNAME= wide-dhcp -PORTVERSION= 1.4.0.6 -CATEGORIES= net -MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \ - ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/wide-dhcp/ \ - ftp://ftp.st.ryukoku.ac.jp/pub/network/dhcp/wide/ \ - ftp://ftp.sage-au.org.au/pub/network/boot/wide-dhcp/ -DISTNAME= dhcp-1.4.0p6 - -MAINTAINER= obrien@FreeBSD.org - -MAKE_ENV= OSTYPE=${OPSYS} - -MAN5= dhcpdb.server.5 dhcpdb.pool.5 dhcpdb.relay.5 -MAN8= dhcpc.8 dhcps.8 relay.8 dhcpm.8 - -STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wide-dhcps.sh.sample - -post-install: -.if !defined(NOPORTDOCS) - @if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \ - ${MKDIR} ${PREFIX}/share/doc/dhcp; \ - fi - @if [ ! -d ${PREFIX}/share/examples/dhcp ]; then \ - ${MKDIR} ${PREFIX}/share/examples/dhcp; \ - fi - @${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/ - @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/ - @${CP} ${WRKSRC}/db_sample/dhcpdb.pool \ - ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample - @${CP} ${WRKSRC}/db_sample/dhcpdb.relay \ - ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample - @${CP} ${WRKSRC}/db_sample/dhcpdb.server \ - ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample - @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/ - @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis \ - ${PREFIX}/share/doc/dhcp/ -.endif - @if [ ! -f ${STARTUP_SCRIPT} ]; then \ - ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ - ${INSTALL_SCRIPT} ${FILESDIR}/wide-dhcps.sh.sample ${STARTUP_SCRIPT}; \ - fi - @if [ ! -c /dev/bpf1 ]; then \ - ${ECHO} "********************************************************";\ - ${ECHO} "* W a r n i n g *";\ - ${ECHO} "* DHCP the needs Berkeley Packet Filter (bpf). *";\ - ${ECHO} "* To use DHCP, your kernel must be rebuilt with bpf, *";\ - ${ECHO} "* and make bpf devices on /dev directory. *";\ - ${ECHO} "* Please read the info file by \`pkg_info ${PKGNAME}'. *";\ - ${ECHO} "********************************************************";\ - fi - -.include <bsd.port.mk> diff --git a/net-mgmt/wide-dhcp/distinfo b/net-mgmt/wide-dhcp/distinfo deleted file mode 100644 index aed0c91049b9..000000000000 --- a/net-mgmt/wide-dhcp/distinfo +++ /dev/null @@ -1 +0,0 @@ -MD5 (dhcp-1.4.0p6.tar.gz) = 2344ea3a93ea5b6c1dae6999c4904c37 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 a977a72eb2ba..000000000000 --- a/net-mgmt/wide-dhcp/files/patch-as +++ /dev/null @@ -1,319 +0,0 @@ ---- client/dhcpc.c.orig Fri Jan 1 05:20:08 1999 -+++ client/dhcpc.c Thu Jan 20 13:21:05 2000 -@@ -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) -@@ -398,11 +407,14 @@ - - bzero(&tmp_reqspec, sizeof(tmp_reqspec)); - bzero(errmsg, sizeof(errmsg)); -- bzero(&newsigmask, sizeof(newsigmask)); -- bzero(&oldsigmask, sizeof(oldsigmask)); - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGALRM); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigemptyset(&newsigmask); -+ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGALRM); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); - - switch (curr_state) { - case BOUND: -@@ -423,7 +435,7 @@ - default: - break; - } -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - unlink(pid_filename); - -@@ -1157,8 +1169,8 @@ - struct dhcp_param tmpparam; - - bzero(errmsg, sizeof(errmsg)); -- bzero(&newsigmask, sizeof(newsigmask)); -- bzero(&oldsigmask, sizeof(oldsigmask)); -+ sigemptyset(&newsigmask); -+ sigemptyset(&oldsigmask); - bzero(&tmpparam, sizeof(tmpparam)); - - if (prev_state != RENEWING) { -@@ -1247,12 +1259,15 @@ - errmsg); - } - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); /* begin critical */ -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); - clean_param(param_list); - free(param_list); - param_list = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - return(INIT); /* Next state is INIT */ - } -@@ -1260,13 +1275,16 @@ - dhcp_msgtoparam(rcv.dhcp, DHCPLEN(rcv.udp), - &tmpparam) == OK) { - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - merge_param(param_list, &tmpparam); - *param_list = tmpparam; - param_list->lease_origin = send_epoch; - param_list->next = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)", - inet_ntoa(param_list->yiaddr), param_list->lease_duration); -@@ -1316,8 +1334,8 @@ - struct dhcp_param tmpparam; - - bzero(errmsg, sizeof(errmsg)); -- bzero(&newsigmask, sizeof(newsigmask)); -- bzero(&oldsigmask, sizeof(oldsigmask)); -+ sigemptyset(&newsigmask); -+ sigemptyset(&oldsigmask); - bzero(&tmpparam, sizeof(tmpparam)); - - if (time(&curr_epoch) == -1) { -@@ -1386,12 +1404,15 @@ - errmsg); - } - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - clean_param(param_list); - free(param_list); - param_list = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - return(INIT); /* Next state is INIT */ - } -@@ -1399,13 +1420,16 @@ - dhcp_msgtoparam(rcv.dhcp, DHCPLEN(rcv.udp), - &tmpparam) == OK) { - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - merge_param(param_list, &tmpparam); - *param_list = tmpparam; - param_list->lease_origin = send_epoch; - param_list->next = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)", - inet_ntoa(param_list->yiaddr), param_list->lease_duration); -@@ -1577,8 +1601,8 @@ - struct dhcp_reqspec tmp_reqspec; - - bzero(errmsg, sizeof(errmsg)); -- bzero(&newsigmask, sizeof(newsigmask)); -- bzero(&oldsigmask, sizeof(oldsigmask)); -+ sigemptyset(&newsigmask); -+ sigemptyset(&oldsigmask); - bzero(&tmpparam, sizeof(tmpparam)); - bzero(&tmp_reqspec, sizeof(tmp_reqspec)); - -@@ -1666,12 +1690,15 @@ - errmsg); - } - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - clean_param(param_list); - free(param_list); - param_list = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - return(INIT); /* Next state is INIT */ - } -@@ -1679,13 +1706,16 @@ - dhcp_msgtoparam(rcv.dhcp, DHCPLEN(rcv.udp), - &tmpparam) == OK) { - if ((arpans = arp_check(&tmpparam.yiaddr, &arpif)) == OK) { -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - merge_param(param_list, &tmpparam); - *param_list = tmpparam; - param_list->lease_origin = init_epoch; - param_list->next = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)", - inet_ntoa(param_list->yiaddr), param_list->lease_duration); -@@ -1697,12 +1727,15 @@ - set_declinfo(&tmp_reqspec, param_list, errmsg, arpans); - dhcp_decline(&tmp_reqspec); - -- newsigmask = sigmask(SIGUSR1) | sigmask(SIGUSR2); -- oldsigmask = sigblock(newsigmask); /* begin critical */ -+ sigprocmask(0, NULL, &oldsigmask); -+ memcpy(&newsigmask, &oldsigmask, sizeof(sigset_t)); -+ sigaddset(&newsigmask, SIGUSR1); -+ sigaddset(&newsigmask, SIGUSR2); -+ sigprocmask(SIG_SETMASK, &newsigmask, NULL); /* begin critical */ - clean_param(param_list); - free(param_list); - param_list = NULL; -- sigsetmask(oldsigmask); /* end critical */ -+ sigprocmask(SIG_SETMASK, &oldsigmask, NULL); /* end critical */ - - syslog(LOG_NOTICE, - "Got non-preferable DHCPACK, so go into INIT state"); -@@ -1789,7 +1822,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 +1846,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 +1909,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 diff --git a/net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample b/net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample deleted file mode 100644 index 6cab4e824a0f..000000000000 --- a/net-mgmt/wide-dhcp/files/wide-dhcps.sh.sample +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then - echo "$0: Cannot determine the PREFIX" >&2 - exit 1 -fi - -DB_POOL=/etc/dhcpdb.pool -DB_RELAY=/etc/dhcpdb.relay -DB_BIND=/var/db/dhcpdb.bind - -case "$1" in -start) - if [ -f ${DB_POOL} -a -f ${DB_RELAY} -a -x ${PREFIX}/sbin/dhcps ]; then - if [ -f ${DB_BIND} ]; then - find ${DB_POOL} -newer ${DB_BIND} -exec rm ${DB_BIND} \; - fi - ${PREFIX}/sbin/dhcps [Interface Name] - echo -n ' dhcps' - fi - ;; -stop) - killall dhcps && echo -n ' dhcps' - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac - -exit 0 diff --git a/net-mgmt/wide-dhcp/pkg-comment b/net-mgmt/wide-dhcp/pkg-comment deleted file mode 100644 index 3108e3092de9..000000000000 --- a/net-mgmt/wide-dhcp/pkg-comment +++ /dev/null @@ -1 +0,0 @@ -Dynamic Host Configuration Protocol, WIDE-Implimentation diff --git a/net-mgmt/wide-dhcp/pkg-descr b/net-mgmt/wide-dhcp/pkg-descr deleted file mode 100644 index 816bd08fa7f3..000000000000 --- a/net-mgmt/wide-dhcp/pkg-descr +++ /dev/null @@ -1,66 +0,0 @@ - << DHCP WIDE-Implementation, version 1.3.6 >> - - April, 1997. - - This package is a distribution kit of DHCP WIDE-Implementation - version 1.3.6. DHCP (Dynamic Host Configuration Protocol) is a - protocol which provides informations to computer when it boots. - This release includes DHCP server, relay agent, and client. - - -<License> - - See "Copyright" included in this directory. - - Also, portions of this software may fall under the copyrights which - are included the end of this file. These are included corresponded - source code files. - - -<Package> - - You can get the latest version from; - ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ - ------------------------------- - -** Attention for this ports file ** - - To use DHCP, your kernel must be rebuilt with the following - line added to your kernel config file (/sys/i386/conf/<YourMachine>): - -pseudo-device bpfilter 4 #Berkeley packet filter - - and make bpf devices in your /dev directory: /dev/bpf[1-3]. - -cd /dev -./MAKEDEV bpf1 -./MAKEDEV bpf2 -./MAKEDEV bpf3 - -** dhcpdb.relay file is need without relay agent ** - - Please read more information in - /usr/local/share/doc/dhcp/intro.dhcp or intro.dhcp.jis. - -** additional function ** - - DHCP client(dhcpc) in this port is supported "dynamic change - /etc/resolv.conf and hostname via DHCP infomation". - - o `-r' is recreate /etc/resolv.conf - (resolv.conf file is overwritten.) - o `-n' is reset HOSTNAME - -** Acknowledgements to this ports file ** - Special thanks to: - Hirotaka TAKETA<taketa@csk.co.jp> - Hajimu UMEMOTO<ume@calm.imasy.or.jp> - Tamotsu KANOH<kanoh@kanoh.iijnet.or.jp> - Junichi SATOH<junichi@astec.co.jp> - Hisashi HIRAMOTO<hiramoto@phys.chs.nihon-u.ac.jp> - Takeshi TAGUCHI<taguchi@tohoku.iij.ad.jp> - Keisuke INOUE<keisuke@aa.cs.keio.ac.jp> - -- Yoshiro MIHIRA -(sanpei@yy.cs.keio.ac.jp) diff --git a/net-mgmt/wide-dhcp/pkg-plist b/net-mgmt/wide-dhcp/pkg-plist deleted file mode 100644 index 9c1f1e8d2445..000000000000 --- a/net-mgmt/wide-dhcp/pkg-plist +++ /dev/null @@ -1,17 +0,0 @@ -sbin/dhcpc -sbin/dhcpm -sbin/relay -sbin/dhcps -share/doc/dhcp/README -share/doc/dhcp/README.jis -share/doc/dhcp/intro.dhcp -share/doc/dhcp/intro.dhcp.jis -share/examples/dhcp/dhcpdb.pool.sample -share/examples/dhcp/dhcpdb.relay.sample -share/examples/dhcp/dhcpdb.server.sample -etc/rc.d/wide-dhcps.sh.sample -@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ; echo "dhcps 67/udp # dhcp server") > /etc/services -@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ) > /etc/services -@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ; echo "dhcpc 68/udp # dhcp client") > /etc/services -@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ) > /etc/services -@unexec rm -f /var/db/dhcp_cache diff --git a/net-mgmt/wide-dhcp/pkg-req b/net-mgmt/wide-dhcp/pkg-req deleted file mode 100644 index f4b0f7421d4f..000000000000 --- a/net-mgmt/wide-dhcp/pkg-req +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -if [ "$2" != "INSTALL" ]; then - exit 0 -fi -if [ ! -c /dev/bpf1 ]; then \ - echo "**********************************************************";\ - echo "* W a r n i n g *";\ - echo "* This DHCP program need Berkeley packet filter(bpf). *";\ - echo "* To use DHCP, your kernel must be rebuilt with bpf, and *";\ - echo "* make bpf devices on /dev directory. *";\ - echo "* Please read some info file with \`pkg_info dhcp-1.3b'. *";\ - echo "**********************************************************";\ -fi |