[arch-commits] Commit in varnish/repos (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 23 15:12:37 UTC 2021


    Date: Monday, August 23, 2021 @ 15:12:37
  Author: felixonmars
Revision: 422481

archrelease: copy trunk to staging-x86_64

Added:
  varnish/repos/staging-x86_64/
  varnish/repos/staging-x86_64/PKGBUILD
    (from rev 422480, varnish/trunk/PKGBUILD)
  varnish/repos/staging-x86_64/varnish.install
    (from rev 422480, varnish/trunk/varnish.install)
  varnish/repos/staging-x86_64/varnish.sysusers
    (from rev 422480, varnish/trunk/varnish.sysusers)

------------------+
 PKGBUILD         |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 varnish.install  |   12 +++++++++
 varnish.sysusers |    2 +
 3 files changed, 83 insertions(+)

Copied: varnish/repos/staging-x86_64/PKGBUILD (from rev 422480, varnish/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-08-23 15:12:37 UTC (rev 422481)
@@ -0,0 +1,69 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Douglas Soares de Andrade
+# Contributor: Roberto Alsina <ralsina at kde.org>
+
+pkgname=varnish
+pkgver=6.6.1
+pkgrel=2
+pkgdesc="High-performance HTTP accelerator"
+arch=('x86_64')
+url="https://www.varnish-cache.org/"
+license=('BSD')
+depends=('gcc' 'libedit' 'pcre' 'libnsl')
+makedepends=('python-docutils' 'python-sphinx' 'git')
+optdepends=('python: needed for vmod development')
+backup=('etc/varnish/default.vcl')
+install=$pkgname.install
+source=("https://varnish-cache.org/_downloads/varnish-$pkgver.tgz"
+        "git+https://github.com/varnishcache/pkg-varnish-cache.git#commit=711b56b"
+        varnish.sysusers)
+sha512sums=('af3ee1743af2ede2d3efbb73e5aa9b42c7bbd5f86163ec338c8afd1989c3e51ff3e1b40bed6b72224b5d339a74f22d6e5f3c3faf2fedee8ab4715307ed5d871b'
+            'SKIP'
+            '1eeeba4ab990c1790495f9ff4625ad37f21e155e08e0c255e09d18c44054f3a59613b81c07d8701610b0b266e5181ae8bbae2523138737f3c4f0e1a6c287bb0c')
+
+prepare() {
+  cd "varnish-$pkgver"
+
+  ./autogen.sh
+}
+
+build() {
+  cd "varnish-$pkgver"
+
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --localstatedir=/var/lib \
+    --sbindir=/usr/bin
+
+  make
+}
+
+check() {
+  cd "varnish-$pkgver"
+
+  make check
+}
+
+package() {
+  cd "varnish-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir/pkg-varnish-cache/systemd/varnish.service" "$pkgdir/usr/lib/systemd/system/varnish.service"
+  install -Dm644 "$srcdir/pkg-varnish-cache/systemd/varnishncsa.service" "$pkgdir/usr/lib/systemd/system/varnishncsa.service"
+  install -Dm755 "$srcdir/pkg-varnish-cache/systemd/varnishreload" "$pkgdir/usr/bin/varnishreload"
+  install -Dm755 "$srcdir/pkg-varnish-cache/systemd/varnish.logrotate" "$pkgdir/etc/logrotate.d/varnish"
+
+  # create varnish:varnish user/group
+  install -Dm644 "$srcdir/varnish.sysusers" "$pkgdir/usr/lib/sysusers.d/varnish.conf"
+
+  # config
+  install -Dm644 "etc/example.vcl" "$pkgdir/etc/varnish/default.vcl"
+  install -Dm644 "etc/builtin.vcl" "$pkgdir/usr/share/doc/varnish/builtin.vcl"
+
+  # license
+  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: varnish/repos/staging-x86_64/varnish.install (from rev 422480, varnish/trunk/varnish.install)
===================================================================
--- staging-x86_64/varnish.install	                        (rev 0)
+++ staging-x86_64/varnish.install	2021-08-23 15:12:37 UTC (rev 422481)
@@ -0,0 +1,12 @@
+# remove localstatedir -- compiled VCL and slab files will still be here.
+post_remove() {
+  rm -rf var/lib/varnish
+}
+
+post_upgrade() {
+  if [[ $(vercmp 6.0.0-1 "$2") -eq 1 ]]; then
+    echo ":: You must update your VCL to be compatible with varnish 6. See the"
+    echo "   following upgrade guide to port your configuration:"
+    echo "   http://varnish-cache.org/docs/6.2/whats-new/upgrading-6.2.html"
+  fi
+}

Copied: varnish/repos/staging-x86_64/varnish.sysusers (from rev 422480, varnish/trunk/varnish.sysusers)
===================================================================
--- staging-x86_64/varnish.sysusers	                        (rev 0)
+++ staging-x86_64/varnish.sysusers	2021-08-23 15:12:37 UTC (rev 422481)
@@ -0,0 +1,2 @@
+u varnishlog -:varnish "Varnish Cache Proxy"
+g varnish -



More information about the arch-commits mailing list