mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
29fb0f538c
PR: ports/157578 Submitted by: Chris Rees (utisoft@gmail.com) Approved by: tabthorpe (co-mentor)
18 lines
274 B
Bash
18 lines
274 B
Bash
#!/bin/sh
|
|
|
|
|
|
SYSCONF_DIR=${SYSCONF_DIR:-${PKG_PREFIX}/etc/dnrd}
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
if [ ! -d ${SYSCONF_DIR} ]; then
|
|
mkdir -p ${SYSCONF_DIR}
|
|
if [ ! -d ${SYSCONF_DIR} ]; then
|
|
echo "Creating \"${SYSCONF_DIR}\" failed."
|
|
exit 1
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|
|
exit 0
|