summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2007-02-11 23:31:47 +0000
committerWolfram Schlich <wschlich@gentoo.org>2007-02-11 23:31:47 +0000
commitc818b53dc3e33d7993011cb2bf45a16ab056665e (patch)
treee700d79789526ff54d728d5c49fffbd2295afed5 /net-analyzer/zabbix-server
parentVersion bump (0.4.4) (diff)
downloadgentoo-2-c818b53dc3e33d7993011cb2bf45a16ab056665e.tar.gz
gentoo-2-c818b53dc3e33d7993011cb2bf45a16ab056665e.tar.bz2
gentoo-2-c818b53dc3e33d7993011cb2bf45a16ab056665e.zip
permission/ownership fixup
(Portage version: 2.1.2)
Diffstat (limited to 'net-analyzer/zabbix-server')
-rw-r--r--net-analyzer/zabbix-server/ChangeLog6
-rw-r--r--net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild32
2 files changed, 30 insertions, 8 deletions
diff --git a/net-analyzer/zabbix-server/ChangeLog b/net-analyzer/zabbix-server/ChangeLog
index ef210b839f5a..c4d4b6f43eff 100644
--- a/net-analyzer/zabbix-server/ChangeLog
+++ b/net-analyzer/zabbix-server/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/zabbix-server
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/ChangeLog,v 1.9 2007/02/11 22:29:06 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/ChangeLog,v 1.10 2007/02/11 23:31:47 wschlich Exp $
+
+ 11 Feb 2007; Wolfram Schlich <wschlich@gentoo.org>
+ zabbix-server-1.1.6.ebuild:
+ permission/ownership fixup
*zabbix-server-1.1.6 (11 Feb 2007)
diff --git a/net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild b/net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild
index b894e0a86ddd..26c7df81631e 100644
--- a/net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild
+++ b/net-analyzer/zabbix-server/zabbix-server-1.1.6.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/net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild,v 1.1 2007/02/11 22:29:06 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix-server/zabbix-server-1.1.6.ebuild,v 1.2 2007/02/11 23:31:47 wschlich Exp $
inherit eutils
@@ -23,6 +23,9 @@ RDEPEND="${RDEPEND} net-analyzer/fping"
S=${WORKDIR}/${MY_P}-${MY_PV}
pkg_setup() {
+ enewgroup zabbix
+ enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
+
if useq oracle; then
if [ -z "${ORACLE_HOME}" ]; then
eerror
@@ -41,11 +44,6 @@ pkg_setup() {
fi
}
-pkg_preinst() {
- enewgroup zabbix
- enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
-}
-
pkg_postinst() {
einfo
einfo "You need to configure your database for Zabbix."
@@ -73,6 +71,27 @@ pkg_postinst() {
ewarn " usermod -d /var/lib/zabbix/home zabbix"
ewarn
fi
+
+ # repeat fowners/fperms functionality from src_install()
+ # here to catch wrong permissions on existing files in
+ # the live filesystem (yeah, that sucks).
+ chown zabbix:zabbix \
+ /etc/zabbix \
+ /etc/zabbix/zabbix_server.conf \
+ /var/lib/zabbix \
+ /var/lib/zabbix/home \
+ /var/lib/zabbix/scripts \
+ /var/log/zabbix \
+ /var/run/zabbix
+ chmod 0640 \
+ /etc/zabbix/zabbix_server.conf
+ chmod 0750 \
+ /etc/zabbix \
+ /var/lib/zabbix \
+ /var/lib/zabbix/home \
+ /var/lib/zabbix/scripts \
+ /var/log/zabbix \
+ /var/run/zabbix
}
src_unpack() {
@@ -134,7 +153,6 @@ src_install() {
fowners zabbix:zabbix \
/etc/zabbix \
/etc/zabbix/zabbix_server.conf \
- /usr/share/zabbix/database \
/var/lib/zabbix \
/var/lib/zabbix/home \
/var/lib/zabbix/scripts \