[arch-commits] Commit in pacredir/repos/community-x86_64 (4 files)
Christian Hesse
eworm at archlinux.org
Thu Jul 5 13:13:27 UTC 2018
Date: Thursday, July 5, 2018 @ 13:13:27
Author: eworm
Revision: 352716
archrelease: copy trunk to community-x86_64
Added:
pacredir/repos/community-x86_64/PKGBUILD
(from rev 352715, pacredir/trunk/PKGBUILD)
pacredir/repos/community-x86_64/pacredir.install
(from rev 352715, pacredir/trunk/pacredir.install)
Deleted:
pacredir/repos/community-x86_64/PKGBUILD
pacredir/repos/community-x86_64/pacredir.install
------------------+
PKGBUILD | 64 +++++++++++++++++++++++++----------------------------
pacredir.install | 38 +++++++++++++++++++------------
2 files changed, 55 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-05 13:13:24 UTC (rev 352715)
+++ PKGBUILD 2018-07-05 13:13:27 UTC (rev 352716)
@@ -1,33 +0,0 @@
-# $Id$
-# Maintainer: Christian Hesse <mail at eworm.de>
-
-pkgname=pacredir
-pkgver=0.3.3
-pkgrel=1
-pkgdesc='redirect pacman requests, assisted by avahi service discovery'
-arch=('x86_64')
-url='https://github.com/eworm-de/pacredir'
-depends=('libsystemd' 'avahi' 'curl' 'iniparser' 'darkhttpd' 'libmicrohttpd')
-makedepends=('systemd' 'markdown')
-license=('GPL')
-conflicts=('paccache')
-replaces=('paccache')
-install=pacredir.install
-backup=('etc/pacredir.conf' 'etc/pacman.d/pacredir')
-validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse <mail at eworm.de>
-source=("https://www.eworm.de/download/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.asc})
-sha256sums=('6605263eddbb8990c15dd6ac53c7989348784fa2d42d7379e98fe7607845de90'
- 'SKIP')
-
-build() {
- cd ${pkgname}-${pkgver}/
-
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}/
-
- make DESTDIR="${pkgdir}" install
-}
-
Copied: pacredir/repos/community-x86_64/PKGBUILD (from rev 352715, pacredir/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-05 13:13:27 UTC (rev 352716)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+
+pkgname=pacredir
+pkgver=0.4.0
+pkgrel=1
+pkgdesc='redirect pacman requests, assisted by avahi service discovery'
+arch=('x86_64')
+url='https://github.com/eworm-de/pacredir'
+depends=('libsystemd' 'avahi' 'curl' 'iniparser' 'darkhttpd' 'libmicrohttpd')
+makedepends=('systemd' 'markdown')
+license=('GPL')
+install=pacredir.install
+backup=('etc/pacredir.conf' 'etc/pacman.d/pacredir')
+validpgpkeys=('BD84DE71F493DF6814B0167254EDC91609BC9183') # Christian Hesse <mail at eworm.de>
+source=("https://www.eworm.de/download/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('3e941cd0559cd9cd4b4bb8f8bbe7f5da0201768220fb33d117eb686a52779606'
+ 'SKIP')
+
+build() {
+ cd ${pkgname}-${pkgver}/
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}/
+
+ make DESTDIR="${pkgdir}" install
+}
+
Deleted: pacredir.install
===================================================================
--- pacredir.install 2018-07-05 13:13:24 UTC (rev 352715)
+++ pacredir.install 2018-07-05 13:13:27 UTC (rev 352716)
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-post_install() {
- echo " > For instructions visit: https://github.com/eworm-de/pacredir#usage"
-}
-
-post_upgrade() {
- # return if old package version greater 0.3...
- (( $(vercmp $2 '0.3') > 0 )) && return
-
- # upgrade from pre-0.3 version, avahi service names changed
- echo " > This upgrade from pacredir $2 to pacredir $1 changes avahi service"
- echo " > names. Make sure to update all your installations for compatibility."
-}
Copied: pacredir/repos/community-x86_64/pacredir.install (from rev 352715, pacredir/trunk/pacredir.install)
===================================================================
--- pacredir.install (rev 0)
+++ pacredir.install 2018-07-05 13:13:27 UTC (rev 352716)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+post_install() {
+ echo " > For instructions visit: https://github.com/eworm-de/pacredir#usage"
+}
+
+pre_upgrade() {
+ # return if old package version greater 0.4...
+ (( $(vercmp $2 '0.4') > 0 )) && return
+
+ # upgrade from pre-0.4 version, pacdbserve.service no longer exists
+ if systemctl is-enabled -q pacdbserve.service; then
+ systemctl disable -q pacdbserve.service
+ fi
+}
+
+post_upgrade() {
+ # return if old package version greater 0.4...
+ (( $(vercmp $2 '0.4') > 0 )) && return
+
+ # upgrade from pre-0.4 version, avahi service names changed
+ echo " > This upgrade from pacredir $2 to pacredir $1 changes avahi service"
+ echo " > names. Make sure to update all your installations for compatibility."
+}
More information about the arch-commits
mailing list