Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pkg-varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
pkg-varnish-cache
Commits
86e0652f
Commit
86e0652f
authored
Jun 08, 2015
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the jenkins job definition into a script.
parent
8d1ed13b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
package-rpm
package-rpm
+37
-0
.placeholder
sources/.placeholder
+0
-0
No files found.
package-rpm
0 → 100755
View file @
86e0652f
#!/bin/bash -x
#
# This script builds Varnish Cache in chroot from a tarball.
#
# Author: Lasse Karstensen <lkarsten@varnish-software.com>, March 2015.
set
-o
errexit
ELVER
=
${
ELVER
:-
el6
}
CHROOT
=
"epel-
${
ELVER
:2:1
}
-x86_64"
MOPT
=
"--uniqueext=worker
${
EXECUTOR_NUMBER
}
"
rm
-rf
unpack rpm-build
mkdir
-p
unpack
tar
xf sources/varnish
*
.tar.gz
-C
unpack
# build the tgz with helper files. (racy!)
#redhat/package-helper-files .
cp
unpack/
*
/redhat/
*
sources/
#cp unpack/redhat/* .
# while debugging, disable make check since it takes 15-20 minutes to run.
sed
-i
-e
's/^make check/# make check/'
sources/
*
.spec
mock
-r
$CHROOT
$MOPT
--init
mock
-v
-r
$CHROOT
$MOPT
--buildsrpm
\
-D
"_smp_mflags -j10"
\
-D
"dist .
${
ELVER
}
"
\
--spec
sources/
*
.spec
\
--source
sources
\
--resultdir
rpm-build/varnish-4.0/
${
ELVER
}
mock
-r
$CHROOT
$MOPT
--clean
mock
-v
-r
$CHROOT
$MOPT
\
-D
"_smp_mflags -j10"
\
-D
"dist .
${
ELVER
}
"
\
--resultdir
rpm-build/varnish-4.0/
${
ELVER
}
\
--rebuild
rpm-build/varnish-4.0/
${
ELVER
}
/varnish
*
.src.rpm
sources/.placeholder
0 → 100644
View file @
86e0652f
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