robert pushed to mimedefang (f21). "Fix wrong interpreter of mimedefang-util script (#1218754)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue May 5 19:30:01 UTC 2015


>From 28bc31109d49be7747632839b05b9cab37076747 Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert at fedoraproject.org>
Date: Tue, 5 May 2015 21:28:59 +0200
Subject: Fix wrong interpreter of mimedefang-util script (#1218754)


diff --git a/mimedefang.spec b/mimedefang.spec
index f76e266..6da5364 100644
--- a/mimedefang.spec
+++ b/mimedefang.spec
@@ -1,7 +1,7 @@
 Summary:           E-Mail filtering framework using Sendmail's Milter interface
 Name:              mimedefang
 Version:           2.78
-Release:           1%{?dist}
+Release:           2%{?dist}
 License:           GPLv2+
 Group:             System Environment/Daemons
 URL:               http://www.mimedefang.org/
@@ -52,6 +52,10 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mail/sa-mimedefang.cf.example
 sed -e 's/\(-m $MX_SOCKET\)/\1 -y/' -i $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
 %endif
 
+# Fix interpreter (without path) of mimedefang-util script
+sed -e 's@^#!perl -w@#!%{_bindir}/perl -w@' -i $RPM_BUILD_ROOT%{_bindir}/mimedefang-util
+touch -c -r script/mimedefang-util $RPM_BUILD_ROOT%{_bindir}/mimedefang-util
+
 # Create a dummy file and install perl script for later executing
 touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/mimedefang-ip-key
 sed -e '1s@^@#!%{_bindir}/perl\n@' gen-ip-validator.pl > gen-ip-validator.pl.new
@@ -107,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
 
 %changelog
+* Tue May 05 2015 Robert Scheck <robert at fedoraproject.org> 2.78-2
+- Fix wrong interpreter of mimedefang-util script (#1218754)
+
 * Thu Apr 23 2015 Robert Scheck <robert at fedoraproject.org> 2.78-1
 - Upgrade to 2.78 (#1213639)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/mimedefang.git/commit/?h=f21&id=28bc31109d49be7747632839b05b9cab37076747


More information about the scm-commits mailing list