]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - rsyslog/rsyslog.nm
grep: Update to 2.17.
[people/ms/ipfire-3.x.git] / rsyslog / rsyslog.nm
CommitLineData
3354f749 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
3354f749
MT
4###############################################################################
5
802ea3af 6name = rsyslog
f1f33be6 7version = 5.8.6
cf106a21 8release = 4
3354f749 9
9cc8d938 10groups = System/Daemons
802ea3af
MT
11url = http://www.rsyslog.com/
12license = GPLv3+
13summary = Enhanced system logging and kernel message trapping daemon.
3354f749 14
802ea3af 15description
3354f749
MT
16 Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL,
17 syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part,
18 and fine grain output format control. It is compatible with stock sysklogd
19 and can be used as a drop-in replacement. Rsyslog is simple to set up, with
20 advanced features suitable for enterprise-class, encryption-protected syslog
21 relay chains.
802ea3af
MT
22end
23
802ea3af
MT
24source_dl = http://www.rsyslog.com/files/download/rsyslog/
25
802ea3af
MT
26build
27 requires
28 gnutls-devel
29 libgcrypt-devel
30 libnet-devel
31 zlib-devel
32 end
3354f749 33
a165d841
MT
34 CFLAGS += \
35 -DSYSLOGD_PIDNAME=\"syslogd.pid\"
36
802ea3af 37 configure_options += \
802ea3af
MT
38 --with-systemdsystemunitdir=/lib/systemd/system \
39 --disable-static \
40 --disable-testbench \
41 --enable-gnutls \
42 --disable-gssapi-krb5 \
43 --enable-imfile \
44 --disable-libdbi \
45 --enable-mail \
46 --disable-mysql \
47 --enable-omprog \
48 --enable-omudpspoof \
49 --enable-omuxsock \
50 --disable-pgsql \
51 --enable-pmlastmsg \
52 --disable-relp \
53 --disable-snmp \
54 --enable-unlimited-select
3354f749 55
802ea3af
MT
56 install_cmds
57 mkdir -pv %{BUILDROOT}/etc/{logrotate.d,rsyslog.d,sysconfig}
3354f749 58
802ea3af
MT
59 cp -vf %{DIR_SOURCE}/rsyslog.conf %{BUILDROOT}/etc/rsyslog.conf
60 cp -vf %{DIR_SOURCE}/rsyslog.sysconfig %{BUILDROOT}/etc/sysconfig/rsyslog
61 cp -vf %{DIR_SOURCE}/rsyslog.log %{BUILDROOT}/etc/logrotate.d/syslog
62 end
63end
3354f749 64
802ea3af
MT
65packages
66 package %{name}
67 requires = logrotate
a165d841
MT
68 provides += syslog
69
70 prerequires = systemd-units
71
72 script postin
73 for n in /var/log/{messages,secure,maillog,spooler}; do
74 [ -f "${n}" ] && continue
75 umask 066 && touch ${n}
76 done
a165d841
MT
77 end
78
79 script preun
80 /bin/systemctl --no-reload disable rsyslog.service >/dev/null 2>&1 || :
81 /bin/systemctl stop rsyslog.service 2>&1 || :
82 end
83
84 script postun
85 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
86 end
87
cf106a21
SS
88 # Disable and stop rsyslog after update, because we use the
89 # journal daemon from systemd from now.
a165d841
MT
90 script postup
91 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
cf106a21
SS
92 /bin/systemctl disable rsyslog.service >/dev/null 2>&1 || :
93 /bin/systemctl stop rsyslog.service >/dev/null 2>&1 || :
a165d841 94 end
802ea3af 95 end
1f9bc2f0
MT
96
97 package %{name}-debuginfo
98 template DEBUGINFO
99 end
802ea3af 100end