Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/diradm/
Date: Fri, 29 Dec 2017 22:33:36
Message-Id: 1514586716.94f98b934f7d31fa1c987a30865e5d32f22d6f7b.soap@gentoo
1 commit: 94f98b934f7d31fa1c987a30865e5d32f22d6f7b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 29 19:14:28 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 22:31:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f98b93
7
8 app-admin/diradm: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-admin/diradm/diradm-2.9.7.1.ebuild | 39 ++++++++++++++--------------------
13 1 file changed, 16 insertions(+), 23 deletions(-)
14
15 diff --git a/app-admin/diradm/diradm-2.9.7.1.ebuild b/app-admin/diradm/diradm-2.9.7.1.ebuild
16 index 40dd1892dcc..2d645934617 100644
17 --- a/app-admin/diradm/diradm-2.9.7.1.ebuild
18 +++ b/app-admin/diradm/diradm-2.9.7.1.ebuild
19 @@ -1,9 +1,7 @@
20 # Copyright 1999-2017 Gentoo Foundation
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI="2"
24 -
25 -inherit eutils
26 +EAPI=6
27
28 DESCRIPTION="A nearly complete nss/shadow suite for managing POSIX users/groups/data in LDAP"
29 #HOMEPAGE="http://research.iat.sfu.ca/custom-software/diradm/"
30 @@ -14,13 +12,15 @@ SRC_URI="http://orbis-terrarum.net/~robbat2/${P}.tar.bz2"
31 LICENSE="GPL-2"
32 SLOT="0"
33 KEYWORDS="amd64 ppc ppc64 x86"
34 -IUSE="samba irixpasswd automount test"
35 +IUSE="automount irixpasswd samba test"
36 +REQUIRED_USE="test? ( automount irixpasswd samba )"
37 +
38 RDEPEND=">=net-nds/openldap-2.3
39 sys-apps/gawk
40 sys-apps/coreutils
41 sys-apps/grep
42 dev-lang/perl
43 - app-shells/bash
44 + app-shells/bash:*
45 sys-apps/sed
46 virtual/perl-MIME-Base64
47 samba? (
48 @@ -36,27 +36,24 @@ DEPEND="
49 net-nds/openldap[-minimal]
50 )"
51
52 -pkg_setup() {
53 - use test && elog "Warning, for test usage, diradm is built with all optional features!"
54 +src_configure() {
55 + econf \
56 + $(use_enable automount) \
57 + $(use_enable irixpasswd) \
58 + $(use_enable samba)
59 }
60
61 -src_configure() {
62 - local myconf
63 - if use test; then
64 - myconf="--enable-samba --enable-automount --enable-irixpasswd"
65 - else
66 - myconf="`use_enable samba` `use_enable automount` `use_enable irixpasswd`"
67 - fi
68 - econf ${myconf} || die "econf failed"
69 +src_test() {
70 + emake -j1 check
71 }
72
73 src_install() {
74 - emake install DESTDIR="${D}" || die "emake install failed"
75 - dodoc CHANGES* README AUTHORS ChangeLog NEWS README.prefork \
76 - THANKS TODO KNOWN-BUGS || die
77 + default
78 + dodoc CHANGES.prefork KNOWN-BUGS
79 +
80 if use irixpasswd; then
81 insinto /etc/openldap/schema
82 - doins irixpassword.schema || die "Failed irixpassword.schema"
83 + doins irixpassword.schema
84 fi
85 }
86
87 @@ -69,7 +66,3 @@ pkg_postinst() {
88 elog "those packages, with a further fallback to /etc/openldap/ldap.conf"
89 elog "for server connection settings only."
90 }
91 -
92 -src_test() {
93 - emake -j1 check
94 -}