1
0
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:
Paul Traina 1996-06-22 18:24:51 +00:00
parent e0a7830821
commit 3add58a3d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3269
3 changed files with 33 additions and 1 deletions

View File

@ -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

View 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

View 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