aboutsummaryrefslogtreecommitdiffstats
path: root/mail/popa3d/pkg-install
blob: 7804d89b721d305cdd5a6364345f6efd423793fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $FreeBSD$
#

if [ "$2" != "PRE-INSTALL" ]; then
    exit 0
fi

PATH=/bin:/usr/bin

use_vipw () {

    cat << EOF

You need an account "pop" to install this package.
Please add it by hand (try "man vipw") and try again.

An example passwd entry is:
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent

EOF

}

if ! id -u "pop" > /dev/null 2>&1; then
    use_vipw
    exit 1
fi

exit 0