- /etc -> SYSCONFDIR
- cleanup DESCR - cleanup DEINSTALL/INSTALL scripts
This commit is contained in:
parent
a0c9fc1121
commit
dad9790d2c
@ -1,17 +1,20 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2001/02/13 01:31:23 danh Exp $
|
||||
#
|
||||
# solid-pop3d de-installation
|
||||
|
||||
do-deinstall ()
|
||||
{
|
||||
if [ -d /var/spool/spop3d ]; then
|
||||
rm -rf /var/spool/spop3d
|
||||
fi
|
||||
if [ -f /etc/spop3d.conf ]; then
|
||||
echo "+------------"
|
||||
echo "| If you are removing this package and not planning"
|
||||
echo "| to re-install it at a future time, it is safe to"
|
||||
echo "| remove /etc/spop3d.conf."
|
||||
echo "+------------"
|
||||
fi
|
||||
}
|
||||
set -e
|
||||
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
|
||||
PREFIX="${PKG_PREFIX:-/usr/local}"
|
||||
CONFIG_FILE="${SYSCONFDIR}/spop3d.conf"
|
||||
SPOOL_DIR="/var/spool/spop3d"
|
||||
|
||||
do-deinstall
|
||||
if [ -f ${CONFIG_FILE} -o -d ${SPOOL_DIR} ]; then
|
||||
echo "+------------"
|
||||
echo "| If you are deinstalling $1 and not planning to"
|
||||
echo "| re-install it at a future time, it is safe to remove"
|
||||
echo "| remove ${CONFIG_FILE} and ${SPOOL_DIR}."
|
||||
echo "+------------"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -1,23 +1,26 @@
|
||||
The Solid POP3 Server is an implementation of a Post Office Protocol
|
||||
version 3 server that has flexibility as its main goal. The server is
|
||||
easily configurable and has support for few features such as:
|
||||
The Solid POP3 Server is an implementation of a Post Office
|
||||
Protocol version 3 server that has flexibility as its main
|
||||
goal. The server is easily configurable and has support for
|
||||
few features such as:
|
||||
|
||||
- APOP authentication scheme
|
||||
- virtual hosting
|
||||
- maildir and mailbox handling
|
||||
- bulletins
|
||||
- expiration of messages
|
||||
o APOP authentication scheme
|
||||
o Virtual hosting
|
||||
o Maildir and mailbox handling
|
||||
o Bulletins
|
||||
o Expiration of messages
|
||||
|
||||
Each user can specify his maildrop (its position and type). The format
|
||||
used in specification of maildrop's position should handle almost all
|
||||
widely-used system configurations. The server also seems to be fast,
|
||||
however no tests have been performed, so it's rather relative feeling.
|
||||
The design used is very similar to the design of Solar Designer's POPA3D
|
||||
server. This solution let's minimalize size of code working with root
|
||||
privileges. The code was also heavily checked for buffer overflow leaks
|
||||
and file races. None have been found as for now. All operations on files
|
||||
are done with user privileges. There is no SUID APOP secrets database
|
||||
management program (as in QPOP). Each user can specify his secret in his
|
||||
own home directory.
|
||||
Each user can specify his maildrop (its position and type).
|
||||
The format used in specification of maildrop's position
|
||||
should handle almost all widely-used system configurations.
|
||||
The server also seems to be fast, however no tests have been
|
||||
performed, so it's rather relative feeling. The design used
|
||||
is very similar to the design of Solar Designer's POPA3D
|
||||
server. This solution let's minimalize size of code working
|
||||
with root privileges. The code was also heavily checked for
|
||||
buffer overflow leaks and file races. None have been found
|
||||
as for now. All operations on files are done with user priv-
|
||||
ileges. There is no SUID APOP secrets database management
|
||||
program (as in QPOP). Each user can specify his secret in
|
||||
his own home directory.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
||||
|
@ -1,30 +1,36 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.2 2001/02/13 01:31:24 danh Exp $
|
||||
#
|
||||
|
||||
set -e
|
||||
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
|
||||
PREFIX="${PKG_PREFIX:-/usr/local}"
|
||||
SPOOL_DIR="/var/spool/spop3d"
|
||||
|
||||
post_install ()
|
||||
{
|
||||
if [ ! -d /var/spool/spop3d ]; then
|
||||
install -d -m 755 -o root -g wheel /var/spool/spop3d
|
||||
install -d -m 755 -o root -g wheel /var/spool/spop3d/bulletins
|
||||
if [ ! -d ${SPOOL_DIR} ]; then
|
||||
install -d -m 755 -o root -g wheel ${SPOOL_DIR}
|
||||
install -d -m 755 -o root -g wheel ${SPOOL_DIR}/bulletins
|
||||
fi
|
||||
}
|
||||
|
||||
usage ()
|
||||
{
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
usage
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case ${2} in
|
||||
"PRE-INSTALL")
|
||||
;;
|
||||
"POST-INSTALL")
|
||||
post_install
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
post_install
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -8,7 +8,7 @@
|
||||
| The second line is only necessary if you want to use IPv6
|
||||
| support.
|
||||
|
|
||||
| An optional global configuration file may be used in /etc
|
||||
| An optional global configuration file may be used in ${SYSCONFDIR}
|
||||
| called spop3d.conf.
|
||||
|
|
||||
| See spop3d(8) and spop3d.conf(5) for available options.
|
||||
|
Loading…
x
Reference in New Issue
Block a user