1998-09-14 21:08:57 +00:00
|
|
|
*** Makefile.orig Fri Mar 21 12:27:21 1997
|
1998-09-16 22:47:43 +00:00
|
|
|
--- Makefile Wed Sep 16 17:41:52 1998
|
1994-11-01 01:46:09 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 47,53 ****
|
1994-11-01 01:46:09 +00:00
|
|
|
#REAL_DAEMON_DIR=/usr/sbin
|
|
|
|
#
|
|
|
|
# BSD 4.4
|
|
|
|
! #REAL_DAEMON_DIR=/usr/libexec
|
|
|
|
#
|
1997-01-03 09:44:56 +00:00
|
|
|
# HP-UX SCO Unicos
|
1994-11-01 01:46:09 +00:00
|
|
|
#REAL_DAEMON_DIR=/etc
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 47,53 ----
|
1994-11-01 01:46:09 +00:00
|
|
|
#REAL_DAEMON_DIR=/usr/sbin
|
|
|
|
#
|
|
|
|
# BSD 4.4
|
|
|
|
! REAL_DAEMON_DIR=/usr/libexec
|
|
|
|
#
|
1997-01-03 09:44:56 +00:00
|
|
|
# HP-UX SCO Unicos
|
1994-11-01 01:46:09 +00:00
|
|
|
#REAL_DAEMON_DIR=/etc
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 138,144 ****
|
1997-06-20 17:47:45 +00:00
|
|
|
|
|
|
|
freebsd:
|
|
|
|
@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
|
|
|
|
! LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
|
|
|
|
EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
|
|
|
|
|
|
|
|
linux:
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 138,144 ----
|
1997-06-20 17:47:45 +00:00
|
|
|
|
|
|
|
freebsd:
|
|
|
|
@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
|
|
|
|
! LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP=-DNETGROUP TLI= \
|
|
|
|
EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
|
|
|
|
|
|
|
|
linux:
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 391,397 ****
|
1995-01-10 00:08:09 +00:00
|
|
|
# the ones provided with this source distribution. The environ.c module
|
|
|
|
# implements setenv(), getenv(), and putenv().
|
|
|
|
|
|
|
|
! AUX_OBJ= setenv.o
|
|
|
|
#AUX_OBJ= environ.o
|
|
|
|
#AUX_OBJ= environ.o strcasecmp.o
|
|
|
|
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 391,397 ----
|
1995-01-10 00:08:09 +00:00
|
|
|
# the ones provided with this source distribution. The environ.c module
|
|
|
|
# implements setenv(), getenv(), and putenv().
|
|
|
|
|
|
|
|
! #AUX_OBJ= setenv.o
|
|
|
|
#AUX_OBJ= environ.o
|
|
|
|
#AUX_OBJ= environ.o strcasecmp.o
|
|
|
|
|
1994-11-01 01:46:09 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 454,460 ****
|
1995-01-10 00:08:09 +00:00
|
|
|
# host name aliases. Compile with -DSOLARIS_24_GETHOSTBYNAME_BUG to work
|
|
|
|
# around this. The workaround does no harm on other Solaris versions.
|
1994-11-01 01:46:09 +00:00
|
|
|
|
1996-04-09 05:07:30 +00:00
|
|
|
! BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
|
1994-11-01 01:46:09 +00:00
|
|
|
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
|
1995-01-10 00:08:09 +00:00
|
|
|
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG
|
1994-11-01 01:46:09 +00:00
|
|
|
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 454,460 ----
|
1995-01-10 00:08:09 +00:00
|
|
|
# host name aliases. Compile with -DSOLARIS_24_GETHOSTBYNAME_BUG to work
|
|
|
|
# around this. The workaround does no harm on other Solaris versions.
|
1994-11-01 01:46:09 +00:00
|
|
|
|
1996-04-09 05:07:30 +00:00
|
|
|
! #BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
|
1994-11-01 01:46:09 +00:00
|
|
|
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
|
1995-01-10 00:08:09 +00:00
|
|
|
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG
|
|
|
|
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 472,478 ****
|
1995-01-10 00:08:09 +00:00
|
|
|
# If your system supports vsyslog(), comment out the following definition.
|
|
|
|
# If in doubt leave it in, it won't harm.
|
|
|
|
|
|
|
|
! VSYSLOG = -Dvsyslog=myvsyslog
|
|
|
|
|
|
|
|
# End of the system dependencies.
|
|
|
|
#################################
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 472,478 ----
|
1995-01-10 00:08:09 +00:00
|
|
|
# If your system supports vsyslog(), comment out the following definition.
|
|
|
|
# If in doubt leave it in, it won't harm.
|
|
|
|
|
|
|
|
! #VSYSLOG = -Dvsyslog=myvsyslog
|
1994-11-01 01:46:09 +00:00
|
|
|
|
1995-01-10 00:08:09 +00:00
|
|
|
# End of the system dependencies.
|
|
|
|
#################################
|
1994-11-01 01:46:09 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 491,497 ****
|
1995-01-10 00:08:09 +00:00
|
|
|
# Uncomment the next definition to turn on the language extensions
|
|
|
|
# (examples: allow, deny, banners, twist and spawn).
|
1994-11-01 01:46:09 +00:00
|
|
|
#
|
|
|
|
! #STYLE = -DPROCESS_OPTIONS # Enable language extensions.
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Optional: Changing the default disposition of logfile records
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 491,497 ----
|
1995-01-10 00:08:09 +00:00
|
|
|
# Uncomment the next definition to turn on the language extensions
|
|
|
|
# (examples: allow, deny, banners, twist and spawn).
|
1994-11-01 01:46:09 +00:00
|
|
|
#
|
|
|
|
! STYLE = -DPROCESS_OPTIONS # Enable language extensions.
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Optional: Changing the default disposition of logfile records
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 514,520 ****
|
1994-11-01 01:46:09 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# The syslog priority at which successful connections are logged.
|
|
|
|
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 514,521 ----
|
1994-11-01 01:46:09 +00:00
|
|
|
#
|
|
|
|
# The LOG_XXX names below are taken from the /usr/include/syslog.h file.
|
|
|
|
|
1995-01-10 00:08:09 +00:00
|
|
|
! #FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use
|
|
|
|
! FACILITY= LOG_AUTH
|
1994-11-01 01:46:09 +00:00
|
|
|
|
|
|
|
# The syslog priority at which successful connections are logged.
|
|
|
|
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 590,596 ****
|
1994-11-01 01:46:09 +00:00
|
|
|
# look for access control information. Watch out for the quotes and
|
|
|
|
# backslashes when you make changes.
|
|
|
|
|
|
|
|
! TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
|
|
|
|
|
1995-01-10 00:08:09 +00:00
|
|
|
####################################################
|
|
|
|
# Optional: dealing with host name/address conflicts
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 591,597 ----
|
1994-11-01 01:46:09 +00:00
|
|
|
# look for access control information. Watch out for the quotes and
|
|
|
|
# backslashes when you make changes.
|
|
|
|
|
|
|
|
! TABLES = -DHOSTS_DENY=\"${PREFIX}/etc/hosts.deny\" -DHOSTS_ALLOW=\"${PREFIX}/etc/hosts.allow\"
|
|
|
|
|
1995-01-10 00:08:09 +00:00
|
|
|
####################################################
|
|
|
|
# Optional: dealing with host name/address conflicts
|
1994-11-01 01:46:09 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 610,616 ****
|
1995-02-09 21:25:02 +00:00
|
|
|
# Paranoid mode implies hostname lookup. In order to disable hostname
|
|
|
|
# lookups altogether, see the next section.
|
1994-11-01 01:46:09 +00:00
|
|
|
|
|
|
|
! PARANOID= -DPARANOID
|
|
|
|
|
1995-02-09 21:25:02 +00:00
|
|
|
########################################
|
|
|
|
# Optional: turning off hostname lookups
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 611,617 ----
|
1995-02-09 21:25:02 +00:00
|
|
|
# Paranoid mode implies hostname lookup. In order to disable hostname
|
|
|
|
# lookups altogether, see the next section.
|
1994-11-01 01:46:09 +00:00
|
|
|
|
|
|
|
! #PARANOID= -DPARANOID
|
|
|
|
|
1995-02-09 21:25:02 +00:00
|
|
|
########################################
|
|
|
|
# Optional: turning off hostname lookups
|
1994-11-01 01:46:09 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 657,665 ****
|
1996-01-25 03:01:48 +00:00
|
|
|
# Protection against weird shells or weird make programs.
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
1996-01-25 04:00:40 +00:00
|
|
|
! .c.o:; $(CC) $(CFLAGS) -c $*.c
|
1996-01-25 03:01:48 +00:00
|
|
|
|
|
|
|
! CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
|
|
|
$(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
|
|
|
|
-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
|
|
|
|
-DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
|
1998-09-14 21:08:57 +00:00
|
|
|
--- 658,671 ----
|
1996-01-25 03:01:48 +00:00
|
|
|
# Protection against weird shells or weird make programs.
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
1997-07-21 14:21:25 +00:00
|
|
|
! PREFIX ?= /usr/local
|
1997-06-20 17:47:45 +00:00
|
|
|
!
|
1996-01-25 03:01:48 +00:00
|
|
|
! .SUFFIXES: .c .so .o
|
|
|
|
!
|
|
|
|
! .c.so:
|
|
|
|
! ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
1997-06-20 17:47:45 +00:00
|
|
|
|
1996-01-25 03:01:48 +00:00
|
|
|
! CFLAGS += -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
|
|
|
|
$(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
|
|
|
|
-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
|
|
|
|
-DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
|
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 684,692 ****
|
1996-01-25 03:01:48 +00:00
|
|
|
refuse.c tcpdchk.8 setenv.c inetcf.c inetcf.h scaffold.c \
|
|
|
|
scaffold.h tcpdmatch.8 README.NIS
|
|
|
|
|
|
|
|
! LIB = libwrap.a
|
|
|
|
|
|
|
|
- all other: config-check tcpd tcpdmatch try-from safe_finger tcpdchk
|
|
|
|
|
|
|
|
# Invalidate all object files when the compiler options (CFLAGS) have changed.
|
|
|
|
|
1998-09-16 22:47:43 +00:00
|
|
|
--- 690,724 ----
|
1996-01-25 03:01:48 +00:00
|
|
|
refuse.c tcpdchk.8 setenv.c inetcf.c inetcf.h scaffold.c \
|
|
|
|
scaffold.h tcpdmatch.8 README.NIS
|
|
|
|
|
|
|
|
! LIB = libwrap.a
|
1998-09-16 13:46:17 +00:00
|
|
|
! .if ${PORTOBJFORMAT} == elf
|
1998-09-15 03:56:19 +00:00
|
|
|
! SLIB = libwrap.so.8
|
1998-09-16 13:46:17 +00:00
|
|
|
! .else
|
|
|
|
! SLIB = libwrap.so.8.0
|
|
|
|
! .endif
|
1996-01-25 03:01:48 +00:00
|
|
|
!
|
|
|
|
! all other: config-check $(LIB) $(SLIB) tcpd tcpdmatch try-from safe_finger tcpdchk
|
|
|
|
!
|
|
|
|
! install:
|
|
|
|
! ${INSTALL} -o ${BINOWN} -g ${BINGRP} -c -m 644 \
|
|
|
|
! tcpd.h ${PREFIX}/include
|
|
|
|
! ${INSTALL} -o ${BINOWN} -g ${BINGRP} -c -m 644 \
|
|
|
|
! $(LIB) $(SLIB) ${PREFIX}/lib
|
1998-09-14 21:08:57 +00:00
|
|
|
! (cd ${PREFIX}/lib;ln -sf $(SLIB) `echo $(SLIB) | sed 's/\.so.*$$/.so/'`)
|
1996-01-25 03:01:48 +00:00
|
|
|
! ranlib ${PREFIX}/lib/$(LIB)
|
|
|
|
! ${INSTALL} -o ${BINOWN} -g ${BINGRP} -cs -m ${BINMODE} \
|
|
|
|
! tcpd ${PREFIX}/libexec
|
|
|
|
! ${INSTALL} -o ${BINOWN} -g ${BINGRP} -cs -m ${BINMODE} \
|
|
|
|
! tcpdchk tcpdmatch ${PREFIX}/sbin
|
|
|
|
! ${INSTALL} -o ${BINOWN} -g ${BINGRP} -cs -m ${BINMODE} \
|
|
|
|
! try-from safe_finger ${PREFIX}/bin
|
|
|
|
! ${INSTALL} -o ${MANOWN} -g ${MANGRP} -c -m ${MANMODE} \
|
|
|
|
! tcpd.8 tcpdchk.8 tcpdmatch.8 ${PREFIX}/man/man8
|
|
|
|
! ${INSTALL} -o ${MANOWN} -g ${MANGRP} -c -m ${MANMODE} \
|
|
|
|
! hosts_access.3 ${PREFIX}/man/man3
|
|
|
|
! ${INSTALL} -o ${MANOWN} -g ${MANGRP} -c -m ${MANMODE} \
|
|
|
|
! hosts_access.5 hosts_options.5 ${PREFIX}/man/man5
|
|
|
|
|
1995-01-10 00:08:09 +00:00
|
|
|
|
|
|
|
# Invalidate all object files when the compiler options (CFLAGS) have changed.
|
1994-11-01 01:46:09 +00:00
|
|
|
|
1996-01-25 03:01:48 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 703,729 ****
|
1997-01-03 09:44:56 +00:00
|
|
|
$(AR) $(ARFLAGS) $(LIB) $(LIB_OBJ)
|
1996-01-25 03:01:48 +00:00
|
|
|
-$(RANLIB) $(LIB)
|
|
|
|
|
|
|
|
! tcpd: tcpd.o $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ tcpd.o $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
! miscd: miscd.o $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ miscd.o $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
! safe_finger: safe_finger.o $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ safe_finger.o $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
|
|
|
! tcpdmatch: $(TCPDMATCH_OBJ) $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
! try-from: try-from.o fakelog.o $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
TCPDCHK_OBJ = tcpdchk.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
|
|
|
! tcpdchk: $(TCPDCHK_OBJ) $(LIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) $(LIB) $(LIBS)
|
|
|
|
|
|
|
|
shar: $(KIT)
|
|
|
|
@shar $(KIT)
|
1998-09-16 22:47:43 +00:00
|
|
|
--- 735,770 ----
|
1997-01-03 09:44:56 +00:00
|
|
|
$(AR) $(ARFLAGS) $(LIB) $(LIB_OBJ)
|
1996-01-25 03:01:48 +00:00
|
|
|
-$(RANLIB) $(LIB)
|
|
|
|
|
1996-01-25 04:00:40 +00:00
|
|
|
! $(SLIB): $(LIB_OBJ:S/o$/so/g) shdata.so
|
1996-01-25 03:01:48 +00:00
|
|
|
! rm -f $(SLIB)
|
1998-09-16 13:46:17 +00:00
|
|
|
! .if ${PORTOBJFORMAT} == elf
|
1998-09-15 03:56:19 +00:00
|
|
|
! $(CC) -o $(SLIB) -shared -Wl,-soname,$(SLIB) $(LIB_OBJ:S/o$/so/g) shdata.so
|
1998-09-15 14:57:29 +00:00
|
|
|
! .else
|
|
|
|
! ld -Bshareable -o $(SLIB) $(LIB_OBJ:S/o$/so/g) shdata.so
|
|
|
|
! .endif
|
1998-09-16 22:47:43 +00:00
|
|
|
! ln -sf $(SLIB) `echo $(SLIB) | sed 's/\.so.*$$/.so/'`
|
1996-01-25 03:01:48 +00:00
|
|
|
!
|
|
|
|
! tcpd: tcpd.o $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ tcpd.o -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
! miscd: miscd.o $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ miscd.o -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
! safe_finger: safe_finger.o $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ safe_finger.o -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
|
|
|
! tcpdmatch: $(TCPDMATCH_OBJ) $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
! try-from: try-from.o fakelog.o $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
TCPDCHK_OBJ = tcpdchk.o fakelog.o inetcf.o scaffold.o
|
|
|
|
|
|
|
|
! tcpdchk: $(TCPDCHK_OBJ) $(SLIB)
|
|
|
|
! $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) -L. -lwrap $(LIBS)
|
|
|
|
|
|
|
|
shar: $(KIT)
|
|
|
|
@shar $(KIT)
|
1996-01-25 04:00:40 +00:00
|
|
|
***************
|
1998-09-14 21:08:57 +00:00
|
|
|
*** 739,745 ****
|
1997-01-03 09:44:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f tcpd miscd safe_finger tcpdmatch tcpdchk try-from *.[oa] core \
|
|
|
|
! cflags
|
|
|
|
|
|
|
|
tidy: clean
|
|
|
|
chmod -R a+r .
|
1998-09-16 22:47:43 +00:00
|
|
|
--- 780,786 ----
|
1997-01-03 09:44:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f tcpd miscd safe_finger tcpdmatch tcpdchk try-from *.[oa] core \
|
|
|
|
! cflags *.so $(SLIB)
|
|
|
|
|
|
|
|
tidy: clean
|
|
|
|
chmod -R a+r .
|
1997-01-05 21:12:27 +00:00
|
|
|
*** /dev/null Thu Jan 25 06:52:04 1996
|
|
|
|
--- shdata.c Thu Jan 25 06:54:34 1996
|
|
|
|
***************
|
|
|
|
*** 0 ****
|
|
|
|
--- 1,2 ----
|
|
|
|
+ int allow_severity;
|
|
|
|
+ int deny_severity;
|