aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-06-23 02:24:51 +0800
committerpst <pst@FreeBSD.org>1996-06-23 02:24:51 +0800
commit1b601a1115e8a88e05778bd3bfbf0e4220956c77 (patch)
treefb77f8f77c78680fe9ba830e0fb4f28cb983046c /mail
parent88d3a8d36a42b5d9cc4dccdf88e33584ef532d05 (diff)
downloadfreebsd-ports-gnome-1b601a1115e8a88e05778bd3bfbf0e4220956c77.tar.gz
freebsd-ports-gnome-1b601a1115e8a88e05778bd3bfbf0e4220956c77.tar.zst
freebsd-ports-gnome-1b601a1115e8a88e05778bd3bfbf0e4220956c77.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
Diffstat (limited to 'mail')
-rw-r--r--mail/popper/files/patch-aa2
-rw-r--r--mail/popper/scripts/pre-install16
-rw-r--r--mail/qpopper/scripts/pre-install16
3 files changed, 33 insertions, 1 deletions
diff --git a/mail/popper/files/patch-aa b/mail/popper/files/patch-aa
index c44898c301aa..729da1a2e622 100644
--- a/mail/popper/files/patch-aa
+++ b/mail/popper/files/patch-aa
@@ -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
diff --git a/mail/popper/scripts/pre-install b/mail/popper/scripts/pre-install
new file mode 100644
index 000000000000..b6cb9cfe0763
--- /dev/null
+++ b/mail/popper/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
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