blob: 4be191e8018750d856b8041044932abc989f8ef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2005 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.6 2005/06/30 23:56:56 flameeyes Exp $
inherit eutils
IUSE="ssl pam tcpd"
DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://netatalk.sourceforge.net"
SLOT="0"
LICENSE="BSD"
KEYWORDS="x86 ppc sparc ppc64"
DEPEND="sys-apps/shadow
pam? ( sys-libs/pam )
ssl? ( dev-libs/openssl )
tcpd? ( sys-apps/tcp-wrappers )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-1.6.4-tempfile.patch
}
src_compile() {
use pam && myconf="${myconf} --with-pam"
use tcpd && myconf="${myconf} --with-tcp-wrappers"
use ssl && myconf="${myconf} --disable-ssl"
econf \
--enable-fhs \
--with-shadow \
--with-bdb=/usr \
${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
}
|