- Move notice from INSTALL to MESSAGE

- Replace (DE)INSTALL with @sample, @new(group|user)
- Bump PKGNAME

ok naddy@ brad@
This commit is contained in:
alek 2004-11-24 21:10:53 +00:00
parent c320b379d4
commit 58c02a7bc4
5 changed files with 20 additions and 122 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.11 2004/08/10 09:14:47 xsa Exp $
# $OpenBSD: Makefile,v 1.12 2004/11/24 21:10:53 alek Exp $
COMMENT= "compact IMAP/POP3 server"
DISTNAME= dovecot-0.99.10.8
PKGNAME= ${DISTNAME}p0
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/

View File

@ -1,33 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2004/09/15 09:09:41 espie Exp $
#
# Dovecot de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SYSCONFDIR=${SYSCONFDIR:-/etc}
CONFIG_FILE=$SYSCONFDIR/dovecot.conf
DOVECOTDIR=/var/dovecot
SSL_DIR=/etc/ssl
DOVECOTUSER=_dovecot
DOVECOTGROUP=_dovecot
if [ "$PKG_DELETE_EXTRA" != Yes ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need"
echo "| to perform these steps as root:"
echo "|"
echo "| userdel $DOVECOTUSER"
echo "| groupdel $DOVECOTGROUP"
echo "| rm -rf $DOVECOTDIR"
echo "| rm $SSL_DIR/dovecotcert.pem"
echo "| rm $SSL_DIR/private/dovecot.pem"
echo "|"
echo "| Do not do this if you plan on re-installing"
echo "| $1 at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,84 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.5 2004/09/15 09:09:41 espie Exp $
#
# Pre/post-installation setup of Dovecot
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SYSCONFDIR=${SYSCONFDIR:-/etc}
CONFIG_FILE=$SYSCONFDIR/dovecot.conf
SSL_DIR=/etc/ssl
SSL_FILE=$SSL_DIR/dovecot-openssl.cnf
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/dovecot
SAMPLE_CONFIG_FILE=$SAMPLE_CONFIG_DIR/dovecot-example.conf
SAMPLE_SSL_FILE=$SAMPLE_CONFIG_DIR/dovecot-openssl.cnf
DOVECOTDIR=/var/dovecot
DOVECOTUSER=_dovecot
DOVECOTGROUP=_dovecot
ID=518
do_usergroup_install()
{
# Create Dovecot user and group
groupinfo -e $DOVECOTGROUP
if [ $? -eq 0 ]; then
echo "===> Using $DOVECOTGROUP group for Dovecot"
else
echo "===> Creating $DOVECOTGROUP group for Dovecot"
groupadd -g $ID $DOVECOTGROUP
fi
userinfo -e $DOVECOTUSER
if [ $? -eq 0 ]; then
echo "===> Using $DOVECOTUSER user for Dovecot"
else
echo "===> Creating $DOVECOTUSER user for Dovecot"
useradd -g $DOVECOTGROUP -d /nonexistent -L daemon -c 'Dovecot Account' -s /sbin/nologin -u $ID $DOVECOTUSER
fi
}
do_ssl_install()
{
echo
echo "+---------------"
echo "| Files to facilitate the generation of a self-signed"
echo "| certificate and key for Dovecot have been installed:"
echo "| $SSL_FILE (Edit this accordingly!)"
echo "| $PREFIX/sbin/dovecot-mkcert.sh"
echo "|"
echo "| If this has been or will be accomplished by other means,"
echo "| use the following paths for the files:"
echo "| $SSL_DIR/dovecotcert.pem"
echo "| $SSL_DIR/private/dovecot.pem"
echo "+---------------"
echo
}
do_var_install()
{
install -d -o root -g wheel -m 700 $DOVECOTDIR
install -d -o root -g $DOVECOTGROUP -m 750 $DOVECOTDIR/login
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
do_usergroup_install
;;
POST-INSTALL)
do_ssl_install $1
if [ ! -d $DOVECOTDIR ]; then
do_var_install
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,7 +1,16 @@
Files to facilitate the generation of a self-signed
certificate and key for Dovecot have been installed:
/etc/ssl/dovecot-openssl.cnf (Edit this accordingly!)
${PREFIX}/sbin/dovecot-mkcert.sh
If this has been or will be accomplished by other means,
use the following paths for the files:
/etc/ssl/dovecotcert.pem
/etc/ssl/private/dovecot.pem
If you wish to have Dovecot started automatically at boot time,
simply add the follow lines to /etc/rc.local:
if [ -x ${PREFIX}/sbin/dovecot ]; then
echo -n ' dovecot'; ${PREFIX}/sbin/dovecot
fi

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.6 2004/09/15 09:09:41 espie Exp $
@comment $OpenBSD: PLIST,v 1.7 2004/11/24 21:10:53 alek Exp $
@newgroup _dovecot:518
@newuser _dovecot:518:_dovecot:daemon:Dovecot Account:/nonexistent:/sbin/nologin
libexec/dovecot/
libexec/dovecot/dovecot-auth
libexec/dovecot/imap
@ -21,8 +23,11 @@ share/examples/dovecot/dovecot-example.conf
@sample ${SYSCONFDIR}/dovecot.conf
share/examples/dovecot/dovecot-openssl.cnf
@sample ${SYSCONFDIR}/ssl/dovecot-openssl.cnf
@mode 700
@sample /var/dovecot/
@mode 750
@group _dovecot
@sample /var/dovecot/login/
@extra ${SYSCONFDIR}/ssl/dovecotcert.pem
@extra ${SYSCONFDIR}/ssl/private/dovecot.pem
@extraunexec rm -rf /var/dovecot
@extraunexec userdel _dovecot
@extraunexec groupdel _dovecot