52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||
|
# then please put 'unknown'.
|
||
|
|
||
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||
|
pkgname=openldap
|
||
|
pkgver=2.6.7
|
||
|
pkgrel=1
|
||
|
pkgdesc="Lightweight Directory Access Protocol (LDAP) client and server"
|
||
|
arch=('x86_64')
|
||
|
url="https://www.openldap.org/"
|
||
|
license=('custom')
|
||
|
depends=('cyrus-sasl')
|
||
|
makedepends=('libtool' 'util-linux')
|
||
|
backup=(etc/openldap/ldap.conf
|
||
|
etc/openldap/ldap.conf.default)
|
||
|
options=('!makeflags' 'emptydirs')
|
||
|
source=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pkgname}-${pkgver}.tgz
|
||
|
${pkgname}-${pkgver}-consolidated-1.patch)
|
||
|
sha256sums=(cd775f625c944ed78a3da18a03b03b08eea73c8aabc97b41bb336e9a10954930
|
||
|
ee96840f2235bdd810e41e8cbc2faf4d46b83c0c15be937701c147b099d0232d)
|
||
|
|
||
|
prepare() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-consolidated-1.patch
|
||
|
|
||
|
autoconf
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
${CONFIGURE} \
|
||
|
--sysconfdir=/etc \
|
||
|
--with-cyrus-sasl \
|
||
|
--disable-static \
|
||
|
--enable-dynamic \
|
||
|
--disable-debug \
|
||
|
--disable-slapd
|
||
|
|
||
|
make depend
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${pkgname}-${pkgver}
|
||
|
|
||
|
make DESTDIR=${pkgdir} install
|
||
|
}
|