diff options
author | Paul Traina <pst@FreeBSD.org> | 1996-06-22 18:24:51 +0000 |
---|---|---|
committer | Paul Traina <pst@FreeBSD.org> | 1996-06-22 18:24:51 +0000 |
commit | 3add58a3d71c4e320ea9871c9bb010e8f90de867 (patch) | |
tree | 41b70f74b04ddfd255850f4ccf0e492df6d9f590 /mail/qpopper/scripts | |
parent | e0a7830821a3c0403d5d7edde3a70e96b4be5ff8 (diff) | |
download | ports-3add58a3d71c4e320ea9871c9bb010e8f90de867.tar.gz ports-3add58a3d71c4e320ea9871c9bb010e8f90de867.zip |
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
Notes
Notes:
svn path=/head/; revision=3269
Diffstat (limited to 'mail/qpopper/scripts')
-rw-r--r-- | mail/qpopper/scripts/pre-install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/qpopper/scripts/pre-install b/mail/qpopper/scripts/pre-install new file mode 100644 index 000000000000..b6cb9cfe0763 --- /dev/null +++ b/mail/qpopper/scripts/pre-install @@ -0,0 +1,16 @@ +#!/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 |