SPECS: varnish.spec - add vcl.conf - standard %config perms

glen glen at pld-linux.org
Fri Dec 1 10:12:38 CET 2006


Author: glen                         Date: Fri Dec  1 09:12:38 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add vcl.conf
- standard %config perms

---- Files affected:
SPECS:
   varnish.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/varnish.spec
diff -u SPECS/varnish.spec:1.9 SPECS/varnish.spec:1.10
--- SPECS/varnish.spec:1.9	Fri Dec  1 09:35:19 2006
+++ SPECS/varnish.spec	Fri Dec  1 10:12:33 2006
@@ -3,13 +3,14 @@
 Summary(pl):	Varnish - wydajny akcelerator HTTP
 Name:		varnish
 Version:	1.0.2
-Release:	0.7
+Release:	0.8
 License:	BSD-like
 Group:		Daemons
 Source0:	http://dl.sourceforge.net/varnish/%{name}-%{version}.tar.gz
 # Source0-md5:	d905f63a6665224c370154eb006ca4cc
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Source3:	%{name}.conf
 URL:		http://www.varnish-cache.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -71,14 +72,16 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig},/var/lib/varnish}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# make dirs after make install to know which ones needs spec and which ones make install
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig},/var/lib/varnish}
+
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/varnish
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/varnish
-#install etc/vcl.conf $RPM_BUILD_ROOT%{_sysconfdir}/vcl.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/vcl.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -100,7 +103,7 @@
 %defattr(644,root,root,755)
 %doc INSTALL LICENSE README ChangeLog
 %dir %{_sysconfdir}
-#%config(noreplace) %{_sysconfdir}/vcl.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vcl.conf
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/varnish
 %attr(754,root,root) /etc/rc.d/init.d/varnish
 %attr(755,root,root) %{_sbindir}/varnishd
@@ -142,6 +145,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2006/12/01 09:12:33  glen
+- add vcl.conf
+- standard %config perms
+
 Revision 1.9  2006/12/01 08:35:19  blues
 - config is missing
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/varnish.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list