642ae82e0e
It handles registrations of SIP clients on a private IP network and performs rewriting of the SIP message bodies to make SIP connections possible via a masquerading firewall. It allows SIP clients (like kphone, linphone) to work behind an IP masquerading firewall or router. PR: ports/72691 Submitted by: Frank W. Josellis <frank@dynamical-systems.org>
18 lines
395 B
Bash
18 lines
395 B
Bash
#!/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
|