[arch-commits] Commit in profile-sync-daemon/repos/community-any (4 files)

David Runge dvzrv at gemini.archlinux.org
Thu Sep 8 07:02:01 UTC 2022


    Date: Thursday, September 8, 2022 @ 07:02:00
  Author: dvzrv
Revision: 1296146

archrelease: copy trunk to community-any

Added:
  profile-sync-daemon/repos/community-any/PKGBUILD
    (from rev 1296145, profile-sync-daemon/trunk/PKGBUILD)
  profile-sync-daemon/repos/community-any/profile-sync-daemon.install
    (from rev 1296145, profile-sync-daemon/trunk/profile-sync-daemon.install)
Deleted:
  profile-sync-daemon/repos/community-any/PKGBUILD
  profile-sync-daemon/repos/community-any/profile-sync-daemon.install

-----------------------------+
 PKGBUILD                    |   54 +++---
 profile-sync-daemon.install |  331 +++++++++++++++++++++---------------------
 2 files changed, 198 insertions(+), 187 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-08 07:01:48 UTC (rev 1296145)
+++ PKGBUILD	2022-09-08 07:02:00 UTC (rev 1296146)
@@ -1,27 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: graysky <graysky AT archlinux DOT us>
-
-pkgname=profile-sync-daemon
-pkgver=6.45
-pkgrel=1
-epoch=1
-pkgdesc="Symlinks and syncs browser profile dirs to RAM"
-arch=(any)
-url="https://github.com/graysky2/profile-sync-daemon"
-license=(MIT)
-depends=(bash findutils procps-ng rsync systemd)
-optdepends=('zsh-completions: for completion when using zsh')
-install=$pkgname.install
-source=($pkgname-$pkgver.tar.gz::https://github.com/graysky2/$pkgname/archive/v$pkgver.tar.gz)
-sha512sums=('6408d506f48671ad1340ce4a60109a482565c7174f56db8a528884319594b901b3d2d7e99b30536992934065ad2fbaff7a9335cd1952a7a1aaf6c920fb9aa90e')
-b2sums=('0b891fe3ad05e22fc32087d451ad987379654419fcbe73aeeb9c536b5f5f834700ea4c0d8b5a5f4dbbfb010171fd40508d348f531eb56bb085717c4c36fd0517')
-
-build() {
-  make -C $pkgname-$pkgver
-}
-
-package() {
-  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
-  install -vDm 644 $pkgname-$pkgver/MIT -t "$pkgdir/usr/share/licenses/$pkgname/"
-  install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
-}

Copied: profile-sync-daemon/repos/community-any/PKGBUILD (from rev 1296145, profile-sync-daemon/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-08 07:02:00 UTC (rev 1296146)
@@ -0,0 +1,27 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: graysky <graysky AT archlinux DOT us>
+
+pkgname=profile-sync-daemon
+pkgver=6.47
+pkgrel=1
+epoch=1
+pkgdesc="Symlinks and syncs browser profile dirs to RAM"
+arch=(any)
+url="https://github.com/graysky2/profile-sync-daemon"
+license=(MIT)
+depends=(bash findutils procps-ng rsync systemd)
+optdepends=('zsh-completions: for completion when using zsh')
+install=$pkgname.install
+source=($pkgname-$pkgver.tar.gz::https://github.com/graysky2/$pkgname/archive/v$pkgver.tar.gz)
+sha512sums=('40ef4d9a234391d33a11c16308263dcb953acbf35df28fe9840fa544467150f269e7d7a567bc53a4e5d98c33611eec816c51226c69cb1dd69c2649c1935066fe')
+b2sums=('d00b07997a5dc1ab981aeb96d1288ed1af8f0c7d432758adb64b3fd3b0cb9b9d0bb61106c55153246e3cad18f2f5d73bee7928e4dfb5df4f6c775f041cd968da')
+
+build() {
+  make -C $pkgname-$pkgver
+}
+
+package() {
+  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
+  install -vDm 644 $pkgname-$pkgver/MIT -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Deleted: profile-sync-daemon.install
===================================================================
--- profile-sync-daemon.install	2022-09-08 07:01:48 UTC (rev 1296145)
+++ profile-sync-daemon.install	2022-09-08 07:02:00 UTC (rev 1296146)
@@ -1,160 +0,0 @@
-## arg 1:  the new package version
-## arg 2:  the old package version
-# shellcheck disable=SC2016
-
-users=$(loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g')
-
-pre_upgrade() {
-  # version 6.00 is a major rebuild
-  # yes, I realize that pacman should not stop services but in this case it
-  # is required or else browser profiles (user data) can get renamed and confuse
-  # people if it does not happen
-  if [ "$(vercmp "$2" 6.00)" -lt 0 ]; then
-    echo 'Attention: Major changes have been introduced with 6.00+'
-    echo 'Instead of a system service a user service is now used.'
-    echo 'Only $HOME/.config/psd/psd.conf is used (and automatically created on first start).'
-    echo 'To use overlayfs additional setup steps are required (see `man 1 psd`).'
-
-    # stop system service now since it will be removed upon updating
-    if systemctl is-active psd.service &>/dev/null; then
-      systemctl stop psd.service &>/dev/null
-    fi
-  fi
-
-  # version 6.01 redefines the location of tmpfs for the software so it is
-  # required that pacman stop the user service here if running
-  if [ "$(vercmp "$2" 6.01)" -lt 0 ]; then
-    for user in $users; do
-      if _psd_running_for_user "$user"; then
-        _stop_psd_for_user "$user"
-        _diff_recommendation
-      fi
-    done
-  fi
-
-  if [ "$(vercmp "$2" 6.03)" -lt 0 ]; then
-    for user in $users; do
-      HOMEDIR="$(getent passwd "$user" | cut -d: -f6)"
-      if [[ -d "$HOMEDIR"/.psd ]]; then
-        echo 'The use of $HOME/.psd for configuration is deprecated.'
-        echo 'Psd will move it for you upon next invocation to $XDG_CONFIG_HOME/psd'
-      fi
-    done
-
-    # 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 user in $users; do
-        if _psd_running_for_user "$user"; then
-          _stop_psd_for_user "$user"
-          echo 'Users of overlayfs: Before starting the service `psd p` must be run.'
-        fi
-      done
-    fi
-  fi
-
-  # version 6.07 has minor changes to config file
-  if [ "$(vercmp "$2" 6.07)" -lt 0 ]; then
-    _diff_recommendation
-  fi
-
-  # version 6.10 relocates pid file
-  if [ "$(vercmp "$2" 6.10)" -lt 0 ]; then
-    for user in $users; do
-      if _psd_running_for_user "$user"; then
-        _stop_psd_for_user "$user"
-      fi
-    done
-  fi
-
-  # version 6.14 changes the way overlayfs works
-  if [ "$(vercmp "$2" 6.14)" -lt 0 ]; then
-    for user in $users; do
-      if _psd_running_for_user "$user"; then
-        _stop_psd_for_user "$user"
-      fi
-    done
-  fi
-
-  # version 6.16 has minor changes to config file
-  if [ "$(vercmp "$2" 6.16)" -lt 0 ]; then
-    _diff_recommendation
-  fi
-
-  # version 6.22 has minor changes to config file
-  if [ "$(vercmp "$2" 6.22)" -lt 0 ]; then
-    _diff_recommendation
-  fi
-
-  # version 6.30 has minor changes to config file
-  if [ "$(vercmp "$2" 6.30)" -lt 0 ]; then
-    _diff_recommendation
-  fi
-
-  # version 6.40 has minor changes to config file
-  if [ "$(vercmp "$2" 6.40)" -lt 0 ]; then
-    _diff_recommendation
-  fi
-}
-
-post_upgrade() {
-  # version 6.01 redefines the location of tmpfs for the software so it is
-  # required that pacman stop the user service here if running
-  if [ "$(vercmp "$2" 6.01)" -lt 0 ]; then
-    _daemon_refresh
-  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
-    _daemon_refresh
-  fi
-
-  # version 6.10 relocates pid file
-  if [ "$(vercmp "$2" 6.10)" -lt 0 ]; then
-    _daemon_refresh
-  fi
-
-  # version 6.11 modified services
-  if [ "$(vercmp "$2" 6.11)" -lt 0 ]; then
-    _daemon_refresh
-  fi
-
-  # version 6.14 modified services
-  if [ "$(vercmp "$2" 6.14)" -lt 0 ]; then
-    _daemon_refresh
-  fi
-}
-
-pre_remove() {
-  for user in $users; do
-    if _psd_running_for_user "$user"; then
-      _stop_psd_for_user "$user"
-    fi
-  done
-}
-
-_daemon_refresh() {
-  for i in $users; do
-    su "$i" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
-  done
-}
-
-_psd_running_for_user() {
-  running="$(su "$1" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
-  if [[ "$running" = "active" ]]; then
-    return 0
-  else
-    return 1
-  fi
-}
-
-_stop_psd_for_user() {
-  echo "In order to preserve the browser profiles, all psd user services will be stopped."
-  echo "Any running and managed browsers will be exited."
-  su "$1" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
-}
-
-_diff_recommendation() {
-  echo 'It is recommend to diff /usr/share/psd/psd.conf against ~/.config/psd/psd.conf'
-}

Copied: profile-sync-daemon/repos/community-any/profile-sync-daemon.install (from rev 1296145, profile-sync-daemon/trunk/profile-sync-daemon.install)
===================================================================
--- profile-sync-daemon.install	                        (rev 0)
+++ profile-sync-daemon.install	2022-09-08 07:02:00 UTC (rev 1296146)
@@ -0,0 +1,171 @@
+## arg 1:  the new package version
+## arg 2:  the old package version
+# shellcheck disable=SC2016
+
+users=$(loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g')
+
+pre_upgrade() {
+  # version 6.00 is a major rebuild
+  # yes, I realize that pacman should not stop services but in this case it
+  # is required or else browser profiles (user data) can get renamed and confuse
+  # people if it does not happen
+  if [ "$(vercmp "$2" 6.00)" -lt 0 ]; then
+    echo 'Attention: Major changes have been introduced with 6.00+'
+    echo 'Instead of a system service a user service is now used.'
+    echo 'Only $HOME/.config/psd/psd.conf is used (and automatically created on first start).'
+    echo 'To use overlayfs additional setup steps are required (see `man 1 psd`).'
+
+    # stop system service now since it will be removed upon updating
+    if systemctl is-active psd.service &>/dev/null; then
+      systemctl stop psd.service &>/dev/null
+    fi
+  fi
+
+  # version 6.01 redefines the location of tmpfs for the software so it is
+  # required that pacman stop the user service here if running
+  if [ "$(vercmp "$2" 6.01)" -lt 0 ]; then
+    for user in $users; do
+      if _psd_running_for_user "$user"; then
+        _stop_psd_for_user "$user"
+        _diff_recommendation
+      fi
+    done
+  fi
+
+  if [ "$(vercmp "$2" 6.03)" -lt 0 ]; then
+    for user in $users; do
+      HOMEDIR="$(getent passwd "$user" | cut -d: -f6)"
+      if [[ -d "$HOMEDIR"/.psd ]]; then
+        echo 'The use of $HOME/.psd for configuration is deprecated.'
+        echo 'Psd will move it for you upon next invocation to $XDG_CONFIG_HOME/psd'
+      fi
+    done
+
+    # 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 user in $users; do
+        if _psd_running_for_user "$user"; then
+          _stop_psd_for_user "$user"
+          echo 'Users of overlayfs: Before starting the service `psd p` must be run.'
+        fi
+      done
+    fi
+  fi
+
+  # version 6.07 has minor changes to config file
+  if [ "$(vercmp "$2" 6.07)" -lt 0 ]; then
+    _diff_recommendation
+  fi
+
+  # version 6.10 relocates pid file
+  if [ "$(vercmp "$2" 6.10)" -lt 0 ]; then
+    for user in $users; do
+      if _psd_running_for_user "$user"; then
+        _stop_psd_for_user "$user"
+      fi
+    done
+  fi
+
+  # version 6.14 changes the way overlayfs works
+  if [ "$(vercmp "$2" 6.14)" -lt 0 ]; then
+    for user in $users; do
+      if _psd_running_for_user "$user"; then
+        _stop_psd_for_user "$user"
+      fi
+    done
+  fi
+
+  # version 6.16 has minor changes to config file
+  if [ "$(vercmp "$2" 6.16)" -lt 0 ]; then
+    _diff_recommendation
+  fi
+
+  # version 6.22 has minor changes to config file
+  if [ "$(vercmp "$2" 6.22)" -lt 0 ]; then
+    _diff_recommendation
+  fi
+
+  # version 6.30 has minor changes to config file
+  if [ "$(vercmp "$2" 6.30)" -lt 0 ]; then
+    _diff_recommendation
+  fi
+
+  # version 6.40 has minor changes to config file
+  if [ "$(vercmp "$2" 6.40)" -lt 0 ]; then
+    _diff_recommendation
+  fi
+
+  # version 6.46 redefines the location of tmpfs for the software so it is
+  # required that pacman stop the user service here if running
+  if [ "$(vercmp "$2" 1:6.46)" -lt 0 ]; then
+    for user in $users; do
+      if _psd_running_for_user "$user"; then
+        _stop_psd_for_user "$user"
+      fi
+    done
+  fi
+
+}
+
+post_upgrade() {
+  # version 6.01 redefines the location of tmpfs for the software so it is
+  # required that pacman stop the user service here if running
+  if [ "$(vercmp "$2" 6.01)" -lt 0 ]; then
+    _daemon_refresh
+  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
+    _daemon_refresh
+  fi
+
+  # version 6.10 relocates pid file
+  if [ "$(vercmp "$2" 6.10)" -lt 0 ]; then
+    _daemon_refresh
+  fi
+
+  # version 6.11 modified services
+  if [ "$(vercmp "$2" 6.11)" -lt 0 ]; then
+    _daemon_refresh
+  fi
+
+  # version 6.14 modified services
+  if [ "$(vercmp "$2" 6.14)" -lt 0 ]; then
+    _daemon_refresh
+  fi
+}
+
+pre_remove() {
+  for user in $users; do
+    if _psd_running_for_user "$user"; then
+      _stop_psd_for_user "$user"
+    fi
+  done
+}
+
+_daemon_refresh() {
+  for i in $users; do
+    su "$i" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user daemon-reload'
+  done
+}
+
+_psd_running_for_user() {
+  running="$(su "$1" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user is-active psd')"
+  if [[ "$running" = "active" ]]; then
+    return 0
+  else
+    return 1
+  fi
+}
+
+_stop_psd_for_user() {
+  echo "In order to preserve the browser profiles, all psd user services will be stopped."
+  echo "Any running and managed browsers will be exited."
+  su "$1" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop psd.service'
+}
+
+_diff_recommendation() {
+  echo 'It is recommend to diff /usr/share/psd/psd.conf against ~/.config/psd/psd.conf'
+}



More information about the arch-commits mailing list