Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
b6e063f8
Commit
b6e063f8
authored
Nov 19, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPM packaging takes VERSION and RELEASE as parameters.
parent
23d4f13c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
pkg
pkg/rpm/pkg
+18
-2
trackrdrd.spec
pkg/rpm/trackrdrd.spec
+4
-4
No files found.
pkg/rpm/pkg
View file @
b6e063f8
...
...
@@ -3,6 +3,9 @@
# Build script for a trackrdrd el7 RPM
# to be run in the rpmbuild/centos7 docker container.
# Env variables VERSION and RELEASE MUST be set in the docker invocation.
# DIST is set by the rpmbuild/centos7 container.
# The directory mounted to /srv MUST contain these files:
# - this script (named pkg)
# - trackrdrd tarball (trackrdrd-$VERSION.tar.gz)
...
...
@@ -15,6 +18,16 @@
# At the end of the run, binary, source and debuginfo RPMs are in the
# directory mounted to /srv.
if
[
-z
$VERSION
]
;
then
echo
"Env variable VERSION MUST be set"
exit
1
fi
if
[
-z
$RELEASE
]
;
then
echo
"Env variable RELEASE MUST be set"
exit
1
fi
# delete the peculiar macros from the rpmbuild/centos7 image
rm
/home/builder/.rpmmacros
...
...
@@ -22,7 +35,7 @@ rm /home/builder/.rpmmacros
cd
/home/builder
mkdir
-p
rpmbuild/
{
BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS
}
cp
/srv/trackrdrd.spec rpmbuild/SPECS
cp
/srv/trackrdrd-
*
.tar.gz rpmbuild/SOURCES
cp
/srv/trackrdrd-
${
VERSION
}
.tar.gz rpmbuild/SOURCES
cp
/srv/trackrdrd.service rpmbuild/SOURCES
cp
/srv/trackrdr-kafka.logrotate rpmbuild/SOURCES
...
...
@@ -43,7 +56,10 @@ sudo yum install -y -q varnish-devel pkgconfig make gcc librdkafka-devel \
zookeeper-native pcre-devel zlib-devel python-docutils
# build RPMs
rpmbuild
-ba
-D
"dist .
${
DIST
}
"
rpmbuild/SPECS/trackrdrd.spec
rpmbuild
-ba
-D
"dist .
${
DIST
}
"
\
-D
"_version
${
VERSION
}
"
\
-D
"_release
${
RELEASE
}
"
\
rpmbuild/SPECS/trackrdrd.spec
sudo cp
rpmbuild/RPMS/
*
/
*
/srv
sudo cp
rpmbuild/SRPMS/
*
/srv
pkg/rpm/trackrdrd.spec
View file @
b6e063f8
# -D MUST pass in _version and _release, and SHOULD pass in dist.
Summary: Tracking Log Reader for Varnish Cache
Name: trackrdrd
Version:
trunk
Release:
0
%{?dist}
Version:
%{_version}
Release:
%{_release}
%{?dist}
License: BSD
Group: System Environment/Daemons
URL: https://code.uplex.de/uplex-varnish/trackrdrd
...
...
@@ -61,8 +62,7 @@ format for requests and ESI subrequests, and forwards the data to a
messaging system (such as Kafka).
%prep
#%setup -n varnish-%{version}%{?vd_rc}
%setup -q -n trackrdrd-trunk
%setup -q -n %{name}-%{version}
%build
# ./autogen.sh
...
...
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