1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Update of cyrus-imspd from 1.7b to 1.8

- Startup script updated to rcNG

PR:		ports/108740
Submitted by:	Martin Matuska <martin_AT_matuska dot org>
This commit is contained in:
Cheng-Lung Sung 2007-02-05 00:45:22 +00:00
parent 200f84afaa
commit 5e9a798438
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184207
5 changed files with 47 additions and 29 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= cyrus-imspd
PORTVERSION= 1.7b
PORTVERSION= 1.8
CATEGORIES= databases mail
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
http://ftp.kfki.hu/packages/mail/cyrus/
@ -22,13 +22,13 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
--with-sasldir=${LOCALBASE} \
--with-auth=unix
USE_RC_SUBR= imspd
pre-configure:
${REINPLACE_CMD} -e "s|<sasl.h>|<sasl2/sasl.h>|" \
${WRKSRC}/configure
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/imspd.sh \
${PREFIX}/etc/rc.d/imspd.sh
${INSTALL_DATA} ${FILESDIR}/imspd.conf \
${PREFIX}/lib/sasl2/imspd.conf
${MKDIR} /var/imsp

View File

@ -1,3 +1,3 @@
MD5 (cyrus-imspd-v1.7b.tar.gz) = 58aed9741f975e29f364e7e604ddc5e9
SHA256 (cyrus-imspd-v1.7b.tar.gz) = bbffc0096c17770fe990d14d5b1a106659b750ca2e71c76e5145c71fb5f94453
SIZE (cyrus-imspd-v1.7b.tar.gz) = 636760
MD5 (cyrus-imspd-v1.8.tar.gz) = 90de37a522f308186ca545596f6cafbb
SHA256 (cyrus-imspd-v1.8.tar.gz) = ba1026dca5440b6a24a298cb9aa350321f9c6f921ba6404a74b9d546c02b70cd
SIZE (cyrus-imspd-v1.8.tar.gz) = 650596

View File

@ -0,0 +1,41 @@
#! /bin/sh
#
#
# PROVIDE: imspd
# REQUIRE: DAEMON NETWORKING SERVERS
#
# Add the following line to /etc/rc.conf to enable imspd:
#
# imspd_enable="YES"
#
# Tweakable parameters for users to override in rc.conf
. "%%RC_SUBR%%"
name=imspd
load_rc_config ${name}
: ${imspd_enable="NO"}
: ${imspd_pidfile=/var/run/imspd.pid}
: ${imspd_options=/var/imspd/options}
rcvar=`set_rcvar`
pidfile=${imspd_pidfile}
start_postcmd="start_postcmd"
stop_postcmd="stop_postcmd"
required_files=${imspd_options}
command="%%PREFIX%%/sbin/imspd"
command_args=">/dev/null &"
start_postcmd()
{
PID=`pgrep imspd`
[ -n "${PID}" ] && echo ${PID} > ${pidfile}
}
stop_postcmd()
{
[ -f "${pidfile}" ] && rm ${pidfile}
}
run_rc_command "$1"

View File

@ -1,22 +0,0 @@
#!/bin/sh
# Start or stop cyrus-imspd
# $FreeBSD$
case "$1" in
start)
if [ -x /usr/local/sbin/imspd -a \
-f /var/imsp/options ]; then
/usr/local/sbin/imspd >/dev/null &
echo -n ' imspd'
fi
;;
stop)
kill `ps -U root | awk '/imspd$/ {print $1}'` && echo -n ' imspd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0

View File

@ -1,4 +1,3 @@
etc/rc.d/imspd.sh
lib/sasl2/imspd.conf
sbin/imspd
%%PORTDOCS%%share/doc/imspd/Setup-instructions