diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-08-04 21:54:02 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-08-04 21:54:02 +0000 |
commit | dd2f936a9509fad6d3d639378360d8aac6a78cd4 (patch) | |
tree | 687d55dd4fe90914428703b9f3d12d5b795e7c6e /net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild | |
parent | Version bump, BUG #53895 (diff) | |
download | historical-dd2f936a9509fad6d3d639378360d8aac6a78cd4.tar.gz historical-dd2f936a9509fad6d3d639378360d8aac6a78cd4.tar.bz2 historical-dd2f936a9509fad6d3d639378360d8aac6a78cd4.zip |
QA updates, move enewuser, remove oversized files in FILESDIR, #58526.
Diffstat (limited to 'net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild')
-rw-r--r-- | net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild b/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild index a0f1c939c7eb..07d31f7e6046 100644 --- a/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild +++ b/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild,v 1.10 2004/07/05 10:36:22 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.2-r1.ebuild,v 1.11 2004/08/04 21:54:01 squinky86 Exp $ inherit eutils @@ -31,6 +31,11 @@ DEPEND=">=mail-client/mailx-8.1 S="${WORKDIR}/${MY_P}" +pkg_preinst() { + enewgroup nagios + enewuser nagios -1 /bin/bash /dev/null nagios +} + pkg_setup() { # If there's a gd lib on the system, it will try to build with it. # check if gdlib-config is on, and then check its output. @@ -42,15 +47,14 @@ pkg_setup() { die "pkg_setup failed" fi fi - - enewgroup nagios - enewuser nagios -1 /bin/bash /dev/null nagios } src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/Makefile-distclean.diff.bz2 + cp ${FILESDIR}/nagios.cfg-sample.gz ./ + gunzip nagios.cfg-sample.gz } src_compile() { @@ -134,7 +138,7 @@ src_install() { dodoc ${D}/etc/nagios/* rm ${D}/etc/nagios/* - dodoc ${FILESDIR}/nagios.cfg-sample + dodoc ${S}/nagios.cfg-sample exeinto /etc/init.d doexe ${FILESDIR}/nagios |