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

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Feb 24 10:16:09 UTC 2020


    Date: Monday, February 24, 2020 @ 10:16:08
  Author: svenstaro
Revision: 376122

archrelease: copy trunk to testing-x86_64

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

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

Copied: varnish/repos/testing-x86_64/PKGBUILD (from rev 376121, varnish/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-02-24 10:16:08 UTC (rev 376122)
@@ -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.3.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)
+sha256sums=('d1a26c7dad43b842c97e48f1c6422bb0b24c02cd6a74c53a2cf17e64da254175'
+            'SKIP'
+            'b58dd6b00eb81c75e4bb30421b85b2be88c049d5b72a8ee553ba690a5414972b')
+
+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/testing-x86_64/varnish.install (from rev 376121, varnish/trunk/varnish.install)
===================================================================
--- testing-x86_64/varnish.install	                        (rev 0)
+++ testing-x86_64/varnish.install	2020-02-24 10:16:08 UTC (rev 376122)
@@ -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/testing-x86_64/varnish.sysusers (from rev 376121, varnish/trunk/varnish.sysusers)
===================================================================
--- testing-x86_64/varnish.sysusers	                        (rev 0)
+++ testing-x86_64/varnish.sysusers	2020-02-24 10:16:08 UTC (rev 376122)
@@ -0,0 +1,2 @@
+u varnish - "Varnish Cache Proxy"
+g varnish -



More information about the arch-commits mailing list