summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Marichez <falco@gentoo.org>2007-09-26 21:59:53 +0000
committerRaphaël Marichez <falco@gentoo.org>2007-09-26 21:59:53 +0000
commit5d1f8ddca36fcb61107ab827809606a8f7e4bdcb (patch)
tree3c3e58066307dce38b9d3f24d84264dcf9b3f7ed /sys-process/cronbase/cronbase-0.3.2-r1.ebuild
parentVersion bump to 2.0.1 Bug #191636 (diff)
downloadgentoo-2-5d1f8ddca36fcb61107ab827809606a8f7e4bdcb.tar.gz
gentoo-2-5d1f8ddca36fcb61107ab827809606a8f7e4bdcb.tar.bz2
gentoo-2-5d1f8ddca36fcb61107ab827809606a8f7e4bdcb.zip
Unconditionally change directories permissions (working around bug 141619)
(Portage version: 2.1.3.9)
Diffstat (limited to 'sys-process/cronbase/cronbase-0.3.2-r1.ebuild')
-rw-r--r--sys-process/cronbase/cronbase-0.3.2-r1.ebuild26
1 files changed, 12 insertions, 14 deletions
diff --git a/sys-process/cronbase/cronbase-0.3.2-r1.ebuild b/sys-process/cronbase/cronbase-0.3.2-r1.ebuild
index b72dffc58a6a..56dd17d47e6b 100644
--- a/sys-process/cronbase/cronbase-0.3.2-r1.ebuild
+++ b/sys-process/cronbase/cronbase-0.3.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.3.2-r1.ebuild,v 1.1 2007/09/26 21:36:27 falco Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/cronbase/cronbase-0.3.2-r1.ebuild,v 1.2 2007/09/26 21:59:53 falco Exp $
inherit eutils
@@ -31,18 +31,16 @@ src_install() {
}
pkg_postinst() {
- if has_version '<sys-process/cronbase-0.3.2-r1' ; then
- echo
- elog "Previous ebuilds didn't enforce proper permissions on already"
- elog "existing directories. Appropriate permissions are now being set on"
- elog "${ROOT}/etc/cron.{hourly,daily,weekly,monthly},"
- elog "${ROOT}/var/spool/cron/ and ${ROOT}/var/spool/cron/lastrun/"
- elog "(see bug 182998)"
- echo
- chmod 0750 "${ROOT}"/etc/cron.{hourly,daily,weekly,monthly} \
- || die "chmod failed"
- chmod 0750 "${ROOT}"/var/spool/{cron,cron/lastrun} || die "chmod failed"
- chown root:cron "${ROOT}/var/spool/cron" || die "chown failed"
- fi
+ echo
+ elog "Portage doesn't enforce proper permissions on already existing"
+ elog "directories (bug 141619). Appropriate permissions are now being set"
+ elog "on ${ROOT}/etc/cron.{hourly,daily,weekly,monthly},"
+ elog "${ROOT}/var/spool/cron/ and ${ROOT}/var/spool/cron/lastrun/"
+ elog "(see bug 182998)"
+ echo
+ chmod 0750 "${ROOT}"/etc/cron.{hourly,daily,weekly,monthly} \
+ || die "chmod failed"
+ chmod 0750 "${ROOT}"/var/spool/{cron,cron/lastrun} || die "chmod failed"
+ chown root:cron "${ROOT}/var/spool/cron" || die "chown failed"
}