Skip to content

Commit

Permalink
Migrated to Varnish Cache 7.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosabalde committed Sep 13, 2024
1 parent 65b7c88 commit 59e9894
Show file tree
Hide file tree
Showing 13 changed files with 366 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
- name: Install Varnish Cache
run: |
git clone https://github.com/varnishcache/varnish-cache.git ./varnish
pushd varnish
wget --no-check-certificate https://varnish-cache.org/_downloads/varnish-7.6.0.tgz
tar zxvf varnish-*.tgz
pushd varnish-*/
./autogen.sh
CC='${{ matrix.cc }}' ./configure
make -sj32
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ RUN apt update \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/varnishcache/varnish-cache.git /tmp/varnish \
&& cd /tmp/varnish \
RUN cd /tmp \
&& wget --no-check-certificate https://varnish-cache.org/_downloads/varnish-7.6.0.tgz \
&& tar zxvf varnish-*.tgz \
&& rm -f varnish-*.tgz \
&& cd varnish-* \
&& ./autogen.sh \
&& ./configure \
&& make \
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

.. image:: https://github.com/carlosabalde/libvmod-cfg/workflows/CI/badge.svg?branch=master
.. image:: https://github.com/carlosabalde/libvmod-cfg/workflows/CI/badge.svg?branch=7.6
:alt: GitHub Actions CI badge
:target: https://github.com/carlosabalde/libvmod-cfg/actions
.. image:: https://codecov.io/gh/carlosabalde/libvmod-cfg/branch/master/graph/badge.svg
.. image:: https://codecov.io/gh/carlosabalde/libvmod-cfg/branch/7.6/graph/badge.svg
:alt: Codecov badge
:target: https://codecov.io/gh/carlosabalde/libvmod-cfg

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.68])
AC_INIT([libvmod-cfg], [trunk], [], [vmod-cfg])
AC_INIT([libvmod-cfg], [18.0], [], [vmod-cfg])
AC_COPYRIGHT([Copyright (c) Carlos Abalde <[email protected]>])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/vmod_cfg.vcc)
Expand Down Expand Up @@ -94,7 +94,7 @@ fi

m4_ifndef([VARNISH_PREREQ], AC_MSG_ERROR([Need varnish.m4 -- see README.rst]))

#VARNISH_PREREQ([5.0], [5.1])
VARNISH_PREREQ([7.6], [7.7])
VARNISH_VMODS([cfg])

VMOD_TESTS="$(cd $srcdir/src && echo tests/*.vtc)"
Expand Down
195 changes: 195 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
libvmod-cfg (18.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.6.x

-- Carlos Abalde <[email protected]> Fri, 13 Sep 2024 16:00:00 +0200

libvmod-cfg (17.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.5.x

-- Carlos Abalde <[email protected]> Tue, 19 Mar 2024 16:00:00 +0100

libvmod-cfg (16.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.4.x

-- Carlos Abalde <[email protected]> Fri, 15 Sep 2023 16:00:00 +0200

libvmod-cfg (15.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.3.x

-- Carlos Abalde <[email protected]> Wed, 15 Mar 2023 16:00:00 +0100

libvmod-cfg (14.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.2.x

-- Carlos Abalde <[email protected]> Thu, 15 Sep 2022 16:00:00 +0200

libvmod-cfg (13.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.1.x

-- Carlos Abalde <[email protected]> Tue, 15 Mar 2022 16:00:00 +0100

libvmod-cfg (12.0-1) stable; urgency=low

* Migrated to Varnish Cache 7.0.x

-- Carlos Abalde <[email protected]> Wed, 15 Sep 2021 16:00:00 +0200

libvmod-cfg (11.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.6.x

-- Carlos Abalde <[email protected]> Mon, 15 Mar 2021 16:00:00 +0100

libvmod-cfg (10.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.5.x

-- Carlos Abalde <[email protected]> Tue, 15 Sep 2020 16:00:00 +0200

libvmod-cfg (9.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.4.x

-- Carlos Abalde <[email protected]> Fri, 20 Mar 2020 16:00:00 +0100

libvmod-cfg (8.2-1) stable; urgency=low

* Add inspect() support for files, rules & scripts
* Add VRT_FlushThreadCache() support (Varnish Enterprise)

-- Carlos Abalde <[email protected]> Fri, 14 Feb 2020 16:00:00 +0100

libvmod-cfg (8.1-1) stable; urgency=low

* Fixed error in new_remote() when https URLs are used
* Added some Linux Alpine fixes

-- Carlos Abalde <[email protected]> Mon, 11 Nov 2019 16:00:00 +0100

libvmod-cfg (8.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.3.x

-- Carlos Abalde <[email protected]> Mon, 30 Sep 2019 16:00:00 +0200

libvmod-cfg (7.3-1) stable; urgency=low

* Added support for execution of ECMAScript scripts
* Added support for loading of arbitrary Lua extensions
* Added 'varnish.engine' & 'varnish.shared' helpers

-- Carlos Abalde <[email protected]> Mon, 29 Jul 2019 16:00:00 +0200

libvmod-cfg (7.2-1) stable; urgency=low

* Fixed error in check_remote() when backup file can't be opened

-- Carlos Abalde <[email protected]> Mon, 27 May 2019 16:00:00 +0200

libvmod-cfg (7.1-1) stable; urgency=low

* Added backup feature
* Added varnish.get_header() & varnish.set_header() Lua helpers
* Added varnish.regmatch(), varnish.regsub() & varnish.regsuball() Lua helpers
* Added 'engines.current' & 'regexps.current' metrics to stats
* Updated cJSON & inih dependencies

-- Carlos Abalde <[email protected]> Wed, 15 May 2019 16:00:00 +0200

libvmod-cfg (7.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.2.x

-- Carlos Abalde <[email protected]> Mon, 18 Mar 2019 16:00:00 +0100

libvmod-cfg (6.3-1) stable; urgency=low

* Triggered 'thread.tcache.flush' also on LuaJIT executions
* Added Lua / LuaJIT memory consumption to stats
* Added Lua 5.2 & 5.3 support to build system

-- Carlos Abalde <[email protected]> Thu, 25 Oct 2018 16:00:00 +0200

libvmod-cfg (6.2-1) stable; urgency=low

* Flushed 'thread.tcache.flush' on Lua (not LuaJIT) script executions

-- Carlos Abalde <[email protected]> Tue, 16 Oct 2018 16:00:00 +0200

libvmod-cfg (6.1-1) stable; urgency=low

* Added new parameter 'prefix' to .dump() methods
* Linked against LuaJIT when possible
* Added new parameter 'gc_collect' to .execute() method

-- Carlos Abalde <[email protected]> Sat, 13 Oct 2018 16:00:00 +0200

libvmod-cfg (6.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.1.x

-- Carlos Abalde <[email protected]> Tue, 18 Sep 2018 16:00:00 +0200

libvmod-cfg (5.2-1) stable; urgency=low

* Increased INI_MAX_LINE from 2KB to 16KB

-- Carlos Abalde <[email protected]> Tue, 07 Aug 2018 16:00:00 +0200

libvmod-cfg (5.1-1) stable; urgency=low

* Added cfg.rules()
* Added cfg.script()
* Added stream option to .dump() methods

-- Carlos Abalde <[email protected]> Wed, 27 Jun 2018 16:00:00 +0200

libvmod-cfg (5.0-1) stable; urgency=low

* Migrated to Varnish Cache 6.0.x

-- Carlos Abalde <[email protected]> Thu, 15 Mar 2018 16:00:00 +0100

libvmod-cfg (4.0-1) stable; urgency=low

* Migrated to Varnish Cache 5.2.x

-- Carlos Abalde <[email protected]> Fri, 15 Sep 2017 16:00:00 +0200

libvmod-cfg (3.1-1) stable; urgency=low

* Added JSON support

-- Carlos Abalde <[email protected]> Fri, 25 Aug 2017 16:00:00 +0200

libvmod-cfg (3.0-1) stable; urgency=low

* Migrated to Varnish Cache 5.1.x

-- Carlos Abalde <[email protected]> Fri, 17 Mar 2017 16:00:00 +0100

libvmod-cfg (2.0-1) stable; urgency=low

* Migrated to Varnish Cache 5.0.x

-- Carlos Abalde <[email protected]> Fri, 17 Mar 2017 16:00:00 +0100

libvmod-cfg (1.3-1) stable; urgency=low

* Fixed bug reading files from disk
* Added reporting of error code when failed to parse .ini files
* Updated .ini parser

-- Carlos Abalde <[email protected]> Thu, 02 Feb 2017 16:00:00 +0100

libvmod-cfg (1.2-1) stable; urgency=low

* Initial version

-- Carlos Abalde <[email protected]> Fri, 16 Sep 2016 16:00:00 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
20 changes: 20 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Source: libvmod-cfg
Section: web
Priority: extra
Maintainer: Carlos Abalde <[email protected]>
Build-Depends: debhelper (>= 7),
build-essential,
pkg-config,
python-docutils | python3-docutils,
varnish (>= 7.6.0),
libvarnishapi-dev (>= 7.6.0),
libcurl4-gnutls-dev,
libluajit-5.1-dev,
libjemalloc-dev,
vim-common
Standards-Version: 3.8.1

Package: libvmod-cfg
Architecture: any
Depends: varnish (>= 7.6.0), libcurl3-gnutls, libluajit-5.1-2, ${shlibs:Depends}, ${misc:Depends}, ${Varnish:ABI}
Description: Config VMOD for Varnish
8 changes: 8 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright:

Copyright Carlos Abalde

License:

You're free to use and distribute this under terms in the
LICENSE file.
1 change: 1 addition & 0 deletions debian/dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/share/doc/libvmod-cfg
2 changes: 2 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README.rst
LICENSE
12 changes: 12 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f
export DH_VERBOSE=1

override_dh_gencontrol:
if [ -n "$$DEBIAN_OVERRIDE_BINARY_VERSION" ]; then \
dh_gencontrol -- -v$$DEBIAN_OVERRIDE_BINARY_VERSION; \
else \
dh_gencontrol ; \
fi

%:
dh $@
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@

version: '3.7'

name: libvmod-cfg-master
name: libvmod-cfg-7_6

services:
dev:
hostname: dev
build:
context: .
no_cache: true
privileged: true
environment:
HOST_UID: ${UID:?}
Expand Down
Loading

0 comments on commit 59e9894

Please sign in to comment.