Date: Monday, October 10, 2022 @ 18:40:21
  Author: dvzrv
Revision: 457537

Remove install script as {pre,post}_upgrade() functions target upgrade 
scenarios from 2.5+ years ago.

Modified:
  openssh/trunk/PKGBUILD
Deleted:
  openssh/trunk/install

----------+
 PKGBUILD |    1 -
 install  |   32 --------------------------------
 2 files changed, 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-10 18:24:02 UTC (rev 457536)
+++ PKGBUILD    2022-10-10 18:40:21 UTC (rev 457537)
@@ -33,7 +33,6 @@
   'etc/ssh/sshd_config'
 )
 options=('debug')
-install=install
 source=(
   
"https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${pkgver}.tar.gz"{,.asc}
   "$pkgname-9.0p1-sshd_config.patch"

Deleted: install
===================================================================
--- install     2022-10-10 18:24:02 UTC (rev 457536)
+++ install     2022-10-10 18:40:21 UTC (rev 457537)
@@ -1,32 +0,0 @@
-pre_upgrade() {
-       # Remove socket activation. See: https://bugs.archlinux.org/task/62248
-       if (( $(vercmp $2 8.0p1-3) < 0 )); then
-       if systemctl is-enabled -q sshd.socket; then
-               cat <<EOF
-==> This package no longer provides sshd.socket and [email protected];
-==> copies of those files will be placed under /etc/systemd/system
-==> but please migrate to sshd.service whenever possible.
-EOF
-               src=/usr/lib/systemd/system
-               dst=/etc/systemd/system
-               for i in sshd.socket sshd\@.service; do
-                       if [[ ! -e "$dst/$i" ]]; then
-                               cp -v "$src/$i" "$dst/$i"
-                       fi
-               done
-               systemctl reenable sshd.socket
-       fi
-       fi
-}
-
-post_upgrade() {
-       if (( $(vercmp $2 8.2p1-3) < 0 )); then
-               if systemctl is-active sshd.service >/dev/null; then
-                       cat <<EOF
-==> After this upgrade, your existing SSH daemon may be unable to accept
-==> new connections. To fix this, your SSH daemon will now be restarted.
-EOF
-                       systemctl restart sshd.service
-               fi
-       fi
-}

Reply via email to