]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - rsyslog/rsyslog.nm
json-glib: New package.
[people/ms/ipfire-3.x.git] / rsyslog / rsyslog.nm
index cb19dc454f4772e8e6ae1fccc3e859f625e7b95d..1956a38d224aa7748c3b368196cc642d5a2db027 100644 (file)
@@ -4,10 +4,10 @@
 ###############################################################################
 
 name       = rsyslog
-version    = 5.8.0
-release    = 2
+version    = 5.8.6
+release    = 4
 
-groups     = Base System/Daemons
+groups     = System/Daemons
 url        = http://www.rsyslog.com/
 license    = GPLv3+
 summary    = Enhanced system logging and kernel message trapping daemon.
@@ -21,13 +21,8 @@ description
        relay chains.
 end
 
-provides  += syslog
-
 source_dl  = http://www.rsyslog.com/files/download/rsyslog/
 
-CFLAGS    += \
-       -DSYSLOGD_PIDNAME=\"syslogd.pid\"
-
 build
        requires
                gnutls-devel
@@ -36,9 +31,10 @@ build
                zlib-devel
        end
 
+       CFLAGS += \
+               -DSYSLOGD_PIDNAME=\"syslogd.pid\"
+
        configure_options += \
-               --exec-prefix= \
-               --libdir=/lib \
                --with-systemdsystemunitdir=/lib/systemd/system \
                --disable-static \
                --disable-testbench \
@@ -69,5 +65,36 @@ end
 packages
        package %{name}
                requires = logrotate
+               provides += syslog
+
+               prerequires = systemd-units
+
+               script postin
+                       for n in /var/log/{messages,secure,maillog,spooler}; do
+                               [ -f "${n}" ] && continue
+                               umask 066 && touch ${n}
+                       done
+               end
+
+               script preun
+                       /bin/systemctl --no-reload disable rsyslog.service >/dev/null 2>&1 || :
+                       /bin/systemctl stop rsyslog.service 2>&1 || :
+               end
+
+               script postun
+                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               # Disable and stop rsyslog after update, because we use the
+               # journal daemon from systemd from now.
+               script postup
+                       /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+                       /bin/systemctl disable rsyslog.service >/dev/null 2>&1 || :
+                       /bin/systemctl stop rsyslog.service >/dev/null 2>&1 || :
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end