From 9996b65640bb9b92673f377a9864644a67bb426c Mon Sep 17 00:00:00 2001 From: Tuan Van Date: Tue, 13 Jul 2004 23:23:55 +0000 Subject: use epatch instead of patch, trying not to use "awk." --- mail-filter/amavis/ChangeLog | 5 ++++- mail-filter/amavis/amavis-0.3.12.ebuild | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'mail-filter') diff --git a/mail-filter/amavis/ChangeLog b/mail-filter/amavis/ChangeLog index ad6b176afcfc..abdcf8b93a86 100644 --- a/mail-filter/amavis/ChangeLog +++ b/mail-filter/amavis/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-mail/amavis # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/ChangeLog,v 1.8 2004/07/11 05:04:02 langthang Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/ChangeLog,v 1.9 2004/07/13 23:23:55 langthang Exp $ + + 13 Jul 2004; Tuan Van amavis-0.3.12.ebuild: + use epatch instead of patch, trying not to use "awk." 10 Jul 2004; Tuan Van : touchup "mymta" line. diff --git a/mail-filter/amavis/amavis-0.3.12.ebuild b/mail-filter/amavis/amavis-0.3.12.ebuild index d3c083b7b4de..08230eb01790 100644 --- a/mail-filter/amavis/amavis-0.3.12.ebuild +++ b/mail-filter/amavis/amavis-0.3.12.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/amavis-0.3.12.ebuild,v 1.7 2004/07/11 05:01:22 langthang Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/amavis/amavis-0.3.12.ebuild,v 1.8 2004/07/13 23:23:55 langthang Exp $ inherit eutils @@ -55,7 +55,9 @@ pkg_setup() { echo "virusalert: root" >> /etc/mail/aliases newaliases || die "check your /etc/mail/aliases for problems" fi - mymta=$(best_version virtual/mta | awk -F/ '{print $2}' | awk -F- '{print $1}') + mymta=$(portageq best_version / virtual/mta) + mymta=${mymta%-[0-9]*} + mymta=${mymta##*\/} einfo "My MTA is: ${mymta}" } @@ -65,7 +67,7 @@ src_unpack() { cd ${S} if [ "$mymta" == "postfix" ]; then - patch -p1 < ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" + epatch ${FILESDIR}/0.3.12-postfix.diff || die "patch failed" fi } -- cgit v1.2.3-65-gdbad