[packages/rc-inetd] Rel 2; don't use egrep

arekm arekm at pld-linux.org
Sat Mar 23 22:10:46 CET 2024


commit fb04cc9f7a13467be93478d6229277ecf42df0bf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 23 22:03:43 2024 +0100

    Rel 2; don't use egrep

 egrep.patch   | 12 ++++++++++++
 rc-inetd.spec |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/rc-inetd.spec b/rc-inetd.spec
index e59cb42..d79f02d 100644
--- a/rc-inetd.spec
+++ b/rc-inetd.spec
@@ -2,11 +2,12 @@ Summary:	Wrapper for managing inet service using any kind of inet daemon
 Summary(pl.UTF-8):	Skrypty do zarządzania usługami inet
 Name:		rc-inetd
 Version:	0.17
-Release:	2
+Release:	3
 License:	GPL
 Group:		Base
 Source0:	%{name}-%{version}.tar.bz2
 # Source0-md5:	7218ebe82d2755a8d5051bd9b3a1a221
+Patch0:		egrep.patch
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	inetdaemon
@@ -23,6 +24,7 @@ demona inet.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/egrep.patch b/egrep.patch
new file mode 100644
index 0000000..0af1fc4
--- /dev/null
+++ b/egrep.patch
@@ -0,0 +1,12 @@
+diff -urN rc-inetd-0.17.org/rc-inetd rc-inetd-0.17/rc-inetd
+--- rc-inetd-0.17.org/rc-inetd	2007-11-01 20:43:31.000000000 +0100
++++ rc-inetd-0.17/rc-inetd	2024-03-23 22:02:36.189978720 +0100
+@@ -34,7 +34,7 @@
+ 	exit 5
+ fi
+ 
+-SERVICES=$(ls -d /etc/sysconfig/rc-inetd/* 2>/dev/null | egrep -v '.*(\.rpm(save|new|orig)|~|CVS)')
++SERVICES=$(ls -d /etc/sysconfig/rc-inetd/* 2>/dev/null | grep -Ev '.*(\.rpm(save|new|orig)|~|CVS)')
+ 
+ gen_config_file()
+ {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rc-inetd.git/commitdiff/fb04cc9f7a13467be93478d6229277ecf42df0bf



More information about the pld-cvs-commit mailing list