summaryrefslogtreecommitdiff
blob: 9bb0daf925e140e475de1d4d8e7e8ba7437d875c (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
54
55
56
57
58
59
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-1.5_pre6.ebuild,v 1.1 2001/07/01 19:22:19 achim Exp $

P=netatalk-1.5pre6
A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Apple-Talk"
SRC_URI="http://download.sourceforge.net/netatalk/${A}"
HOMEPAGE="http://netatakl.sourceforge.net"

DEPEND="virtual/glibc
        pam? ( sys-libs/pam-0.7 )
        tcpd? ( sys-apps/tcp-wrappers )
	ssl? ( dev-libs/openssl )
        sys-apps/shadow
        sys-devel/libtool
        sys-devel/autoconf
        sys-devel/automake
        >=sys-libs/db-3"

RDEPEND="virtual/glibc
        pam? ( sys-libs/pam-0.7 )
        sys-apps/shadow
        >=sys-libs/db-3"

src_compile() {

  local myconf
  if [ "`use pam`" ] ; then
        myconf="--with-pam"
  fi
  if [ "`use tcpd`" ] ; then
        myconf="$myconf --with-tcp-wrappers"
  fi
  if [ -z "`use ssl`" ] ; then
  	myconf="$myconf --disable-ssl"
  fi
  try ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} \
      --enable-fhs $myconf

  try make

}

src_install() {                               

  try make DESTDIR=${D} install
  rm ${D}/etc/rc.d/init.d/*
  exeinto /etc/rc.d/init.d
  doexe ${FILESDIR}/atalk
  dodoc BUGS CHANGES README* COPYRIGHT VERSION 

}