mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
18 lines
265 B
Bash
18 lines
265 B
Bash
#!/bin/sh
|
|
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
DATADIR=${PREFIX}/share/web2ldap
|
|
|
|
MKDIR=/bin/mkdir
|
|
|
|
case "$2" in
|
|
POST-INSTALL)
|
|
${MKDIR} -p ${DATADIR}/var ${DATADIR}/var/log ${DATADIR}/var/run
|
|
if [ -w /var/log ]; then
|
|
${MKDIR} /var/log/web2ldap
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|