--- Makefile +++ Makefile 1996/08/14 15:11:30 @@ -62,7 +62,7 @@ # Ultrix 4.x SunOS 4.x ConvexOS 10.x Dynix/ptx #REAL_DAEMON_DIR=/usr/etc/... # -# SysV.4 Solaris 2.x OSF AIX +# SysV.4 Solaris 2.x OSF AIX Linux #REAL_DAEMON_DIR=/usr/sbin/... # # BSD 4.4 @@ -141,9 +141,9 @@ EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all linux: - @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ - LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=setenv.o \ - NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER" all + @make REAL_DAEMON_DIR=/usr/sbin STYLE=$(STYLE) \ + LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= \ + NETGROUP= TLI= EXTRA_CFLAGS= all # This is good for many SYSV+BSD hybrids with NIS, probably also for HP-UX 7.x. hpux hpux8 hpux9: @@ -442,7 +442,7 @@ # If your system supports vsyslog(), comment out the following definition. # If in doubt leave it in, it won't harm. -VSYSLOG = -Dvsyslog=myvsyslog +#VSYSLOG = -Dvsyslog=myvsyslog # End of the system dependencies. ################################# @@ -461,7 +461,7 @@ # Uncomment the next definition to turn on the language extensions # (examples: allow, deny, banners, twist and spawn). # -#STYLE = -DPROCESS_OPTIONS # Enable language extensions. +STYLE = -DPROCESS_OPTIONS # Enable language extensions. ################################################################ # Optional: Changing the default disposition of logfile records @@ -484,7 +484,7 @@ # # The LOG_XXX names below are taken from the /usr/include/syslog.h file. -FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use +FACILITY= LOG_AUTH # LOG_MAIL is what most sendmail daemons use # The syslog priority at which successful connections are logged. @@ -500,7 +500,7 @@ # off by default because it causes problems on sites that don't use DNS # and with Solaris < 2.4. # -# DOT= -DAPPEND_DOT +DOT= -DAPPEND_DOT ################################################## # Optional: Always attempt remote username lookups @@ -520,7 +520,7 @@ # still do selective username lookups as documented in the hosts_access.5 # and hosts_options.5 manual pages (`nroff -man' format). # -#AUTH = -DALWAYS_RFC931 +AUTH = -DALWAYS_RFC931 # # The default username lookup timeout is 10 seconds. This may not be long # enough for slow hosts or networks, but is enough to irritate PC users. @@ -579,7 +579,7 @@ # Paranoid mode implies hostname lookup. In order to disable hostname # lookups altogether, see the next section. -PARANOID= -DPARANOID +#PARANOID= -DPARANOID ######################################## # Optional: turning off hostname lookups @@ -592,7 +592,7 @@ # In order to perform selective hostname lookups, disable paranoid # mode (see previous section) and comment out the following definition. -HOSTNAME= -DALWAYS_HOSTNAME +#HOSTNAME= -DALWAYS_HOSTNAME ############################################# # Optional: Turning on host ADDRESS checking @@ -617,7 +617,7 @@ # # Uncomment the following macro definition if your getsockopt() is OK. # -# KILL_OPT= -DKILL_IP_OPTIONS +KILL_OPT= -DKILL_IP_OPTIONS ## End configuration options ############################ @@ -627,7 +627,7 @@ SHELL = /bin/sh .c.o:; $(CC) $(CFLAGS) -c $*.c -CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \ +CFLAGS = -O6 -fomit-frame-pointer -pipe -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \ $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \ -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \ -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ --- Makefile.Linux +++ Makefile.Linux 1996/08/14 15:09:23 @@ -0,0 +1,26 @@ +# +# +# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux +# +# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany. +# +# Please send bug-fixes or comments to feedback@suse.de. +# +# Author: Florian La Roche +# +# + +compile: + make linux + +install: + install -s -m755 tcpd tcpdchk tcpdmatch safe_finger try-from /usr/sbin/ + install -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 /usr/man/man8/ + install -m644 hosts_access.3 /usr/man/man3/ + install -m644 hosts_access.5 hosts_options.5 /usr/man/man5/ + install -m644 libwrap.a /usr/lib/ + install -m644 tcpd.h /usr/include/ + +clean: + make clean + --- safe_finger.c +++ safe_finger.c 1996/08/14 15:09:23 @@ -31,7 +31,7 @@ /* Local stuff */ -char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin"; +char path[] = "PATH=/bin:/usr/bin:/usr/sbin"; #define TIME_LIMIT 60 /* Do not keep listinging forever */ #define INPUT_LENGTH 100000 /* Do not keep listinging forever */ --- Makefile.orig Thu Jan 30 01:22:15 1997 +++ Makefile Thu Jan 30 01:22:48 1997 @@ -593,6 +593,7 @@ # mode (see previous section) and comment out the following definition. #HOSTNAME= -DALWAYS_HOSTNAME +HOSTNAME= ############################################# # Optional: Turning on host ADDRESS checking