# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/charybdis-2.1.0.ebuild,v 1.1 2007/01/28 19:42:09 antarus Exp $ inherit eutils DESCRIPTION="A non-monolithic ircd loosely based on ircd-ratbox" HOMEPAGE="http://www.ircd-charybdis.org/" SRC_URI="http://www.ircd-charybdis.org/release/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="ipv6 ssl debug smallnet zlib static" DEPEND="zlib? ( sys-libs/zlib ) ssl? ( dev-libs/openssl )" pkg_setup() { enewuser ircd } src_unpack() { unpack ${A} cd ${S} } src_compile() { econf \ $(use_enable ipv6) \ $(use_enable ssl openssl) \ $(use_enable debug assert) \ $(use_enable smallnet small-net) \ $(use_enable zlib) \ $(use_enable !static shared-modules) \ --with-confdir=/etc/charybdis \ --with-logdir=/var/log/charybdis \ --with-helpdir=/usr/share/charybdis/help \ --with-moduledir=/usr/lib/charybdis \ || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install } pkg_postinst() { ewarn "You should probably edit /etc/charybdis/ircd.conf at this point." }