commit:     521945589adfa47fa37a938450db4e1d38b23580
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue May 25 08:31:06 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue May 25 08:31:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52194558

net-misc/rsync: Don't use deprecated grep syntax

Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-misc/rsync/rsync-3.2.3-r4.ebuild | 2 +-
 net-misc/rsync/rsync-9999.ebuild     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-misc/rsync/rsync-3.2.3-r4.ebuild 
b/net-misc/rsync/rsync-3.2.3-r4.ebuild
index d5c381d9ed3..34c869e7619 100644
--- a/net-misc/rsync/rsync-3.2.3-r4.ebuild
+++ b/net-misc/rsync/rsync-3.2.3-r4.ebuild
@@ -119,7 +119,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       if egrep -qis '^[[:space:]]use 
chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
+       if grep -Eqis '^[[:space:]]use 
chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
                "${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; 
then
                ewarn "You have disabled chroot support in your rsyncd.conf.  
This"
                ewarn "is a security risk which you should fix.  Please check 
your"

diff --git a/net-misc/rsync/rsync-9999.ebuild b/net-misc/rsync/rsync-9999.ebuild
index de005c109c3..a0178f21af5 100644
--- a/net-misc/rsync/rsync-9999.ebuild
+++ b/net-misc/rsync/rsync-9999.ebuild
@@ -116,7 +116,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       if egrep -qis '^[[:space:]]use 
chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
+       if grep -Eqis '^[[:space:]]use 
chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
                "${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; 
then
                ewarn "You have disabled chroot support in your rsyncd.conf.  
This"
                ewarn "is a security risk which you should fix.  Please check 
your"

Reply via email to