summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2006-07-24 20:46:17 +0000
committerJakub Moc <jakub@gentoo.org>2006-07-24 20:46:17 +0000
commit386afb38755013696b4a03c976992787dbb5d5b4 (patch)
tree8ec399042260b0311f459988058d842d850751a4
parentInitial revision of blocksshd. Reviewed by genstef (diff)
downloadsunrise-386afb38755013696b4a03c976992787dbb5d5b4.tar.gz
sunrise-386afb38755013696b4a03c976992787dbb5d5b4.tar.bz2
sunrise-386afb38755013696b4a03c976992787dbb5d5b4.zip
mail-filter/mimedefang: Fix for enewuser broken permissions, cosmetics
svn path=/sunrise/; revision=696
-rw-r--r--mail-filter/mimedefang/ChangeLog3
-rw-r--r--mail-filter/mimedefang/Manifest16
-rw-r--r--mail-filter/mimedefang/mimedefang-2.57.ebuild20
3 files changed, 20 insertions, 19 deletions
diff --git a/mail-filter/mimedefang/ChangeLog b/mail-filter/mimedefang/ChangeLog
index d115457dc..d3a498261 100644
--- a/mail-filter/mimedefang/ChangeLog
+++ b/mail-filter/mimedefang/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 24 Jul 2006; Jakub Moc <jakub@gentoo.org> mimedefang-2.57.ebuild:
+ Fix for enewuser broken permissions, cosmetics
+
24 Jul 2006; Stas Korzovsky <staskorz@gmail.com> :
Fixed permissions on /var/spool/MIMEDefang
diff --git a/mail-filter/mimedefang/Manifest b/mail-filter/mimedefang/Manifest
index 458331014..99a0258b7 100644
--- a/mail-filter/mimedefang/Manifest
+++ b/mail-filter/mimedefang/Manifest
@@ -7,14 +7,14 @@ MD5 3c5493b1a60fb87b6fb4b22db4089603 files/mimedefang-init 3857
RMD160 00f8fcc3958716985fa824fc03b1747942dede4c files/mimedefang-init 3857
SHA256 4351b3190d1a568bfd3ceb88e7f3dea1bab38b21aa47553c6918414bfe8d0dec files/mimedefang-init 3857
DIST mimedefang-2.57.tar.gz 316909 RMD160 0816cc397c2d6552007609e6d5bc9728421debbd SHA1 85207097008a06a5cde1c0e6c76270ef719a5769 SHA256 dc69580a0f59c745bc440a9d1f09446e9495b81a681cab25c817712566853435
-EBUILD mimedefang-2.57.ebuild 1823 RMD160 267e6fad7c2c00dfd7a27a6b922d24999659892e SHA1 5d894d2254838c72f3a7986acd22540537073fcf SHA256 96d76889546c8a32568ef9a9c716e2c1eac7c1b8cdbaa089839e13ed39ca79a4
-MD5 90c6eeda7e16143b78f0a970ddcfcbc5 mimedefang-2.57.ebuild 1823
-RMD160 267e6fad7c2c00dfd7a27a6b922d24999659892e mimedefang-2.57.ebuild 1823
-SHA256 96d76889546c8a32568ef9a9c716e2c1eac7c1b8cdbaa089839e13ed39ca79a4 mimedefang-2.57.ebuild 1823
-MISC ChangeLog 325 RMD160 039cb81004f82bb17e64adbfa35a8f1acbda16e8 SHA1 49f63525cec0f09928511f3a8ca3726e5d680320 SHA256 5a985d47846a9b3d1f674fedd457da3e35860386dc37c6b55e26760a888e6d66
-MD5 8215cd9b184d4d99aec40c286366ecaa ChangeLog 325
-RMD160 039cb81004f82bb17e64adbfa35a8f1acbda16e8 ChangeLog 325
-SHA256 5a985d47846a9b3d1f674fedd457da3e35860386dc37c6b55e26760a888e6d66 ChangeLog 325
+EBUILD mimedefang-2.57.ebuild 1781 RMD160 81f57fa95ae426166c7262c04546e5193d71b386 SHA1 621703d949900c2662f1b3612480033f9ec58dda SHA256 240bb3f966559a33e60e963d1961b91a90c607eed5aa14a647cf3f4ccc80aaeb
+MD5 ee53e495475e4520772302bfe3e91269 mimedefang-2.57.ebuild 1781
+RMD160 81f57fa95ae426166c7262c04546e5193d71b386 mimedefang-2.57.ebuild 1781
+SHA256 240bb3f966559a33e60e963d1961b91a90c607eed5aa14a647cf3f4ccc80aaeb mimedefang-2.57.ebuild 1781
+MISC ChangeLog 443 RMD160 9df373bc2015a1093535527d3620a8cef69aed7c SHA1 cd6b752b72acba9d7138d1f0da46f2129e52c1f5 SHA256 1dc44b338b63ee6f755ebc551d8efca19e2480d534f8796e36287bf502137128
+MD5 d40a3703c7e839e63e55d60a6637d268 ChangeLog 443
+RMD160 9df373bc2015a1093535527d3620a8cef69aed7c ChangeLog 443
+SHA256 1dc44b338b63ee6f755ebc551d8efca19e2480d534f8796e36287bf502137128 ChangeLog 443
MISC metadata.xml 227 RMD160 703cf9635ad0996b4698255829a98cd85b3abff0 SHA1 7480ffa574d82f2dedb3c981abd687434506cbdd SHA256 7b1bf14b586bf73593adcd5103d1d0cd70249d3ff5c67350e866d9e6eff4f8e6
MD5 002d6691577d86df4387423b59576012 metadata.xml 227
RMD160 703cf9635ad0996b4698255829a98cd85b3abff0 metadata.xml 227
diff --git a/mail-filter/mimedefang/mimedefang-2.57.ebuild b/mail-filter/mimedefang/mimedefang-2.57.ebuild
index 34121a5b6..eeb9ccb44 100644
--- a/mail-filter/mimedefang/mimedefang-2.57.ebuild
+++ b/mail-filter/mimedefang/mimedefang-2.57.ebuild
@@ -28,9 +28,6 @@ RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup defang
enewuser defang -1 -1 /var/spool/MIMEDefang defang
- mkdir -p /var/spool/MIMEDefang
- chmod 775 /var/spool/MIMEDefang
- chown defang:defang /var/spool/MIMEDefang
}
src_install() {
@@ -43,15 +40,16 @@ src_install() {
mimedefang-filter.example
[ -f /etc/mail/spamassassin/local.cf ] && \
dosym /etc/mail/spamassassin/local.cf /etc/mail/sa-mimedefang.cf
- dodoc Changelog README README.ANOMY README.IRIX README.NONROOT \
- README.SECURITY README.SOPHIE README.SPAMASSASSIN
- keepdir /var/spool/{MIMEDefang,MD-Quarantine}
- fperms 775 /var/spool/MIMEDefang
- fperms 755 /var/spool/MD-Quarantine
+ dodoc Changelog README README.{ANOMY,IRIX,NONROOT,SECURITY,SOPHIE,SPAMASSASSIN}
+ dodir /var/spool/{MIMEDefang,MD-Quarantine}
+ fperms 0775 /var/spool/MIMEDefang
+ fperms 0755 /var/spool/MD-Quarantine
fowners defang:defang /var/spool/{MIMEDefang,MD-Quarantine}
}
-pkg_postrm() {
- [[ -e ${ROOT}/var/spool/MIMEDefang/.keep ]] && \
- rm -f ${ROOT}/var/spool/{MIMEDefang,MD-Quarantine}/.keep
+pkg_postinst() {
+ # portage won't fix the permissions on ${ROOT}/var/spool/MIMEDefang
+ # that were created by enewuser - see Bug 141619
+ chmod 0775 ${ROOT}/var/spool/MIMEDefang
+ chown defang:defang ${ROOT}/var/spool/MIMEDefang
}