1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/yate-devel/pkg-install
Edwin Groothuis f9174c9de6 [newport] net/yate-devel
Newport: net/yate

	Yate is a telephony engine aimed at creating a telephony
	server that performs well enough to deal with PBX requirements
	and also flexible enough for complex Gateway and IVR
	solutions.

	WWW: http://YATE.null.ro/

PR:		ports/114814
Submitted by:	Balwinder S Dheeman <bdheeman@hotmail.com>
2007-09-23 12:34:40 +00:00

36 lines
685 B
Bash

#!/bin/sh
# $FreeBSD$
#
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
YATE_USER=yate
YATE_GROUP=${YATE_USER}
YATE_UID=204
YATE_GID=${YATE_UID}
if ! pw groupshow "${YATE_GROUP}" 2>/dev/null 1>&2; then
if pw groupadd ${YATE_GROUP} -g ${YATE_GID}; then
echo "Added group \"${YATE_GROUP}\"."
else
echo "Adding group \"${YATE_GROUP}\" failed..."
exit 1
fi
fi
if ! pw usershow "${YATE_USER}" 2>/dev/null 1>&2; then
if pw useradd ${YATE_USER} -u ${YATE_UID} -g ${YATE_GROUP} -h - \
-s "/sbin/nologin" -d "/nonexistent" \
-c "Yate Telephoney Server"; \
then
echo "Added user \"${YATE_USER}\"."
else
echo "Adding user \"${YATE_USER}\" failed..."
exit 1
fi
fi
exit 0