- rel 4; keep proper version in config file auto/th/syslog-ng-3.27.1-4
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 14 May 2020 08:35:12 +0000 (10:35 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 14 May 2020 08:35:12 +0000 (10:35 +0200)
syslog-ng.conf
syslog-ng.spec

index bf0fe4cb06812d536c6ce690873165921b74b2d8..6ac66366451ada61103e749e353388e0f6cf6e30 100644 (file)
@@ -1,4 +1,4 @@
-@version: 3.23
+@version: #VERSION#
 @include "scl.conf"
 #
 # Syslog-ng configuration for PLD Linux
index fe9daf4d7a311132efe255e1917b3ddae94c01b9..66e8fd0dc34ef2d4d3182f244b2ec2b471bf718f 100644 (file)
@@ -39,7 +39,7 @@ Summary(pl.UTF-8):    Syslog-ng - systemowy demon logujący nowej generacji
 Summary(pt_BR.UTF-8):  Daemon de log nova geração
 Name:          syslog-ng
 Version:       3.27.1
-Release:       3
+Release:       4
 License:       GPL v2+ with OpenSSL exception
 Group:         Daemons
 Source0:       https://github.com/balabit/syslog-ng/archive/%{name}-%{version}.tar.gz
@@ -469,7 +469,7 @@ ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libsecret-storage.so.*.*
 %endif
 
 %{__sed} -e 's|@@SBINDIR@@|%{_sbindir}|g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
-cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
+sed -e 's,#VERSION#,%{mver},' < %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}
 
This page took 0.134461 seconds and 4 git commands to generate.