diff options
author | Tuan Van <langthang@gentoo.org> | 2004-07-13 23:23:55 +0000 |
---|---|---|
committer | Tuan Van <langthang@gentoo.org> | 2004-07-13 23:23:55 +0000 |
commit | 9996b65640bb9b92673f377a9864644a67bb426c (patch) | |
tree | 81a4591722cc512c3f0d205b09d615f2fe43f11d /mail-filter | |
parent | keywording (Manifest recommit) (diff) | |
download | gentoo-2-9996b65640bb9b92673f377a9864644a67bb426c.tar.gz gentoo-2-9996b65640bb9b92673f377a9864644a67bb426c.tar.bz2 gentoo-2-9996b65640bb9b92673f377a9864644a67bb426c.zip |
use epatch instead of patch, trying not to use "awk."
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/amavis/ChangeLog | 5 | ||||
-rw-r--r-- | mail-filter/amavis/amavis-0.3.12.ebuild | 8 |
2 files changed, 9 insertions, 4 deletions
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 <langthang@gentoo.org> amavis-0.3.12.ebuild: + use epatch instead of patch, trying not to use "awk." 10 Jul 2004; Tuan Van <langthang@gentoo.org> : 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 } |