Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Javier Torres <javitonino [at] gmail [dot] com>
- # Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
- BUILD_SELINUX=false
- pkgname=389-ds-base
- pkgver=1.3.6.1
- 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-mozldap perl-netaddr-ip perl-socket 'svrcore>=4.1.2')
- 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)
- install=${pkgname}.install
- source=("http://www.port389.org/binaries/${pkgname}-${pkgver}.tar.bz2")
- sha512sums=('aaccea52d95d0a6b453c04a4dccb7347312963d50b8ba72a32765ca6b86337c3038ed7481bb3cac2476471912789863f513f71ce6b88b9b58e51832df4117085')
- 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
- #autoreconf
- ./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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement