summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2015-09-11 15:11:36 -0400
committergraysky2015-09-11 15:11:36 -0400
commitad1ebbde6a4e82e07457827d3d5981f972cbf7b1 (patch)
tree2ef10e058064272d535961d7606e947f69588342
parent1cf846f401fc3d833c673203da4c51553545a89b (diff)
downloadaur-ad1ebbde6a4e82e07457827d3d5981f972cbf7b1.tar.gz
Update to 6.05-1
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD6
-rw-r--r--psd.install15
3 files changed, 22 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 32b1612e13b8..5e1e38b5a912 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = profile-sync-daemon
pkgdesc = Syncs browser profiles to tmpfs reducing SSD/HDD calls and speeding-up browsers.
- pkgver = 6.04
- pkgrel = 2
+ pkgver = 6.05
+ pkgrel = 1
url = https://github.com/graysky2/profile-sync-daemon
install = psd.install
arch = any
@@ -16,8 +16,8 @@ pkgbase = profile-sync-daemon
conflicts = tmpfs-store
conflicts = tmpfs-sync
conflicts = user-profile-sync-daemon
- source = http://repo-ck.com/source/profile-sync-daemon/profile-sync-daemon-6.04.tar.xz
- sha256sums = e1e4345eda35e5cfbb27f85eb22927531a482324cf5688dd86193abc1242ef88
+ source = http://repo-ck.com/source/profile-sync-daemon/profile-sync-daemon-6.05.tar.xz
+ sha256sums = c927fa038883af2f0824ccee4f7691f55a86dbe5931f41d25816bbd775cf6055
pkgname = profile-sync-daemon
diff --git a/PKGBUILD b/PKGBUILD
index 4734b3b6c89b..4d003a3cb903 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: graysky <graysky AT archlinux DOT us>
pkgname='profile-sync-daemon'
-pkgver=6.04
-pkgrel=2
+pkgver=6.05
+pkgrel=1
pkgdesc='Syncs browser profiles to tmpfs reducing SSD/HDD calls and speeding-up browsers.'
arch=('any')
url='https://github.com/graysky2/profile-sync-daemon'
@@ -12,7 +12,7 @@ conflicts=('firefox-sync' 'goanysync' 'go-anysync-git' 'iceweasel-sync'
'tmpfs-store' 'tmpfs-sync' 'user-profile-sync-daemon')
source=("http://repo-ck.com/source/$pkgname/$pkgname-$pkgver.tar.xz")
install=psd.install
-sha256sums=('e1e4345eda35e5cfbb27f85eb22927531a482324cf5688dd86193abc1242ef88')
+sha256sums=('c927fa038883af2f0824ccee4f7691f55a86dbe5931f41d25816bbd775cf6055')
build() {
cd "$pkgname-$pkgver"
diff --git a/psd.install b/psd.install
index 83767daa8a63..3daedc827d03 100644
--- a/psd.install
+++ b/psd.install
@@ -31,6 +31,7 @@ pre_upgrade() {
running="$(su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
if [[ "$running" = "active" ]]; then
su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
echo '-> Internal changes to psd require it to be stopped now before updating.'
echo '-> Recommend that you diff /usr/share/doc/psd/psd.conf against ~/.config/psd/psd.conf'
fi
@@ -41,6 +42,20 @@ pre_upgrade() {
echo '-> The use of $HOME/.psd is deprecated.'
echo '-> Psd will move it for you upon next invocation to $XDG_CONFIG_HOME/psd'
fi
+
+ # version 6.05 impliments changes to both the service and the way overlayfs is mounted/umount
+ # so it is required that pacman stop the user service here if running
+ if [ $(vercmp $2 6.05) -lt 0 ]; then
+ for i in $(users); do
+ running="$(su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
+ if [[ "$running" = "active" ]]; then
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
+ su $i -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
+ echo '-> Internal changes to psd require it to be stopped now before updating.'
+ echo '-> Users of overlayfs: you must run the following before starting the service: psd p'
+ fi
+ done
+ fi
}
pre_remove() {