summaryrefslogtreecommitdiff
path: root/mail/qpopper/INSTALL
blob: c4d5d1b6ec747fb5ba9f9b94ee001605be25387e (plain)
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
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1 2001/11/01 01:01:14 zuntum Exp $
#

PKGNAME=$1
STAGE=$2

BINGRP=@BINGRP@
CHGRP=@CHGRP@
CHOWN=@CHOWN@
DB_SUFFIX=@DB_SUFFIX@
PKG_PREFIX=@PKG_PREFIX@
QPOPPER_APOP_AUTH=@QPOPPER_APOP_AUTH@.${DB_SUFFIX}
QPOPPER_USER=@QPOPPER_USER@
USER_CMD="@USER_CMD@"

case "${STAGE}" in
PRE-INSTALL)
	${USER_CMD} info -e ${QPOPPER_USER} ||
		${USER_CMD} add -g ${BINGRP} \
		    -d /nonexistent -s /sbin/nologin ${QPOPPER_USER}
	;;
POST-INSTALL)
	if [ -f ${QPOPPER_APOP_AUTH} ]; then \
		${CHOWN} ${QPOPPER_USER} ${QPOPPER_APOP_AUTH}; \
		${CHGRP} ${BINGRP} ${QPOPPER_APOP_AUTH}; \
	fi
	cat <<EOF
===========================================================================

In order to enable POP service, you should add the following line
to your /etc/inetd.conf:

    pop3 stream tcp nowait root ${PKG_PREFIX}/libexec/qpopper qpopper -s

===========================================================================
EOF
	;;
esac