]> git.pld-linux.org Git - packages/cups.git/commitdiff
- Release 3. cups-1_1_10-3
authormkochano <mkochano@pld-linux.org>
Tue, 6 Nov 2001 00:34:10 +0000 (00:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Updated %%files:
  * Added "archiv" directory for logrotate.
  * Added %%ghost entries with empty log files.
  * Tightened security: no read access for other on log files.

Changed files:
    cups.spec -> 1.20

cups.spec

index dc8c044f9386e41ea21b3647434c3e2a6019afaa..91b76fd9b692ae6d4e5d77d060e7cd0f4ca218ab 100644 (file)
--- a/cups.spec
+++ b/cups.spec
@@ -3,7 +3,7 @@ Summary(pl):    Popularny System Druku dla Unixa
 Summary(pt_BR):        Sistema Unix de Impressão
 Name:          cups
 Version:       1.1.10
-Release:       2
+Release:       3
 License:       GPL/LGPL
 Group:         Applications/System
 Group(de):     Applikationen/System
@@ -147,7 +147,8 @@ autoconf
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d}
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,logrotate.d} \
+       $RPM_BUILD_ROOT/var/log/{,archiv/}cups
 
 %{__make} DESTDIR=$RPM_BUILD_ROOT install 
 
@@ -155,6 +156,8 @@ install %{SOURCE1}  $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2}     $RPM_BUILD_ROOT/etc/pam.d/%{name}
 install %{SOURCE3}     $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
+touch $RPM_BUILD_ROOT/var/log/cups/{access_log,error_log,page_log}
+
 gzip -9nf *.txt
 
 %clean
@@ -215,8 +218,12 @@ fi
 %lang(es) %{_datadir}/locale/es/cups_es
 %lang(fr) %{_datadir}/locale/fr/cups_fr
 %lang(it) %{_datadir}/locale/it/cups_it
-/var/log/cups
 /var/spool/cups
+%attr(750,root,root) %dir /var/log/archiv/cups
+%attr(750,root,root) %dir /var/log/cups
+%attr(640,root,root) %ghost /var/log/cups/access_log
+%attr(640,root,root) %ghost /var/log/cups/error_log
+%attr(640,root,root) %ghost /var/log/cups/page_log
 
 %files libs
 %defattr(644,root,root,755)
This page took 0.037796 seconds and 4 git commands to generate.