721d82152e
* Using libtool. * fixes configure option for pidfile. * tell sysconfigdir to configure. * syslog2ng is using awk, add runtime dependency on awk and fix shebang. * and let not to patch hard-coded uname path for NetBSD specific. * VARBASE is used for various directory, set to BUILDE_DEFS. * remove distractions from PLIST, libtoolized shlib files and an empty line. PR pkg/45419 * fixes config file handling with CONF_FILES. * require dbdir specified by --localstatedir. Bump PKGREVISION.
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
$NetBSD: patch-ac,v 1.2 2011/10/09 10:59:32 obache Exp $
|
|
|
|
# add NetBSD support and fix some paths
|
|
|
|
--- contrib/syslog2ng.orig Thu Jun 19 14:24:03 2003
|
|
+++ contrib/syslog2ng Thu Jun 19 14:24:13 2003
|
|
@@ -5,18 +5,24 @@
|
|
# Translator from syslog.conf to syslog-ng.conf
|
|
# by Jonathan W. Marks <j-marks@uiuc.edu>
|
|
#
|
|
-# Rev 2
|
|
+# Rev 2.1
|
|
|
|
BEGIN {
|
|
# Handle the various platforms- determine proper log device
|
|
- "/bin/uname -s" | getline sysname;
|
|
- close("/bin/uname -s");
|
|
+ "@UNAME@ -s" | getline sysname;
|
|
+ close("@UNAME@ -s");
|
|
if (sysname == "SunOS") {
|
|
LOGDEVTYPE="sun-streams";
|
|
+ LOGDEVPATH="/dev/log";
|
|
} else if (sysname == "AIX") {
|
|
LOGDEVTYPE="unix-dgram";
|
|
+ LOGDEVPATH="/dev/log";
|
|
} else if (sysname == "Linux") {
|
|
LOGDEVTYPE="unix-stream";
|
|
+ LOGDEVPATH="/dev/log";
|
|
+ } else if (sysname == "NetBSD") {
|
|
+ LOGDEVTYPE="unix-dgram";
|
|
+ LOGDEVPATH="/var/run/log";
|
|
} else {
|
|
print "!!! Unsupported system: " sysname ".";
|
|
exit 1;
|
|
@@ -29,7 +35,7 @@
|
|
|
|
print \
|
|
"source local {\n" \
|
|
-" " LOGDEVTYPE "(\"/dev/log\");\n" \
|
|
+" " LOGDEVTYPE "(\"" LOGDEVPATH "\");\n" \
|
|
" udp(ip(0.0.0.0) port(514));\n" \
|
|
" internal();\n" \
|
|
"};\n";
|