blob: bb1362712a14f3ce1cd466e194c5e654651b7494 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/smbldap-tools/smbldap-tools-0.9.4-r1.ebuild,v 1.9 2009/09/11 11:32:37 flameeyes Exp $
inherit eutils
DESCRIPTION="Samba LDAP management tools"
HOMEPAGE="https://gna.org/projects/smbldap-tools/
http://www.iallanis.info/"
SRC_URI="http://download.gna.org/smbldap-tools/packages/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 s390 sparc x86"
IUSE=""
RDEPEND="net-nds/openldap
>=net-fs/samba-3.0.1
dev-perl/perl-ldap
dev-perl/Crypt-SmbHash
dev-perl/Digest-SHA1
dev-perl/Unicode-MapUTF8
dev-perl/IO-Socket-SSL"
DEPEND="${RDEPEND}"
src_compile() {
mkdir man
for i in smbldap-[gpu]*; do
pod2man --section=8 $i > man/$i.8 || die "generation manpage for ${i} failed"
done
}
src_install() {
emake install prefix="${D}/usr" sysconfdir="${D}/etc" || die "emake install failed"
into /usr
newsbin configure.pl smbldap-configure.pl
rm -f "${D}/usr/sbin"/*.spec
dodoc CONTRIBUTORS ChangeLog FILES INFRA README TODO doc/*.conf
doman man/*
insinto /usr/share/doc/${PF}
doins -r doc/migration_scripts
doins doc/*.pdf
}
pkg_postinst() {
elog "- A good howto is found on http://www.iallanis.info/smbldap-tools/docs/samba-ldap-howto/"
elog "- The configure script is installed as smbldap-configure.pl. Please run it to configure the tools."
elog "- Examples configuration files for Samba and slapd have been copied to /usr/share/doc/${PF},"
elog " together with the migration-scripts."
}
|