Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
OpenLDAP is an open source implementation of the Lightweight Directory Access
Protocol. This package includes:
* slapd - stand-alone LDAP daemon (server)
+14
View File
@@ -0,0 +1,14 @@
===========================================================================
$NetBSD: MESSAGE.NetBSD,v 1.1 2008/09/12 11:29:23 ghen Exp $
On 64-bit NetBSD platforms it may be necessary to increase your stacksize
resource limit prior to starting slapd. This can be achieved automatically
by creating the following /etc/rc.conf.d/slapd file:
start_precmd="set_limits"
set_limits()
{
ulimit -s 4096
}
===========================================================================
+15
View File
@@ -0,0 +1,15 @@
===========================================================================
$NetBSD: MESSAGE.common,v 1.1 2008/09/12 11:28:34 ghen Exp $
Note to users who have been running slapd as root before:
As slapd now runs unprivileged by default (as ${SLAPD_USER}:${LDAP_GROUP},
you'll have to adapt some permissions:
${CHOWN} -R ${SLAPD_USER}:${LDAP_GROUP} ${OPENLDAP_VARDIR}/openldap-data/*
${CHOWN} :${LDAP_GROUP} ${OPENLDAP_ETCDIR}/slapd.conf
${CHMOD} 640 ${OPENLDAP_ETCDIR}/slapd.conf
You may have to repeat the first command after running administrative tools
such as slapadd and slapindex as root.
===========================================================================
+76
View File
@@ -0,0 +1,76 @@
# $NetBSD: Makefile,v 1.36 2013/05/04 18:16:37 adam Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
COMMENT= Lightweight Directory Access Protocol server suite
CONFLICTS+= openldap<2.3.23nb1
DEPENDS+= openldap-client>=2.3.27nb1:../../databases/openldap-client
CFLAGS.DragonFly+= -DMDB_DSYNC=O_SYNC -DMDB_FDATASYNC=fsync
# slapd options
CONFIGURE_ARGS+= --enable-slapd
CONFIGURE_ARGS+= --enable-crypt
CONFIGURE_ARGS+= --enable-wrappers
# slapd backends
CONFIGURE_ARGS+= --enable-dnssrv
CONFIGURE_ARGS+= --enable-ldap
CONFIGURE_ARGS+= --enable-meta
CONFIGURE_ARGS+= --enable-monitor
CONFIGURE_ARGS+= --enable-null
CONFIGURE_ARGS+= --enable-passwd
CONFIGURE_ARGS+= --enable-shell
# slapd (stackable) overlays
CONFIGURE_ARGS+= --enable-overlays
BUILD_DIRS= include libraries servers
TEST_DIRS= tests
INSTALL_DIRS= servers
BUILD_DEFS+= OPENLDAP_ETCDIR OPENLDAP_VARDIR
PKG_GROUPS= ${LDAP_GROUP}
PKG_USERS= ${SLAPD_USER}:${LDAP_GROUP}
OPENLDAP_FILEPERMS= ${REAL_ROOT_USER} ${LDAP_GROUP} 0640
SLAPD_DIRPERMS= ${SLAPD_USER} ${LDAP_GROUP} 0700
RUN_DIRPERMS= ${REAL_ROOT_USER} ${LDAP_GROUP} 0775
MAKE_DIRS= ${OPENLDAP_ETCDIR}/schema
OWN_DIRS+= ${OPENLDAP_VARDIR}
OWN_DIRS_PERMS= ${OPENLDAP_VARDIR}/openldap-data ${SLAPD_DIRPERMS}
OWN_DIRS_PERMS+= ${OPENLDAP_VARDIR}/run ${RUN_DIRPERMS}
CNFS= ${CNFS_SCHEMAS_cmd:sh}
CNFS_SCHEMAS_cmd= ${SED} -ne "/\.ldif$$/p;/\.schema$$/p" ${PKGDIR}/PLIST | ${SED} -e "s|share/examples/openldap/||"
CNFS_PERMS= slapd.conf
DB_CONFIG= DB_CONFIG
RCD_SCRIPTS= slapd
FILES_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
FILES_SUBST+= SLAPD_USER=${SLAPD_USER}
MESSAGE_SUBST+= SLAPD_USER=${SLAPD_USER}
MESSAGE_SUBST+= LDAP_GROUP=${LDAP_GROUP}
MESSAGE_SUBST+= OPENLDAP_VARDIR=${OPENLDAP_VARDIR}
MESSAGE_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
MESSAGE_SUBST+= CHOWN=${CHOWN:Q}
MESSAGE_SUBST+= CHMOD=${CHMOD:Q}
.include "options.mk"
.include "../../databases/openldap/Makefile.common"
CONF_FILES_PERMS+= ${EGDIR}/DB_CONFIG ${OPENLDAP_VARDIR}/openldap-data/DB_CONFIG ${OPENLDAP_FILEPERMS}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
.include "../../devel/libuuid/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
+43
View File
@@ -0,0 +1,43 @@
@comment $NetBSD: PLIST,v 1.11 2013/05/04 18:16:37 adam Exp $
${PLIST.slapi}lib/libslapi.la
libexec/slapd
sbin/slapacl
sbin/slapadd
sbin/slapauth
sbin/slapcat
sbin/slapdn
sbin/slapindex
sbin/slappasswd
sbin/slapschema
sbin/slaptest
share/examples/openldap/DB_CONFIG
share/examples/openldap/schema/README
share/examples/openldap/schema/collective.ldif
share/examples/openldap/schema/collective.schema
share/examples/openldap/schema/corba.ldif
share/examples/openldap/schema/corba.schema
share/examples/openldap/schema/core.ldif
share/examples/openldap/schema/core.schema
share/examples/openldap/schema/cosine.ldif
share/examples/openldap/schema/cosine.schema
share/examples/openldap/schema/duaconf.ldif
share/examples/openldap/schema/duaconf.schema
share/examples/openldap/schema/dyngroup.ldif
share/examples/openldap/schema/dyngroup.schema
share/examples/openldap/schema/inetorgperson.ldif
share/examples/openldap/schema/inetorgperson.schema
share/examples/openldap/schema/java.ldif
share/examples/openldap/schema/java.schema
share/examples/openldap/schema/misc.ldif
share/examples/openldap/schema/misc.schema
share/examples/openldap/schema/nis.ldif
share/examples/openldap/schema/nis.schema
share/examples/openldap/schema/openldap.ldif
share/examples/openldap/schema/openldap.schema
share/examples/openldap/schema/pmi.ldif
share/examples/openldap/schema/pmi.schema
share/examples/openldap/schema/ppolicy.ldif
share/examples/openldap/schema/ppolicy.schema
share/examples/openldap/slapd.conf
share/examples/openldap/slapd.ldif
share/examples/rc.d/slapd
+116
View File
@@ -0,0 +1,116 @@
# $NetBSD: options.mk,v 1.17 2013/05/04 18:16:37 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server
PKG_SUPPORTED_OPTIONS= bdb dso inet6 sasl slapi slp smbk5pwd
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
PKG_SUGGESTED_OPTIONS= bdb inet6
.include "../../mk/bsd.options.mk"
PLIST_VARS+= slapi
###
### Whether to build with the Berkeley DB based slapd backends.
###
### NOTE: that option is enabled, because the openldap server needs
### to have local storage support to work as standalone.
###
.if !empty(PKG_OPTIONS:Mbdb)
BDB_ACCEPTED= db4 db5
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
TEST_TARGET= test
# Fix hard-coded support for db4.
# Remove if fixed in future versions of OpenLDAP.
SUBST_CLASSES= bdb
SUBST_MESSAGE.bdb= Fixing bdb library.
SUBST_STAGE.bdb= pre-configure
SUBST_FILES.bdb= ${WRKSRC}/configure
SUBST_SED.bdb= -e 's,-ldb4,-l${BDB_TYPE},g'
SUBST_SED.bdb+= -e 's,ol_cv_bdb_major = 4,ol_cv_bdb_major > 3,g'
. include "../../mk/bdb.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
.endif
###
### Whether to build with iODBC to enable SQL based slapd backends
###
.if !empty(PKG_OPTIONS:Miodbc)
. include "../../databases/iodbc/buildlink3.mk"
CONFIGURE_ARGS+= --enable-sql
.endif
###
### Whether to build with unixODBC to enable SQL based slapd backends
###
.if !empty(PKG_OPTIONS:Munixodbc)
. include "../../databases/unixodbc/buildlink3.mk"
. include "../../devel/libltdl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-sql
.endif
.if empty(PKG_OPTIONS:Miodbc) && empty(PKG_OPTIONS:Munixodbc)
CONFIGURE_ARGS+= --disable-sql
.endif
###
### SASL authentication (requires SASL2)
###
.if !empty(PKG_OPTIONS:Msasl)
CONFIGURE_ARGS+= --with-cyrus-sasl
CONFIGURE_ARGS+= --enable-spasswd
BUILDLINK_API_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
. include "../../security/cyrus-sasl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-cyrus-sasl
.endif
###
### SLP (Service Locator Protocol)
###
.if !empty(PKG_OPTIONS:Mslp)
. include "../../net/openslp/buildlink3.mk"
CONFIGURE_ARGS+= --enable-slp
.endif
###
### IPv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
###
### smbk5pwd support (sync samba and kerberos passwords on password changes)
###
.if !empty(PKG_OPTIONS:Msmbk5pwd)
PKG_FAIL_REASON+= "smbk5pwd option to openldap-server is now " \
"available through the openldap-smbk5pwd package"
.endif
###
### Enable dynamic module support
###
.if !empty(PKG_OPTIONS:Mdso)
CONFIGURE_ARGS+= --enable-modules
# dynamic linking won't work on Darwin when slapd gets stripped
.include "../../mk/bsd.prefs.mk"
. if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes
. endif
.include "../../devel/libltdl/buildlink3.mk"
.endif
###
### Enable SLAPI support
###
.if empty(PKG_OPTIONS:Mslapi)
CONFIGURE_ARGS+= --disable-slapi
.else
CONFIGURE_ARGS+= --enable-slapi
PLIST.slapi= yes
.include "../../devel/libltdl/buildlink3.mk"
.endif