]> err.no Git - varnish/commitdiff
Small changes to README.redhat
authoringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Dec 2007 20:29:36 +0000 (20:29 +0000)
committeringvar <ingvar@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Dec 2007 20:29:36 +0000 (20:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2310 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/redhat/README.redhat

index 9bb6184483667afc12c1de32254cb4ef33d24da6..b164b81a070da8a64d0cb607ba16e9aa22d78881 100644 (file)
@@ -24,12 +24,14 @@ port to port 80, and your webserver to 8080 or similar.
 
 
 Builing a RPM package from SVN
-===============================
+==============================
 You may build the package from a svn checkout. Follow the instructions
 at http://varnish.projects.linpro.no/wiki/Repository to get the
 source. Then enter the trunk directory and edit
 varnish-cache/redhat/varnish.spec. At least bump the version and/or
-release numbers. Then use something like this to build the rpm package:
+release numbers, and uncomment the autogen call. You need to install
+the autoconf and automake packages. Then use something like this to
+build the rpm package:
 
 #!/bin/bash
 VERSION=$( awk ' /^Version:/ { print $2 } ' varnish-cache/redhat/varnish.spec )
@@ -41,6 +43,10 @@ tar $(
             done
 ) -cvzf varnish-$VERSION.tar.gz varnish-$VERSION/*
 rm varnish-$VERSION
-rpmbuild -tb varnish-$VERSION.tar.gz
+rpmbuild -ts varnish-$VERSION.tar.gz
+# End of script
 
+This builds a source rpm. Then you can, for example on a RHEL4 system,
+do something like this:
 
+rpmbuild --define "dist el4" --rebuild /path/to/varnish-1.1.2.src.rpm