SPECS: nginx.spec - typos - no need to duplicate same URL and Lice...
qboosh
qboosh at pld-linux.org
Sun Dec 2 00:46:01 CET 2007
Author: qboosh Date: Sat Dec 1 23:46:01 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- typos
- no need to duplicate same URL and License in subpackages
- sane perl file permissions
- ensure sane umask before touch
- config flags for proxy.conf
---- Files affected:
SPECS:
nginx.spec (1.73 -> 1.74)
---- Diffs:
================================================================
Index: SPECS/nginx.spec
diff -u SPECS/nginx.spec:1.73 SPECS/nginx.spec:1.74
--- SPECS/nginx.spec:1.73 Sun Dec 2 00:22:26 2007
+++ SPECS/nginx.spec Sun Dec 2 00:45:55 2007
@@ -1,5 +1,6 @@
# $Revision$, $Date$
# TODO
+# - fix sysconfdir duplicates
# - /etc/sysconfig/nginx file
# - missing perl build/install requires
# - maybe -with-cpu-opt=CPU (pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc32, sparc64, ppc64) ?
@@ -95,11 +96,11 @@
%description -l pl.UTF-8
Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
-a także IMAP/POP3 proxy. Nginx został napisany przez Igora Sysoev'a
+a także IMAP/POP3 proxy. Nginx został napisany przez Igora Sysoeva
na potrzeby serwisu Rambler.ru. Jest to drugi pod względem ilości
odwiedzin serwis w Rosji i działa od ponad dwóch i pół roku. Igor
opublikował źródła na licencji BSD. Mimo, że projekt jest ciągle
-w fazie beta, już zasłynął dzieki stabilności, bogactwu dodatków,
+w fazie beta, już zasłynął dzięki stabilności, bogactwu dodatków,
prostej konfiguracji oraz małej "zasobożerności".
Niezbędne pliki dla Nginx.
@@ -107,9 +108,7 @@
%package light
Summary: High perfomance HTTP and reverse proxy server
Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
-License: BSD-like
Group: Networking/Daemons
-URL: http://nginx.net/
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -134,9 +133,7 @@
%package perl
Summary: High perfomance HTTP and reverse proxy server
Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
-License: BSD-like
Group: Networking/Daemons
-URL: http://nginx.net/
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -157,9 +154,7 @@
%package mail
Summary: High perfomance HTTP and reverse proxy server
Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
-License: BSD-like
Group: Networking/Daemons
-URL: http://nginx.net/
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -182,9 +177,7 @@
%package standard
Summary: Configuration files and documentation for Nginx
Summary(pl.UTF-8): Pliki konfiguracyjne i dokumentacja dla Nginx
-License: BSD-like
Group: Networking/Daemons
-URL: http://nginx.net/
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -209,11 +202,11 @@
%description standard -l pl.UTF-8
Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
-a także IMAP/POP3 proxy. Nginx został napisany przez Igora Sysoev'a
+a także IMAP/POP3 proxy. Nginx został napisany przez Igora Sysoeva
na potrzeby serwisu Rambler.ru. Jest to drugi pod względem ilości
odwiedzin serwis w Rosji i działa od ponad dwóch i pół roku. Igor
opublikował źródła na licencji BSD. Mimo, że projekt jest ciągle
-w fazie beta, już zasłynął dzieki stabilności, bogactwu dodatków,
+w fazie beta, już zasłynął dzięki stabilności, bogactwu dodatków,
prostej konfiguracji oraz małej "zasobożerności".
To jest standardowa wersja Nginx, bez obsługi Perla oraz proxy dla
@@ -222,7 +215,6 @@
%package -n monit-rc-nginx
Summary: Nginx support for monit
Summary(pl.UTF-8): Wsparcie Nginx dla monit
-License: BSD-like
Group: Applications/System
URL: http://nginx.eu/
Requires: %{name} = %{version}-%{release}
@@ -439,6 +431,7 @@
%post standard
for a in access.log error.log; do
if [ ! -f /var/log/%{name}/nginx-standard_$a ]; then
+ umask 022
touch /var/log/%{name}/nginx-standard_$a
chown nginx:nginx /var/log/%{name}/nginx-standard_$a
chmod 644 /var/log/%{name}/nginx-standard_$a
@@ -451,6 +444,7 @@
%post light
for a in access.log error.log; do
if [ ! -f /var/log/%{name}/nginx-light_$a ]; then
+ umask 022
touch /var/log/%{name}/nginx-light_$a
chown nginx:nginx /var/log/%{name}/nginx-light_$a
chmod 644 /var/log/%{name}/nginx-light_$a
@@ -463,6 +457,7 @@
%post perl
for a in access.log error.log; do
if [ ! -f /var/log/%{name}/nginx-perl_$a ]; then
+ umask 022
touch /var/log/%{name}/nginx-perl_$a
chown nginx:nginx /var/log/%{name}/nginx-perl_$a
chmod 644 /var/log/%{name}/nginx-perl_$a
@@ -475,6 +470,7 @@
%post mail
for a in access.log error.log; do
if [ ! -f /var/log/%{name}/nginx-mail_$a ]; then
+ umask 022
touch /var/log/%{name}/nginx-mail_$a
chown nginx:nginx /var/log/%{name}/nginx-mail_$a
chmod 644 /var/log/%{name}/nginx-mail_$a
@@ -524,8 +520,9 @@
%dir %{_nginxdir}/html
%dir %{_nginxdir}/errors
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
+# XXX: duplicates, don't use such glob here
%attr(640,root,root) %{_sysconfdir}/*[_-]*
-%attr(640,root,root) %{_sysconfdir}/proxy.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/proxy.conf
%attr(640,root,root) %{_sysconfdir}/mime.types
%attr(750,root,root) %dir /var/log/archive/%{name}
%attr(750,%{name},logs) /var/log/%{name}
@@ -566,8 +563,8 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}-perl.conf
%dir %{perl_vendorarch}/auto/%{name}
%attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
-%attr(700,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.bs
-%attr(700,root,root) %{perl_vendorarch}/%{name}.pm
+%{perl_vendorarch}/auto/%{name}/%{name}.bs
+%{perl_vendorarch}/%{name}.pm
%endif
%files -n monit-rc-nginx
@@ -589,6 +586,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.74 2007-12-01 23:45:55 qboosh
+- typos
+- no need to duplicate same URL and License in subpackages
+- sane perl file permissions
+- ensure sane umask before touch
+- config flags for proxy.conf
+
Revision 1.73 2007-12-01 23:22:26 ankry
- deja vu ?
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nginx.spec?r1=1.73&r2=1.74&f=u
More information about the pld-cvs-commit
mailing list