Skip to content

Commit

Permalink
389-ds-base-2.0.1 version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-larsson committed Nov 3, 2020
1 parent 4fec92c commit 3c39619
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 0 deletions.
176 changes: 176 additions & 0 deletions net-nds/389-ds-base/389-ds-base-2.0.1.ebuild
@@ -0,0 +1,176 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python{3_5,3_6,3_7} )
WANT_AUTOMAKE="1.13"

inherit user eutils multilib flag-o-matic autotools distutils-r1

DESCRIPTION="389 Directory Server (core librares and daemons )"
HOMEPAGE="https://pagure.io/${PN}"

if [[ ${PV} = 9999 ]]; then
inherit git-r3

EGIT_REPO_URI="https://pagure.io/${PN}.git"
EGIT_BOOTSTRAP=""
KEYWORDS=""
S="${WORKDIR}/${PN}"
else
SRC_URI="https://releases.pagure.org/${PN}/${PN}-${PV}.tar.bz2"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-${PV}"
fi

LICENSE="GPL-3+"
SLOT="0"
IUSE="autobind auto-dn-suffix debug doc +pam-passthru +dna +ldapi +bitwise selinux test"

# Pinned to db:4.8 as it is the current stable, can change to a later db version < 6 when they stabilize.
# The --with-db-inc line in econf will need to be updated as well when changing db version.
COMMON_DEPEND="
sys-libs/db:4.8
>=dev-libs/cyrus-sasl-2.1.19
>=net-analyzer/net-snmp-5.1.2
>=dev-libs/icu-3.4:=
>=dev-libs/nss-3.22[utils]
dev-libs/nspr
dev-libs/openssl:0=
dev-libs/libpcre:3
dev-perl/NetAddr-IP
net-nds/openldap
sys-libs/pam
sys-libs/zlib
dev-libs/libevent
dev-util/cmocka
dev-python/six"

DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )
dev-python/argparse-manpage
dev-python/packaging"

RDEPEND="${COMMON_DEPEND}
selinux? ( sec-policy/selinux-dirsrv )
virtual/perl-Time-Local
virtual/perl-MIME-Base64
dev-python/python-ldap
dev-python/argcomplete
dev-python/python-dateutil"

pkg_setup() {
if [ -n "${REPLACING_VERSIONS}" ]; then
if ver_test $REPLACING_VERSIONS -lt 1.3.7; then
echo
eerror "It is not possible to update from ${REPLACING_VERSIONS}."
eerror "At least version 1.3.7 is required to update to 1.4.x."
eerror "Read more here: https://directory.fedoraproject.org/docs/389ds/howto/howto-install-389.html"
echo
die
fi
fi
enewgroup dirsrv
enewuser dirsrv -1 -1 -1 dirsrv
}

src_prepare() {
# as per 389 documentation, when 64bit, export USE_64
use amd64 && export USE_64=1

eautoreconf

append-lfs-flags

# Ensure prlog.h is found
sed -i -e '/#include/ s/nspr4/nspr/' ldap/servers/plugins/sync/sync_persist.c || die

distutils-r1_src_prepare
}

src_configure() {
econf \
$(use_enable debug) \
$(use_enable pam-passthru) \
$(use_enable ldapi) \
$(use_enable autobind) \
$(use_enable dna) \
$(use_enable bitwise) \
$(use_enable auto-dn-suffix) \
$(use_enable test cmocka) \
--with-initddir=no \
--enable-maintainer-mode \
--with-fhs \
--with-openldap \
--sbindir=/usr/sbin \
--bindir=/usr/bin \
--with-db-inc=/usr/include/db4.8

}

src_compile() {
emake
cd "${S}/src/lib389" || die
distutils-r1_src_compile

if use doc; then
doxygen docs/slapi.doxy || die "cannot run doxygen"
fi
}

python_compile() {
distutils-r1_python_compile build_manpages
}

src_test () {
# -j1 is a temporary workaround for bug #605432
emake -j1 check
}

src_install () {
# -j1 is a temporary workaround for bug #605432
emake -j1 DESTDIR="${D}" install

cd "${S}/src/lib389" || die
distutils-r1_src_install

# Install gentoo style init script
# Get these merged upstream
newinitd "${FILESDIR}"/389-ds.initd-r1 389-ds
newinitd "${FILESDIR}"/389-ds-snmp.initd 389-ds-snmp

# cope with libraries being in /usr/lib/dirsrv
dodir /etc/env.d
echo "LDPATH=/usr/$(get_libdir)/dirsrv" > "${D}"/etc/env.d/08dirsrv

if use doc; then
cd "${S}" || die
docinto html/
dodoc -r docs/html/.
fi

# Ensure directories exists and fix permissions
dodir /var/lib/dirsrv
dodir /var/log/dirsrv
fowners dirsrv:dirsrv /var/lib/dirsrv
fowners dirsrv:dirsrv /var/log/dirsrv
}

pkg_postinst() {
echo
elog "If you are planning to use 389-ds-snmp (ldap-agent),"
elog "make sure to properly configure: /etc/dirsrv/config/ldap-agent.conf"
elog "adding proper 'server' entries, and adding the lines below to"
elog " => /etc/snmp/snmpd.conf"
elog
elog "master agentx"
elog "agentXSocket /var/agentx/master"
elog
elog "To start 389 Directory Server (LDAP service) at boot:"
elog
elog " rc-update add 389-ds default"
elog
echo
}
2 changes: 2 additions & 0 deletions net-nds/389-ds-base/Manifest
Expand Up @@ -3,8 +3,10 @@ AUX 389-ds.initd-r1 2366 BLAKE2B 563dabc9ba0d3720956811ac52f85f9257e588953e3b1bf
DIST 389-ds-base-1.4.4.2.tar.bz2 5972674 BLAKE2B ed148a01c4ce75818b94b3bfa7e19567beca2a2fa2b28c6c1f0f96a01b5b920da937107b1a8aac92db756466e0761477c69938987923b89d9c824e87e4da9497 SHA512 cc497f6e2382e860e185489f271a5071e97ee9c7096b6c94ac04b3fc7f4a93f9b60026d16167930771879647076958ecf1562c1d5724a9220262ff76916dc048
DIST 389-ds-base-1.4.4.4.tar.bz2 6289272 BLAKE2B 6ef60461928fbe9790d899b0624793f6d9f23d612878b64a8cb2fbb7c8677e9fe3783f0378188da924bb6c9ad36a4afb4295a36e323450ca1641333ab66d7126 SHA512 e819a736ba30a1b2c35a180dac9815b7f90d1de32050c87f4fd996596ab466b603deca3ab0701eaf4753e820a23dc53f67f68a35397bbbbe41cf655b4a679bef
DIST 389-ds-base-1.4.4.6.tar.bz2 6131649 BLAKE2B 2bda19cb2f87f2061a7ae9e42e5b321ecc84a38aa2ff3c40cfc608538fd5bb65364dc07f2e7c4b1cbf3a51fb600ff3b72eab1377c377fe4292fe1be6417d6b46 SHA512 4ce55096ce82b4de40341348ee6e8e785b27759980b5400567033ebeafd4b87317932d005ea213985db9a642aab11799c01e96a0a6df6747a92cbbda0c283c81
DIST 389-ds-base-2.0.1.tar.bz2 6140878 BLAKE2B 1c118234d1bf0f8e4bc34ebc8158a647f6bd3da0bd833dcb5a1d617eb99d428c506d1e5053404341d76ee3996cda55af9221066a75d0ddfcf854c6b28bf83909 SHA512 34395b9fc73965518b4e0fc1ad5e2053bb0bb2fe38367437dd17a5a735d3d11106d510d43939083cbebcdff9c7790b367b44a3a563fb37899105ad24865eaa2b
EBUILD 389-ds-base-1.4.4.2.ebuild 4058 BLAKE2B 4c456fb4c5e74a76eab9b3e0a80c9dc911a09d50e74e374f685a4f382092a6c3b91c7ff3e0ba95d8c36dfd1debb03e73803a3412a5605489add210a9dd3642ba SHA512 1ee96a30c79f550d9f2c358d2c54ad223a93645ff9adb799567bb437e8de739e39d60200c0dd772f3e87c4bda7aa7327ea55419e71bd240e700e04caa107a91e
EBUILD 389-ds-base-1.4.4.4.ebuild 4058 BLAKE2B 4c456fb4c5e74a76eab9b3e0a80c9dc911a09d50e74e374f685a4f382092a6c3b91c7ff3e0ba95d8c36dfd1debb03e73803a3412a5605489add210a9dd3642ba SHA512 1ee96a30c79f550d9f2c358d2c54ad223a93645ff9adb799567bb437e8de739e39d60200c0dd772f3e87c4bda7aa7327ea55419e71bd240e700e04caa107a91e
EBUILD 389-ds-base-1.4.4.6.ebuild 4172 BLAKE2B 35f6922fba20a8016999ba89357bf634304656cee2029ea038621a5fb24b1928684e56541bcf412cc87c695e5b654fe0dc8b796d1ca2c60b0949f5209d7e47bf SHA512 829151282196c567e58f978e99f540419baa62ac5a6c31729efe37037eb3f8140aee4dc24b10d83e65bc4dc0000e8aa6ddcc714f9535ec03adef118a99be88a5
EBUILD 389-ds-base-2.0.1.ebuild 4172 BLAKE2B 35f6922fba20a8016999ba89357bf634304656cee2029ea038621a5fb24b1928684e56541bcf412cc87c695e5b654fe0dc8b796d1ca2c60b0949f5209d7e47bf SHA512 829151282196c567e58f978e99f540419baa62ac5a6c31729efe37037eb3f8140aee4dc24b10d83e65bc4dc0000e8aa6ddcc714f9535ec03adef118a99be88a5
EBUILD 389-ds-base-9999.ebuild 4172 BLAKE2B 35f6922fba20a8016999ba89357bf634304656cee2029ea038621a5fb24b1928684e56541bcf412cc87c695e5b654fe0dc8b796d1ca2c60b0949f5209d7e47bf SHA512 829151282196c567e58f978e99f540419baa62ac5a6c31729efe37037eb3f8140aee4dc24b10d83e65bc4dc0000e8aa6ddcc714f9535ec03adef118a99be88a5
MISC metadata.xml 931 BLAKE2B 80e1c09a392e4b3244a0eeba8a8e5fe2107a4893604ea007aba64fd56dcfa6bd977f799827606ba56e31a6df94b26d6b4d15cf441bece49b03145d07348cbf3e SHA512 894776c4a46048fc4ab7de5a62dbd14e75da7ad5f957da9e1e0418caefd50daf49c04af8ed3db7aa7ff1d8b281496aa95ac19622605d86f8d9510a75f0fd9ed7

0 comments on commit 3c39619

Please sign in to comment.