blob: a1355daebb59c27ebd7a783234785dca89c20ec1 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-1.5.2.ebuild,v 1.4 2002/07/08 08:13:59 aliz Exp $
S=${WORKDIR}/${P}
DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite"
SRC_URI="http://download.sourceforge.net/netatalk/${P}.tar.gz"
HOMEPAGE="http://netatalk.sourceforge.net"
LICENSE="GPL-2"
DEPEND="virtual/glibc
pam? ( sys-libs/pam )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
sys-apps/shadow
>=sys-libs/db-3"
src_compile() {
use pam && myconf="${myconf} --with-pam"
use tcpd && myconf="${myconf} --with-tcp-wrappers"
use ssl || myconf="${myconf} --disable-ssl"
./configure \
--host=${CHOST} \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-fhs \
--with-shadow \
--with-db3 \
${myconf} || die "netatalk configure failed"
emake || die "netatalk emake failed"
}
src_install() {
make DESTDIR=${D} install || die "netatalk make install failed"
# install docs
dodoc BUGS CHANGES CONTRIBUTORS COPYING COPYRIGHT ChangeLog
dodoc NEWS README TODO VERSION
# install init script
mkdir -p ${D}/etc/init.d
cp ${FILESDIR}/atalk-rc6 ${D}/etc/init.d/atalk
chmod 755 ${D}/etc/init.d/atalk
}
|