Commit 01c8307d authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1846 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1846 | ingvar | 2007-08-14 23:57:58 +0200 (Tue, 14 Aug 2007) | 6 lines
  
  * Tue Aug 14 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.svn
  - Update for 1.1 branch
  - Added the devel package for the header files and static library files
  - Added a varnish user, and fixed the init script accordingly
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1849 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e8de1a08
...@@ -10,6 +10,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ...@@ -10,6 +10,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release} Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
Requires: logrotate Requires: logrotate
Requires(pre): shadow-utils
Requires(post): /sbin/chkconfig Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service Requires(preun): /sbin/service
...@@ -34,16 +35,15 @@ BuildRequires: ncurses-devel ...@@ -34,16 +35,15 @@ BuildRequires: ncurses-devel
Libraries for %{name}. Libraries for %{name}.
Varnish is a high-performance HTTP accelerator. Varnish is a high-performance HTTP accelerator.
## Removed the -devel package for now %package libs-devel
#%package devel Summary: Development files for %{name}-libs
#Summary: Development libraries for %{name} Group: System Environment/Libraries
#Group: System Environment/Libraries BuildRequires: ncurses-devel
#BuildRequires: ncurses-devel Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
#Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
# %description libs-devel
#%description devel Development files for %{name}-libs
#Development libraries for %{name}. Varnish is a high-performance HTTP accelerator
#Varnish is a high-performance HTTP accelerator
%prep %prep
%setup -q %setup -q
...@@ -55,8 +55,7 @@ Varnish is a high-performance HTTP accelerator. ...@@ -55,8 +55,7 @@ Varnish is a high-performance HTTP accelerator.
%build %build
# Remove "--disable static" if you want to build static libraries # Remove "--disable static" if you want to build static libraries
# (ie for the devel package) %configure --disable-static --localstatedir=/var/lib
%configure --disable-static
# We have to remove rpath - not allowed in Fedora # We have to remove rpath - not allowed in Fedora
# (This problem only visible on 64 bit arches) # (This problem only visible on 64 bit arches)
...@@ -82,8 +81,8 @@ make install DESTDIR=%{buildroot} INSTALL="install -p" ...@@ -82,8 +81,8 @@ make install DESTDIR=%{buildroot} INSTALL="install -p"
# None of these for fedora # None of these for fedora
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';' find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
# Remove this line to build the devel package # Remove this line to build a devel package with symlinks
find %{buildroot}/%{_libdir}/ -name '*.so' -type l -exec rm -f {} ';' #find %{buildroot}/%{_libdir}/ -name '*.so' -type l -exec rm -f {} ';'
mkdir -p %{buildroot}/var/lib/varnish mkdir -p %{buildroot}/var/lib/varnish
mkdir -p %{buildroot}/var/log/varnish mkdir -p %{buildroot}/var/log/varnish
...@@ -118,12 +117,29 @@ rm -rf %{buildroot} ...@@ -118,12 +117,29 @@ rm -rf %{buildroot}
%{_libdir}/*.so.* %{_libdir}/*.so.*
%doc LICENSE %doc LICENSE
## Removed the -devel package for now %files libs-devel
#%files devel %defattr(-,root,root,-)
#%defattr(-,root,root,-) %{_libdir}/libvarnish.so
#%{_libdir}/libvarnish.so %{_libdir}/libvarnishapi.so
#%{_libdir}/libvarnishapi.so %{_libdir}/libvcl.so
#%{_libdir}/libvcl.so %{_includedir}/varnish/shmlog.h
%{_includedir}/varnish/shmlog_tags.h
%{_includedir}/varnish/stat_field.h
%{_includedir}/varnish/stats.h
%{_includedir}/varnish/varnishapi.h
%{_libdir}/pkgconfig/varnishapi.pc
#%{_libdir}/libvarnish.a
#%{_libdir}/libvarnishapi.a
#%{_libdir}/libvarnishcompat.a
#%{_libdir}/libvcl.a
%doc LICENSE
%pre
getent group varnish >/dev/null || groupadd -r varnish
getent passwd varnish >/dev/null || \
useradd -r -g varnish -d /var/lib/varnish -s /sbin/nologin \
-c "Varnish http accelerator user" varnish
exit 0
%post %post
/sbin/chkconfig --add varnish /sbin/chkconfig --add varnish
...@@ -148,9 +164,17 @@ fi ...@@ -148,9 +164,17 @@ fi
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%changelog %changelog
<<<<<<< .working
* Thu Jul 05 2007 Dag-Erling Smørgrav <des@linpro.no> - 1.1-1 * Thu Jul 05 2007 Dag-Erling Smørgrav <des@linpro.no> - 1.1-1
- Bump Version and Release for 1.1 - Bump Version and Release for 1.1
=======
* Tue Aug 14 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.svn
- Update for 1.1 branch
- Added the devel package for the header files and static library files
- Added a varnish user, and fixed the init script accordingly
>>>>>>> .merge-right.r1846
* Mon May 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-3 * Mon May 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-3
- Fixed initrc-script bug only visible on el4 (fixes #107) - Fixed initrc-script bug only visible on el4 (fixes #107)
......
...@@ -17,6 +17,7 @@ NFILES=131072 ...@@ -17,6 +17,7 @@ NFILES=131072
#DAEMON_OPTS="-a :6081 \ #DAEMON_OPTS="-a :6081 \
# -T localhost:6082 \ # -T localhost:6082 \
# -b localhost:8080 \ # -b localhost:8080 \
# -u varnish -g varnish \
# -s file,/var/lib/varnish/varnish_storage.bin,1G" # -s file,/var/lib/varnish/varnish_storage.bin,1G"
...@@ -29,6 +30,7 @@ NFILES=131072 ...@@ -29,6 +30,7 @@ NFILES=131072
DAEMON_OPTS="-a :6081 \ DAEMON_OPTS="-a :6081 \
-T localhost:6082 \ -T localhost:6082 \
-f /etc/varnish/default.vcl \ -f /etc/varnish/default.vcl \
-u varnish -g varnish \
-s file,/var/lib/varnish/varnish_storage.bin,1G" -s file,/var/lib/varnish/varnish_storage.bin,1G"
...@@ -78,6 +80,7 @@ DAEMON_OPTS="-a :6081 \ ...@@ -78,6 +80,7 @@ DAEMON_OPTS="-a :6081 \
# -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \ # -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
# -t ${VARNISH_TTL} \ # -t ${VARNISH_TTL} \
# -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \ # -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
# -u varnish -g varnish \
# -s ${VARNISH_STORAGE}" # -s ${VARNISH_STORAGE}"
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment