Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.45 2015/09/14 16:32:26 manu Exp $
# $NetBSD: Makefile,v 1.49 2016/07/02 21:03:08 jperkin Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
PKGREVISION= 3
@@ -56,7 +56,9 @@ DB_CONFIG= DB_CONFIG
RCD_SCRIPTS= slapd
FILES_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR}
FILES_SUBST+= OPENLDAP_VARDIR=${OPENLDAP_VARDIR}
FILES_SUBST+= SLAPD_USER=${SLAPD_USER}
FILES_SUBST+= LDAP_GROUP=${LDAP_GROUP}
MESSAGE_SUBST+= SLAPD_USER=${SLAPD_USER}
MESSAGE_SUBST+= LDAP_GROUP=${LDAP_GROUP}

View File

@@ -0,0 +1,19 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: slapd.sh,v 1.1 2016/06/17 13:56:53 jperkin Exp $
#
# OpenLDAP standalone LDAP daemon
#
# PROVIDE: slapd
# REQUIRE: DAEMON
. /etc/rc.subr
name="slapd"
rcvar=${name}
command="@PREFIX@/libexec/${name}"
required_files="@OPENLDAP_ETCDIR@/${name}.conf"
command_args="-u @SLAPD_USER@"
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,36 @@
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='0'>
<create_default_instance enabled='false'/>
<single_instance/>
<dependency name='network' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/network:default'/>
</dependency>
<dependency name='filesystem-local' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/system/filesystem/local:default'/>
</dependency>
<method_context working_directory='@OPENLDAP_VARDIR@'>
<method_environment>
<envvar name='PATH' value='@PREFIX@/sbin:@PREFIX@/bin:/sbin:/usr/sbin:/usr/bin'/>
</method_environment>
</method_context>
<exec_method name='start' type='method' exec='@PREFIX@/libexec/slapd -u @SLAPD_USER@ -g @LDAP_GROUP@ -h &quot;ldap:// ldaps://&quot; -f %{config_file}' timeout_seconds='60'/>
<exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'/>
<property_group name='startd' type='framework'>
<propval name='ignore_error' type='astring' value='core,signal'/>
</property_group>
<property_group name='application' type='application'>
<propval name='config_file' type='astring' value='@PKG_SYSCONFDIR@/openldap/slapd.conf'/>
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>OpenLDAP Server</loctext>
</common_name>
<documentation>
<manpage title='slapd.conf' section='5' manpath='@PREFIX@/@PKGMANDIR@'/>
<manpage title='slapd' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
</documentation>
</template>
</service>
</service_bundle>