home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-A.06 / NETKIT-A / NetKit-A-0.06 / tcp_wrapper-6.3 / Makefile,v < prev    next >
Encoding:
Text File  |  1994-05-23  |  23.4 KB  |  650 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     rzsfl:1.1; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.1
  10. date    94.05.23.15.16.08;    author rzsfl;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Original
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @# @@(#) Makefile 1.12 94/03/23 16:51:32
  26.  
  27. what:
  28.     @@echo
  29.     @@echo "Usage: edit the REAL_DAEMON_DIR definition in the Makefile then:"
  30.     @@echo
  31.     @@echo "    make sys-type"
  32.     @@echo
  33.     @@echo "If you are in a hurry you can try instead:"
  34.     @@echo
  35.     @@echo "    make REAL_DAEMON_DIR=/foo/bar sys-type"
  36.     @@echo
  37.     @@echo "And for a version with language extensions enabled:"
  38.     @@echo
  39.     @@echo "    make REAL_DAEMON_DIR=/foo/bar STYLE=-DPROCESS_OPTIONS sys-type"
  40.     @@echo
  41.     @@echo "This Makefile knows about the following sys-types:"
  42.     @@echo
  43.     @@echo "    generic (most bsd-ish systems with sys5 compatibility)"
  44.     @@echo "    386bsd aix alpha apollo convex-ultranet dell-gcc dgux dynix"
  45.     @@echo "    epix esix freebsd hpux irix4 isc(untested) linux"
  46.     @@echo "    mips(untested) netbsd next osf ptx-2.x ptx-generic pyramid"
  47.     @@echo "    sco sco-nis sco-od2 sunos4 sunos40 sunos5 sysv4 ultrix"
  48.     @@echo "    unicos(untested) uxp"
  49.     @@echo
  50.     @@echo "If none of these match your environment, edit the system"
  51.     @@echo "dependencies sections in the Makefile and do a 'make other'."
  52.     @@echo
  53.  
  54. #######################################################
  55. # Choice between easy and advanced installation recipe.
  56. # Advanced installation: vendor-provided daemons are left alone, and the
  57. # inetd configuration file is edited. In this case, the REAL_DAEMON_DIR
  58. # macro should reflect the actual directory with (most of) your
  59. # vendor-provided network daemons.  These names can be found in the
  60. # inetd.conf file. Usually, the telnet, ftp and finger daemons all live
  61. # in the same directory.
  62. # Uncomment the appropriate line if you are going to edit inetd.conf.
  63. #
  64. # Ultrix 4.x SunOS 4.x ConvexOS 10.x Dynix/ptx
  65. #REAL_DAEMON_DIR=/usr/etc
  66. #
  67. # SysV.4 Solaris 2.x OSF AIX
  68. #REAL_DAEMON_DIR=/usr/sbin
  69. #
  70. # BSD 4.4
  71. #REAL_DAEMON_DIR=/usr/libexec
  72. #
  73. # HP-UX SCO
  74. #REAL_DAEMON_DIR=/etc
  75.  
  76. # Easy installation: vendor-provided network daemons are moved to "some
  77. # other" directory, and the tcpd wrapper fills in the "holes". For this
  78. # mode of operation, the REAL_DAEMON_DIR macro should be set to the "some
  79. # other" directory.  The "..." is here for historical reasons only; you
  80. # should probably use some other name. 
  81. # Uncomment the appropriate line if you are going to move your daemons.
  82. #
  83. # Ultrix 4.x SunOS 4.x ConvexOS 10.x Dynix/ptx
  84. #REAL_DAEMON_DIR=/usr/etc/...
  85. #
  86. # SysV.4 Solaris 2.x OSF AIX
  87. #REAL_DAEMON_DIR=/usr/sbin/...
  88. #
  89. # BSD 4.4
  90. #REAL_DAEMON_DIR=/usr/libexec/...
  91. #
  92. # HP-UX SCO
  93. #REAL_DAEMON_DIR=/etc/...
  94.  
  95. # End of mandatory section
  96. ##########################
  97.  
  98. ##########################################
  99. # Ready-to-use system-dependent templates.
  100. #
  101. # Ready-to-use templates are available for many systems (see the "echo"
  102. # commands at the start of this Makefile).  The templates take care of
  103. # all system dependencies: after editing the REAL_DAEMON_DIR definition
  104. # above, do a "make sunos4" (or whatever system type is appropriate).
  105. #
  106. # If your system is not listed (or something that comes close enough), you
  107. # will have to edit the system depencies section below and do a "make other".  
  108. #
  109. # Send templates for other UNIX versions to wietse@@wzv.win.tue.nl.
  110.  
  111. # This is good for many BSD+SYSV hybrids with NIS (formerly YP).
  112. generic sunos4 aix osf alpha dynix:
  113.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  114.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  115.     NETGROUP=-DNETGROUP TLI= all
  116.  
  117. # The NeXT loader needs "-m" or it barfs on redefined library functions.
  118. next:
  119.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  120.     LIBS=-m RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  121.     NETGROUP=-DNETGROUP TLI= all
  122.  
  123. # SunOS for the 386 was frozen at release 4.0.x.
  124. sunos40:
  125.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  126.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ="environ.o strcasecmp.o" \
  127.     NETGROUP=-DNETGROUP TLI= all
  128.  
  129. # Ultrix is like sunos4, aix, next, etc., but has miscd, too.
  130. ultrix:
  131.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  132.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  133.     NETGROUP=-DNETGROUP TLI= all miscd
  134.  
  135. # This works on EP/IX 1.4.3 and will likely work on Mips (reggers@@julian.uwo.ca)
  136. epix:
  137.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  138.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  139.     NETGROUP=-DNETGROUP TLI= SYSTYPE="-systype bsd43" all
  140.  
  141. # Free bsd and linux by default have no NIS.
  142. 386bsd netbsd freebsd:
  143.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  144.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= all
  145.  
  146. linux:
  147.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  148.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  149.     NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER" all
  150.  
  151. # This is good for many SYSV+BSD hybrids with NIS, probably also for HP-UX 7.x.
  152. hpux hpux8 hpux9:
  153.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  154.     LIBS= RANLIB=echo ARFLAGS=rv AUX_OBJ=environ.o \
  155.     NETGROUP=-DNETGROUP TLI= all
  156.  
  157. # ConvexOS-10.x with UltraNet support (ukkonen@@csc.fi).
  158. convex-ultranet:
  159.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  160.     LIBS=-lulsock RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  161.     NETGROUP=-DNETGROUP TLI= all
  162.  
  163. # Generic support for the Dynix/PTX version of TLI.
  164. ptx-generic:
  165.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  166.     LIBS="-lsocket -linet -lnsl" RANLIB=echo ARFLAGS=rv \
  167.     AUX_OBJ="environ.o strcasecmp.o ptx.o" NETGROUP= TLI=-DPTX all
  168.  
  169. # With UDP support optimized for PTX 2.x (timw@@sequent.com).
  170. ptx-2.x:
  171.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  172.     LIBS="-lsocket -linet -lnsl" RANLIB=echo ARFLAGS=rv \
  173.     AUX_OBJ="environ.o strcasecmp.o tli-sequent.o" NETGROUP= \
  174.     TLI=-DTLI_SEQUENT all
  175.  
  176. # IRIX 4.0.x has a special ar(1) flag.
  177. irix4:
  178.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  179.     LIBS=-lsun RANLIB=echo ARFLAGS=rvs AUX_OBJ=environ.o \
  180.     NETGROUP=-DNETGROUP TLI= all
  181.  
  182. # SunOS 5.x is close enough to generic System V.4
  183. sunos5 esix sysv4:
  184.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  185.     LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \
  186.     NETGROUP=-DNETGROUP AUX_OBJ=environ.o TLI=-DTLI all
  187.  
  188. # DG/UX 5.4.1 is like SYSV.4 but slightly different.
  189. dgux:
  190.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  191.     LIBS=-lnsl RANLIB=echo ARFLAGS=rv \
  192.     NETGROUP=-DNETGROUP AUX_OBJ=environ.o TLI=-DTLI \
  193.     BUGS="$(BUGS) -DINET_ADDR_BUG" all
  194.  
  195. # UXP/DS System V.4 clone (vic@@uida0.uida.es).
  196. uxp:
  197.     @@make LIBS="-L/usr/ucblib -lsocket -lnsl -lucb" \
  198.     RANLIB=echo ARFLAGS=rv NETGROUP=-DNETGROUP \
  199.     AUX_OBJ=environ.o TLI="-DTLI -DDRS_XTI" all
  200.  
  201. # DELL System V.4 Issue 2.2 using gcc (kim@@grendel.lut.fi, jurban@@norden1.com)
  202. dell-gcc:
  203.     @@make LIBS="-lsocket -lnsl" RANLIB=ranlib ARFLAGS=rv CC=gcc \
  204.     AUX_OBJ="environ.o strcasecmp.o" TLI=-DTLI all
  205.  
  206. # SCO 3.2v4.1 no frills (jedwards@@sol1.solinet.net).
  207. sco:
  208.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  209.     LIBS="-lsocket -lnsl_s" RANLIB=echo ARFLAGS=rv \
  210.     NETGROUP= AUX_OBJ=environ.o TLI= all
  211.  
  212. # SCO OpenDesktop 2.0, release 3.2 (peter@@midnight.com).
  213. sco-od2:
  214.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  215.     LIBS="-lrpcsvc -lrpc -lyp -lrpc -lrpcsvc -lsocket" \
  216.     RANLIB=echo ARFLAGS=rv AUX_OBJ=environ.o \
  217.     NETGROUP=-DNETGROUP TLI= all
  218.  
  219. # SCO 3.2v4.2 with TCP/IP 1.2.1 (Eduard.Vopicka@@vse.cz)
  220. sco-nis:
  221.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  222.     LIBS="-lyp -lrpc -lsocket -lyp -lc_s -lc" \
  223.     RANLIB=echo ARFLAGS=rv AUX_OBJ=environ.o \
  224.     NETGROUP=-DNETGROUP TLI= EXTRA_CFLAGS="-nointl" all
  225.  
  226. # Domain SR10.4. Build under bsd, run under either sysv3 or bsd43.
  227. apollo:
  228.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  229.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  230.     NETGROUP=-DNETGROUP TLI= SYSTYPE="-A run,any -A sys,any" all
  231.  
  232. # Pyramid OSx 5.1, using the BSD universe.
  233. pyramid:
  234.     @@make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  235.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ="environ.o vfprintf.o" \
  236.     STRINGS="-Dstrchr=index -Dstrrchr=rindex -Dmemcmp=bcmp -Dno_memcpy" \
  237.     NETGROUP="-DNETGROUP -DUSE_GETDOMAIN" TLI= all
  238.  
  239. # Untested.
  240. mips:
  241.     @@echo "Warning: some definitions may be wrong."
  242.     make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  243.     LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
  244.     NETGROUP=-DNETGROUP TLI= SYSTYPE="-sysname bsd43" all
  245.  
  246. # Untested.
  247. isc:
  248.     @@echo "Warning: some definitions may be wrong."
  249.     make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  250.     LIBS="-linet -lnsl_s -ldbm" RANLIB=echo ARFLAGS=rv \
  251.     AUX_OBJ="environ.o strcasecmp.o" NETGROUP= TLI= all
  252.  
  253. # Untested. Borrow me a Cray?
  254. unicos:
  255.     @@echo "Warning: some definitions may be wrong."
  256.     make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
  257.     LIBS=-lnet RANLIB=echo ARFLAGS=rv \
  258.     AUX_OBJ="environ.o strcasecmp.o" NETGROUP= TLI= all
  259.  
  260. ###############################################################
  261. # System dependencies: TLI (transport-level interface) support.
  262. # Uncomment the following macro if your system has System V.4-style TLI
  263. # support (/usr/include/sys/timod.h, /etc/netconfig, and the netdir(3)
  264. # routines).
  265. #
  266. #TLI    = -DTLI
  267.  
  268. ###############################################################################
  269. # System dependencies: differences between ranlib(1) and ar(1) implementations.
  270. #
  271. # Some C compilers (Ultrix 4.x) insist that ranlib(1) be run on an object
  272. # library; some don't care as long as the modules are in the right order;
  273. # some systems don't even have a ranlib(1) command. Make your choice.
  274.  
  275. RANLIB    = ranlib    # have ranlib (BSD-ish UNIX)
  276. #RANLIB    = echo        # no ranlib (SYSV-ish UNIX)
  277.  
  278. ARFLAGS    = rv        # most systems
  279. #ARFLAGS= rvs        # IRIX 4.0.x
  280.  
  281. #############################################################################
  282. # System dependencies: routines that are not present in the system libraries.
  283. # If your system library does not have set/putenv(), strcasecmp() or strtok(),
  284. # use the ones provided with this source distribution. The environ.c module
  285. # implements setenv(), getenv(), and putenv().
  286.  
  287. AUX_OBJ= environ.o
  288. #AUX_OBJ= environ.o strcasecmp.o
  289. #AUX_OBJ= environ.o strcasecmp.o strtok.o
  290.  
  291. # Uncomment the following if your C library does not provide the
  292. # strchr/strrchr/memcmp routines, but comes with index/rindex/bcmp.  If
  293. # that is the case, you probably also do not have strtok() (see above).
  294. #
  295. #STRINGS= -Dstrchr=index -Dstrrchr=rindex -Dmemcmp=bcmp -Dno_memcpy
  296.  
  297. #################################################################
  298. # System dependencies: selection of non-default object libraries.
  299. #
  300. # Most System V implementations require that you explicitly specify the
  301. # networking libraries. There is no general consensus, though.
  302. #
  303. #LIBS    = -lsocket -lnsl        # SysV.4 Solaris 2.x
  304. #LIBS    = -lsun                # IRIX
  305. #LIBS    = -lsocket -linet -lnsl -lnfs    # PTX
  306. #LIBS    = -linet -lnsl_s -ldbm        # ISC
  307. #LIBS    = -lnet                # Unicos
  308. #LIBS    = -linet -lsyslog -ldbm
  309. #LIBS    = -lsyslog -lsocket -lnsl
  310.  
  311. ######################################################
  312. # System dependencies: system-specific compiler flags.
  313. #
  314. # Apollo Domain/OS offers both bsd and sys5 environments, sometimes
  315. # on the same machine.  If your Apollo is primarily sys5.3 and also
  316. # has bsd4.3, uncomment the following to build under bsd and run under
  317. # either environment.
  318. #
  319. #SYSTYPE= -A run,any -A sys,any
  320.  
  321. # For MIPS RISC/os 4_52.p3, uncomment the following definition.
  322. #
  323. #SYSTYPE= -sysname bsd43
  324.  
  325. ##################################################
  326. # System dependencies: working around system bugs.
  327. #
  328. # -DGETPEERNAME_BUG works around a getpeername(2) bug in some versions of
  329. # Apollo or SYSV.4 UNIX:  the wrapper would report that all UDP requests
  330. # come from address 0.0.0.0. The workaround does no harm on other systems.
  331. #
  332. # -DBROKEN_FGETS works around an fgets(3) bug in some System V versions
  333. # (IRIX):  fgets() gives up too fast when reading from a network socket.
  334. # The workaround does no harm on other systems.
  335. #
  336. # DG/UX 5.4.1 comes with an inet_ntoa() function that returns a structure
  337. # instead of a long integer. Compile with -DINET_ADDR_BUG to work around
  338. # this mutant behavour.
  339.  
  340. BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS
  341. #BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
  342.  
  343. ##########################################################################
  344. # System dependencies: whether or not your system has NIS (or YP) support.
  345. #
  346. # If your system supports NIS or YP-style netgroups, enable the following
  347. # macro definition. Netgroups are used only for host access control.
  348. #
  349. #NETGROUP= -DNETGROUP
  350.  
  351. # End of the system dependencies.
  352. #################################
  353.  
  354. ##############################
  355. # Start of the optional stuff.
  356.  
  357. ###########################################
  358. # Optional: Turning on language extensions
  359. #
  360. # Instead of the default access control language that is documented in
  361. # the hosts_access.5 document, the wrappers can be configured to
  362. # implement an extensible language documented in the hosts_options.5
  363. # document.  This language is implemented by the "options.c" source
  364. # module, which also gives hints on how to add your own extensions.
  365. # Uncomment the next definition to turn on the language extensions.
  366. #STYLE    = -DPROCESS_OPTIONS    # Enable language extensions.
  367.  
  368. ################################################################
  369. # Optional: Changing the default disposition of logfile records
  370. #
  371. # By default, logfile entries are written to the same file as used for
  372. # sendmail transaction logs. See your /etc/syslog.conf file for actual
  373. # path names of logfiles. The tutorial section in the README file
  374. # gives a brief introduction to the syslog daemon.
  375. # Change the FACILITY definition below if you disagree with the default
  376. # disposition. Some syslog versions (including Ultrix 4.x) do not provide
  377. # this flexibility.
  378. # If nothing shows up on your system, it may be that the syslog records
  379. # are sent to a dedicated loghost. It may also be that no syslog daemon
  380. # is running at all. The README file gives pointers to surrogate syslog
  381. # implementations for systems that have no syslog library routines or
  382. # no syslog daemons. When changing the syslog.conf file, remember that
  383. # there must be TABs between fields.
  384. #
  385. # The LOG_XXX names below are taken from the /usr/include/syslog.h file.
  386.  
  387. FACILITY= LOG_MAIL    # LOG_MAIL is what most sendmail daemons use
  388.  
  389. # The syslog priority at which successful connections are logged.
  390.  
  391. SEVERITY= LOG_INFO    # LOG_INFO is normally not logged to the console
  392.  
  393. ###########################
  394. # Optional: Reduce DNS load
  395. #
  396. # When looking up the address for a host.domain name, the typical DNS
  397. # server will first append substrings of your own domain, so it tries
  398. # host.domain.your.own.domain, then host.domain.own.domain, and then
  399. # host.domain. The APPEND_DOT feature stops this waste of cycles. It is
  400. # off by default because it causes problems on sites that don't use DNS.
  401. #
  402. # This feature has undergone light testing and it may go away if there
  403. # are problems with it. If you enable it let me know if it helps.
  404. #
  405. # DOT= -DAPPEND_DOT
  406.  
  407. ##################################################
  408. # Optional: Always attempt remote username lookups
  409. #
  410. # By default, the wrappers look up the remote username only when the
  411. # access control rules require them to do so.
  412. #
  413. # Username lookups require that the remote host runs a daemon that
  414. # supports an RFC 931 like protocol.  Remote user name lookups are not
  415. # possible for UDP-based connections, and can cause noticeable delays
  416. # with connections from non-UNIX PCs.  On some systems, remote username
  417. # lookups can trigger a kernel bug, causing loss of service. The README
  418. # file describes how to find out if your UNIX kernel has that problem.
  419. # Uncomment the following definition if the wrappers should always
  420. # attempt to get the remote user name. If this is not enabled you can
  421. # still do selective username lookups as documented in the hosts_access.5
  422. # and hosts_options.5 manual pages (`nroff -man' format).
  423. #
  424. #AUTH    = -DALWAYS_RFC931
  425. #
  426. # The default username lookup timeout is 10 seconds. This may not be long
  427. # enough for slow hosts or networks, but is enough to irritate PC users.
  428.  
  429. RFC931_TIMEOUT = 10
  430.  
  431. ######################################################
  432. # Optional: Changing the default file protection mask
  433. #
  434. # On many systems, network daemons and other system processes are started
  435. # with a zero umask value, so that world-writable files may be produced.
  436. # It is a good idea to edit your /etc/rc* files so that they begin with
  437. # an explicit umask setting.  On our site we use `umask 022' because it
  438. # does not break anything yet gives adequate protection against tampering.
  439. # The following macro specifies the default umask for processes run under
  440. # control of the daemon wrappers. Comment it out only if you are certain
  441. # that inetd and its children are started with a safe umask value.
  442.  
  443. UMASK    = -DDAEMON_UMASK=022
  444.  
  445. #######################################
  446. # Optional: Turning off access control
  447. #
  448. # By default, host access control is enabled.  To disable host access
  449. # control, comment out the following definition.  Host access control
  450. # can also be turned off at runtime by providing no or empty access
  451. # control tables.
  452.  
  453. ACCESS    = -DHOSTS_ACCESS
  454.  
  455. ########################################################
  456. # Optional: Changing the access control table pathnames
  457. #
  458. # The HOSTS_ALLOW and HOSTS_DENY macros define where the programs will
  459. # look for access control information. Watch out for the quotes and
  460. # backslashes when you make changes.
  461.  
  462. TABLES    = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
  463.  
  464. ###########################################
  465. # Optional: Turning off host NAME checking
  466. #
  467. # By default, the software tries to protect against hosts that claim to
  468. # have someone elses host name. This is relevant for network services
  469. # whose authentication depends on host names, such as rsh and rlogin.
  470. #
  471. # With paranoid mode on, connections will be rejected when the host name
  472. # does not match the host address. Connections will also be rejected when
  473. # the host name is available but cannot be verified.
  474. #
  475. # Comment out the following definition if you do not need this additional
  476. # protection. If paranoid mode is off, and a host name check fails, the
  477. # daemon wrappers will use only the host address, but your daemons may
  478. # still use the host name.
  479.  
  480. PARANOID= -DPARANOID
  481.  
  482. #############################################
  483. # Optional: Turning on host ADDRESS checking
  484. #
  485. # Optionally, the software tries to protect against hosts that pretend to
  486. # have someone elses host address. This is relevant for network services
  487. # whose authentication depends on host names, such as rsh and rlogin,
  488. # because the network address is used to look up the remote host name.
  489. # The protection is effective only when the offending host claims to have
  490. # a network address that lies outside its own network.
  491. #
  492. # My site has been running rlogind and rshd daemons that implement this
  493. # feature for more than 2 years, and without any ill effects.
  494. #
  495. # This feature cannot be used with SunOS 4.x because of a kernel bug in
  496. # the implementation of the getsockopt() system call. Kernel panics have
  497. # been observed for SunOS 4.1.[1-3]. Symptoms are "BAD TRAP" and "Data
  498. # fault" while executing the tcp_ctloutput() kernel function.
  499. #
  500. # Reportedly, Sun patch 100804-03 fixes the problem for SunOS 4.1.x.
  501. #
  502. # Uncomment the following macro definition if your getsockopt() is OK.
  503. #
  504. # KILL_OPT= -DKILL_IP_OPTIONS
  505.  
  506. ## End configuration options
  507. ############################
  508.  
  509. # Protection against weird shells or weird make programs.
  510.  
  511. SHELL    = /bin/sh
  512. .c.o:;    $(CC) $(CFLAGS) -c $*.c
  513.  
  514. CFLAGS    = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  515.     $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
  516.     -DREAL_MISCD=\"$(REAL_DAEMON_DIR)/miscd\" \
  517.     -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
  518.     -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  519.     $(UCHAR) $(TABLES) $(STRINGS) $(TLI) $(EXTRA_CFLAGS) $(DOT)
  520.  
  521. LIB_OBJ= hosts_access.o options.o shell_cmd.o rfc931.o hosts_info.o \
  522.     hosts_ctl.o refuse.o percent_x.o clean_exit.o $(AUX_OBJ) \
  523.     fromhost.o fix_options.o socket.o tli.o workarounds.o init_client.o \
  524.     6compat.o
  525.  
  526. KIT    = README miscd.c tcpd.c fromhost.c hosts_access.c shell_cmd.c \
  527.     log_tcp.h try.c refuse.c Makefile hosts_access.5 strcasecmp.c \
  528.     BLURB rfc931.c tcpd.8 hosts_info.c hosts_access.3 hosts_ctl.c \
  529.     percent_x.c options.c clean_exit.c environ.c patchlevel.h strtok.c \
  530.     fix_options.c workarounds.c socket.c tli.c DISCLAIMER \
  531.     fakelog.c safe_finger.c hosts_options.5 options.h CHANGES \
  532.     try-from.c init_client.c 6compat.c ptx.c vfprintf.c tli-sequent.c \
  533.     tli-sequent.h
  534.  
  535. LIB    = libwrap.a
  536.  
  537. all other: config-check tcpd try try-from safe_finger
  538.  
  539. config-check:
  540.     @@set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
  541.  
  542. $(LIB):    $(LIB_OBJ)
  543.     rm -f $(LIB)
  544.     ar $(ARFLAGS) $(LIB) $(LIB_OBJ)
  545.     -$(RANLIB) $(LIB)
  546.  
  547. tcpd:    tcpd.o fromhost.o $(LIB)
  548.     $(CC) $(CFLAGS) -o $@@ tcpd.o fromhost.o $(LIB) $(LIBS)
  549.  
  550. miscd:    miscd.o fromhost.o $(LIB)
  551.     $(CC) $(CFLAGS) -o $@@ miscd.o fromhost.o $(LIB) $(LIBS)
  552.  
  553. safe_finger:
  554.     $(CC) $(CFLAGS) -o $@@ safe_finger.c $(LIB) $(LIBS)
  555.  
  556. try:    try.o fakelog.o $(LIB)
  557.     $(CC) $(CFLAGS) -o $@@ try.o fakelog.o $(LIB) $(LIBS)
  558.  
  559. try-from: try-from.c fakelog.o log_tcp.h Makefile $(LIB)
  560.     $(CC) $(CFLAGS) -DTEST -o $@@ try-from.c fakelog.o $(LIB) $(LIBS)
  561.  
  562. shar:    $(KIT)
  563.     @@shar $(KIT)
  564.  
  565. kit:    $(KIT)
  566.     @@makekit $(KIT)
  567.  
  568. archive:
  569.     $(ARCHIVE) $(KIT)
  570.  
  571. clean:
  572.     rm -f tcpd miscd safe_finger try try-from *.[oa] core
  573.  
  574. # Enable all bells and whistles for linting.
  575.  
  576. lint: tcpd_lint miscd_lint try_lint
  577.  
  578. tcpd_lint:
  579.     lint -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP \
  580.     -DGETPEERNAME_BUG -DDAEMON_UMASK=022 -DSEVERITY=$(SEVERITY) \
  581.     $(TABLES) -DKILL_IP_OPTIONS -DPROCESS_OPTIONS \
  582.     -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) -DALWAYS_RFC931 \
  583.     -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \
  584.     tcpd.c fromhost.c socket.c tli.c hosts_access.c shell_cmd.c \
  585.     refuse.c rfc931.c hosts_info.c percent_x.c clean_exit.c options.c \
  586.     environ.c fix_options.c workarounds.c init_client.c
  587.  
  588. miscd_lint:
  589.     lint -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP \
  590.     -DGETPEERNAME_BUG -DDAEMON_UMASK=022 -DSEVERITY=$(SEVERITY) \
  591.     $(TABLES) -DKILL_IP_OPTIONS -DPROCESS_OPTIONS \
  592.     -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) -DALWAYS_RFC931 \
  593.     -DREAL_MISCD=\"$(REAL_DAEMON_DIR)/miscd\" \
  594.     miscd.c fromhost.c socket.c tli.c hosts_access.c shell_cmd.c \
  595.     refuse.c rfc931.c hosts_info.c percent_x.c clean_exit.c options.c \
  596.     environ.c fix_options.c workarounds.c init_client.c
  597.  
  598. try_lint:
  599.     lint -DFACILITY=LOG_MAIL -DSEVERITY=$(SEVERITY) -DHOSTS_ACCESS \
  600.     $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \
  601.     try.c hosts_ctl.c hosts_access.c hosts_info.c percent_x.c options.c \
  602.     workarounds.c init_client.c
  603.  
  604. printfck:
  605.     printfck -f printf.ck tcpd.c fromhost.c socket.c tli.c hosts_access.c shell_cmd.c \
  606.     refuse.c rfc931.c hosts_info.c percent_x.c clean_exit.c options.c \
  607.     environ.c fix_options.c workarounds.c init_client.c >aap.c
  608.     lint -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP \
  609.     -DGETPEERNAME_BUG -DDAEMON_UMASK=022 -DSEVERITY=$(SEVERITY) \
  610.     $(TABLES) -DKILL_IP_OPTIONS -DPROCESS_OPTIONS \
  611.     -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) -DALWAYS_RFC931 \
  612.     -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" aap.c
  613.     rm -f aap.c
  614.  
  615. # Compilation dependencies.
  616.  
  617. clean_exit.o: log_tcp.h Makefile
  618. environ.o: Makefile
  619. fix_options.o: log_tcp.h Makefile
  620. fromhost.o: log_tcp.h Makefile
  621. hosts_access.o: options.h log_tcp.h Makefile
  622. hosts_ctl.o: log_tcp.h Makefile
  623. hosts_info.o: log_tcp.h Makefile
  624. init_client.o: log_tcp.h Makefile
  625. miscd.o: patchlevel.h log_tcp.h Makefile
  626. options.o: options.h log_tcp.h Makefile
  627. percent_x.o: log_tcp.h Makefile
  628. refuse.o: log_tcp.h Makefile
  629. rfc931.o: log_tcp.h Makefile
  630. shell_cmd.o: log_tcp.h Makefile
  631. socket.o: log_tcp.h Makefile
  632. tcpd.o: patchlevel.h log_tcp.h Makefile
  633. tli.o: log_tcp.h Makefile
  634. tli-sequent.o: tli-sequent.h log_tcp.h Makefile
  635. try-from: log_tcp.h Makefile
  636. try.o: log_tcp.h Makefile
  637. workarounds.o: log_tcp.h Makefile
  638. @
  639.