Compare commits

..

No commits in common. "rawhide" and "f22" have entirely different histories.

7 changed files with 182 additions and 1 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/2.1.tar.gz
/vagent2-4.0.0-1b8447b.tar.gz
/vagent2-4.0.0-8352e30.tar.gz

14
agent.params Normal file
View file

@ -0,0 +1,14 @@
# Varnish-agent environment configuration description. This was derived
# from the old style sysconfig/defaults settings
# Default port to bind to.
VAGENT_PORT=6085
# Default location of the HTML interface.
VAGENT_HTML_DIRECTORY=/usr/share/varnish-agent/html
# Additional options if needed.
VAGENT_OPTS=
# Shared secret file, used to authenticate with varnishd
VAGENT_SECRET_FILE=/etc/varnish/agent_secret

View file

@ -1 +0,0 @@
not compatible with varnish 5+

1
sources Normal file
View file

@ -0,0 +1 @@
bfc8c7362659f54188aee3cbf24ef42d vagent2-4.0.0-8352e30.tar.gz

12
vagent.disable_test.patch Normal file
View file

@ -0,0 +1,12 @@
diff --git i/tests/Makefile.am w/tests/Makefile.am
index 454dce1..4528a50 100644
--- i/tests/Makefile.am
+++ w/tests/Makefile.am
@@ -2,7 +2,6 @@ LOG_COMPILER = $(srcdir)/test-wrapper
TESTS = ban.sh \
arguments.sh \
buffers.sh \
- vac_register.sh \
json.sh \
log.sh \
status.sh \

23
varnish-agent.service Normal file
View file

@ -0,0 +1,23 @@
[Unit]
Description=Administration agent for Varnish Cache
Documentation=man:varnish-agent(1)
After=varnish
[Service]
EnvironmentFile=/etc/varnish/*.params
Type=forking
PIDFile=/var/run/varnish-agent.pid
PrivateTmp=true
ExecStart=/usr/bin/varnish-agent \
-P /var/run/varnish-agent.pid \
-c $VAGENT_PORT \
-H $VAGENT_HTML_DIRECTORY \
-u $VARNISH_USER \
-g $VARNISH_GROUP \
-S $VARNISH_SECRET_FILE \
$VAGENT_OPTS
[Install]
WantedBy=multi-user.target

129
varnish-agent.spec Normal file
View file

@ -0,0 +1,129 @@
%global commit 8352e30d79364f0145cb583a88ed3fe328771c63
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: varnish-agent
Version: 4.0.0
Release: 0.4.RC2%{?dist}
Summary: Administration agent for Varnish Cache
Group: System Environment/Daemons
License: BSD
URL: https://github.com/varnish/vagent2
Source0: https://github.com/varnish/vagent2/archive/%{commit}/vagent2-%{version}-%{shortcommit}.tar.gz
Source1: varnish-agent.service
Source2: agent.params
Patch0: vagent.disable_test.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libcurl-devel
BuildRequires: libmicrohttpd-devel
BuildRequires: libtool
BuildRequires: perl-libwww-perl
BuildRequires: python-demjson
BuildRequires: python-docutils
BuildRequires: systemd
BuildRequires: varnish
BuildRequires: varnish-libs-devel
Requires: varnish
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
Varnish Agent software that runs on all caches managed by Varnish
Administration Console (VAC).
%prep
%autosetup -n vagent2-%{commit} -p1
# varnish-agent expects to be built from the git repository
sed -i s/NOGIT/%{version}/ include/Makefile.am
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name}
install -m 755 -d %{buildroot}%{_unitdir}
install -m 755 -d %{buildroot}%{_sysconfdir}/varnish
install -pm 644 -t %{buildroot}%{_unitdir} %{SOURCE1}
install -pm 644 -t %{buildroot}%{_sysconfdir}/varnish %{SOURCE2}
%check
make check
%files
%doc LICENSE THANKS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}
%{_unitdir}/%{name}.service
%{_sharedstatedir}/%{name}
%config(noreplace) %{_sysconfdir}/varnish/agent.params
%post
%systemd_post varnish-agent.service
%preun
%systemd_preun varnish-agent.service
%postun
%systemd_postun_with_restart varnish-agent.service
%changelog
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-0.4.RC2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-0.3.RC2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Jun 03 2014 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 4.0.0-0.2.RC2
- Bumped version to 4.0.0-RC2
* Mon Apr 28 2014 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 4.0.0-0.1
- Bumped version to experimental 4.0.0
- Switched to a commit tarball from github
- Removed the upstreamed patches
* Sun Dec 08 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 2.1-5
- Removed the %%optflags on the %%configure command line
* Sat Dec 07 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 2.1-4
- Added a patch to make the test suites work offline
- Added a patch to disable the ban test suite
- Removed the default -S option from the service
* Fri Nov 01 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 2.1-3
- Added a patch for subdir-objects in automake
- Moved CFLAGS to the configure command line
* Sun Oct 27 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 2.1-2
- Requires: varnish
- BuildRequires: varnish python-demjson
- Added a patch for root privileges on the secret file
- Added a patch for the deprecated AM_CONFIG_HEADER macro
- Added a check section
- sed -i s/NOGIT/%%{version}/ include/Makefile.am
- mv vagent.params agent.params
* Sun Sep 15 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 2.1-1
- Initial spec.