Switch some pointless perl calls to sed.

This commit is contained in:
Jason Tibbitts 2016-11-23 18:56:25 -06:00
parent 6233132f55
commit 04c5de2868

View File

@ -105,19 +105,19 @@ one running the server.
%autosetup -p1
install -m 644 %SOURCE11 doc/
# Modify docs master --> cyrus-master
perl -pi -e "s@master\(8\)@cyrus-master(8)@" man/*5 man/*8 lib/imapoptions
sed -i -e 's|\([^-]\)master|\1cyrus-master|g;s|^master|cyrus-master|g;s|Master|Cyrus-master|g;s|MASTER|CYRUS-MASTER|g' \
# Modify the documentation to change master --> cyrus-master
sed -i -e "s/master(8)/cyrus-master(8)/" man/*5 man/*8 lib/imapoptions
sed -i -e 's|\([^-]\)master|\1cyrus-master|g' \
-e 's|^master|cyrus-master|g' \
-e 's|Master|Cyrus-master|g' \
-e 's|MASTER|CYRUS-MASTER|g' \
man/master.8 doc/man.html
# Modify path in perl scripts
find . -type f -name "*.pl" | xargs perl -pi -e "s@/usr/local/bin/perl@%{__perl}@"
# modify lmtp socket path in .conf files
perl -pi -e "s@/var/imap/@/var/lib/imap/@" master/conf/*.conf doc/cyrusv2.mc
sed -i -e "s@/var/imap/@/var/lib/imap/@" master/conf/*.conf doc/cyrusv2.mc
# enable idled in .conf files to prevent error messages
#perl -pi -e "s/# idled/ idled/" master/conf/*.conf
sed -i -e "s/# idled/ idled/" master/conf/*.conf
# Fix permissions on perl programs
find . -type f -name "*.pl" -exec chmod 755 {} \;
@ -327,8 +327,8 @@ fi
%config(noreplace) /etc/cyrus.conf
%config(noreplace) /etc/imapd.conf
%config(noreplace) /etc/logrotate.d/%{name}
%config(noreplace) /etc/sysconfig/%{name}
%config(noreplace) /etc/logrotate.d/cyrus-imapd
%config(noreplace) /etc/sysconfig/cyrus-imapd
%config(noreplace) /etc/pam.d/pop
%config(noreplace) /etc/pam.d/imap
%config(noreplace) /etc/pam.d/sieve