From e47cf852515b898f4bfe9f2652841c2d2697a8fac652d21c1a6f0d97d8c28665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Monin?= Date: Sat, 10 Mar 2018 17:25:37 +0000 Subject: [PATCH] Accepting request 585325 from home:benoit_monin:branches:server:mail fix bash scripts shebang OBS-URL: https://build.opensuse.org/request/show/585325 OBS-URL: https://build.opensuse.org/package/show/server:mail/msmtp?expand=0&rev=79 --- msmtp.changes | 5 +++++ msmtp.spec | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/msmtp.changes b/msmtp.changes index 7cecece..6cad8b4 100644 --- a/msmtp.changes +++ b/msmtp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 10 14:05:08 UTC 2018 - benoit.monin@gmx.fr + +- fix bash scripts shebang + ------------------------------------------------------------------- Sun Mar 26 19:29:42 UTC 2017 - dev+novell@devmotion.de diff --git a/msmtp.spec b/msmtp.spec index 7605a9a..9d58987 100644 --- a/msmtp.spec +++ b/msmtp.spec @@ -1,7 +1,7 @@ # # spec file for package msmtp # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,7 +54,7 @@ Requires(post): /sbin/install-info Requires(preun):/sbin/install-info %endif Summary: Lightweight SMTP Client -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Productivity/Networking/Email/Utilities Url: http://msmtp.sourceforge.net/ Source: http://prdownloads.sourceforge.net/msmtp/msmtp-%{version}.tar.xz @@ -97,6 +97,16 @@ a minimalistic replacement of sendmail. %prep %setup -q +# fix bash scripts shebang while preserving mtime +for i in scripts/msmtpqueue/*.sh \ + scripts/msmtpq/msmtpq \ + scripts/msmtpq/msmtp-queue \ + scripts/set_sendmail/*.sh \ + scripts/find_alias/*.sh; do + sed '1 s|#!/usr/bin/env bash|#!/bin/bash|' $i > $i.new + touch -r $i $i.new + mv $i.new $i +done %build %if 0%{?suse_version} > 1000