mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
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
This commit is contained in:
parent
e0a7830821
commit
3add58a3d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3269
@ -63,7 +63,7 @@
|
||||
! .endif
|
||||
|
||||
# if you want APOP support, uncomment the next line
|
||||
! CFLAGS+=-DAPOP=\"${PREFIX}/etc/pop.auth\" -DPOPUID=\"pop\"
|
||||
! CFLAGS+=-DAPOP=\"${PREFIX}/etc/popper/pop.auth\" -DPOPUID=\"pop\"
|
||||
|
||||
# if you want RPOP support, uncomment the next line
|
||||
! # CFLAGS+=-DRPOP
|
||||
|
16
mail/popper/scripts/pre-install
Normal file
16
mail/popper/scripts/pre-install
Normal file
@ -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
|
16
mail/qpopper/scripts/pre-install
Normal file
16
mail/qpopper/scripts/pre-install
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user