mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
bae72333b8
From the website: The Toolserver Framework for Python is a framework for simple building of webservices. This is not Twisted - that one is much larger and much richer in features. If you need a full fledged webservice or internet protocol platform, you better go with Twisted. But if you need a lean and mean webservice machine, the Toolserver Framework for Python might be the right tool for the job. Author: Georg Bauer <gb@murphy.bofh.ms> WWW: http://pyds.muensterland.org/wiki/toolserver.html PR: ports/122316 Submitted by: Frank Fenor <frank at fenor.de>
37 lines
733 B
Bash
37 lines
733 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/sbin
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
USER=toolserver
|
|
GROUP=${USER}
|
|
UID=434
|
|
GID=${UID}
|
|
|
|
if pw group show "${GROUP}" 2>/dev/null; then
|
|
echo "You already have a group \"${GROUP}\", so I will use it."
|
|
else
|
|
if pw groupadd ${GROUP} -g ${GID}; then
|
|
echo "Added group \"${GROUP}\"."
|
|
else
|
|
echo "Adding group \"${GROUP}\" failed..."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
if pw user show "${USER}" 2>/dev/null; then
|
|
echo "You already have a user \"${USER}\", so I will use it."
|
|
else
|
|
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -m \
|
|
-d /home/toolserver -s /bin/csh -c "Toolserver Framework"
|
|
then
|
|
echo "Added user \"${USER}\"."
|
|
else
|
|
echo "Adding user \"${USER}\" failed..."
|
|
exit 1
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|