This repository was archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from balabit/gsoc-fixes
GsoC fixes
- Loading branch information
Showing
15 changed files
with
116 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{% extends "templates/error_under_constr.md" %} | ||
{% block title %} | ||
# project structure | ||
{% endblock %} | ||
# Project structure | ||
|
||
The following directories are the most substantial ones: | ||
|
||
* `lib/`: common source code used by syslog-ng | ||
* `modules/`: each module in syslog-ng has a directory here, like `redis` | ||
* `syslog-ng`: the source code of the `syslog-ng` binary | ||
* `syslog-ng-ctl`: the source code of the `syslog-ng-ctl` command line utility | ||
* `tests`: the home of unit tests and functional tests (but there are tests next to their tested functionality) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{% extends "templates/error_under_constr.md" %} | ||
{% block title %} | ||
# compile first | ||
{% endblock %} | ||
# Compile first | ||
|
||
This chapter describes the building and testing process of syslog-ng. | ||
|
||
If you want to develop syslog-ng, you should be familiar with building syslog-ng | ||
from source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,58 @@ | ||
{% extends "templates/error_under_constr.md" %} | ||
{% block title %} | ||
# compile | ||
{% endblock %} | ||
# Compiling | ||
|
||
This description demonstrates the building steps on the upstream repository, but you can apply these steps | ||
on your forked repository as well. | ||
|
||
## Building | ||
|
||
1. Clone your forked repository locally | ||
|
||
``` | ||
git clone https://github.com/balabit/syslog-ng.git | ||
``` | ||
|
||
2. Step into the directory `syslog-ng` directory and run `autogen.sh`: | ||
|
||
``` | ||
./autogen.sh | ||
``` | ||
|
||
This script will clone the Git submodules and initialize the build system. The | ||
result of the execution should be a `configure` script. | ||
|
||
3. Create build directory | ||
We prefer to build syslog-ng in a dedicated directory, so your Git repo is kept | ||
tidy. | ||
|
||
``` | ||
mkdir build | ||
cd build | ||
``` | ||
|
||
4. Run the `configure` scipt: | ||
|
||
``` | ||
../configure --enable-debug --prefix=$HOME/install/syslog-ng | ||
``` | ||
|
||
You can pass additional parameters to configure, but these are the most common ones. | ||
If you run `../configure --help` you can see all the valid parameters. | ||
The result of the configuration process is several new `Makefile`s in your build directory. | ||
|
||
5. Run `make`: | ||
|
||
``` | ||
make -j | ||
``` | ||
|
||
The `-j` flag will parallelize the compilation process. If `make` works for you (without `-j`), | ||
but `make -j` does not, that is a bug. | ||
|
||
### Expected outcome ### | ||
|
||
You should have a freshly built syslog-ng by the end of this step. | ||
|
||
## Cleanup | ||
|
||
You can execute `make clean` to remove the build artifacts. `make distclean` will also | ||
remove the `configure` script. You can also completely remove the content of your build directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
{% extends "templates/error_under_constr.md" %} | ||
{% block title %} | ||
# testing | ||
{% endblock %} | ||
# Testing | ||
|
||
## The make check command | ||
|
||
Run `make check`. This will compile and execute the unit | ||
tests. If everything is OK, you should see something like this: | ||
|
||
``` | ||
============================================================================ | ||
Testsuite summary for syslog-ng 3.8.0alpha0 | ||
============================================================================ | ||
# TOTAL: 82 | ||
# PASS: 82 | ||
# SKIP: 0 | ||
# XFAIL: 0 | ||
# FAIL: 0 | ||
# XPASS: 0 | ||
# ERROR: 0 | ||
============================================================================ | ||
``` | ||
|
||
If something goes wrong, check the logs of the tests (`test-suite.log`). You can debug | ||
the failing unit test with a debugger. | ||
|
||
## The make distcheck command | ||
|
||
The `make distcheck` command is very similar to `make check`, but it also ensures that | ||
the distribution tarball can be properly used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "templates/error_under_constr.md" %} | ||
{% block title %} | ||
# cleanup | ||
{% endblock %} | ||
# Install | ||
|
||
You can install your freshly built syslog-ng with `make install`. Note that | ||
the files will be copied under `$prefix` (what you have set for `configure` with `--prefix=`). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.