94d4988e24
is added by the pkg. (Hi Johnny!) Fixes the install problem noted in the recent bulk build and means that a build of kdebase2, etc... won't fail.
98 lines
2.9 KiB
Makefile
98 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.33 2002/01/06 11:21:19 skrll Exp $
|
|
|
|
DISTNAME= openldap-2.0.19
|
|
SVR4_PKGNAME= oldap
|
|
PKGREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.OpenLDAP.org/
|
|
COMMENT= Lightweight directory access protocol server and client package
|
|
|
|
CONFLICTS+= ldapsdk-[0-9]*
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
USE_LIBTOOL= YES
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/build/ltconfig
|
|
|
|
# unfortunately, --enable-phonetic cannot be disabled by runtime configuration
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --enable-dnssrv
|
|
CONFIGURE_ARGS+= --enable-cldap
|
|
CONFIGURE_ARGS+= --enable-passwd
|
|
CONFIGURE_ARGS+= --enable-shell
|
|
CONFIGURE_ARGS+= --enable-wrappers
|
|
CONFIGURE_ARGS+= --with-tls=openssl
|
|
CONFIGURE_ARGS+= --without-readline
|
|
|
|
USE_PTHREAD= native pth
|
|
CONFIGURE_ARGS+= --with-threads
|
|
|
|
PKG_SYSCONFSUBDIR?= openldap
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
|
|
CONFIGURE_ARGS+= --localstatedir=/var/openldap
|
|
MAKE_FLAGS+= sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
.include "../../databases/db/buildlink.mk"
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/db2
|
|
LIBS= -ldb2 -lpthread -lrt
|
|
.endif
|
|
|
|
.if defined(KERBEROS)
|
|
USE_KERBEROS= YES
|
|
CONFIGURE_ARGS+= --with-kerberos
|
|
.else
|
|
CONFIGURE_ARGS+= --without-kerberos
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/openldap
|
|
MAKE_DIRS= ${PKG_SYSCONFDIR} ${PKG_SYSCONFDIR}/schema
|
|
OWN_DIRS= /var/openldap
|
|
OWN_DIRS_PERMS= /var/openldap/openldap-ldbm ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
OWN_DIRS_PERMS+=/var/openldap/openldap-slurp ${ROOT_USER} ${ROOT_GROUP} 0700
|
|
|
|
CNFS= ldap.conf ldapfilter.conf ldaptemplates.conf \
|
|
ldapsearchprefs.conf
|
|
CNFS_PERMS= slapd.conf
|
|
SUPPS= schema/corba.schema schema/core.schema \
|
|
schema/cosine.schema schema/inetorgperson.schema \
|
|
schema/java.schema schema/krb5-kdc.schema \
|
|
schema/misc.schema schema/nadf.schema \
|
|
schema/nis.schema schema/openldap.schema
|
|
|
|
CONF_FILES= # empty
|
|
CONF_FILES_PERMS= # empty
|
|
SUPPORT_FILES= # empty
|
|
.for FILE in ${CNFS}
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
.for FILE in ${CNFS_PERMS}
|
|
CONF_FILES_PERMS+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
.endfor
|
|
.for FILE in ${SUPPS}
|
|
SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}/schema
|
|
for file in ${CNFS} ${CNFS_PERMS} ${SUPPS}; do \
|
|
if [ ! -e ${PKG_SYSCONFDIR}/$${file}.default ]; then \
|
|
${CP} -p ${PKG_SYSCONFDIR}/$${file} \
|
|
${PKG_SYSCONFDIR}/$${file}.default; \
|
|
fi; \
|
|
${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file}.default \
|
|
${EGDIR}/$${file}; \
|
|
${RM} -f ${PKG_SYSCONFDIR}/$${file}.default; \
|
|
done
|
|
|
|
.include "../../security/openssl/buildlink.mk"
|
|
.include "../../security/tcp_wrappers/buildlink.mk"
|
|
.include "../../mk/pthread.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.install.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|