Christian Hesse pushed to branch main at Arch Linux / Packaging / Packages / 
pacredir


Commits:
a4de9edc by Christian Hesse at 2023-11-24T11:44:33+01:00
upgpkg: 0.4.7-1: new upstream release...

... expecting pacman with CacheServer functionality.

https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/98

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- pacredir.install


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
 pkgbase = pacredir
        pkgdesc = redirect pacman requests, assisted by avahi service discovery
-       pkgver = 0.4.6
+       pkgver = 0.4.7
        pkgrel = 1
        url = https://github.com/eworm-de/pacredir
        install = pacredir.install
@@ -15,12 +15,12 @@ pkgbase = pacredir
        depends = darkhttpd
        depends = libmicrohttpd
        conflicts = pacserve
-       backup = etc/pacredir.conf
        backup = etc/pacman.d/pacredir
-       source = https://www.eworm.de/download/pacredir/pacredir-0.4.6.tar.xz
-       source = 
https://www.eworm.de/download/pacredir/pacredir-0.4.6.tar.xz.asc
+       backup = etc/pacredir.conf
+       source = https://www.eworm.de/download/pacredir/pacredir-0.4.7.tar.xz
+       source = 
https://www.eworm.de/download/pacredir/pacredir-0.4.7.tar.xz.asc
        validpgpkeys = BD84DE71F493DF6814B0167254EDC91609BC9183
-       sha256sums = 
351afc8fc56d9573e4519cfba1593cdefb58482aeb548dfa387dd309f415afc8
+       sha256sums = 
af305e82ad1489086a9467cff2c55fc82130a686756ff930d766a1ef17a203ab
        sha256sums = SKIP
 
 pkgname = pacredir


=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
 # Maintainer: Christian Hesse <[email protected]>
 
 pkgname=pacredir
-pkgver=0.4.6
+pkgver=0.4.7
 pkgrel=1
 pkgdesc='redirect pacman requests, assisted by avahi service discovery'
 arch=('x86_64')
@@ -11,10 +11,11 @@ depends=('systemd-libs' 'avahi' 'curl' 'iniparser' 
'darkhttpd' 'libmicrohttpd')
 makedepends=('systemd' 'discount')
 conflicts=('pacserve')
 install=pacredir.install
-backup=('etc/pacredir.conf' 'etc/pacman.d/pacredir')
+backup=('etc/pacman.d/pacredir'
+        'etc/pacredir.conf')
 validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse 
<[email protected]>
 
source=("https://www.eworm.de/download/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.asc})
-sha256sums=('351afc8fc56d9573e4519cfba1593cdefb58482aeb548dfa387dd309f415afc8'
+sha256sums=('af305e82ad1489086a9467cff2c55fc82130a686756ff930d766a1ef17a203ab'
             'SKIP')
 
 build() {


=====================================
pacredir.install
=====================================
@@ -1,9 +1,10 @@
 #!/bin/sh
 
 message_server_error_limit() {
-       echo ' > With its latest release `pacman` now supports a server error 
limit,'
-       echo ' > which breaks `pacredir`. Rebuild `pacman` with that feature 
disabled'
-       echo ' > or install from this repository:'
+       echo ' > With its 6.x release `pacman` now supports a server error 
limit,'
+       echo ' > which breaks `pacredir`. But `pacman` 7.x will fix that with 
support'
+       echo ' > for cache servers. Install `pacman` with that features 
backported'
+       echo ' > from this repository:'
        echo ' >   [pacredir]'
        echo ' >   Server = https://pkgbuild.com/~eworm/$repo/$arch/'
 }
@@ -14,11 +15,8 @@ post_install() {
 }
 
 post_upgrade() {
-       # nothing is stored by pacredir, so restarting is safe
-       systemctl try-restart pacredir.service
-
-       # return if old package version greater 0.4.4-0...
-       (( $(vercmp $2 '0.4.4-0') > 0 )) && return
+       # return if old package version greater 0.4.7-0...
+       (( $(vercmp $2 '0.4.7-0') > 0 )) && return
 
        message_server_error_limit
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/pacredir/-/commit/a4de9edcccf3c7fa64dbe49df75f27034bb1e06d

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/pacredir/-/commit/a4de9edcccf3c7fa64dbe49df75f27034bb1e06d
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to