mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
3c605eed51
Reorganize Makefile Use pkg-install to create some dirs PR: 88608 Submitted by: Boris B. Samorodov <bsam[@]ipt.ru> (maintainer)
21 lines
281 B
Bash
21 lines
281 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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
|