summaryrefslogtreecommitdiff
blob: 5264dde02cf1c8136e3a374e0abde130232bb982 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-tng/samba-tng-0.4.ebuild,v 1.1 2004/01/09 22:11:20 vapier Exp $

DESCRIPTION="The Next Generation of Samba"
HOMEPAGE="http://www.samba-tng.org/"
SRC_URI="http://download.samba-tng.org/tng/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="afs kerberos pam ldap cups tcpd"

DEPEND="afs? ( net-fs/openafs )
	kerberos? ( virtual/krb5 )
	pam? ( >=sys-libs/pam-0.72 )
	ldap? ( net-nds/openldap )
	cups? ( net-print/cups )
	tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
RDEPEND="${DEPEND}
	!net-fs/samba"

src_compile() {
	cd source
	local passdbconf="smbpass"
	# couldnt get these to compile for me
	#use ldap && passdbconf="${passdbconf},ldap"
	#	--with-smbwrapper \
	#	`use_with kerberos krb5` \
	#	`use_with afs` \
	econf \
		--with-automount \
		--with-smbmount \
		`use_with pam` \
		--with-passdb=${passdbconf} \
		`use_with cups` \
		`use_with tcpd tcpwrappers` \
		|| die
	emake || die
}

src_install() {
	dodoc NEWS README ROADMAP
	docinto examples
	dodoc examples/*
	cd source
	make install DESTDIR=${D} || die
}