[arch-commits] Commit in rsync/trunk (PKGBUILD rsync.install)

Christian Hesse eworm at archlinux.org
Thu Oct 26 11:21:31 UTC 2017


    Date: Thursday, October 26, 2017 @ 11:21:30
  Author: eworm
Revision: 308487

upgpkg: rsync 3.1.2-6

add post-upgrade info about protecting home and system (and how to override)

Added:
  rsync/trunk/rsync.install
Modified:
  rsync/trunk/PKGBUILD

---------------+
 PKGBUILD      |    3 ++-
 rsync.install |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-26 07:13:50 UTC (rev 308486)
+++ PKGBUILD	2017-10-26 11:21:30 UTC (rev 308487)
@@ -2,7 +2,7 @@
 
 pkgname=rsync
 pkgver=3.1.2
-pkgrel=5
+pkgrel=6
 pkgdesc="A file transfer program to keep remote files in sync"
 arch=('i686' 'x86_64')
 url="https://rsync.samba.org/"
@@ -9,6 +9,7 @@
 license=('GPL3')
 depends=('perl' 'popt' 'acl')
 backup=('etc/rsyncd.conf' 'etc/xinetd.d/rsync')
+install=rsync.install
 validpgpkeys=('0048C8B026D4C96F0E589C2F6C859FB14B96A8C5') # Wayne Davison <wayned at users.sourceforge.net>
 source=("https://rsync.samba.org/ftp/rsync/$pkgname-$pkgver.tar.gz"{,.asc}
         'rsyncd.conf'

Added: rsync.install
===================================================================
--- rsync.install	                        (rev 0)
+++ rsync.install	2017-10-26 11:21:30 UTC (rev 308487)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+post_upgrade() {
+  # return if old package version greater 3.1.2-5...
+  (( $(vercmp "$2" '3.1.2-5') > 0 )) && return
+
+  # return if neither service nor socket is enabled...
+  systemctl -q is-enabled rsyncd.service rsyncd.socket || return
+
+  echo ' > For security reasons the rsyncd service protects home (/root and /home are'
+  echo ' > inaccessibly) and system (/boot, /etc and /usr are read-only). If you need'
+  echo ' > access use rsync via ssh or see the wiki for instructions to override:'
+  echo ' > https://wiki.archlinux.org/index.php/Rsync#rsync_daemon'
+}



More information about the arch-commits mailing list