# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/rsyslog-3.22.1.ebuild,v 1.3 2010/01/16 09:31:21 dev-zero Exp $ EAPI="2" inherit versionator DESCRIPTION="An enhanced multi-threaded syslogd with database support and more." HOMEPAGE="http://www.rsyslog.com/" SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz" LICENSE="GPL-3 LGPL-3" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~sparc ~x86" IUSE="debug kerberos dbi gnutls mysql postgres oracle relp snmp zlib" DEPEND="kerberos? ( virtual/krb5 ) dbi? ( dev-db/libdbi ) gnutls? ( net-libs/gnutls ) mysql? ( virtual/mysql ) postgres? ( virtual/postgresql-base ) oracle? ( dev-db/oracle-instantclient-basic ) relp? ( >=dev-libs/librelp-0.1.1 ) snmp? ( net-analyzer/net-snmp ) zlib? ( sys-libs/zlib )" RDEPEND="${DEPEND}" PROVIDE="virtual/logger" BRANCH="5-stable" # need access to certain device nodes RESTRICT="test" src_configure() { # Maintainer notes: # * rsyslog-3 doesn't support single threading anymore # * rfc3195 needs a library and development of that library # is suspended # # About the java GUI: # The maintainer says there is no real installation support # for the java GUI, so we disable it for now. econf \ --enable-largefile \ --enable-inet \ --enable-regexp \ $(use_enable zlib) \ --enable-rsyslogrt \ --enable-rsyslogd \ --disable-gui \ --disable-cust1 \ --enable-klog \ --enable-imdiag \ --enable-imfile \ --enable-imtemplate \ --enable-mail \ --enable-omprog \ --enable-omstdout \ --enable-omruleset \ --enable-omudpspoof \ --enable-omtemplate \ $(use_enable mysql) \ $(use_enable dbi libdbi) \ $(use_enable postgres pgsql) \ $(use_enable oracle oracle) \ $(use_enable gnutls) \ $(use_enable kerberos gssapi-krb5) \ $(use_enable relp) \ $(use_enable snmp) \ --enable-testbench \ $(use_enable debug) \ $(use_enable debug rtinst) \ $(use_enable debug diagtools) \ $(use_enable debug memcheck) \ $(use_enable debug valgrind) \ --enable-pthreads \ --disable-rfc3195 } src_install() { emake DESTDIR="${D}" install || die "emake install failed" insinto /usr/share/doc/${PF}/scripts/mysql doins plugins/ommysql/{createDB.sql,contrib/delete_mysql} insinto /usr/share/doc/${PF}/scripts/pgsql doins plugins/ompgsql/createDB.sql elog "SQL scripts to create the tables for MySQL or PostgreSQL have been installed to:" elog " /usr/share/doc/${PF}/scripts" dodoc AUTHORS ChangeLog doc/rsyslog-example.conf dohtml doc/* insinto /etc newins "${FILESDIR}/${BRANCH}/rsyslog-gentoo.conf" rsyslog.conf insinto /etc/logrotate.d/ newins "${FILESDIR}/${BRANCH}/rsyslog.logrotate" rsyslog newconfd "${FILESDIR}/${BRANCH}/rsyslog.conf" rsyslog newinitd "${FILESDIR}/${BRANCH}/rsyslog.init" rsyslog }