# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Direct Connect Daemon utilizing libwrap and threads" HOMEPAGE="http://www.dc.ds.pg.gda.pl/?page=home" SRC_URI="ftp://pollux.ds.pg.gda.pl/pub/Linux/DConnect/sources/stable/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="logrotate" DEPEND=">=sys-apps/tcp-wrappers-7.6-r8 >=sys-devel/gettext-0.14.5" RDEPEND="${DEPEND}" DCD_USER="daemon" DCD_GROUP="daemon" src_compile() { econf --with-config-dir=/etc/dcd/ \ --with-user=$DCD_USER --with-group=$DCD_GROUP || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "install failed" if use logrotate; then insinto /etc/logrotate.d/ doins contrib/logrotate.dcd fi doinitd ${FILESDIR}/dconnect #doconfd ${FILESDIR}/dconnect # needs to be created before first run dodir /var/log/dcd # docs dodoc README NEWS FAQ TODO BUGS doman doc/{dcd.2,dcd.console.2} } pkg_preinst() { enewgroup $DCD_GROUP enewuser $DCD_USER -1 /bin/false /dev/null # adjusting permissions of logs and configs fowners $DCD_GROUP /var/log/dcd /etc/dcd/* }