aboutsummaryrefslogtreecommitdiff
path: root/net/openldap23-server/pkg-install
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2005-03-27 03:19:52 +0000
committerKris Kennaway <kris@FreeBSD.org>2005-03-27 03:19:52 +0000
commitbd84b198ded85d0e62cbc28ebd2f66b1be9eef17 (patch)
treec1d1cf26a024b234295de0ec80942f16fb52d645 /net/openldap23-server/pkg-install
parent2d2fff05bb286d4697adf7805a80816997a41ae3 (diff)
Notes
Diffstat (limited to 'net/openldap23-server/pkg-install')
-rw-r--r--net/openldap23-server/pkg-install44
1 files changed, 0 insertions, 44 deletions
diff --git a/net/openldap23-server/pkg-install b/net/openldap23-server/pkg-install
deleted file mode 100644
index aa9b0cf46da9..000000000000
--- a/net/openldap23-server/pkg-install
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-CHOWN=/usr/sbin/chown
-ECHO_CMD=echo
-GREP=/usr/bin/grep
-PKG_INFO=/usr/sbin/pkg_info
-PW=/usr/sbin/pw
-
-FTPUSERS=/etc/ftpusers
-
-case $2 in
-PRE-INSTALL)
- if ! ${PW} usershow -n ldap >/dev/null 2>&1; then
- ${ECHO_CMD}
- if ! ${PW} groupshow -n ldap >/dev/null 2>&1; then
- if ! ${PW} groupadd -n ldap -g 389; then
- ${ECHO_CMD} "*** Failed to add a group ldap with id 389."
- ${ECHO_CMD}
- ${ECHO_CMD} "Please add the ldap user manually with"
- ${ECHO_CMD} " ${PW} useradd -n ldap -g ldap -c 'OpenLDAP server' \\"
- ${ECHO_CMD} " -d /nonexistent -s /sbin/nologin -h -"
- ${ECHO_CMD} "and retry installing this package."
- exit 1
- fi
- ${ECHO_CMD} "===> Group 'ldap' created."
- fi
- if ! ${PW} useradd -n ldap -u 389 -g ldap -c 'OpenLDAP Server' \
- -d /nonexistent -s /sbin/nologin -h -; then
- ${ECHO_CMD} "*** Failed to add an user ldap with id 389."
- ${ECHO_CMD}
- ${ECHO_CMD} "Please add the ldap user manually with"
- ${ECHO_CMD} " ${PW} useradd -n ldap -g ldap -c 'OpenLDAP server' \\"
- ${ECHO_CMD} " -d /nonexistent -s /sbin/nologin -h -"
- ${ECHO_CMD} "and retry installing this package."
- exit 1
- fi
- ${GREP} -qs '^ldap$' ${FTPUSERS} || ${ECHO_CMD} ldap >> ${FTPUSERS}
- ${ECHO_CMD} "===> Account 'ldap' created."
- fi
- ;;
-esac