1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/net/siproxd/pkg-install

18 lines
395 B
Plaintext
Raw Normal View History

#!/bin/sh
SIPROXD_HOME=${PKG_PREFIX}/siproxd
SIPROXD_USER=nobody
SIPROXD_GROUP=nobody
case $2 in
POST-INSTALL)
mkdir ${SIPROXD_HOME} && \
chown ${SIPROXD_USER}:${SIPROXD_GROUP} ${SIPROXD_HOME} && \
chmod 750 ${SIPROXD_HOME}
for i in siproxd.conf.example siproxd_passwd.cfg; do
chgrp ${SIPROXD_GROUP} ${PKG_PREFIX}/etc/${i}
chmod 640 ${PKG_PREFIX}/etc/${i}
done
;;
esac