Commit df50e8d6 authored by Geoff Simmons's avatar Geoff Simmons

Some improvements in the RPM packaging script.

- Install package epel-release to get the EPEL repo (rather than
  using a fixed URL).
- yum makecache fast to speed up all repo caches.
parent 72b3551c
...@@ -41,13 +41,12 @@ cp /srv/vmod-re2.spec rpmbuild/SPECS ...@@ -41,13 +41,12 @@ cp /srv/vmod-re2.spec rpmbuild/SPECS
cp /srv/vmod-re2-${VERSION}.tar.gz rpmbuild/SOURCES cp /srv/vmod-re2-${VERSION}.tar.gz rpmbuild/SOURCES
# install epel7 repo # install epel7 repo
sudo yum install -y -q \ sudo yum install -y -q epel-release
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# set up varnish repo # set up varnish repo
sudo cp /srv/varnishcache_varnish61.repo /etc/yum.repos.d/ sudo cp /srv/varnishcache_varnish61.repo /etc/yum.repos.d/
sudo yum -q makecache -y --disablerepo='*' --enablerepo='varnishcache_varnish61' sudo yum -q makecache -y fast
# build requirements # build requirements
sudo yum install -y -q \ sudo yum install -y -q \
......
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