Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pppd Remove pppd
details: https://anonhg.NetBSD.org/src/rev/0ac0e965186e
branches: trunk
changeset: 791714:0ac0e965186e
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 28 22:38:59 2013 +0000
description:
Remove pppd
diffstat:
usr.sbin/pppd/Makefile | 5 -
usr.sbin/pppd/Makefile.inc | 15 -
usr.sbin/pppd/chat/Makefile | 10 -
usr.sbin/pppd/plugins/minconn/Makefile | 16 -
usr.sbin/pppd/plugins/passwordfd/Makefile | 16 -
usr.sbin/pppd/plugins/status/Makefile | 14 -
usr.sbin/pppd/plugins/status/status.c | 146 --
usr.sbin/pppd/pppd/Makefile | 42 -
usr.sbin/pppd/pppd/sys-bsd.c | 2071 -----------------------------
usr.sbin/pppd/pppd/tdb.c | 1298 ------------------
usr.sbin/pppd/pppd/tdb.h | 77 -
usr.sbin/pppd/pppdump/Makefile | 13 -
usr.sbin/pppd/pppdump/pppdump.h | 37 -
usr.sbin/pppd/pppstats/Makefile | 12 -
14 files changed, 0 insertions(+), 3772 deletions(-)
diffs (truncated from 3828 to 300 lines):
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/Makefile
--- a/usr.sbin/pppd/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.19 2002/05/29 19:06:30 christos Exp $
-
-SUBDIR= chat pppd pppdump pppstats
-
-.include <bsd.subdir.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/Makefile.inc
--- a/usr.sbin/pppd/Makefile.inc Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.8 2012/08/10 12:10:29 joerg Exp $
-
-WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
-
-.if exists(${.CURDIR}/../../Makefile.inc)
-.include "${.CURDIR}/../../Makefile.inc"
-.endif
-
-USE_FORT?=yes # network client/server
-
-.include <bsd.own.mk>
-
-.if defined(HAVE_GCC) || defined(HAVE_LLVM)
-COPTS+= -fno-strict-aliasing
-.endif
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/chat/Makefile
--- a/usr.sbin/pppd/chat/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-# $NetBSD: Makefile,v 1.11 2005/02/21 06:41:20 cube Exp $
-
-.include <bsd.own.mk>
-
-.PATH: ${NETBSDSRCDIR}/dist/pppd/chat
-
-PROG= chat
-MAN= chat.8
-
-.include <bsd.prog.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/plugins/minconn/Makefile
--- a/usr.sbin/pppd/plugins/minconn/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2005/02/20 11:12:43 cube Exp $
-
-NOLINT= # defined
-
-.include <bsd.own.mk>
-
-.PATH: ${NETBSDSRCDIR}/dist/pppd/pppd/plugins
-
-LIB=minconn
-SRCS=minconn.c
-CPPFLAGS+=-I${NETBSDSRCDIR}/dist/pppd/pppd
-
-LIBPREFIX=
-SHLIB_FULLVERSION=
-
-.include <bsd.lib.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/plugins/passwordfd/Makefile
--- a/usr.sbin/pppd/plugins/passwordfd/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2005/02/20 11:14:37 cube Exp $
-
-NOLINT= # defined
-
-.include <bsd.own.mk>
-
-.PATH: ${NETBSDSRCDIR}/dist/pppd/pppd/plugins
-
-LIB=passwordfd
-SRCS=passwordfd.c
-CPPFLAGS+=-I${NETBSDSRCDIR}/dist/pppd/pppd
-
-LIBPREFIX=
-SHLIB_FULLVERSION=
-
-.include <bsd.lib.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/plugins/status/Makefile
--- a/usr.sbin/pppd/plugins/status/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-# $NetBSD: Makefile,v 1.2 2005/02/20 11:12:44 cube Exp $
-
-NOLINT= # defined
-
-.include <bsd.own.mk>
-
-LIB=status
-SRCS=status.c
-CPPFLAGS+=-I${NETBSDSRCDIR}/dist/pppd/pppd
-
-LIBPREFIX=
-SHLIB_FULLVERSION=
-
-.include <bsd.lib.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/plugins/status/status.c
--- a/usr.sbin/pppd/plugins/status/status.c Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,146 +0,0 @@
-/* $NetBSD: status.c,v 1.3 2008/05/04 13:30:54 martin Exp $ */
-
-/*
- * status.c - pppd plugin to implement an `lcpstatus' option.
- * This is intended as more of an example than perfected feature,
- * but this code has been in use on my local network for a year and
- * is quite useful as is (with a bit of external help, at any rate).
- *
- * Written January 2003 by John F. Woods, jfw%funhouse.com@localhost
- */
-
-/*
- * Copyright (c) 2004 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by John F. Woods, jfw%funhouse.com@localhost.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-#include <stddef.h>
-#include <time.h>
-#include <stdio.h>
-#include "pppd.h"
-
-/* this version string will be checked against pppd's version string when
- * this plugin is loaded.
-*/
-char pppd_version[] = VERSION;
-
-/*
- * Usage: to use this status plug as-is, add the lines:
-plugin status
-lcpstatus /var/run/ppp0.status
- * to your PPP options file (or add the appropriate options to your
- * pppd command line), where /var/run/ppp0.status can vary to taste.
- * This plugin will then proceed to create the lcp status file and
- * write one of four strings to the file based on the most recent LCP
- * event: "up", "down", "?", or "!", representing LCP up, LCP down,
- * LCP echo not received, and received-our-own-LCP-echo (probably
- * indicating a loopback or a disconnected modem echoing back characters).
- * On my system, I have a separate program which reads that file every
- * second and sends a UDP broadcast packet on my ethernet with the contents
- * of the file; each of the other computers on my ethernet (all Macs) have
- * a tiny little program which listens for that UDP broadcast packet and
- * updates a menubar status indicator; the end result is that when PPP
- * shuts down, users on my LAN immediately know without having to go look
- * at the modem. (Or without demanding that *I* go look at the modem...)
- *
- * If you want to modify this plugin, other ways you could use and display
- * the data generated by the transitions would include:
- * + directly broadcasting the results from inside the pppd task (rather
- * than having a separate process do it)
- * + store the ppp state in an SNMP database so it could be displayed with
- * a standard form of client rather than a goofy little Mac OS X menubar
- * widget.
- */
-
-static char *statusfilename = 0;
-static char *laststatus = 0;
-static char UP[] = "up";
-static char DOWN[] = "down";
-static char MISS[] = "?";
-static char MINE[] = "!";
-
-static option_t status_options[] = {
- { "lcpstatus", o_string, &statusfilename,
- "Name of file to which LCP status string will be written" },
- { NULL }
-};
-
-/* status should be one of the canned constants above. */
-static void writestatus(char *status)
-{
- FILE *statusfile;
- if (status == laststatus) return; /* we knew that already */
- statusfile = fopen(statusfilename, "w");
- if (!statusfile) {
- warn("can't write %s to log LCP status", statusfilename);
- free(statusfilename);
- statusfilename = 0;
- return;
- }
- fprintf(statusfile, "%s\n", status);
- fclose(statusfile);
- laststatus = status;
-}
-
-static void status_lcp_up(void)
-{
- if (!statusfilename) return; /* not enabled */
- writestatus(UP);
-}
-
-static void status_lcp_down(void)
-{
- if (!statusfilename) return; /* not enabled */
- writestatus(DOWN);
-}
-
-static void status_lcp_echo(int pending)
-{
- if (!statusfilename) return; /* not enabled */
- if (pending == 0)
- writestatus(UP);
- else if (laststatus != MINE)
- writestatus(MISS);
-}
-
-static void status_lcp_echoreply(int mine)
-{
- if (!statusfilename) return; /* not enabled */
- if (mine == 0)
- writestatus(UP);
- else
- writestatus(MINE);
-}
-
-void plugin_init(void)
-{
- info("Initialize PPP status plugin.");
- add_options(status_options);
- lcp_up_hook = status_lcp_up;
- lcp_down_hook = status_lcp_down;
- lcp_echo_hook = status_lcp_echo;
- lcp_echoreply_hook = status_lcp_echoreply;
-}
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/pppd/Makefile
--- a/usr.sbin/pppd/pppd/Makefile Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-# $NetBSD: Makefile,v 1.42 2012/08/10 12:10:29 joerg Exp $
-
-.include <bsd.own.mk>
-
-PROG= pppd
-SRCS= auth.c cbcp.c ccp.c chap-md5.c chap-new.c chap_ms.c demand.c eap.c \
- ecp.c fsm.c ipcp.c ipxcp.c lcp.c magic.c main.c multilink.c \
- options.c pppcrypt.c sys-bsd.c tdb.c tty.c upap.c utils.c
-
-PPPDDIR= ${NETBSDSRCDIR}/dist/pppd/pppd
-
-.PATH: ${PPPDDIR}
-MAN= pppd.8
-BINMODE=4555
-BINOWN= root
-
-CPPFLAGS+= -I${.CURDIR} -DHAVE_PATHS_H -DSUPPORT_UTMP -DSUPPORT_UTMPX -DPLUGIN
-CPPFLAGS+= -I${PPPDDIR} -DPPP_FILTER
-CPPFLAGS+= -DCBCP_SUPPORT -DUSE_CRYPT -DCHAPMS -DMSLANMAN -DMPPE
-CPPFLAGS+= -DHAVE_MULTILINK -DUSE_TDB
-
-.if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")
-CPPFLAGS+= -DINET6
-SRCS+= eui64.c ipv6cp.c
-.endif
-
-.if (!defined(SMALLPROG)) && (${USE_PAM} != "no")
-CPPFLAGS+= -DUSE_PAM
-LDADD+=-lpam ${PAM_STATIC_LDADD}
-DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
-.endif
-
-LDADD+= -lpcap -lcrypt -lutil -Wl,--export-dynamic
-DPADD+= ${LIBPCAP} ${LIBCRYPT} ${LIBUTIL}
-
-.for f in chap-md5 chap_ms eap
-COPTS.${f}.c+= -Wno-pointer-sign
-.endfor
-
-CWARNFLAGS.clang+= -Wno-tautological-compare
-
-.include <bsd.prog.mk>
diff -r c03682058e17 -r 0ac0e965186e usr.sbin/pppd/pppd/sys-bsd.c
--- a/usr.sbin/pppd/pppd/sys-bsd.c Thu Nov 28 22:37:58 2013 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,2071 +0,0 @@
Home |
Main Index |
Thread Index |
Old Index