Planning for 1.0.4
Ingvar Hagelund
ingvar at linpro.no
Fri May 11 10:11:28 CEST 2007
* Dag-Erling Smørgrav
>>> Could you update the contents of the redhat directory in trunk?
Done. Seems to build and work from today's svn:
[ingvar at uname ~/svn/varnish/trunk]$ cat buildrpm.sh
#!/bin/bash
VERSION=$( awk ' /^Version:/ { print $2 } '
varnish-cache/redhat/varnish.spec )
ln -s varnish-cache varnish-$VERSION
tar $(
find varnish-$VERSION/ -type d -name .svn | \
while read i; do
echo -n "--exclude $i "
done
) -cvzf varnish-$VERSION.tar.gz varnish-$VERSION/*
rm varnish-$VERSION
rpmbuild -tb varnish-$VERSION.tar.gz
[ingvar at uname ~/svn/varnish/trunk]$ sh buildrpm.sh
(...)
Wrote: ~/rpm/RPMS/x86_64/varnish-1.0.svn-20070511.x86_64.rpm
Wrote: ~/rpm/RPMS/x86_64/varnish-libs-1.0.svn-20070511.x86_64.rpm
Wrote: ~/rpm/RPMS/x86_64/varnish-debuginfo-1.0.svn-20070511.x86_64.rpm
(...)
+ exit 0
$ rpmlint ~/rpm/RPMS/x86_64/*20070511*rpm | wc -l
0
[ingvar at uname ~]$ cat /etc/redhat-release; uname -a
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Linux uname 2.6.9-42.0.3.EL #1 Mon Sep 25 17:14:08 EDT 2006 x86_64
x86_64 x86_64 GNU/Linux
[ingvar at uname ~]$ sudo rpm -i ~/rpm/RPMS/x86_64/*20070511*rpm
[ingvar at uname ~]$ sudo /sbin/service varnish start
Starting varnish HTTP accelerator: [ OK ]
[ingvar at uname ~]$ time curl http://localhost:6081/index.html \
> /dev/null 2>&1
real 0m0.084s
user 0m0.006s
sys 0m0.006s
[ingvar at uname ~]$ time curl http://localhost:6081/index.html \
> /dev/null 2>&1
real 0m0.014s
user 0m0.005s
sys 0m0.006s
--
When everything else fail: Symlink
More information about the varnish-dist
mailing list