summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <drizzt@gentoo.org>2007-01-06 13:44:07 +0000
committerTimothy Redaelli <drizzt@gentoo.org>2007-01-06 13:44:07 +0000
commit8b893a603b3f68664bbc978c2ea760d0a42e3571 (patch)
treeb5b36ae009c186a01fcff27de371d9332faf9392 /net-mail
parentAdd ~x86-fbsd keyword wrt bug 159240 (diff)
downloadgentoo-2-8b893a603b3f68664bbc978c2ea760d0a42e3571.tar.gz
gentoo-2-8b893a603b3f68664bbc978c2ea760d0a42e3571.tar.bz2
gentoo-2-8b893a603b3f68664bbc978c2ea760d0a42e3571.zip
Added stat for BSD wrt bug #153869, acknowledged by Fernando J. Pereda
(Portage version: 2.1.2_rc4-r4)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailbase/ChangeLog5
-rw-r--r--net-mail/mailbase/files/digest-mailbase-0.00-r61
-rw-r--r--net-mail/mailbase/files/digest-mailbase-11
-rw-r--r--net-mail/mailbase/mailbase-1.ebuild14
4 files changed, 15 insertions, 6 deletions
diff --git a/net-mail/mailbase/ChangeLog b/net-mail/mailbase/ChangeLog
index 3c69d7940d2f..6ce1fb16c962 100644
--- a/net-mail/mailbase/ChangeLog
+++ b/net-mail/mailbase/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-mail/mailbase
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.70 2007/01/06 01:07:19 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.71 2007/01/06 13:44:07 drizzt Exp $
+
+ 06 Jan 2007; Timothy Redaelli <drizzt@gentoo.org> mailbase-1.ebuild:
+ Added stat for BSD wrt bug #153869, acknowledged by Fernando J. Pereda
06 Jan 2007; Fernando J. Pereda <ferdy@gentoo.org>
-mailbase-0.00-r4.ebuild, -mailbase-0.00-r5.ebuild,
diff --git a/net-mail/mailbase/files/digest-mailbase-0.00-r6 b/net-mail/mailbase/files/digest-mailbase-0.00-r6
index 8b137891791f..e69de29bb2d1 100644
--- a/net-mail/mailbase/files/digest-mailbase-0.00-r6
+++ b/net-mail/mailbase/files/digest-mailbase-0.00-r6
@@ -1 +0,0 @@
-
diff --git a/net-mail/mailbase/files/digest-mailbase-1 b/net-mail/mailbase/files/digest-mailbase-1
index 8b137891791f..e69de29bb2d1 100644
--- a/net-mail/mailbase/files/digest-mailbase-1
+++ b/net-mail/mailbase/files/digest-mailbase-1
@@ -1 +0,0 @@
-
diff --git a/net-mail/mailbase/mailbase-1.ebuild b/net-mail/mailbase/mailbase-1.ebuild
index f0af91f928cb..f725bd8dae4f 100644
--- a/net-mail/mailbase/mailbase-1.ebuild
+++ b/net-mail/mailbase/mailbase-1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-1.ebuild,v 1.15 2006/10/17 11:00:11 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-1.ebuild,v 1.16 2007/01/06 13:44:07 drizzt Exp $
DESCRIPTION="MTA layout package"
SRC_URI=""
@@ -15,6 +15,14 @@ RDEPEND="pam? ( virtual/pam )"
S=${WORKDIR}
+get_permissions_oct() {
+ if [[ ${USERLAND} = GNU ]]; then
+ stat -c%a "${ROOT}$1"
+ elif [[ ${USERLAND} = BSD ]] || [[ ${USERLAND} = Darwin ]]; then
+ stat -f%p "${ROOT}$1" | cut -c 3-
+ fi
+}
+
src_install() {
dodir /etc/mail
insinto /etc/mail
@@ -46,7 +54,7 @@ src_install() {
}
pkg_postinst() {
- if [ "$(stat -c%a ${ROOT}/var/spool/mail/)" != "775" ] ; then
+ if [[ "$(get_permissions_oct /var/spool/mail)" != "775" ]] ; then
echo
ewarn
ewarn "Your ${ROOT}/var/spool/mail/ directory permissions differ from"