1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/mail/popper/scripts/pre-install
Paul Traina 3add58a3d7 Add scripts/pre-install to request POP userid creation.
Move pop.auth database to ${PREFIX}/etc/popper/pop.auth so that it
(a) does not conflict with MH's pop3 database of same name, and (b)
so that ${PREFIX}/etc/popper directory can be owned by pop uid so
that popauth -init always works.

This should cover the last nits regarding this port.

Requested by: asami
1996-06-22 18:24:51 +00:00

17 lines
463 B
Bash

#!/bin/sh
if ! id -u pop > /dev/null 2>&1; then
echo "You need an account \"pop\" to install this package."
echo "Please add it by hand (try \"man vipw\") and try again."
echo ""
echo "An example passwd entry (assuming uid 68 is available) is;"
echo "pop:*:68:1::0:0:Post Office Owner:/nonexistent:/nonexistent"
echo ""
exit 1
fi
usrdir=${PREFIX}/etc/popper
if [ ! -d $usrdir ]; then
mkdir -p $usrdir
fi
chown pop.daemon $usrdir
chmod 700 $usrdir