Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/389-ds-base/
Date: Fri, 01 Apr 2016 06:25:44
Message-Id: 1459491918.411ecd1d869fe94c8913d4a21bccc1a07d777de2.idella4@gentoo
1 commit: 411ecd1d869fe94c8913d4a21bccc1a07d777de2
2 Author: Wes Cilldhaire <wes <AT> sol1 <DOT> com <DOT> au>
3 AuthorDate: Fri Apr 1 05:33:38 2016 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 1 06:25:18 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=411ecd1d
7
8 net-nds/389-ds-base: version bump to 1.3.5.1
9
10 New version from 389-ds-base upstream
11
12 Acked-by: wibrown <AT> redhat.com
13
14 Package-Manager: portage-2.2.28
15 Closes: https://github.com/gentoo/gentoo/pull/1175
16
17 Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>
18
19 net-nds/389-ds-base/389-ds-base-1.3.5.1.ebuild | 141 +++++++++++++++++++++++++
20 net-nds/389-ds-base/Manifest | 1 +
21 2 files changed, 142 insertions(+)
22
23 diff --git a/net-nds/389-ds-base/389-ds-base-1.3.5.1.ebuild b/net-nds/389-ds-base/389-ds-base-1.3.5.1.ebuild
24 new file mode 100644
25 index 0000000..a918394
26 --- /dev/null
27 +++ b/net-nds/389-ds-base/389-ds-base-1.3.5.1.ebuild
28 @@ -0,0 +1,141 @@
29 +# Copyright 1999-2016 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=5
34 +
35 +WANT_AUTOMAKE="1.13"
36 +
37 +inherit user eutils multilib flag-o-matic autotools
38 +
39 +DESCRIPTION="389 Directory Server (core librares and daemons )"
40 +HOMEPAGE="http://port389.org/"
41 +SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="autobind auto-dn-suffix debug doc +pam-passthru +dna +ldapi +bitwise +presence kerberos selinux"
47 +
48 +# Pinned to db:4.8 as it is the current stable, can change to a later db version < 6 when they stabilize.
49 +# The --with-db-inc line in econf will need to be updated as well when changing db version.
50 +COMMON_DEPEND="
51 + sys-libs/db:4.8
52 + >=dev-libs/cyrus-sasl-2.1.19
53 + >=net-analyzer/net-snmp-5.1.2
54 + >=dev-libs/icu-3.4:=
55 + dev-libs/nss[utils]
56 + dev-libs/nspr
57 + dev-libs/svrcore
58 + dev-libs/openssl:0=
59 + dev-libs/libpcre:3
60 + >=dev-perl/perl-mozldap-1.5.3
61 + dev-perl/NetAddr-IP
62 + net-nds/openldap
63 + sys-libs/pam
64 + sys-libs/zlib
65 + kerberos? ( >=app-crypt/mit-krb5-1.7-r100[openldap] )"
66 +
67 +DEPEND="${COMMON_DEPEND}
68 + virtual/pkgconfig
69 + sys-devel/libtool
70 + doc? ( app-doc/doxygen )
71 + sys-apps/sed"
72 +RDEPEND="${COMMON_DEPEND}
73 + selinux? ( sec-policy/selinux-dirsrv )
74 + virtual/perl-Time-Local
75 + virtual/perl-MIME-Base64"
76 +
77 +pkg_setup() {
78 + enewgroup dirsrv
79 + enewuser dirsrv -1 -1 -1 dirsrv
80 +}
81 +
82 +src_prepare() {
83 + #0001-Ticket-47840-add-configure-option-to-disable-instanc.patch
84 + # epatch "${FILESDIR}/389-ds-base-1.3.4-no-instance-script.patch"
85 +
86 + # as per 389 documentation, when 64bit, export USE_64
87 + use amd64 && export USE_64=1
88 +
89 + # This will be changed in 1.3.5.X
90 + # sed -i -e 's/nobody/dirsrv/g' configure.ac || die "sed failed on configure.ac"
91 + eautoreconf
92 +
93 + append-lfs-flags
94 +}
95 +
96 +src_configure() {
97 + # for 1.3.5.X, will add --enable-gcc-security.
98 + # auto-dn-suffix currently throws warning in configure script,
99 + # see https://fedorahosted.org/389/ticket/48710
100 + econf \
101 + $(use_enable debug) \
102 + $(use_enable pam-passthru) \
103 + $(use_enable ldapi) \
104 + $(use_enable autobind) \
105 + $(use_enable dna) \
106 + $(use_enable bitwise) \
107 + $(use_enable presence) \
108 + $(use_with kerberos) \
109 + $(use_enable debug) \
110 + $(use_enable auto-dn-suffix) \
111 + --enable-maintainer-mode \
112 + --with-fhs \
113 + --with-openldap \
114 + --sbindir=/usr/sbin \
115 + --bindir=/usr/bin \
116 + --with-db-inc=/usr/include/db4.8
117 +
118 +}
119 +
120 +src_compile() {
121 + default
122 + if use doc; then
123 + doxygen slapi.doxy || die "cannot run doxygen"
124 + fi
125 +}
126 +
127 +src_install () {
128 + emake DESTDIR="${D}" install
129 +
130 + # remove redhat style init script
131 + rm -rf "${D}"/etc/rc.d || die
132 + # Needs a config option to remove this.
133 + rm -rf "${D}"/etc/default || die
134 +
135 + # and install gentoo style init script
136 + # Get these merged upstream
137 + newinitd "${FILESDIR}"/389-ds.initd-r1 389-ds
138 + newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp
139 +
140 + # cope with libraries being in /usr/lib/dirsrv
141 + dodir /etc/env.d
142 + echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${D}"/etc/env.d/08dirsrv
143 +
144 + if use doc; then
145 + cd "${S}" || die
146 + docinto html/
147 + dodoc -r docs/html/.
148 + fi
149 +}
150 +
151 +pkg_postinst() {
152 + echo
153 + elog "If you are planning to use 389-ds-snmp (ldap-agent),"
154 + elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
155 + elog "adding proper 'server' entries, and adding the lines below to"
156 + elog " => /etc/snmp/snmpd.conf"
157 + elog
158 + elog "master agentx"
159 + elog "agentXSocket /var/agentx/master"
160 + elog
161 + elog "To start 389 Directory Server (LDAP service) at boot:"
162 + elog
163 + elog " rc-update add 389-ds default"
164 + elog
165 + elog "If you are upgrading from previous 1.2.6 release candidates"
166 + elog "please see:"
167 + elog "http://directory.fedoraproject.org/wiki/Subtree_Rename#warning:_upgrade_from_389_v1.2.6_.28a.3F.2C_rc1_.7E_rc6.29_to_v1.2.6_rc6_or_newer"
168 + echo
169 +}
170
171 diff --git a/net-nds/389-ds-base/Manifest b/net-nds/389-ds-base/Manifest
172 index 4e427cc..c2107aa 100644
173 --- a/net-nds/389-ds-base/Manifest
174 +++ b/net-nds/389-ds-base/Manifest
175 @@ -1 +1,2 @@
176 DIST 389-ds-base-1.3.4.8.tar.bz2 3396105 SHA256 a00468afcfa50de375f921a827a04dd53b6a11b632982bb0db98cafca509e701 SHA512 ac85223cb38d4cebb3ff61b23e3c0312b0cd30a0c6bf0d9644842c6ecfbc9379ea4a639c80b3e78a13a67f273342fec78e9ecf4672cc72e289d72d74c2fa0d8f WHIRLPOOL 4c7645be5b70c108ef437aaf6d50293a99fa6a552c859f649904c6974c8830e5bf96286a0f998c5d187c1f66f3e0922bbe1e756889e6b0a33e8d9db56f0aa005
177 +DIST 389-ds-base-1.3.5.1.tar.bz2 3511066 SHA256 1c4134882cedace6c0f801a3096867ec58436560440ba34934204c18fa3ccbc1 SHA512 b04d0c8f392c71d8aa4c557b0ab49b83a2a711d11c55f8bb486948b2872a2eceb722cd2ac2b4931409cca41d23d85f077122326ea34eb65ece84602d277d931e WHIRLPOOL 8132ac29c89d24378c8fdf2df9a70760afa9a9280e77f71dd97bff054e0c8147e024435061d3203f72cbd44d7a9be3e65a237b911be6448f51e10ec362d5427d