packages: tacacs/tacacs.spec - created log files with proper permissions, l...
gotar
gotar at pld-linux.org
Thu Sep 23 18:15:52 CEST 2010
Author: gotar Date: Thu Sep 23 16:15:52 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- created log files with proper permissions, ldconfig in %post(un)
---- Files affected:
packages/tacacs:
tacacs.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/tacacs/tacacs.spec
diff -u packages/tacacs/tacacs.spec:1.4 packages/tacacs/tacacs.spec:1.5
--- packages/tacacs/tacacs.spec:1.4 Thu Sep 23 00:19:31 2010
+++ packages/tacacs/tacacs.spec Thu Sep 23 18:15:46 2010
@@ -88,7 +88,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{logrotate.d,pam.d,rc.d/init.d,sysconfig}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{logrotate.d,pam.d,rc.d/init.d,sysconfig},/var/log}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -99,6 +99,10 @@
install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+for n in tac_plus.acct tac_plus.log tacwho.log; do
+ :> $RPM_BUILD_ROOT/var/log/$n
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -107,6 +111,13 @@
%useradd -u 29 -d %{_localstatedir} -s /bin/false -M -r -c "%{name}" -g radius radius
%post
+/sbin/ldconfig
+for n in /var/log/{tac_plus.acct,tac_plus.log,tacwho.log}; do
+ [ -f $n ] && continue
+ touch $n
+ chmod 660 $n
+ chown root:radius $n
+done
/sbin/chkconfig --add %{name}
%service %{name} restart
@@ -117,6 +128,7 @@
fi
%postun
+/sbin/ldconfig
if [ "$1" = "0" ]; then
%userremove radius
%groupremove radius
@@ -137,6 +149,7 @@
%attr(755,root,root) %{_libdir}/libtacacs.so.1.*.*
%attr(755,root,root) %ghost %{_libdir}/libtacacs.so.?
%{_datadir}/%{name}+
+%attr(660,root,radius) %ghost /var/log/tac*
%files devel
%defattr(644,root,root,755)
@@ -156,12 +169,15 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2010/09/23 16:15:46 gotar
+- created log files with proper permissions, ldconfig in %post(un)
+
Revision 1.4 2010/09/22 22:19:31 gotar
- use radius/radius, enabled finger and maxsess,
- packaged COPYING and FAQ, narrower wildcards, 640 for logrotate script,
restored -devel and -static (with .la file moved to the latter),
- S/KEY won't compile (dynamic with proper _libdir), BR: libtool, cosmetics
-- shouldn't this be named tacacs+?
+- shouldn't this be named 'tacacs+'?
Revision 1.3 2010/05/14 00:21:49 sparky
- BR: bison, flex, perl-base, rpm-pythonprov
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tacacs/tacacs.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list