# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-1.6.4.ebuild,v 1.7 2004/07/14 23:53:17 agriffis Exp $ IUSE="ssl pam tcpd" DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" HOMEPAGE="http://netatalk.sourceforge.net" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc ~sparc ppc64" DEPEND="sys-apps/shadow pam? ( sys-libs/pam ) ssl? ( dev-libs/openssl ) cups? ( net-print/cups )" src_compile() { use pam && myconf="${myconf} --with-pam" use cups && myconf="${myconf} --enable-cups" use ssl && myconf="${myconf} --with-ssl-dir=/usr" econf \ --enable-fhs \ --with-shadow \ --with-bdb=/usr \ --enable-gentoo \ ${myconf} || die "netatalk configure failed" emake || die "netatalk emake failed" } src_install() { make DESTDIR=${D} install || die "netatalk make install failed" # install docs dodoc CHANGES CONTRIBUTORS COPYING COPYRIGHT ChangeLog dodoc NEWS README TODO VERSION dodoc doc/* # install init script exeinto /etc/init.d newexe ${FILESDIR}/atalknew-rc6 atalk }