1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/mail/popa3d/pkg-install
Chris D. Faulhaber dc2053998b popa3d is a POP3 server with the following goals:
1. Security (to the extent that is possible with POP3 at all, of course).
2. Reliability (again, as limited by the mailbox format and the protocol).
3. RFC compliance (slightly relaxed to work with real-world POP3 clients).
4. Performance (limited by the more important goals, above).

PR:		16652
Submitted by:	Sergey Samoyloff <techline@hotmail.ru>
2000-02-19 13:21:54 +00:00

40 lines
611 B
Bash

#!/bin/sh
USER=popa3d
UID=89
GID=89
GROUP=popa3d
GECOS="popa3d"
HOME=/nonexistent
SHELL=/sbin/nologin
case $2 in
PRE-INSTALL)
which -s pw || {
cat << EOF
I see that it is missing the "pw" utility. I need this utility.
Please get it and install it, and try again.
EOF
exit 1
}
pw groupshow $GROUP > /dev/null 2>&1 || {
pw groupadd $GROUP -g $GID;
}
pw usershow $USER > /dev/null 2>&1 || {
pw useradd $USER -g $GROUP -u $UID -h - -d $HOME -s $SHELL -c "$GECOS";
}
;;
POST-INSTALL)
;;
*)
echo "usage: $0 <pkg-name> {PRE-INSTALL|POST-INSTALL}"
exit 64
esac
exit 0