/[gentoo-x86]/net-analyzer/nagios/nagios-3.2.3.ebuild
Gentoo

Contents of /net-analyzer/nagios/nagios-3.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jul 25 16:27:02 2011 UTC (3 years, 5 months ago) by xarthisius
Branch: MAIN
Changes since 1.5: +2 -2 lines
ppc/ppc64 stable wrt #374553

(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios/nagios-3.2.3.ebuild,v 1.5 2011/07/24 18:27:49 armin76 Exp $
4
5 inherit multilib
6
7 DESCRIPTION="The Nagios metapackage - merge this to pull install all of the nagios packages"
8 HOMEPAGE="http://www.nagios.org"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="alpha amd64 ~hppa ppc ppc64 sparc x86"
13 IUSE=""
14
15 RDEPEND="~net-analyzer/nagios-core-${PV}
16 >=net-analyzer/nagios-plugins-1.4.13-r1
17 >=net-analyzer/nagios-imagepack-1.0-r100"
18
19 pkg_setup() {
20 # Avoid upgrading from Nagios <3 as the directory structure has changed
21 if has_version '<net-analyzer/nagios-3.0' ; then
22 if [[ "${FORCE_UPGRADE}" ]] ; then
23 echo
24 ewarn "you are upgrading from an incompatible version and have"
25 ewarn "FORCE_UPGRADE set, will build this package while Nagios is running."
26 echo
27 else
28 echo
29 eerror "You are upgrading from an incompatible version."
30 eerror "Please be advised that installation paths have changed to a more FHS"
31 eerror "compliant structure and you won't be able to easily upgrade to"
32 eerror "Nagios 3 therefore. You will have to change your configuration"
33 eerror "to reflect this change, for example Nagios plugins are now installed"
34 eerror "into /usr/$(get_libdir)/nagios/plugins/ instead of /usr/nagios/libexec."
35 echo
36 eerror "If you want to upgrade now, emerge nagios with:"
37 eerror " FORCE_UPGRADE=1 emerge nagios"
38 die "Upgrading from an incompatible version!"
39 echo
40 fi
41 fi
42 }
43
44 pkg_postrm() {
45 elog "Note: this is a META ebuild for ${P}."
46 elog "to remove it completely or before re-emerging"
47 elog "either use 'depclean', or remove/re-emerge these packages:"
48 elog
49 for dep in ${RDEPEND}; do
50 elog " ${dep}"
51 done
52 echo
53 }

  ViewVC Help
Powered by ViewVC 1.1.20