Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
6ed9fc8c
Commit
6ed9fc8c
authored
Feb 03, 2011
by
Ingvar Hagelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated with correct instructions on how to build a rpm package
from git.
parent
d9e97e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
24 deletions
+19
-24
README.redhat
redhat/README.redhat
+19
-24
No files found.
redhat/README.redhat
View file @
6ed9fc8c
...
...
@@ -5,6 +5,25 @@ build varnish with. This means GCC 3.4.6 on a standard RHEL4 system.
Varnish should work fine with GCC 3.3 and above.
Building a RPM package from a git checkout
==========================================
You may build an rpm package direct from a git checkout. Here is an
example on how you may do this:
git clone git://git.varnish-cache.org/varnish-cache
cd varnish-cache
sed -i "s/^Release: .*/Release: 0.git$(date +%Y%m%d)%{?dist}/" \
redhat/varnish.spec
./autogen.sh && ./configure
make dist && rpmbuild -ts varnish-trunk.tar.gz
This builds a source rpm. Then you can, for example on a RHEL5 system,
do something like this:
rpmbuild --define "dist .el5" --rebuild /path/to/varnish-3.0-0.git20110203.src.rpm
Upgrading from 1.x to 2.0
=========================
There are a few changes in the vcl language from varnish-1.x to 2.0.
...
...
@@ -56,28 +75,4 @@ that suits jemalloc better, you might want to change the specfile and
recompile. We would very much like feedback from anyone running
varnish on Fedora's own ppc64 kernel.
Building 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, 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 )
tar $( find varnish-cache -type d -name .svn | \
while read i; do
echo -n "--exclude $i "
done
) -cvzf varnish-$VERSION.tar.gz varnish-cache/*
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-2.1.4-0.svn20100826r5134.src.rpm
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment