/[gentoo-x86]/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild
Gentoo

Contents of /net-analyzer/nagircbot/nagircbot-0.0.33.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 4 06:08:10 2012 UTC (2 years, 8 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagircbot/nagircbot-0.0.33.ebuild,v 1.1 2011/11/18 16:46:45 jer Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="An irc bot that alerts you to nagios changes"
10 HOMEPAGE="http://www.vanheusden.com/nagircbot"
11 SRC_URI="http://www.vanheusden.com/nagircbot/${P}.tgz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE=""
17
18 CDEPEND="dev-libs/openssl"
19 DEPEND="virtual/pkgconfig
20 ${CDEPEND}"
21 RDEPEND="net-analyzer/nagios-core
22 ${CDEPEND}"
23
24 src_prepare() {
25 cp -av Makefile{,.org}
26 sed -i Makefile \
27 -e 's:-lcrypto -lssl:$(shell pkg-config --libs openssl):g' \
28 -e 's:-O2::g;s:-g::g' \
29 || die
30 }
31
32 src_compile() {
33 emake CC=$(tc-getCC) CXX=$(tc-getCXX)
34 }
35
36 src_install() {
37 dodir /usr/bin
38 cp "${S}"/nagircbot "${D}"/usr/bin
39
40 dodir /etc/init.d
41 dodir /etc/conf.d
42 cp "${FILESDIR}"/conf "${D}"/etc/conf.d/nagircbot
43 cp "${FILESDIR}"/init "${D}"/etc/init.d/nagircbot
44 }

  ViewVC Help
Powered by ViewVC 1.1.20