AUX fail2ban-0.8.0-regexp.patch 854 RMD160 24caae16d90adcf39577bd641ff6a09857908f73 SHA1 c5f47134328744a1597b8fcb67105ec82d61a14c SHA256 6019024dbf067f8a78618eb728f3afef90daa75bbcd201be2119c323c1afd6d1
-AUX fail2ban-logrotate 169 RMD160 fe231cb9569030203821f30349898ac47ab79e90 SHA1 b3144c7f06a9d62547b6c9957c0fb9503df4a093 SHA256 ab25b23fc6b76af215ebcceb03b0b66cc10e19fb94882dc6ff3ca207ca978b49
+AUX fail2ban-logrotate 163 RMD160 8b64b7af9c0ee6bb9064f5858c0e58cda0609958 SHA1 287a067a369b1da6ddfee855e4950d6b222e2ba2 SHA256 6a668bc9383371f258eae6008b925a18d587e6120edd4a7add3e1a20ac3ca4b0
AUX fail2ban.conf.d 217 RMD160 7d8b079d1b569caf1d822af0ec8a040723f492c5 SHA1 9592b732be3d96699c9872add7287e82260f37c0 SHA256 e35f1f820bfe5ecaac2696d60155c348d84af428e8c615e97b900c24a587d233
DIST fail2ban-0.6.2.tar.bz2 25068 RMD160 6c829fc84d8e41c4daf4b9b1a7e2dd71a54eab01 SHA1 edfecbfac3050ead95d274b05b132890cdc302b7 SHA256 0009aa0ee055f900e157ee04d58f5cb3dfad9659197ee114643c48533e7744c4
DIST fail2ban-0.8.0.tar.bz2 55726 RMD160 16c033a9fbd10a468ac62d6ba31becf5966a5647 SHA1 b48c8ed269dfc6b2901573ac83c9680abb09e342 SHA256 ef60f601a8766128910f08ca5e731782d7ca17c014dcf6ab54982e7ae59bd5f6
DIST fail2ban-0.8.1.tar.bz2 58321 RMD160 7f695e2efc4af3fe21657a4d1613cd7beeb623ad SHA1 89eee4c31357581dd5d5da7ea4cf28d2717d470a SHA256 3c3adc67c5f2b4fc72c9ea22e52c4cdfd9f901f6c238616416444560f56f6403
EBUILD fail2ban-0.6.2-r1.ebuild 1280 RMD160 2624e486fcf757f9a90564c775051ba751551c2c SHA1 78f753d0740c3b5f95da72d10fcbe9ce4bbc671d SHA256 260de4a5981fa2df7fdfb03d9df66bbda6751f746451158bd1f73f7ac43c907a
EBUILD fail2ban-0.8.0-r1.ebuild 1584 RMD160 22586071378b53c45874994abec4cb8e8082f142 SHA1 825498e63f2cc1696e97c2f021ea54000dd629ba SHA256 c08e0a90f881f1c0b1807dea7c3a2bbd3a5899c0c276c5bbe037aa39dba33427
-EBUILD fail2ban-0.8.1.ebuild 1735 RMD160 1e521a38eef6af2d39e4cc8baad79cc847764d2e SHA1 b09123d27e9ddb802b255265fe7339adaaa8e978 SHA256 8d81a8a552ee7d9cb8158a89c33b7474779f3f321dc3f5bac643ff1f17adccc8
-MISC ChangeLog 6239 RMD160 6c0dfe8263b4ef9ea20244407a67c889c76a7d86 SHA1 00d238a889dc916ab06883ce571e9bc77673d6b5 SHA256 524bcac748243f90b261219fd4ca8a3b47cb38fb0b61fc1fb969870cdbcb3346
+EBUILD fail2ban-0.8.1.ebuild 1733 RMD160 8763a1159d0c09b8eb4b6e5cdbbde7c33848394d SHA1 429dd48418945440d4ed788b1cbd83d17d482cbd SHA256 6343b265e4f03cf5d7d8a38212cbe36cc6fc12713ee51c8d21a46bd5e23aaf1d
+MISC ChangeLog 6366 RMD160 1723adafbee92287db1e19b46aeaacd5ad8814c6 SHA1 d55b3ff8ff7c37ecbc643b873f7f620a4353eded SHA256 ec1a670feb8e4ca61176c1858c47b151e6e48b7bc61d81d5e5b45ee227d6ca91
MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6
--- /dev/null
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-2.10-r2.ebuild,v 1.1 2008/02/27 20:30:12 dertobi123 Exp $
+
+EAPI="1"
+
+inherit eutils depend.apache toolchain-funcs
+
+MY_P=${PN/-core}-${PV/_}
+DESCRIPTION="Nagios Core - Check daemon, CGIs, docs"
+HOMEPAGE="http://www.nagios.org/"
+SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz
+ mirror://gentoo/nagios-2.0b.cfg-sample.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug perl +web vim-syntax"
+DEPEND="virtual/mailx
+ web? (
+ >=media-libs/jpeg-6b-r3
+ >=media-libs/libpng-1.2.5-r4
+ >=media-libs/gd-1.8.3-r5
+ perl? ( net-analyzer/traceroute )
+ )
+ perl? ( >=dev-lang/perl-5.6.1-r7 )"
+RDEPEND="${DEPEND}
+ vim-syntax? ( app-vim/nagios-syntax )"
+
+want_apache2
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ # Check if gd has been compiled with jpeg and png support
+ if use web; then
+ if ! built_with_use media-libs/gd jpeg png; then
+ eerror "Your gd has been compiled without jpeg and/or png support."
+ eerror "Please re-emerge gd:"
+ eerror "# USE="jpeg png" emerge gd"
+ die "pkg_setup failed"
+ fi
+ fi
+
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /var/nagios/home nagios
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/2.x-series-nsca.patch
+
+ local strip="$(echo '$(MAKE) strip-post-install')"
+ sed -i -e "s:${strip}::" {cgi,base}/Makefile.in || die "sed failed in Makefile.in"
+}
+
+src_compile() {
+ local myconf
+
+ if use perl
+ then
+ myconf="${myconf} --enable-embedded-perl --with-perlcache"
+ fi
+
+ if use debug; then
+ myconf="${myconf} --enable-DEBUG0"
+ myconf="${myconf} --enable-DEBUG1"
+ myconf="${myconf} --enable-DEBUG2"
+ myconf="${myconf} --enable-DEBUG3"
+ myconf="${myconf} --enable-DEBUG4"
+ myconf="${myconf} --enable-DEBUG5"
+ fi
+
+ if use apache2 ; then
+ myconf="${myconf} --with-command-grp=apache"
+ else
+ myconf="${myconf} --with-command-grp=nagios"
+ fi
+
+ econf ${myconf} \
+ --prefix=/usr/nagios \
+ --localstatedir=/var/nagios \
+ --sysconfdir=/etc/nagios \
+ --datadir=/usr/nagios/share \
+ || die "./configure failed"
+
+ emake CC=$(tc-getCC) nagios || die "make failed"
+
+ if use web ; then
+ # Only compile the CGI's if "web" useflag is set.
+ make CC=$(tc-getCC) DESTDIR="${D}" cgis || die
+ fi
+
+ emake -C contrib all || "contrib make filed"
+
+}
+
+src_install() {
+ dodoc Changelog INSTALLING LEGAL README UPGRADING
+ docinto contrib
+ dodoc contrib/README
+
+ if ! use web; then
+ sed -i -e 's/cd $(SRC_CGI) && $(MAKE) $@/# line removed due missing web use flag/' \
+ -e 's/cd $(SRC_HTM) && $(MAKE) $@/# line removed due missing web use flag/' \
+ Makefile
+ fi
+
+ sed -i -e 's/^contactgroups$//g' Makefile
+
+ make DESTDIR="${D}" install
+ make DESTDIR="${D}" install-config
+ make DESTDIR="${D}" install-commandmode
+
+ docinto sample-configs
+ dodoc "${D}"/etc/nagios/*
+ rm "${D}"/etc/nagios/*
+
+ newdoc "${WORKDIR}"/nagios-2.0b.cfg-sample nagios.cfg-sample
+
+ #contribs are not configured by the configure script, we'll configure them overselves...
+ find "${S}"/contrib/ -type f | xargs sed -e 's:/usr/local/nagios/var/rw:/var/nagios/rw:;
+ s:/usr/local/nagios/libexec:/usr/nagios/libexec:;
+ s:/usr/local/nagios/etc:/etc/nagios:;
+ s:/usr/local/nagios/sbin:/usr/nagios/sbin:;' -i
+
+ insinto /usr/share/doc/${PF}/contrib
+ doins -r contrib/eventhandlers
+
+ doinitd "${FILESDIR}"/nagios
+ newconfd "${FILESDIR}"/conf.d nagios
+
+ chmod 644 "${S}"/contrib/*.cgi
+ into /usr/nagios
+ for bin in `find contrib/ -type f -perm 0755 -maxdepth 1` ; do
+ dobin "$bin"
+ done
+
+ # Apache Module
+ if use web ; then
+ if use apache2 ; then
+ insinto "${APACHE_MODULES_CONFDIR}"
+ doins "${FILESDIR}"/99_nagios.conf
+ else
+ ewarn "${CATEGORY}/${PF} only supports apache-2.x webserver"
+ ewarn "out-of-the-box. Since you are not using apache, you"
+ ewarn "have to configure your webserver accordingly yourself."
+ fi
+
+ if use perl; then
+ into /usr/nagios ; dosbin contrib/traceroute.cgi
+ fi
+ fi
+
+ for dir in etc/nagios var/nagios ; do
+ chown -R nagios:nagios "${D}/${dir}" || die "Failed chown of ${D}/${dir}"
+ done
+
+ chown -R root:root "${D}"/usr/nagios
+ find "${D}"/usr/nagios -type d -print0 | xargs -0 chmod 755
+ find "${D}"/usr/nagios/*bin -type f -print0 | xargs -0 chmod 755
+ find "${D}"/usr/nagios/share -type f -print0 | xargs -0 chmod 644
+
+ keepdir /etc/nagios
+ keepdir /var/nagios
+ keepdir /var/nagios/archives
+ keepdir /usr/nagios/share/ssi
+ keepdir /var/nagios/rw
+
+ if use apache2 ; then
+ chown -R nagios:apache "${D}"/var/nagios/rw || die "Failed Chown of ${D}/var/nagios/rw"
+ else
+ chown -R nagios:nagios "${D}"/var/nagios/rw || die "Failed Chown of ${D}/var/nagios/rw"
+ fi
+
+ chmod ug+s "${D}"/var/nagios/rw || die "Failed Chmod of ${D}/var/nagios/rw"
+ chmod 0750 "${D}"/etc/nagios || die "Failed chmod of ${D}/etc/nagios"
+
+ cat << EOF > "${T}"/55-nagios-core-revdep
+SEARCH_DIRS="/usr/nagios/bin /usr/nagios/libexec"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/55-nagios-core-revdep
+}
+
+pkg_postinst() {
+ elog
+ elog "The example config files are located at /usr/share/doc/${PF}/sample-configs/."
+ elog
+ elog "Also, if you want nagios to start at boot time"
+ elog "remember to execute:"
+ elog " rc-update add nagios default"
+ elog
+
+ if use web; then
+ elog "This does not include cgis that are perl-dependent"
+ elog "Currently traceroute.cgi is perl-dependent"
+ elog "To have ministatus.cgi requires copying of ministatus.c"
+ elog "to cgi directory for compiling."
+
+ elog "Note that the user your webserver is running at needs"
+ elog "read-access to /etc/nagios."
+ elog
+
+ if use apache2 ; then
+ elog "There are several possible solutions to accomplish this,"
+ elog "choose the one you are most comfortable with:"
+ elog " usermod -G nagios apache"
+ elog "or"
+ elog " chown nagios:apache /etc/nagios"
+ elog
+ elog "Also edit /etc/conf.d/apache2 and add \"-D NAGIOS\""
+ elog
+ elog "That will make nagios's web front end visable via"
+ elog "http://localhost/nagios/"
+ elog
+ else
+ elog "IMPORTANT: Do not forget to add the user your webserver"
+ elog "is running as to the nagios group!"
+ fi
+
+ else
+ elog "Please note that you have installed Nagios without web interface."
+ elog "Please don't file any bugs about having no web interface when you do this."
+ elog "Thank you!"
+ fi
+
+ elog
+ elog "If your kernel has /proc protection, nagios"
+ elog "will not be happy as it relies on accessing the proc"
+ elog "filesystem. You can fix this by adding nagios into"
+ elog "the group wheel, but this is not recomended."
+ elog
+
+ elog
+ ewarn "Use /usr/nagios/bin/convertcfg for configuration file conversion"
+}
+
+pkg_prerm() {
+ [[ "${ROOT}" == "/" ]] && /etc/init.d/nagios stop
+}