config.local

来自「Linux下的socks的程序源程序,用于socks的代理服务」· LOCAL 代码 · 共 852 行 · 第 1/2 页

LOCAL
852
字号
## Copyright (c) 1991 The Regents of the University of California.# All rights reserved.## Redistribution and use in source and binary forms are permitted provided# that: (1) source distributions retain this entire copyright notice and# comment, and (2) distributions including binaries display the following# acknowledgement:  ``This product includes software developed by the# University of California, Berkeley and its contributors'' in the# documentation or other materials provided with the distribution and in# all advertising materials mentioning features or use of this software.# Neither the name of the University nor the names of its contributors may# be used to endorse or promote products derived from this software without# specific prior written permission.# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.##	@(#)Config.generic	5.5 (Berkeley) 3/1/91## This is the configuration file for building all of# telnet/telnetd/libtelnet.  If you want to add your# own local configuration for a specific machine that# is already listed here, it is best to create a new# file called "Config.local", and put the definitions# there.  If you are adding definitions for a new system# type, you can add them here.  In this case, please send# the new definition, and any changes you have to make to# the code, back to "dab@cray.com" so that your changes# can be put into the next release.## Each definition must have the form:##	<target>:#		make -f Makefile.generic ${WHAT} \#			<definitions># DEFINES=##    Variables to be defined when actually compiling the source.  Defined#    as: DEFINES="-D<var> -D<var2> ... -D<varn>"##    TELNET/TELNETD CONFIGURATION## 	LINEMODE	Turns on support in telnetd for the linemode option.#			(Linemode is always on in the client).##	KLUDGELINEMODE	Define this to get the kludged up version of linemode#			that was in 4.3BSD.  This is a good thing to have#			around for talking to older systems.  This has no#			effect on telnetd if LINEMODE has not been defined.##	DIAGNOSTICS	Turns on diagnostic code in telnetd; adds extra#			logic and checks, and debuging output if started#			with the -D option.##	NO_URGENT	Define this if you don't want telnetd to send#			IAC DM in urgent mode when the pty output queue#			is flushed.##	GENERATE_GA	Turns on code to allow the generation of Go Ahead(GA)#			if the server is WONT SGA.  This code is imprecise,#			it generates the GA when two seconds have elapsed#			and no input or output has occurred.##	AUTHENTICATE	Enable the AUTHENTICATE option.##	ENCRYPT		Enable the ENCRYPT option.##	KRB4		Enable Kerberos Version 4 Authentication code#			in libtelnet/libtelnet.a##	KRB5		Enable Kerberos Version 5 Authentication code#			in libtelnet/libtelnet.a##	SIMPLE_AUTH##	DES_ENCRYPT	Enable DES encryption/decryption, requires#			getting a the initial key from Kerberos.  This#			works with both Kerberos Version 4 and 5.##    LOCAL SYSYTEM PARAMATERS##	TERMCAP		Define this if your system is termcap based,#			otherwise a terminfo based system is assumed.##	SYSV_TERMIO	Use the System V termio structure. (implies USE_TERMIO)##	NO_CC_T		Define this if your termio.h file does not have#			a typedef for cc_t.##	USE_TERMIO	Define this if you have the POSIX termios structures.#			This code works under the BSD 4.4 terminal driver.##	HAS_GETTOS	Define this if you have the setsockopt() option for#			setting the IP Type Of Service bits, (IP_TOS) and#			you have the gettosbyname() function.##	NEWINIT		Turns on the new init code for UNICOS systems.##	STREAMS		This system needs <sys/stream.h> for <sys/tty.h>#			(Sun 4.0.3)##	FILIO_H		This system should use <sys/fileo.h> instead#			of <sys/ioctl.h> (Sun 4.0.3)##	HAVE_fd_set	This system has a typedef for fd_set, but does#			not have FDSET() defined.##	NO_STRING_H	If you don't have <string.h>, but have <strings.h>##	NO_LOGIN_P	If /bin/login doesn't understand the "-p"#			(preserve environment) option.##	STREAMS		If the system has streams; causes <sys/stream.h>#			to be included instead of <sys/tty.h>##	MUST_ALIGN	If !KRB & !HAVE_KRB4_DES_LIB and your words#			must be word aligned.# LIB_OBJ=#    This is a list of object files that are needed but are not in#    the standard C library.## 	    strcasecmp.o	If you don't have strncasecmp(3)#	    strdup.o		If you don't have strdup(3)#	    setenv.o		If you don't have setenv(3) and unsetenv(3)#	    setsid.o		If you don't have the POSIX setsid() call#	    strerror.o		If you don't have strerror(3)#	    strftime.o		If you don't have strftime(3)#	    getopt.o		If you don't have getopt(3)#	    herror.o		If you don't have herror(3)#	    gettytab.o		If you can get gettytab.c from getty source.#	    getent.o		If you can't get gettytab.c#	    kerberos.o		If you have Kerberos Version 4#	    kerberos5.o		If you have Kerberos Version 5#	    mem.o		If you don't have mem*(3) routines.# LIB_SRC=#    This is a list of source modules for specificed in LIB_OBJ.#    This information is used by make for checking dependencies.# LIBS=#    This is a list of libraries to be included.  This will always#    include the telnet library, and will also include either -lcurses#    or -ltermcap, -lutil for 4.4bsd, and -lnet for UNICOS5.0 and earlier.#    Also -lkrb & -ldes if Kerberos.# LIBPATH=#    This is a list of the paths to all the libraries listed in LIBS.#    This information is used by make for checking dependencies.#    Don't forget libc.a# VPATH=#    Directory where gettytab.c can be found, if you have it.# LIBEXEC=#    Directory where the telnetd executable should be installed.# LCCFLAGS=#    Local flags for ${CC} (like -O)# AR=#    Name of "ar" program, usually just "ar".# ARFLAGS#    Flags to pass to ${AR}# RANLIB#    Name of "ranlib" program, set it to "NONE" if you don't#    have a "ranlib".#==========================================================# SOCKS specific stuff:SOCKS=-DSOCKS# or#SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect# NOTE: This file is actually used from the subdirectories BELOW,# therefore we need an extra ../ in the path:SOCKS_LIB=../../lib/libsocks.a# Define RESOLV_LIB if your system (e.g., SunOS before 4.1.1)# doesn't search resolver library automatically.# Leave it undefined otherwise.# If your compiler or loader complains about _res_init being# an undefined symbol, then you must define RESOLV_LIB.#RESOLV_LIB= -lresolv#=============================================================all:	@echo "you must specify what type of system you are on,"	@echo "or modify the makefile for your system."	@echo "Known system types are:"	@echo " 4.4bsd 4.3reno 4.3tahoe 4.3bsd"	@echo " unicos5.0 unicos5.1 unicos6.0 unicos6.1 unicos7.0"	@echo " sun3.5 sun4.0 sun4.0.3c sun4.1 sun5.2 solaris2.2"	@echo " dynix3.0.12 dynix3.0.17"	@echo " ultrix3.1 ultrix4.0"	@echo " next1.0"	@echo " convex"	@echo " irix4 irix5"	@echo " hpux9"	@echo " aix3.2 aix_ps2"	@echo " aix_ps2"	@echo " netbsd0.9"	@echo " freeBSD1.1"	@echo " dgux5.4"	@echo " alphaOSF osf1.3"	@echo " linux"	@echo " UnixWare"	@echo " uts2.1 ust4"	@echo " sco"	@echo " bsdi"	@echo " isc"4.4bsd 4.3reno:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -lutil -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/bin \		DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \			-DUSE_TERMIO $(SOCKS) -DDIAGNOSTICS" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="gettytab.o" \		LIB_SRC="gettytab.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		VPATH=/usr/src/libexec/getty \		LIBEXEC=${DESTDIR}/usr/libexec \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"4.3tahoe:	@echo $@ is untested... it may or may not work..."	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/bin \		DEFINES="-DTERMCAP -DKLUDGELINEMODE \			$(SOCKS) -DDIAGNOSTICS" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="strdup.o setsid.o strftime.o gettytab.o" \		LIB_SRC="strdup.c setsid.c strftime.c gettytab.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		VPATH=/usr/src/etc/getty \		LIBEXEC=${DESTDIR}/etc \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"4.3bsd:	@echo $@ is untested... it may or may not work..."	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/bin \		DEFINES="-DTERMCAP -DKLUDGELINEMODE \			$(SOCKS) -DDIAGNOSTICS" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="strdup.o setsid.o strftime.o \			gettytab.o getopt.o herror.o" \		LIB_SRC="strdup.c setsid.c strftime.c \			gettytab.c getopt.c herror.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		VPATH=/usr/src/etc/getty \		LIBEXEC=${DESTDIR}/etc \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"unicos7.0:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -lcurses -L../libtelnet -ltelnet -lkrb -ldes ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libcurses.a \				../libtelnet/libtelnet.a \				/usr/lib/libkrb.a /usr/lib/libdes.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-Dvfork=fork -Dsignal=bsdsignal \			-DLINEMODE -DKLUDGELINEMODE \			-DSYSV_TERMIO -DHAS_GETTOS \			-DAUTHENTICATE -DENCRYPT -DKRB4 \			$(SOCKS) -DDIAGNOSTICS" \		AR=bld ARFLAGS=cq RANLIB=NONE \		LIBEXEC=${DESTDIR}/etc \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o" \		LIB_SRC="getent.c" \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"unicos6.0 unicos6.1:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libcurses.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-Dvfork=fork -Dsignal=bsdsignal \			-DKLUDGELINEMODE -DUSE_TERMIO -DHAS_GETTOS \			-DLINEMODE -DSYSV_TERMIO -DNEWINIT \			-DNO_LOGIN_F -DNO_LOGIN_P \			-DAUTHENTICATE -DENCRYPT \			$(SOCKS) -DDIAGNOSTICS" \		AR=bld ARFLAGS=cq RANLIB=NONE \		LIBEXEC=${DESTDIR}/etc \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o" \		LIB_SRC="getent.c" \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"unicos5.1:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -lnet -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libcurses.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-Dvfork=fork -Dsignal=sigset \			-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \			-DUNICOS5 -DLINEMODE -DSYSV_TERMIO \			-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P \			-DAUTHENTICATE -DENCRYPT \			$(SOCKS) -DDIAGNOSTICS" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \		LIB_SRC="getent.c strerror.c setsid.c strftime.c" \		AR=bld ARFLAGS=cq RANLIB=NONE \		LIBEXEC=${DESTDIR}/etc \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"unicos5.0:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -lnet -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libcurses.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-Dvfork=fork -Dsignal=sigset \			-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \			-DUNICOS5 -DUNICOS50 -DLINEMODE -DSYSV_TERMIO \			-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P \			-DAUTHENTICATE -DENCRYPT \			$(SOCKS) -DDIAGNOSTICS" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \		LIB_SRC="getent.c strerror.c setsid.c strftime.c" \		AR=bld ARFLAGS=cq RANLIB=NONE \		LIBEXEC=${DESTDIR}/etc \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"sun3.5:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-DTERMCAP -DKLUDGELINEMODE \			-DHAVE_fd_set \			-DDIAGNOSTICS \			$(SOCKS) -DNO_LOGIN_P" \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strdup.o strerror.o setsid.o \			setenv.o strftime.o strcasecmp.o herror.o" \		LIB_SRC="getent.c strdup.c strerror.c setsid.c \			setenv.c strftime.c strcasecmp.c herror.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"sun4.0.3c sun4.0:	@echo $@ is untested... it may or may not work..."	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO -DNO_CC_T \			-DKLUDGELINEMODE \			-DSTREAMS -DDIAGNOSTICS \			$(SOCKS) " \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strerror.o setsid.o setenv.o \				strcasecmp.o strftime.o herror.o" \		LIB_SRC="getent.c strerror.c setsid.c setenv.c \				strcasecmp.c strftime.c herror.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"sun4.1:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO \			-DKLUDGELINEMODE -DSTREAMS \			-DAUTHENTICATE \			$(SOCKS) -DDIAGNOSTICS " \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strerror.o setenv.o herror.o" \		LIB_SRC="getent.c strerror.c setenv.c herror.c" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"dynix3.0.12:	@echo $@ is untested... it may or may not work..."	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \		LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \				../libtelnet/libtelnet.a" \		DEST=${DESTDIR}/usr/ucb \		DEFINES="-DTERMCAP -DKLUDGELINEMODE \			$(SOCKS) -DDIAGNOSTICS -DNO_STRING_H " \		INCLUDES="-I.. -I../../include" \		LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \			setsid.o setenv.o strcasecmp.o strftime.o getopt.o \			mem.o" \		LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \			setsid.c setenv.c strcasecmp.c strftime.c getopt.c \			mem.o" \		AR=ar ARFLAGS=cq RANLIB=ranlib \		LIBEXEC=${DESTDIR}/usr/etc \		CC="${CC}" LCCFLAGS="$(OPTIMIZE)"dynix3.0.17:	${MAKE} -f Makefile.generic ${WHAT} \		LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a -lseq ${RESOLV_LIB}" \

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?