blob: c34f67e08ba5f70bd2e1b97f40d99027e7113e26 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Javier Torres <javitonino [at] gmail [dot] com>
# Contributor: Jameson Pugh <imntreal@gmail.com>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
BUILD_SELINUX=false
pkgname=389-ds-base
pkgver=1.4.0.18
pkgrel=1
pkgdesc="389 Directory Server (base)"
arch=(i686 x86_64)
url="http://port389.org/"
license=(GPL)
depends=(cyrus-sasl cyrus-sasl-gssapi icu lm_sensors net-snmp libsystemd
openldap perl-netaddr-ip perl-socket libevent nss pcre pam python)
makedepends=(doxygen rsync)
conflicts=(svrcore)
provides=(svrcore)
optdepends=('python-lib389: Python managemnt scripts'
'python2-lib389: Python2 version')
if [[ "${BUILD_SELINUX}" = "true" ]]; then
depends+=(selinux-usr-policycoreutils)
fi
backup=(etc/default/dirsrv
etc/default/dirsrv.systemd
etc/dirsrv/config/certmap.conf
etc/dirsrv/config/ldap-agent.conf
etc/dirsrv/config/slapd-collations.conf
etc/dirsrv/config/template-initconfig)
options=(!libtool)
source=("https://releases.pagure.org/389-ds-base/${pkgname}-${pkgver}.tar.bz2")
sha512sums=('ac658801fe3343b48947b1a2599dde173e2850f54873ccb04862c5b166333bcc0967b4e4dde52d94dd1ce216fd81f55ed4505a47799b04d9dadba7d006deffe3')
build() {
cd "${pkgname}-${pkgver}"
local selinux=""
if [[ "${BUILD_SELINUX}" = "true" ]]; then
selinux="--with-selinux"
fi
if [[ "${CARCH}" = "x86_64" ]]; then
export USE_64=1
fi
./autogen.sh
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--with-tmpfiles-d=/usr/lib/tmpfiles.d \
--with-systemd \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-systemdsystemconfdir=/etc/systemd/system \
--enable-autobind \
--with-openldap \
${selinux} \
#--disable-static
make
}
check() {
cd "${pkgname}-${pkgver}"
make check
}
package() {
cd "${pkgname}-${pkgver}"
make -j1 DESTDIR="${pkgdir}/" install
install -dm755 "${pkgdir}"/var/log/${pkgname}/ \
"${pkgdir}"/var/lib/${pkgname}/
find "${pkgdir}" -type f -name '*.a' -delete
}
# vim: set ts=2 sw=2 ft=sh noet:
|