summaryrefslogtreecommitdiff
blob: 1df1f9bf551f08b349fe6315242abfa5960d3d37 (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
60
61
62
63
64
65
66
# Copyright 1999-2006 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.2a.ebuild,v 1.1 2006/08/01 11:09:27 satya Exp $


inherit eutils

MY_PV=${PV/a/}
MY_S=${PN}-${MY_PV}
DESCRIPTION="Idealx samba ldap management tools"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
HOMEPAGE="http://samba.idealx.org"

IUSE="doc"

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
	"

DEPEND="${DEPEND}
	>sys-apps/sed-4
	"
LICENSE="GPL-2"
SLOT="0"
# Waiting for the test of dev-perl/Unicode-MapUTF8
#KEYWORDS="-* ~amd64 ~arm ~mips ~s390"
KEYWORDS="~alpha ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"

src_unpack() {
	unpack ${A}; cd ${MY_S}

	# conf install path cleanup
	sed -i "s:/etc/opt/IDEALX/\(smbldap-tools/\):/etc/\1:g" smbldap_tools.pm
	sed -i "s:/etc/opt/IDEALX/\(smbldap-tools/\):/etc/\1:g" configure.pl
	sed -i "s:/etc/opt/IDEALX:/etc:g" smbldap.conf
}

src_compile() {
	einfo "COMPILE: nothing to compile; scripts package"
}

src_install() {
	cd ${WORKDIR}/${MY_S}
	emake install prefix=${D}/usr sysconfdir=${D}/etc || die

	into /usr
	dosbin configure.pl

	rm -f ${D}/usr/sbin/*.spec
	#docs
	dodoc CONTRIBUTORS COPYING ChangeLog FILES INFRA INSTALL README TODO
	if use doc; then
		insinto /usr/share/doc/${PF}/doc;      doins doc/*
		insinto /usr/share/doc/${PF}/doc/html; doins doc/html/*
	fi
}

pkg_postinst() {
	einfo "A good howto is found on http://samba.idealx.org"
	einfo "(or at http://sourceforge.net/project/showfiles.php?group_id=166108)"
}