mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
17 lines
463 B
Plaintext
17 lines
463 B
Plaintext
|
#!/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
|