Revert "syslog-ng: Update from 3.5.6 to 3.6.1"

This reverts commit e2ada42623.
This commit is contained in:
William A. Kennington III
2014-11-02 17:22:28 -08:00
parent 617cd15c8e
commit 8e1072fd60
3 changed files with 20 additions and 8 deletions
-1
View File
@@ -131,6 +131,5 @@ in zipModules ([]
++ obsolete' [ "programs" "bash" "enable" ] ++ obsolete' [ "programs" "bash" "enable" ]
++ obsolete' [ "services" "samba" "defaultShare" ] ++ obsolete' [ "services" "samba" "defaultShare" ]
++ obsolete' [ "services" "syslog-ng" "serviceName" ] ++ obsolete' [ "services" "syslog-ng" "serviceName" ]
++ obsolete' [ "services" "syslog-ng" "listenToJournal" ]
) )
+16 -2
View File
@@ -43,6 +43,15 @@ in {
The package providing syslog-ng binaries. The package providing syslog-ng binaries.
''; '';
}; };
listenToJournal = mkOption {
type = types.bool;
default = true;
description = ''
Whether syslog-ng should listen to the syslog socket used
by journald, and therefore receive all logs that journald
produces.
'';
};
extraModulePaths = mkOption { extraModulePaths = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = []; default = [];
@@ -65,7 +74,7 @@ in {
configHeader = mkOption { configHeader = mkOption {
type = types.lines; type = types.lines;
default = '' default = ''
@version: 3.6 @version: 3.5
@include "scl.conf" @include "scl.conf"
''; '';
description = '' description = ''
@@ -77,13 +86,18 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
systemd.sockets.syslog = mkIf cfg.listenToJournal {
wantedBy = [ "sockets.target" ];
socketConfig.Service = "syslog-ng.service";
};
systemd.services.syslog-ng = { systemd.services.syslog-ng = {
description = "syslog-ng daemon"; description = "syslog-ng daemon";
preStart = "mkdir -p /{var,run}/syslog-ng"; preStart = "mkdir -p /{var,run}/syslog-ng";
wantedBy = [ "multi-user.target" ]; wantedBy = optional (!cfg.listenToJournal) "multi-user.target";
after = [ "multi-user.target" ]; # makes sure hostname etc is set after = [ "multi-user.target" ]; # makes sure hostname etc is set
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
Sockets = if cfg.listenToJournal then "syslog.socket" else null;
StandardOutput = "null"; StandardOutput = "null";
Restart = "on-failure"; Restart = "on-failure";
ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}"; ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}";
+4 -5
View File
@@ -1,17 +1,16 @@
{ stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl { stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl }:
, riemann_c_client, protobufc, yacc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "syslog-ng-${version}"; name = "syslog-ng-${version}";
version = "3.6.1"; version = "3.5.6";
src = fetchurl { src = fetchurl {
url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/${version}/source/syslog-ng_${version}.tar.gz"; url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/${version}/source/syslog-ng_${version}.tar.gz";
sha256 = "1s3lsxk2pky3jkfamkw5ivpxq2kazikcvdgpmxiyn5w10dwkd0m7"; sha256 = "19i1idklpgn6mz0mg7194by5fjgvvh5n4v2a0rr1z0778l2038kc";
}; };
buildInputs = [ eventlog pkgconfig glib python systemd perl riemann_c_client protobufc yacc ]; buildInputs = [ eventlog pkgconfig glib python systemd perl ];
configureFlags = [ configureFlags = [
"--enable-dynamic-linking" "--enable-dynamic-linking"