|
Estimated build time: 0.2 SBU Estimated required disk space: 17 MB |
Gawk is an awk implementation that is used to manipulate text files.
Installed programs: awk (link to gawk), gawk, gawk-3.1.3, grcat, igawk, pgawk, pgawk-3.1.3 and pwcat
Gawk depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed.
First apply a patch to fix the following issues:
Gawk's default location for some of its executables is $prefix/libexec/awk. This location doesn't comply with the FHS, which never even mentions a directory called libexec. The patch makes it possible to pass a --libexecdir switch to the configure script, so that we can use a more appropriate location for the grcat and pwcat binaries: /usr/bin.
Gawk's default data directory is $prefix/share/awk. But package-specific directories should be named using the package name and version number (for example: gawk-7.7.2.) and not simply the package name, as there may be different versions of a package installed on the system. The patch changes the name of the data directory to the correct $prefix/share/gawk-3.1.3.
The patch also ensures that this data directory, including its contents, is removed on a make uninstall.
patch -Np1 -i ../gawk-3.1.3-libexecdir.patch |
Now prepare Gawk for compilation:
./configure --prefix=/usr --libexecdir=/usr/bin |
Compile the package:
make |
This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:
make check |
And install the package:
make install |
Hosting by: Hurra Communications Ltd.
Generated: 2007-01-26 17:57:39