From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB6A41382C5 for ; Wed, 3 Jan 2018 18:39:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F9BDE0857; Wed, 3 Jan 2018 18:39:13 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1158BE0857 for ; Wed, 3 Jan 2018 18:39:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F35C6335C4B for ; Wed, 3 Jan 2018 18:39:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F9D81A7 for ; Wed, 3 Jan 2018 18:39:09 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1515004654.181d152380aa77d302585b7f5048df95775c0b4f.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/safecat/files/, net-mail/safecat/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/safecat/files/safecat-1.13-head-tail-POSIX.patch net-mail/safecat/safecat-1.13.ebuild X-VCS-Directories: net-mail/safecat/ net-mail/safecat/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 181d152380aa77d302585b7f5048df95775c0b4f X-VCS-Branch: master Date: Wed, 3 Jan 2018 18:39:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dace3345-1d69-4005-a4d3-aed42aa68787 X-Archives-Hash: 7b1eb6882061ec2ecae18c99c2b248ed commit: 181d152380aa77d302585b7f5048df95775c0b4f Author: David Seifert gentoo org> AuthorDate: Wed Jan 3 18:37:34 2018 +0000 Commit: David Seifert gentoo org> CommitDate: Wed Jan 3 18:37:34 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181d1523 net-mail/safecat: Port to EAPI 6 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/safecat-1.13-head-tail-POSIX.patch | 45 ++++++++++++++++++++++ net-mail/safecat/safecat-1.13.ebuild | 41 +++++++++----------- 2 files changed, 64 insertions(+), 22 deletions(-) diff --git a/net-mail/safecat/files/safecat-1.13-head-tail-POSIX.patch b/net-mail/safecat/files/safecat-1.13-head-tail-POSIX.patch new file mode 100644 index 00000000000..59bd33b0f76 --- /dev/null +++ b/net-mail/safecat/files/safecat-1.13-head-tail-POSIX.patch @@ -0,0 +1,45 @@ +--- a/make-compile.sh ++++ b/make-compile.sh +@@ -1 +1 @@ +-echo exec "$CC" "`head -1 conf-includes`" -c '${1+"$@"}' ++echo exec "$CC" "`head -n 1 conf-includes`" -c '${1+"$@"}' +--- a/Makefile ++++ b/Makefile +@@ -17,8 +17,8 @@ + auto-ccld.sh: \ + conf-cc conf-ld warn-auto.sh + ( cat warn-auto.sh; \ +- echo CC=\'`head -1 conf-cc`\'; \ +- echo LD=\'`head -1 conf-ld`\'; \ ++ echo CC=\'`head -n 1 conf-cc`\'; \ ++ echo LD=\'`head -n 1 conf-ld`\'; \ + ) > auto-ccld.sh + + auto-str: \ +@@ -31,7 +31,7 @@ + + auto_home.c: \ + auto-str conf-root +- ./auto-str auto_home `head -1 conf-root` > auto_home.c ++ ./auto-str auto_home `head -n 1 conf-root` > auto_home.c + + auto_home.o: \ + compile auto_home.c +@@ -161,7 +161,7 @@ + maildir: \ + warn-auto.sh maildir.sh conf-root + cat warn-auto.sh maildir.sh \ +- | sed s}HOME}"`head -1 conf-root`"}g \ ++ | sed s}HOME}"`head -n 1 conf-root`"}g \ + > maildir + chmod 755 maildir + +@@ -407,7 +407,7 @@ + version.h: \ + conf-version + @echo 'static const char *const version_string="$$Version:' \ +- `head -1 conf-version` 'built' `date +"%b %d, %Y"` at \ ++ `head -n 1 conf-version` 'built' `date +"%b %d, %Y"` at \ + `date +"%H:%M"`'$$";' > version.h + + writefile.o: \ diff --git a/net-mail/safecat/safecat-1.13.ebuild b/net-mail/safecat/safecat-1.13.ebuild index 78dc3a09942..7dbf9cc60c4 100644 --- a/net-mail/safecat/safecat-1.13.ebuild +++ b/net-mail/safecat/safecat-1.13.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="3" +EAPI=6 -inherit fixheadtails eutils toolchain-funcs flag-o-matic +inherit toolchain-funcs -DESCRIPTION="Safecat implements qmail's maildir algorithm, copying standard input safely to a specified directory" +DESCRIPTION="Safecat implements qmail's maildir algorithm, safely copying standard input" HOMEPAGE="http://www.jeenyus.net/linux/software/safecat.html" SRC_URI="http://www.jeenyus.net/linux/software/${PN}/${P}.tar.gz" @@ -18,35 +18,32 @@ RESTRICT="test" DEPEND="sys-apps/groff" RDEPEND="" -src_prepare() { +PATCHES=( # applying maildir-patch - epatch "${FILESDIR}"/safecat-1.11-gentoo.patch - + "${FILESDIR}"/safecat-1.11-gentoo.patch # Fix parallel make errors - epatch "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${P}-makefile.patch + # Fix POSIX head/tail syntax + "${FILESDIR}"/${P}-head-tail-POSIX.patch +) - ht_fix_file Makefile make-compile.sh +src_prepare() { + default - sed -ni '/man\|doc/!p' hier.c + sed -ni '/man\|doc/!p' hier.c || die # Fix implicit decleration - sed -i -e '/include / a #include ' \ - safecat.c + sed '/include / a #include ' -i safecat.c || die } src_configure() { - # safecat segfaults on gcc-4.0 x86 with -Os, seems to be okay with -O2 - if [[ $(gcc-major-version).$(gcc-minor-version) == 4.0 ]]; then - replace-flags -Os -O2 - fi - - echo "${D}/usr" > conf-root - echo "$(tc-getCC) ${CFLAGS}" > conf-cc - echo "$(tc-getCC) ${LDFLAGS}" > conf-ld + echo "${D}/usr" > conf-root || die + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die } src_install() { - emake setup check || die - dodoc CHANGES README + emake setup check + einstalldocs doman maildir.1 safecat.1 }