summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2008-11-28 20:01:42 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2008-11-28 20:01:42 +0000
commit88331044d15c5bfc813ff2c17561548dd5565ce5 (patch)
tree5d6d56cacff8f5c023afb078b998e307d785836b /net-analyzer/nagios-core
parentInitial import of glpng. It is needed dep for new version of chromium. Thanks... (diff)
downloadgentoo-2-88331044d15c5bfc813ff2c17561548dd5565ce5.tar.gz
gentoo-2-88331044d15c5bfc813ff2c17561548dd5565ce5.tar.bz2
gentoo-2-88331044d15c5bfc813ff2c17561548dd5565ce5.zip
Fix permissions on /var/nagios in postinst.
(Portage version: 2.2_rc16/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'net-analyzer/nagios-core')
-rw-r--r--net-analyzer/nagios-core/ChangeLog6
-rw-r--r--net-analyzer/nagios-core/nagios-core-3.0.5.ebuild7
2 files changed, 11 insertions, 2 deletions
diff --git a/net-analyzer/nagios-core/ChangeLog b/net-analyzer/nagios-core/ChangeLog
index 685dada46982..941f6bb1548f 100644
--- a/net-analyzer/nagios-core/ChangeLog
+++ b/net-analyzer/nagios-core/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/nagios-core
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.131 2008/11/06 17:54:36 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.132 2008/11/28 20:01:42 dertobi123 Exp $
+
+ 28 Nov 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ nagios-core-3.0.5.ebuild:
+ Fix permissions on /var/nagios in postinst..
*nagios-core-3.0.5 (06 Nov 2008)
diff --git a/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild b/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild
index 41c67615db17..a8bc18c74ad5 100644
--- a/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild
+++ b/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild,v 1.1 2008/11/06 17:54:36 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-3.0.5.ebuild,v 1.2 2008/11/28 20:01:42 dertobi123 Exp $
EAPI="1"
@@ -217,3 +217,8 @@ pkg_postinst() {
pkg_prerm() {
[[ "${ROOT}" == "/" ]] && /etc/init.d/nagios stop
}
+
+pkg_postinst() {
+ einfo "Fixing permissions"
+ chown nagios:nagios "${ROOT}"var/nagios
+}