Chapter 5.2 - Manual Configuration of GateD R4_0

The GateD makefile system is set up to allow object directories for multiple architectures to use one source tree. The object directories consist of a few configured files and symlinks for the majority of the GateD files. They are named obj.<arch> where arch is the architecture of your system as reported by the arch or machine program. If one of these programs can not be found, the first part of your hostname is used. See src/util/archtype for more information.

5.2.1. (Step 1) - Create an object directory.

1. Create an object directory of the forms of:

/src/obj.<architecture type>

2. You can use archtype utility to display the system architecture:

/src/util/archtype

3. mkdir command example:

mkdir src/obj.`src/util/archtype`

If you will never compile GateD on a second architecture, you can use obj. For example, on a Sun SPARCstation running SunOS 4.1.1:

sun% src/util/archtype
SunOS-4.1.4-sun4
sun% mkdir src/obj.`src/util/archtype`
sun% ls -d src/obj.*
src/obj.SunOS-4.1.4-sun4/






On BSD 4.3 Reno and later obj directories are supported in the format which the system sources use. This support is not direct, but a hack. On these systems you will need to specify the full path to some directories. For an example, see src/configs/vangogh.

5.2.2 (Step 2) -Build a config file.

This file is used as input to a configuration script which builds a Makefile and system specific header files.

A description of config file options is available in src/configs/README.

Examples of many a few config files are in src/configs. Pick the one which is closest to what you want and tailor it to your specific configuration. Install this config file in the previously created object directory with the name Config.

5.2.3 (Step 3) - Configure GateD for this architecture by typing:

make config

This will run an awk script on your obj. `src/util/archtype`/Config file which builds a sed script. This sed script is used to edit a Makefile template. The Makefile is then run to configure architecture specific files, create symbolic links, and dependencies.

5.2.4 (Step 4) - Build GateD by typing:

make

in the src directory or the object directory.

5.2.5 (Step 5) - Become root and install GateD by:

make install in the src or object directory. Then optionally type

make install-man in the same directory to install the man pages.

5.2.6 (Step 6) - Make up a configuration file.

Sample config files are in the conf directory and the main page explains all config options. Install the config file in /etc/gated.conf.

5.2.7 (Steo 7) - Take cover and .... FIRE IT UP!



Last updated November 28, 1997

gated@gated.merit.edu