1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/mail/qpopper/scripts/pre-install
Mario Sergio Fujikawa Ferreira 240a399641 'chown user:group' constructs are preferred over 'chown user.group'
for compatibility. For instance, the later does not work in 5.x
branch anymore

Submitted by:	sanpei
2003-04-04 19:50:24 +00:00

17 lines
433 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 is:"
echo "pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent"
echo ""
exit 1
fi
usrdir=${PREFIX}/etc/qpopper
if [ ! -d $usrdir ]; then
mkdir -p $usrdir
fi
chown pop:daemon $usrdir
chmod 700 $usrdir