Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, dertobi123@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-plugins: ChangeLog nagios-plugins-1.4.10-r1.ebuild
Date: Tue, 30 Oct 2007 06:06:01
Message-Id: 20071030060044.GB30328@supernova
1 On 19:51 Mon 29 Oct , Tobias Scherbaum (dertobi123) wrote:
2 > 1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.10-r1.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.10-r1.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.10-r1.ebuild?rev=1.1&content-type=text/plain
6
7 > src_install() {
8 > mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
9 > chmod +x "${S}"/contrib/*.pl
10 >
11 > sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
12 > sed -i -e '30s/use lib utils.pm;/use utils;/' \
13 > "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
14 >
15 > dodoc ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
16 > ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
17 >
18 > emake DESTDIR="${D}" install || die "make install failed"
19 >
20 > if use mysql || use postgres; then
21 > dodir /usr/nagios/libexec
22 > exeinto /usr/nagios/libexec
23 > doexe "${S}"/contrib/check_nagios_db.pl
24 > fi
25 >
26 > dodir /usr/nagios/libexec/
27 > mv "${S}"/contrib "${D}"/usr/nagios/libexec/contrib
28 >
29 > chown root:nagios "${D}"/usr/nagios || die "Failed Chown of ${D}usr/nagios"
30 > chown -R root:nagios "${D}"/usr/nagios/libexec || die "Failed Chown of ${D}usr/nagios/libexec"
31 >
32 > chmod -R o-rwx "${D}"/usr/nagios/libexec || die "Failed Chmod of ${D}usr/nagios/libexec"
33 >
34 > chmod 04710 "${D}"/usr/nagios/libexec/check_icmp || die "Failed Chmod of ${D}usr/nagios/libexec/check_icmp"
35
36 This may not be worth changing, but if you're ever working on it,
37 fperms/fowners could be nice to use instead of these. It lets you clean
38 out all those references to $D.
39
40 Thanks,
41 Donnie
42 --
43 gentoo-dev@g.o mailing list

Replies