--- netatalk-1.6.4-r1.ebuild 2004-11-09 22:15:38.039283832 -0600 +++ netatalk-1.6.4-r2.ebuild 2004-11-09 22:12:37.490731384 -0600 @@ -1,9 +1,9 @@ # 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-r1.ebuild,v 1.5 2004/10/25 12:04:28 klieber Exp $ +# $Header: $ -inherit eutils -IUSE="ssl pam tcpd" +inherit eutils flag-o-matic +IUSE="ssl pam tcpd slp afs debug cracklib" DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" @@ -11,26 +11,44 @@ SLOT="0" LICENSE="GPL-2" -KEYWORDS="x86 ppc sparc ppc64" +KEYWORDS="~x86 ~ppc" -DEPEND="sys-apps/shadow +RDEPEND="sys-apps/shadow pam? ( sys-libs/pam ) ssl? ( dev-libs/openssl ) - tcpd? ( sys-apps/tcp-wrappers )" + tcpd? ( sys-apps/tcp-wrappers ) + slp? ( net-libs/openslp ) + afs? ( net-fs/openafs ) + cracklib? ( sys-libs/cracklib )" +DEPEND="${RDEPEND} + sys-apps/sed" src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/${PN}-1.6.4-tempfile.patch + epatch ${FILESDIR}/${P}-tempfile.patch + cp ${FILESDIR}/${P}-atalk ${WORKDIR}/atalk } src_compile() { - use pam && myconf="${myconf} --with-pam" use tcpd && myconf="${myconf} --with-tcp-wrappers" - use ssl && myconf="${myconf} --disable-ssl" + + if use slp; then + myconf="${myconf} --enable-srvloc" + mv ${WORKDIR}/atalk ${WORKDIR}/atalk.orig + sed -e 's/^\([[:space:]]*use[[:space:][:alnum:]]*\)$/\1 slpd/' ${WORKDIR}/atalk.orig > ${WORKDIR}/atalk +# epatch ${FILESDIR}/${P}-atalk-slp.patch + fi + + append-ldflags -Wl,-z,now econf \ + $(use_with pam) \ + $(use_enable ssl) \ + $(use_enable afs) \ + $(use_enable debug) \ + $(use_with cracklib) \ --enable-fhs \ --with-shadow \ --with-bdb=/usr \ @@ -43,11 +61,10 @@ make DESTDIR=${D} install || die "netatalk make install failed" # install docs - dodoc CHANGES CONTRIBUTORS COPYING COPYRIGHT ChangeLog + dodoc CONTRIBUTORS ChangeLog dodoc NEWS README TODO VERSION dodoc doc/* # install init script - exeinto /etc/init.d - newexe ${FILESDIR}/atalknew-rc6 atalk + doinitd ${WORKDIR}/atalk }