[packages/sudo] - rel 2; don't duplicate logs (log only to syslog; also helps in case when /var/log has no free spac

arekm arekm at pld-linux.org
Fri Aug 12 22:32:08 CEST 2016


commit cec6feebf9eda1539a77f175699a8beb675325ac
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Aug 12 22:32:01 2016 +0200

    - rel 2; don't duplicate logs (log only to syslog; also helps in case when /var/log has no free space); explictly enable tty tickets

 sudo.spec | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/sudo.spec b/sudo.spec
index c09124a..dde3b1f 100644
--- a/sudo.spec
+++ b/sudo.spec
@@ -29,7 +29,7 @@ Summary(uk.UTF-8):	Дозволяє вказаним користувачам в
 Name:		sudo
 # please see doc/UPGRADE for important changes each time updating sudo
 Version:	1.8.17p1
-Release:	1
+Release:	2
 Epoch:		1
 License:	BSD
 Group:		Applications/System
@@ -191,8 +191,8 @@ cp -f /usr/share/automake/config.sub .
 	--with-env-editor \
 	--with-ignore-dot \
 	--with-incpath=/usr/include/security \
-	--with-logfac=auth \
-	--with-logging=both \
+	--with-logfac=authpriv \
+	--with-logging=syslog \
 	--with-loglen=320 \
 	--with-logpath=/var/log/sudo \
 	--with-long-otp-prompt \
@@ -200,6 +200,7 @@ cp -f /usr/share/automake/config.sub .
 	--with-pam-login \
 	--with-passprompt="[sudo] password for %%p: " \
 	--with-secure-path="/bin:/sbin:/usr/bin:/usr/sbin" \
+	--with-tty-tickets \
 	--with-exampledir=%{_examplesdir}/%{name}-%{version} \
 	--enable-tmpfiles.d=%{systemdtmpfilesdir} \
 	%{__with kerberos5 kerb5} \
@@ -235,8 +236,6 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/sudo
 %{__sed} -i -e '/pam_keyinit.so/d' $RPM_BUILD_ROOT/etc/pam.d/sudo*
 %endif
 
-touch $RPM_BUILD_ROOT/var/log/sudo
-
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/sudo/*.la
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
@@ -313,7 +312,6 @@ fi
 %{_mandir}/man8/visudo.8*
 %{systemdtmpfilesdir}/%{name}.conf
 %{_examplesdir}/%{name}-%{version}
-%attr(600,root,root) %ghost /var/log/sudo
 %attr(700,root,root) /var/log/sudo-io
 %attr(700,root,root) %dir /var/db/sudo
 %dir %attr(711,root,root) /var/run/sudo
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sudo.git/commitdiff/cec6feebf9eda1539a77f175699a8beb675325ac



More information about the pld-cvs-commit mailing list