Patch provided by Adrian Portelli via PR pkg/22323 with some changes by me
(GCC 3.x fixes)
Changes:
* Made the source ansi compliant and fixed namespace usage.
* Made debuging a command line switch.
* Converted code to use namespaces.
- Honour PKG_SYSCONFDIR.
- Automatically install configuration file from sample directory.
- Use RCD_SCRIPTS to automatically handle the rc.d script.
- MESSAGE is not needed because of the above two points (standard messages
are used).
While here, avoid overriding CFLAGS while building and use the right C++
compiler (from CXX's value).
Bump PKGREVISION to 1.