From 207264d1f247f9fd87e80c49015f91dc6e442a2f Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Sat, 6 Jan 2007 13:44:07 +0000 Subject: [PATCH] Added stat for BSD wrt bug #153869, acknowledged by Fernando J. Pereda Package-Manager: portage-2.1.2_rc4-r4 --- net-mail/mailbase/ChangeLog | 5 ++- net-mail/mailbase/Manifest | 36 +++++++++---------- .../mailbase/files/digest-mailbase-0.00-r6 | 1 - net-mail/mailbase/files/digest-mailbase-1 | 1 - net-mail/mailbase/mailbase-1.ebuild | 14 ++++++-- 5 files changed, 33 insertions(+), 24 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 mailbase-1.ebuild: + Added stat for BSD wrt bug #153869, acknowledged by Fernando J. Pereda 06 Jan 2007; Fernando J. Pereda -mailbase-0.00-r4.ebuild, -mailbase-0.00-r5.ebuild, diff --git a/net-mail/mailbase/Manifest b/net-mail/mailbase/Manifest index c64a25139bc5..db60222855b9 100644 --- a/net-mail/mailbase/Manifest +++ b/net-mail/mailbase/Manifest @@ -21,28 +21,28 @@ EBUILD mailbase-0.00-r6.ebuild 902 RMD160 2a0887fe87b21bf866960e13b0993277635a00 MD5 d70889cf9ee474b30325789a31c253a9 mailbase-0.00-r6.ebuild 902 RMD160 2a0887fe87b21bf866960e13b0993277635a00a1 mailbase-0.00-r6.ebuild 902 SHA256 85b9ef182cab5b47f93ee6817eee55734b82bb12c04bafb21f1ccd25212ddcbe mailbase-0.00-r6.ebuild 902 -EBUILD mailbase-1.ebuild 1560 RMD160 7eba9df1a63a254a81b270b1b93b3248e9b34e8e SHA1 befc2e205fd4961101dc61f2c5bc16ff8d387879 SHA256 ab1a8a531c1eafb93acdc5ad99a4569370fb544e0c0d1b3c8a1a4bfa655c13ca -MD5 a5548bfbccd47cbc45bff692e91af614 mailbase-1.ebuild 1560 -RMD160 7eba9df1a63a254a81b270b1b93b3248e9b34e8e mailbase-1.ebuild 1560 -SHA256 ab1a8a531c1eafb93acdc5ad99a4569370fb544e0c0d1b3c8a1a4bfa655c13ca mailbase-1.ebuild 1560 -MISC ChangeLog 8032 RMD160 bc789b9269d00e5a43ce77899c3782a09cc2bf33 SHA1 84c5b4b6262184a44950fb64a3f7c48dacf69357 SHA256 6e5827c39322d3cf653058ff3ed9a6077fe6aa218019fd67a558ed5c291025a0 -MD5 96bd38fd1a905e1447cbcbb1a749f9dc ChangeLog 8032 -RMD160 bc789b9269d00e5a43ce77899c3782a09cc2bf33 ChangeLog 8032 -SHA256 6e5827c39322d3cf653058ff3ed9a6077fe6aa218019fd67a558ed5c291025a0 ChangeLog 8032 +EBUILD mailbase-1.ebuild 1753 RMD160 6478485513ae562d798cf37b1b7f26c9f4b180cf SHA1 49ad979b66b66bc7723fc4e64ee361de606d608a SHA256 578ec0caa1a28f520c6874318fe72f0e58bcd20902b66960568e85578f3ee6b1 +MD5 cf9d7fdde11c7151aeecb3f2538881e4 mailbase-1.ebuild 1753 +RMD160 6478485513ae562d798cf37b1b7f26c9f4b180cf mailbase-1.ebuild 1753 +SHA256 578ec0caa1a28f520c6874318fe72f0e58bcd20902b66960568e85578f3ee6b1 mailbase-1.ebuild 1753 +MISC ChangeLog 8178 RMD160 85aa185e8891cea832b75b3b5c61cdbc0b16187e SHA1 243d10543ec69eb677af9e6e80c2b7210f503809 SHA256 1f061e853c37d6e4332f22b39b8434fd3735b57a9f2c9371406cc481edd34b5a +MD5 b4d3f10ade4ee087c8d48f43a6d8e42f ChangeLog 8178 +RMD160 85aa185e8891cea832b75b3b5c61cdbc0b16187e ChangeLog 8178 +SHA256 1f061e853c37d6e4332f22b39b8434fd3735b57a9f2c9371406cc481edd34b5a ChangeLog 8178 MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 metadata.xml 161 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32 metadata.xml 161 -MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-mailbase-0.00-r6 1 -RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-mailbase-0.00-r6 1 -SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-mailbase-0.00-r6 1 -MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-mailbase-1 1 -RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-mailbase-1 1 -SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-mailbase-1 1 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r6 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-mailbase-0.00-r6 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-mailbase-0.00-r6 0 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-1 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-mailbase-1 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-mailbase-1 0 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.2 (GNU/Linux) +Version: GnuPG v2.0.1 (GNU/Linux) -iD8DBQFFnvZUViELBEf1JB0RArp+AJ4umKsrMrcEz+lwK+utkMd3pR3FHACeOmBY -Vt0iRhYwXtaPzrjDZPpd+38= -=X6/8 +iD8DBQFFn6euGDyatLGpTbYRAoz0AJ9EmYHkdMMBEzSEDEMke2vIAmn0EwCfXJKA +3Wt4N0RQThWd5OddQyQyd8k= +=PhxO -----END PGP SIGNATURE----- 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" -- 2.26.2