Build(Aegis)                                                      Build(Aegis)



[1mNAME[0m
        aegis - project change supervisor
        Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
        2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Peter
        Miller

        The [4maegis[24m program is distributed under the terms of the GNU General
        Public License.  See the LICENSE section, below, for more details.

        [1maegis [22m(ee.j.iz) [4mn.,[24m a protection, a defense.

[1mSPACE REQUIREMENTS[0m
        You will need up to 250MB to unpack and build the [4maegis[24m package.
        (This is the worst case seen so far, most systems have binaries
        smaller than this, 200MB is more typical.)  Your mileage may vary.

[1mSITE CONFIGURATION[0m
        The [1maegis [22mpackage is configured using the [4mconfigure[24m shell script
        included in this distribution.

        The [4mconfigure[24m shell script attempts to guess correct values for
        various system-dependent variables used during compilation, and
        creates the [4mMakefile[24m and [4mcommon/config.h[24m files.  It also creates a
        shell script [4mconfig.status[24m that you can run in the future to recreate
        the current configuration.

   [1mUpgrading[0m
        The ./configure script will look for an existing install of Aegis and
        use the existing configuration settings.  This works best if the
        version you are upgrading is 4.11 or later.

        To disable looking for an existing installation (maybe because you
        want to change the prefix), use the ./configure --with-no-aegis-
        configured option.

        To change the AEGIS_UID and AEGIS_GID values (these control the
        ownership of Aegis' system files) you need to set environment
        variables of these names [1mbefore [22mrunning the [4m./configure[24m script.  You
        almost never need to do this, so if you have no idea what this is
        about, don't try to change them.

   [1mBefore You Start[0m
        Before you start configuring, it is worth reading the [4mOTHER[24m [4mUSEFUL[0m
        [4mSOFTWARE[24m section, below.

        The [4mconfigure[24m script checks for the internationalization library and
        functions.  If your system does not have them, it is worth fetching
        and installing [1mGNU Gettext [22mbefore you run the [4mconfigure[24m script.  Make
        sure that the [4mmsgfmt[24m command from GNU Gettext appears earlier in your
        command search PATH than the existing system ones, if any (this is
        very important for SunOS and Solaris).  You must do the GNU gettext
        install [4mbefore[24m running the [4mconfigure[24m script, or the error messages,
        even for English speakers, will be terse and uninformative.  Remember
        to use the GNU gettext configure [4m--with-gnu-gettext[24m option if your
        system has native gettext tools.

        The [4mconfigure[24m script checks for compression libraries and functions.
        If your system does not have them, you must download and install the
        [1mGNU zlib [22mcompression library (see http://www.gzip.org/zlib/ for
        download) and the [1mbzip2 [22mcompression library (see http://www.bzip.org/
        for download) before you run the [4mconfigure[24m script.  These libraries
        are essential, Aegis will not build without them.  ([1mNote: [22mzlib is not
        the same thing as zlib[1mc [22mwhich does something completely different.)

        The [4mconfigure[24m script checks for the regular expression library and
        functions.  If your system does not have them, it is worth fetching
        and installing [1mGNU rx [22mcompression library before you run the [4mconfigure[0m
        script.  (Note: test 81 will fail if the POSIX regular expression
        functions are not available.)

        The GNOME libxml2 library (http://xmlsoft.org/) is used to parse XML,
        you will need version 1.8.17 or later.  You do not have to install the
        rest of GNOME as this library is able to be used by itself.  This
        package is [1mnot [22moptional, you need it to successfully build Aegis.

        The libcurl library (http://curl.haxx.se/) is used to fetch remote
        files.  This library is optional, but some functionality, particularly
        [4maedist[24m [4m-replay,[24m [4mwill[24m [4mnot[24m [4mwork[24m [4mwithout[24m [4mit.[24m  [4mIf[24m [4myou[24m [4mare[24m [4musing[24m [4ma[24m [4mpackage[0m
        [4mbased[24m [4minstall,[24m [4myou[24m [4mwill[24m [4mneed[24m [4mthe[24m [4mlibcurl-dev[24m [4mor[24m [4mlibcurl-devel[24m [4mpackage[0m
        [4mas[24m [4mwell.[0m

   [1mRunning Configure[0m
        Normally, you just [4mcd[24m to the directory containing [4maegis[24m' source code
        and type
                % [1m./configure --sysconfdir=/etc[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        If you're using [4mcsh[24m on an old version of System V, you might need to
        type
                % [1msh configure --sysconfdir=/etc[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        instead to prevent [4mcsh[24m from trying to execute [4mconfigure[24m itself.

        Running [4mconfigure[24m takes a minute or two.  While it is running, it
        prints some messages that tell what it is doing.  If you don't want to
        see the messages, run [4mconfigure[24m with its standard output redirected to
        [4m/dev/null[24m; for example,
                % [1m./configure  --sysconfdir=/etc --quiet[0m
                %

        There is a known problem with GCC 2.8.3 and HP/UX.  You will need to
        set CFLAGS = -O in the generated Makefile.  (The configure script sets
        it to CFLAGS = -O2.)  This is because the code optimization breaks the
        fingerprints.  If test 32 fails (see below) this is probably the
        reason.

        There is a known problem with IRIX builds.  You need to use the
        following configuration
                # systune ncargs 0x8000
        to increase the length of command lines.

        For mips IRIX and IRIX64 using the MipsPro compiler up to at least
        version 7.3 you must specify the flag to allow -I for loop
        initializations. You may give either of:
                CXXFLAGS='LANG:ansi-for-init-scope=ON'
                CXXFLAGS='LANG:std'
        Also required is [4m-lCio[24m but configure will test for that. Even using
        that library there remains a link failure due to:
                Unresolved text symbol
                "std::_List_base<undo_item*,std::allocator<undo_item*> >::clear(void)"
        on several of the binaries. A work around for this problem is not
        known at this time.

        By default, [4mconfigure[24m will arrange for the [4mmake[24m [4minstall[24m command to
        install the [1maegis [22mpackage's files in [4m/usr/local/bin[24m,
        [4m/usr/local/com/aegis[24m, [4m/usr/local/lib/aegis[24m, [4m/usr/local/man[24m and
        [4m/usr/local/share/aegis[24m.  There are a number of options which allow you
        to control the placement of these files.

        --prefix=[4mPATH[0m
                This specifies the path prefix to be used in the installation.
                Defaults to [4m/usr/local[24m unless otherwise specified.  The rest
                of these building instructions assume you are using the
                default [4m/usr/local[24m as the install prefix.

        --exec-prefix=[4mPATH[0m
                You can specify separate installation prefixes for
                architecture-specific files and architecture-independent
                files.  Defaults to [4m${prefix}[24m unless otherwise specified.

        --bindir=[4mPATH[0m
                This directory contains executable programs.  On a network,
                this directory may be shared between machines with identical
                hardware and operating systems; it may be mounted read-only.
                Defaults to [4m${exec_prefix}/bin[24m unless otherwise specified.

        --datadir=[4mPATH[0m
                This directory contains installed data, such as the
                documentation, reports and shell scripts distributed with
                Aegis.  On a network, this directory may be shared between all
                machines; it may be mounted read-only.  Defaults to
                [4m${prefix}/share/aegis[24m unless otherwise specified.  An "aegis"
                directory will be appended if there is none in the specified
                path.

        --libdir=[4mPATH[0m
                This directory contains installed data, such as the error
                message catalogues.  On a network, this directory may be
                shared between machines with identical hardware and operating
                systems; it may be mounted read-only.  Defaults to
                [4m${exec_prefix}/lib/aegis[24m unless otherwise specified.  An
                "aegis" directory will be appended if there is none in the
                specified path.

        --mandir=[4mPATH[0m
                This directory contains the on-line manual entries.  On a
                network, this directory may be shared between all machines; it
                may be mounted read-only.  Defaults to [4m${prefix}/man[24m unless
                otherwise specified.

        --sharedstatedir=[4mPATH[0m
                This directory contains share state information, such as the
                Aegis lock file, and information on the location of the
                various Aegis projects.  On a network, this directory may be
                shared between all machines; it MUST be mounted READ-WRITE.
                Defaults to [4m${prefix}/com/aegis[24m unless otherwise specified.
                An "aegis" directory will be appended if there is none in the
                specified path.

        --sysconfdir=[4mPATH[0m
                Location of system configuration files.  You should almost
                always use the [4m/etc[24m directory.

        [4mconfigure[24m ignores any other arguments that you give it.

        On systems that require unusual options for compilation or linking
        that the [4maegis[24m package's [4mconfigure[24m script does not know about, you can
        give [4mconfigure[24m initial values for variables by setting them in the
        environment.  In Bourne-compatible shells, you can do that on the
        command line like this:
                $ [1mCC='gcc -traditional' LIBS=-lposix [22m\
                  [1m./configure --sysconfdir=/etc[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                $
        Here are the [4mmake[24m variables that you might want to override with
        environment variables when running [4mconfigure[24m.

        Variable: CC
                C compiler program.  The default is [4mcc[24m.

        Variable: INSTALL
                Program to use to install files.  The default is [4minstall[24m if
                you have it, [4mcp[24m otherwise.

        Variable: LIBS
                Libraries to link with, in the form -l[4mfoo[24m -l[4mbar[24m.  The
                [4mconfigure[24m script will append to this, rather than replace it.

        If you need to do unusual things to compile the package, the author
        encourages you to figure out how [4mconfigure[24m could check whether to do
        them, and mail diffs or instructions to the author so that they can be
        included in the next release.

   [1mCommon Problem[0m
        It is very common that other packages, such as [4mgettext[24m, [4mrx[24m and [4mzlib[0m
        are installed using [4m/usr/local[24m as the prefix.  However, the configure
        script can't work this out, even when it, too, is using [4m/usr/local[24m as
        the prefix.

        To cope with this, you need to say
                $ [1mCPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib [22m\
                  [1m./configure --sysconfdir=/etc[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                $
        when running configure.  Substitute the appropriate prefix if you are
        using something other than the default [4m/usr/local[24m prefix.  Watch the
        output... it should now find your installed packages correctly.

   [1mGCC Version 3.*[0m
        On some operating systems, notabley MacOsX Jaguar and Panther, g++
        versions 3.* will produce link-time errors complaining of missing
        typeinfo symbols.  The only known fix for this problem is to use GCC
        version 2.95, 2.96 or 4.*.  This means MacOsX Tiger does not have the
        problem.

   [1mAIX Command Line Lengths[0m
        For some reason, AIX has a very short command line length limit by
        default.  You can extend this by using the command
                $ [1msystune ncargs 0x8000[0m
                $
        You will need to do this to build Aegis.  It has some very long link
        lines.

   [1mPRIVILEGES[0m
        There are a number of items in the generated [4mMakefile[24m and
        [4mcommon/config.h[24m file which affect the way [4maegis[24m works.  If they are
        altered too far, [4maegis[24m will not be able to function correctly.

        AEGIS_MIN_UID
                This specifies the minimum unprivileged uid on your system.
                UIDs less than this may not own projects, or play any other
                role in an aegis project.  The default value is 100.

        AEGIS_MIN_GID
                This specifies the minimum unprivileged GID on your system.
                GIDs less than this may not own projects, or play any other
                role in an aegis project.  The default value is 10.

        AEGIS_USER_UID
                This is the owner of files used by [4maegis[24m to record pointers to
                your projects.  It is [4mnot[24m used to own projects (i.e. it must
                be less than AEGIS_MIN_UID).  If possible, the [4mconfigure[0m
                script tries to work out what value was used previously, but
                you must specify the --prefix option correctly for this to
                work.  Because of operating system inconsistencies, this is
                specified numerically so that [4maegis[24m will work across NFS.  The
                default value is 3.

        AEGIS_USER_GID
                This is the group of files used by [4maegis[24m to record pointers to
                your projects.  It is [4mnot[24m used as the group for projects (i.e.
                it must be less than AEGIS_MIN_GID).  If possible, the
                [4mconfigure[24m script tries to work out what value was used
                previously, but you must specify the --prefix option correctly
                for this to work.  Because of operating system
                inconsistencies, this is specified numerically so that [4maegis[0m
                will work across NFS.  The default value is 3.

        DEFAULT_UMASK
                When [4maegis[24m runs commands for you, or creates files or
                directories for you, it will use the defined project umask.
                This is a project attribute, and may be altered using the
                [4maepa[24m(1) command.  The DEFAULT_UMASK is the umask initially
                given to all new projects created by the [4maenpr[24m(1) command.
                The default value of DEFAULT_UMASK is 026.  See the comments
                in the [4mcommon/config.h[24m file for an explanation of the
                alternatives.

        It is required that [4maegis[24m run set-uid-root for all of its
        functionality to be available.  It is NOT possible to create an
        "aegis" account and make [4maegis[24m run set-uid-aegis.  This is because
        [4maegis[24m does things as various different user IDs, sometimes as many as
        3 in the one command.  This allows [4maegis[24m to use UNIX security rather
        than inventing its own, and also allows [4maegis[24m to work across NFS.  To
        be able to do these things, [4maegis[24m must be set-uid-root.  Appendix D of
        the [4mAegis[24m [4mUser[24m [4mGuide[24m explains why [4maegis[24m must run set-uid-root; please
        read it if you have concerns.

   [1mRemember Your Settings[0m
        It is important to remember your configuration settings.  This way, it
        will be a simple matter when it comes time to upgrade Aegis.

[1mBUILDING AEGIS[0m
        All you should need to do is use the
                % [1mmake[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        command and wait.  When this finishes you should see a directory
        called [4mbin[24m containing several files: [4maegis[24m, [4maereport[24m, [4maefind[24m, [4maefp[24m,
        and [4mfmtgen[24m.

        [1maegis   [22mThe [4maegis[24m program is a project change supervisor.

        [1maefp    [22mThe [4maefp[24m program may be used to "fingerprint" files.  It is
                used to test Aegis (see the testing section, below) but it
                isn't installed.

        aereport
                The [4maereport[24m program is used to query Aegis' database.

        aefind  The [4maefind[24m program is used to find files.

        [1mfmtgen  [22mThe [4mfmtgen[24m program is a utility used to build the [4maegis[0m
                package; it is not intended for general use and should not be
                installed.

        You can remove the program binaries and object files from the source
        directory by using the
                % [1mmake clean[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        command.  To remove all of the above files, and also remove the
        [4mMakefile[24m and [4mcommon/config.h[24m and [4mconfig.status[24m files, use the
                % [1mmake distclean[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        command.

        The file [4maux/configure.in[24m is used to create [4mconfigure[24m by a GNU program
        called [4mautoconf[24m.  You only need to know this if you want to regenerate
        [4mconfigure[24m using a newer version of [4mautoconf[24m.

   [1mUpgrading[0m
        When upgrading from one release to a newer one, it is important that
        all of the machines on your network are running the same release of
        Aegis.  This minimizes the possibility of database incompatibilities.
        In general, Aegis is backwards compatible with earlier releases, but
        not forwards compatible in the face of new capabilities.

[1mOTHER USEFUL SOFTWARE[0m
        Before describing how to test [4maegis[24m, you may need to grab some other
        free software, because the tests require it in some cases, and because
        it is generally useful in others.

        GNOME libxml2
                The GNOME libxml2 library (http://xmlsoft.org/) is used to
                parse XML.  Version 1.8.17 or later.  You do not have to
                install the rest of GNOME as this library is able to be used
                by itself.  This package is [1mnot [22moptional, you need it to
                successfully build Aegis.

        [1mcook    [22mThis is a dependency maintenance tool (DMT).  An example of a
                well-known DMT is [4mmake[24m(1), however this old faithful is mostly
                not sufficiently capable to meet the demands placed on it by
                the [4maegis[24m program, but [4mcook[24m certainly is.  The [4mcook[24m package is
                written by the same author as [4maegis[24m.  The [4mcook[24m package is
                necessary if test 11 is to be meaningful.  It is also used in
                the documentation.  The [4mcook[24m program may be found at the same
                archive site as the [4maegis[24m program.  The [4mcook[24m program is
                available under the terms of the GNU General Public License.

        GNU diff
                If the [4mdiff[24m(1) utility supplied by your flavor of Unix does
                not have the [1m-c [22moption, you will need GNU diff for [4maepatch[24m(1)
                to work (and the [4maepatch[24m(1) tests to pass).  Context
                differences are also helpful for reviewing changes.  GNU diff
                is essential for Solaris, because the Solaris diff has bugs
                that Aegis' tests uncover.

        GNU patch
                For best results with the [4maepatch[24m(1) and [4maedist(1)[24m [4mwhen[0m
                [4mreceiving[24m [4mchange[24m [4msets,[24m [4myou[24m [4mneed[24m [4mthe[24m [4mGNU[24m [4mpatch[24m [4mutility.[0m

        [4mRCS[24m     This is a source control package, and is available from any of
                the GNU archives.  (It is best to compile and install RCS
                [4mafter[24m GNU diff.  This is because the RCS configuration hard-
                codes the pathnames of the GNU diff utilities it needs into
                the RCS executables.)  This package isn't essential as Aegis
                comes with its own [4maesvt[24m(1) history tool - although you are
                free to use any history tool you like.

        GNU Gettext
                Many systems do not yet supply the [4mgettext[24m(3) function.  Aegis
                uses this function to internationalize its error messages.  If
                your system does not have this function, you should fetch and
                install GNU Gettext [4mbefore[24m running the [4mconfigure[24m script.  If
                you do not, Aegis will still work, but the error messages will
                be rather terse, even for English speakers.  (You will be able
                to tell if your system has the internationalization library
                and functions, because the [4mconfigure[24m script will report
                finding -lintl and [4m(CWlibintl.h[24m and msgfmt in its running
                commentary.)  Please note that the GNU Gettext implementation
                is likely to be superior to the one supplied with your system,
                if any.  Remember to use the GNU gettext configure [4m--with-gnu-[0m
                [4mgettext[24m option if your system has native gettext tools.

                Please note: if you install GNU gettext package into
                [4m/usr/local[24m (for example) you must ensure that the Aegis
                [4m./configure[24m script is told to also look in [4m/usr/local/include[0m
                for include files (CFLAGS), and [4m/usr/local/lib[24m for library
                files (LDFLAGS).  Otherwise the [4m./configure[24m script will
                incorrectly conclude that GNU Gettext has not been installed.

                GNU Gettext version 0.11.1 or later is recommended.

        GNU Groff
                This GNU software replaces the documentation tools which
                (sometimes) come with UNIX.  They produce superior error
                messages, and support a wider range of functionality and
                fonts.  The [4mAegis[24m User Guide was prepared with GNU Groff.  You
                need GNU Groff 1.14 or later.

        bison   This GNU software is a replacement for [4myacc[24m(1).  Some systems
                have very sick yaccs, and [4mbison[24m may be necessary if your
                system include files disagree strongly with your system's
                yacc.  The generated [4mMakefile[24m will use bison if you have it.

        fhist   This software, available under the terms of the GNU General
                Public License, is a set of file history and comparison
                utilities.  It was originally written by David I. Bell, and is
                based on the minimal difference algorithm by Eugene W. Myers.
                This copy is enhanced and maintained by the same author as
                [4mAegis[24m, and may be found at the same archive site, in the same
                directory.

        rx      This library provides POSIX regular expressions, for systems
                which don't have them.  (Note: test 81 will fail if the POSIX
                regular expression functions are not available.)

        zlib    This library provides access to the GNU Zip (de)compression
                algorithm(s).  It is essential to have this installed before
                you build Aegis.  The home page may be found at
                http://www.gzip.org/zlib/ if you need to download it.  Note:
                this is not the same as [1mzlibc [22mwhich is Linux specific.

        tkdiff  This program shows the difference between two text files,
                nicely highlighted in color.  This is used by the [4mtkaer[24m and
                [4maecomp[24m scripts (and probably others as they are contributed).
                By John M. Klassa, http://www.ede.com/free/tkdiff

        libmagic
                If [4mlibmagic[24m(3) is present, the [4maeget[24m(1) CGI handler will use
                it to determine the MIME type of files.  This is installed by
                [1mfile [22mversion 4.0 and later (ftp://ftp.astron.com/pub/file/),
                and uses the same database as the [4mfile[24m(1) command.  If this
                library is not present when Aegis is built, a much less
                accurate method will be used.

        The tests also depend on the presence of a number of common UNIX
        programs, including but not limited to: [4mcc[24m, [4mcmp[24m, [4mdiff[24m, [4med[24m, [4mfind[24m, [4mmake[24m,
        etc.  Depending on your version of UNIX, some or all of these programs
        may be in optional packages.  (This is especially true of Linux.)  You
        need to ensure that these programs are correctly installed before you
        run the tests.

[1mTESTING AEGIS[0m
        The [4mAegis[24m program comes with a test suite.  To run this test suite,
        use the command
                % [1mmake sure[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                Passed All Tests
                %

        The tests take a minute or two each, with a few very fast, and a
        couple very slow, but it varies greatly depending on your CPU.

   [1mKnown Problems[0m
        In order to get the long form of the error messages on Solaris, it is
        necessary to install GNU Gettext before running ./configure, and once
        ./configure has been run you need to edit the Makefile to statically
        link the executables.

        The [4mtest/00/t0011a.sh[24m file assumes the [4mcook[24m(1) command by the author
        is somewhere in the command search path.  This test reproduces the
        example used in Chapter 3 of the User Guide.  If the [4mcook[24m(1) command
        is not available, this test gives a pass result without testing
        anything.

        If you are using HPUX and GCC, test 32 fails if you use -O2.  You need
        to edit the Makefile to only optimize at -O, delete the objects and
        rebuild.

        If you are using Solaris' diff, test 133 will report "no result".  You
        need to install GNU diff, because the Solaris diff has bugs.

        If you are using Sun's [4mtmpfs[24m file system as your [4m/tmp[24m directory, the
        tests will fail.  This is because the [4mtmpfs[24m file system does not
        support file locking.  Set the [4mAEGIS_TMP[24m environment variable to
        somewhere else before running the tests.  Something like
                % [1msetenv AEGIS_TMP /usr/tmp[0m
                %
        is usually sufficient if you are using C shell, or
                $ [1mAEGIS_TMP=/usr/tmp[0m
                $ [1mexport AEGIS_TMP[0m
                $
        if you are using Bourne shell.  Remember, this must be done before
        running the tests.

        If the tests fail due to errors complaining of "user too privileged"
        you will need to adjust the [4mAEGIS_MIN_UID[24m defined in the
        [4mcommon/config.h[24m file.  Similarly for "group too privileged", although
        this is rarer.  This error message will also occur if you run the
        tests as root: the tests must be run as a mortal each time.

        If the POSIX regular expression functions are not available, test 81
        will fail.  The GNU rx library provides these.  Installing it and re-
        configuring and re-building Aegis will solve the problem.

[1mTESTING SET-UID-ROOT[0m
        If the [4mAegis[24m program is not set-uid-root then it runs in "test" mode
        which gives you some confidence that [4mAegis[24m is working before being
        tested again when it is set-uid-root.  Two pass testing like this
        means that you need not trust your system to a set-uid-root program
        which is not known to work.

        You will need to do a little of the install, to create the directory
        which will contain [4mAegis[24m' lock file.  (Note that these building
        instructions assume you are using the default [4m/usr/local[24m as the
        install prefix.  You will need to substitute as appropriate if you are
        using some other prefix.)
                # [1mmake install-libdir[0m
                mkdir /usr/local/lib/aegis
                chown 3 /usr/local/lib/aegis
                chgrp 3 /usr/local/lib/aegis
                chmod 0755 /usr/local/lib/aegis
                mkdir /usr/local/com/aegis
                chown 3 /usr/local/com/aegis
                chgrp 3 /usr/local/com/aegis
                chmod 0755 /usr/local/com/aegis
                chown root bin/aegis
                chmod 4755 bin/aegis
                #
        As you can see, the previous command also changed [4mAegis[24m to be set-uid-
        root.  Once this has been done, [4mAegis[24m should be tested again, in the
        same manner as before.
                % [1mmake sure[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                Passed All Tests
                %

        You should test [4mAegis[24m as a mortal in both passes, rather than as root,
        to be sure the set-uid-root functionality is working correctly.

        It is required that [4mAegis[24m run set-uid-root for all of its
        functionality to be available.  It is NOT possible to create an
        "aegis" account and make [4mAegis[24m run set-uid-aegis.  This is because
        [4mAegis[24m does things as various different user IDs, sometimes as many as
        3 in the one command.  This allows [4mAegis[24m to use UNIX security rather
        than inventing its own, and also allows [4mAegis[24m to work across NFS.  To
        be able to do these things, [4mAegis[24m must be set-uid-root.  Appendix D of
        the [4mAegis[24m [4mUser[24m [4mGuide[24m explains why [4mAegis[24m must run set-uid-root; please
        read it if you have concerns.

[1mINSTALLING AEGIS[0m
        As explained in the [4mSITE[24m [4mCONFIGURATION[24m section, above, the [4mAegis[0m
        package is installed under the [4m/usr/local[24m tree by default.  Use the
        --prefix=[4mPATH[24m option to [4mconfigure[24m if you want some other path.

        All that is required to install the [4mAegis[24m package is to use the
                % [1mmake install[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                %
        command.  Control of the directories used may be found in the first
        few lines of the [4mMakefile[24m file if you want to bypass the [4mconfigure[0m
        script.

        The above procedure assumes that the [4msoelim[24m(1) command is somewhere in
        the command search [4mPATH[24m.  The [4msoelim[24m(1) command is available as part
        of the [4mGNU[24m [4mGroff[24m package, mentioned below in the [4mPRINTED[24m [4mMANUALS[0m
        section.  If you don't have it, but you do have the [4mcook[24m package, then
        a link from [4mroffpp[24m to [4msoelim[24m will also work.

        The above procedure also assumes that the [4m$(prefix)/man/man1[24m and
        [4m$(prefix)/man/man5[24m directories already exist.  If they do not, you
        will need to [4mmkdir[24m them manually.

[1mUSER CONFIGURATION[0m
        The [4mAegis[24m command is assumed to be in a generally accessible place,
        otherwise users will need to add the relevant directory to their PATH.
        Users should add
                source /usr/local/lib/aegis/cshrc
        to the end of their [4m.cshrc[24m file for the recommended aliases.  (Note
        that these building instructions assume you are using the default
        [4m/usr/local[24m as the install prefix.  You will need to substitute as
        appropriate if you are using some other prefix.)

        There is also a [4mprofile[24m for users of the Bourne shell (it assumes you
        have a version of the Bourne shell which has functions).  Users should
        add
                . /usr/local/share/aegis/profile
        to the end of their [4m.profile[24m file for the recommended aliases.  (This
        [4mprofile[24m assumes that users are using a Bourne shell which understands
        functions.)

        The [4m/usr/local/com/aegis/state[24m file contains pointers to "system"
        projects.  Users may add their own project pointers (to their own
        projects) by putting a search path into the [4mAEGIS_PATH[24m environment
        variable.  The system part is always automatically appended by [4mAegis[24m.
        The default, already set by the [4m/usr/local/lib/aegis/cshrc[24m file, is
        [4m$HOME/lib/aegis[24m.  Do not create this directory, [4mAegis[24m is finicky and
        wants to do this itself.

        Where projects reside is completely flexible, be they system projects
        or user projects.  They are not kept under the [4m/usr/local/com/aegis[0m
        directory, this directory only contains pointers.  (Note that these
        building instructions assume you are using the default [4m/usr/local[24m as
        the install prefix.  You will need to substitute as appropriate if you
        are using some other prefix.)

   [1mWeb Interface[0m
        If you have a Web server, you may like to install the Aegis web
        interface.  You do this by copying the [4maeget[24m script from
        [4m/usr/local/bin/aeget[24m into your web server's [4mcgi-bin[24m directory.  There
        is a [4maeget.instal[24m helper script, if you don't know where your web
        server's [4mcgi-bin[24m directory is.

        You may prefer to use a symbolic link, as this will be more stable
        across Aegis upgrades.  However, this requires a corresponding [4mfollow-[0m
        [4msymlinks[24m setting in your web server's configuration file.  (Use the
        [4maeget.instal[24m [4m-s[24m option.)

        You may need to wrap [4maeget[24m with a script which sets the [4mAEGIS_PATH[0m
        environment variable, if you want it to be able to see more projects
        than just the global projects.  You may also need to set the [4mPATH[0m
        environment variable, if you don't have the Aegis install path in the
        default path.

        (Note that these building instructions assume you are using the
        default [4m/usr/local[24m as the install prefix.  You will need to substitute
        as appropriate if you are using some other prefix.)

[1mPRINTED MANUALS[0m
        This distribution contains the sources to all of the documentation for
        [4mAegis[24m, however the simplest way to get the documentation is by
        anonymous FTP; PostScript files of the User Guide and Reference Manual
        are available from the FTP sites listed in the README file.

        The Reference Manual contains the README and BUILDING files, as well
        as all of the section 1 and section 5 manual pages.  The Reference
        Manual is about 200 pages long.

        The User Guide contains information about how to use Aegis, including
        a fully worked example.  The User Guide is about 100 pages long.

[1mTIME SYNCHRONIZATION[0m
        The [4mAegis[24m program uses time stamps to remember whether various events
        have happened and when.  If you are using [4mAegis[24m in a networked
        environment, typically a server and data-less workstations, you need
        to make absolutely sure that all of the machines agree about the time.

        If possible, use the time daemon.  Otherwise, use [4mrdate[24m(8) via [4mcron[24m(8)
        every hour or less.

[1mGETTING HELP[0m
        If you need assistance with [4mAegis[24m, please do not hesitate to contact
        the author at
                Peter Miller <millerp@canb.auug.org.au>
        Any and all feedback is welcome.

        When reporting problems, please include the version number given by
        the
                % [1maegis -version[0m
                aegis version [4m4.24.3.D001[0m
                [4m...[0m
                %
        command.  Please run this command to get the exact number, do not send
        the text of this example.

   [1mRuntime Checking[0m
        In the [4mcommon/main.h[24m file, there is a define of [4mDEBUG[24m in comments.  If
        the comments are removed, extensive debugging is turned on.  This
        causes some performance loss, but performs much run-time checking and
        adds the [1m-TRAce [22mcommand line option.

        When the [1m-TRAce [22mcommand line option is followed by one or more file
        names, it turns on execution traces in those source files.  It is
        usually best to place this on the end of the command line so that
        names of the files to be traced are not confused with other file names
        or strings on the command line.

   [1mProblem Reports[0m
        If you send email to the author, please include the following
        information:

        1. The type of UNIX
                The author will need to know the brand and version of UNIX you
                are using, or if it is not UNIX but something else.  The
                output of "uname -sr" is usually sufficient (but not all
                systems have it).

        2. The Version Number
                In any information you send, please include the version number
                reported in the [4mcommon/patchlevel.h[24m file, or `aegis -vers` if
                you can get it to compile.

        3. The Archive Site
                When and where you obtained this version of [4mAegis[24m.  If you
                tell me nothing else, tell me this (and, hopefully, why you
                did nothing else).

        4. Unpacking
                Did you have problems unpacking [4mAegis[24m?  This probably isn't a
                problem with the .tar.Z distribution, but you could have
                obtained a shar format copy.

        5. Building
                Did you have problems building [4mAegis[24m?  This could have been
                the instructions included, it could have been the configure
                script, it could have been the Makefile, or anything else.

        6. Testing, Non-Set-Uid
                Did you have problems with the tests?  You could have had
                problems running them, or some of them could have failed.  If
                some tests fail but not others, please let me know [4mwhich[24m ones
                failed, and include the fact that [4mAegis[24m was [1mnot [22mset-uid-root
                at the time.  The -k option to [4mmake[24m can be useful if some
                tests fail but not others.

        7. Testing, Set-Uid-Root
                Did you have problems with the tests when [4mAegis[24m was set-uid-
                root?  You could have had problems running them, or some of
                them could have failed.  If some tests fail but not others,
                please let me know [4mwhich[24m ones failed, and include the fact
                that [4mAegis[24m was set-uid-root at the time.

        8. Installation
                Did you have problems installing [4mAegis[24m?  This could have been
                the instructions, or anything else.

        At this point it would probably be a very good idea to print out the
        manual entries and read them carefully.  You will also want to print a
        copy of the User Guide; if you don't have groff, there should be a
        PostScript copy at the archive site.  It is a known flaw that the User
        Guide is incomplete, contributions are most welcome.

        9. The Example Project
                After reading the User Guide, it is often useful to manually
                run through the example in chapter 3.  You will need to do
                more than one change, hopefully several; the first change is
                not representative of the system.  Did you manually do the
                example?  Did you find flaws in the User Guide or manual
                entries?

        10. Using Aegis
                Did you have problems using [4mAegis[24m?  This is a whole can of
                worms.  If possible, include a shell script similar to the
                tests which accompany [4mAegis[24m, which reproduces the bug.  Exit
                code 1 on failure (bug), exit code 0 on success (for when bug
                is fixed).

        11. The Source Code
                Did you read the code?  Did you write some code?  If you read
                the code and found problems, fixed them, or extended [4mAegis[24m,
                these contributions are most welcome.  I reserve the right to
                modify or reject such contributions.

        The above list is inclusive, not exclusive.  Any and all feedback is
        greatly appreciated, as is the effort and interest required to produce
        it.

[1mLICENSE[0m
        The [4mAegis[24m program is free software; you can redistribute it and/or
        modify it under the terms of the GNU General Public License as
        published by the Free Software Foundation; either version 2 of the
        License, or (at your option) any later version.

        The [4mAegis[24m program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        General Public License for more details.

        It should be in the [4mLICENSE[24m file included in this distribution.

[1mAUTHOR[0m
        Peter MillerE-Mail:   millerp@canb.auug.org.au
        /\/\*                                     WWW:   http://www.canb.auug.org.au/~millerp/

[1mWINDOWS-NT[0m
        It is possible to build Aegis for Windows-NT.  I have only done this
        using the Cygnus freeware CygWin32 system, though it may be possible
        with other Unix porting layers also.

   [1mCaveat[0m
        This document only describes a [1msingle user [22mport of Aegis to Windows
        NT.

        Aegis depends on the underlying security provided by the operating
        system (rather than re-invent yet another security mechanism).
        However, in order to do this, Aegis uses the POSIX [4mseteuid[24m(2) system
        call, which has no direct equivalent on Windows NT.  This makes
        porting difficult.  [1mSingle user [22mports are possible ([4me.g.[24m using Cygwin
        (http://www.cygwin.com/), but are not usually what folks want.

        Compounding this is the fact that many sites want to develop their
        software for both Unix and Windows NT simultaneously.  This means that
        the security of the repository needs to be guaranteed to be handled in
        the same way by both operating systems, otherwise one can act as a
        "back door" into the repository.  Many sites do not have the same
        users and permissions (sourced from the same network register of
        users) on both Unix and Windows NT, making the mapping almost
        impossible even if the security models did actually correspond.

        Most sites using Aegis and Windows NT together do so by running Aegis
        on the Unix systems, but building and testing on the NT systems.  The
        work areas and repository are accessed via Samba or NFS.

   [1mThe Source[0m
        You need to FTP the Cygwin system from RedHat.  It can be found at
                http://www.cygwin.com/
        and then follow the links.  The original version used was B20.1, but
        more recently 1.1.7 has been used.

        It is [4mabsolutely[24m [4messential[24m to run the [4mmkpasswd[24m and [4mmkgroup[24m commands,
        otherwise Aegis will give fatal errors about unknown users and groups.
        See the Cygwin README for instructions.

   [1mMounting Things[0m
        You need to mount a directory onto /tmp, or lots of things, and
        especially [4mbash[24m(1), don't work.  If you are in a heavily networked
        environment, like me, you need to know that using a networked drive
        for /tmp just doesn't work.  I have no idea why.  Use
                mount C:/temp /tmp
        instead.  (Or some other local drive.)

        Just a tip for all of you who, like me, know Unix much better than you
        know Windows-NT: the left-hand mount argument needs to be specified
        with a drive letter ([4me.g.[24m C:[4m)[24m [4mrather[24m [4mthan[24m [4mwith[24m [4ma[24m [4mdouble[24m [4mslash[24m [4m(e.g.[0m
        [4mnot[24m //C[4m)[24m [4munless[24m [4mits[24m [4mWindows-NT[24m [4mname[24m [4mstarts[24m [4mwith[24m [4m\\.[0m

        You need to follow the install instructions about [4m/bin/sh[24m, otherwise
        shell scripts that start with #!/bin/sh don't work, among other
        things.  This includes the ./configure script, and the scripts it
        writes ([4me.g.[24m config.status).

        You will want to mount your various network drives onto the same
        places they appear on your Unix hosts.  This way you don't need to
        learn two names for all your files.

        Mounts persist across Cygwin sessions.  They are stored in a registry
        file somewhere.  You will not need to do all this every time!

   [1mToo Much Administrator[0m
        If you have administrator privilege on your Windows NT box, you need
        to get rid of it.  (Have a second admin account instead.)  This is
        because Windows NT will make the files belong to the wrong user for
        files on [4msome[24m partitions, like [4m/tmp[24m.  (This took me days to work out!)
        This confuses both Aegis [4mand[24m RCS.

        If you get weird "Permission denied" errors from amazingly unlikely
        causes, this is probably why.

   [1mBefore You Start[0m
        There are several pieces of software you need before you can build
        Aegis on Cygwin.

        I'm going to keep mentioning "your local GNU mirror".  You can find
                GNU at http://www.gnu.org, however you are better off using a
                local mirror, and these are scattered around the globe.
                Follow the "mirrors" link on their front page to find your
                closest mirror.  Also, it's often a good idea to configure
                these packages with the "--with-gnu-gettext" option to their
                ./configure commands.

        [1mDo not use WinZip [22mto unpack the tarball.  It has a nasty habit of
                turning all of the newlines into CRLFs.  This will confuse
                [4mlots[24m of utilities, especially GNU Groff.  Use the "[4mtar[24m [4mxzf[0m
                [4maegis-4.24.3.tar.gz[24m" command from within Cygwin.

        Make sure the Cygwin you are using has GNU Groff 1.15 or later
                (use a "groff -v" command).  Grab and install the latest from
                your local GNU mirror, if it isn't.

        util-linux
                You need to get GNU rx, but to make it work you have to find a
                [4mtsort[24m command, so that GNU rx's [4m./configure[24m script works.  Try
                the latest copy of system/misc/util-linux-?.?.tar.gz from the
                metalab.unc.edu Linux archive (or a mirror).  Simply build and
                install [4mmisc-utils/tsort.c[24m by hand.

        GNU rx  Once you have [4mtsort[24m installed, you will be able to get GNU rx
                configured.  Get a copy from your local GNU mirror.

        zlib    You need to grab a copy of [4mzlib[24m; the same source as works for
                Unix will work for Cygwin.  It will install as a static
                library.

        GNU diffutils
                You need GNU diffults, because when you come to configure GNU
                RCS (next) it would otherwise complain about a stupid [4mdiff[24m and
                a missing [4mdiff3[24m command.  The [4minstall-sh[24m script is broken, so
                you'll need to do the final step in the install by hand.

        GNU RCS All of Aegis' tests assume RCS is present.  Also, you are
                going to need [4msomething[24m for a history tool.  The [4minstall-sh[0m
                script is broken, so you'll need to do the final step in the
                install by hand.

   [1mConfigure[0m
        The configure and build step should be the same as for Unix, as
        described above.  All the problems I encountered were to do with
        getting the mounts just right.  (But expect it to be dog slow compared
        to Linux or FreeBSD on the same box.)

        Sharutils
                You need the [4muudecode[24m command for several of the tests, and
                this may be found in the GNU Sharutils package.  You can get a
                copy from your local GNU mirror.

        The configure step is almost the same as for Unix.  I know you are
        itching to get typing, but read through to the install section before
        you configure anything.
                [1mbash$ [22m./configure
                [4m...lots[24m [4mof[24m [4moutput...[0m
                [1mbash$[0m

   [1mBuild[0m
        The build step is exactly the same as for Unix, and you shouldn't
        notice any difference...
                [1mbash$ [22mmake
                [1mbash$[0m

   [1mTest[0m
        The tests are run in the same way as the Unix tests, but you don't
        need to run the set-uid-root variants, because no such thing exists
        under Windows NT.
                [1mbash$ [22mmake sure
                [4m...lots[24m [4mof[24m [4moutput...[0m
                [1mPassed All Tests[0m
                [1mbash$[0m

        Unfortunately, it isn't that simple.  There are a number of things you
        will see go wrong...

        +o Several tests fail because [4med[24m isn't there.

        +o Several tests fail because [4mci[24m (RCS 5.7) dumps core much too often
          for my liking.

        +o A couple of tests fail because they don't expect the ".exe"
          extension on executable files.

        +o A couple of tests (notably, the [4maedist[24m tests) fail because of the
          CRLF [4mvs[24m NL dichotomy.  This means that the expected results don't
          match, not that it isn't working.

        Despite all the bad news, the vast majority of tests pass, and the
        others have good excuses.

   [1mInstall[0m
        Installing the software works as usual, though you need to make some
        choices right at the start (I told you to read this all the way
        through first).  If you want to use the "[4m/usr/local[24m" prefix (or any
        other install prefix) you mount it right at the start.  For anything
        other than the "[4m/usr/local[24m" default prefix, you also needed to give a
        "[1m--prefix=[4m[22mblahblah"[24m [4margument[24m [4mto[24m [4mthe[24m [4mconfigure[24m [4mscript,[24m [4mright[24m [4mat[24m [4mthe[0m
        [4mstart.[0m
                [1mbash$ [4m[22mmake[24m [4minstall[0m
                [4m...lots[24m [4mof[24m [4moutput...[0m
                [1mbash$[0m



Reference Manual                     Aegis                        Build(Aegis)
