ports/127087: mail/bincimap port does not include an rc.d file
| From: | Nick Hibma <nick@anywi.com> |
| Date: | Thu, 04 Sep 2008 14:00:13 +0200 |
| Subject: | bincimap port does not include an rc.d file |
| Send-pr version: | 3.113 |
| Number: | 127087 |
| Category: | ports |
| Synopsis: | mail/bincimap port does not include an rc.d file |
| Severity: | non-critical |
| Priority: | low |
| Responsible: | freebsd-ports-bugs@FreeBSD.org |
| State: | suspended |
| Class: | change-request |
| Arrival-Date: | Thu Sep 04 12:10:01 UTC 2008 |
| Closed-Date: | |
| Last-Modified: | Fri Oct 17 10:15:11 UTC 2008 |
| Originator: | Nick Hibma |
| Release: | FreeBSD 7.0-STABLE i386 |
| Organization: |
AnyWi Technologies
| Environment: |
System: FreeBSD hind.van-laarhoven.org 7.0-STABLE FreeBSD 7.0-STABLE #3: Thu Aug 14 21:10:55 CEST 2008 toor@hind.van-laarhoven.org:/usr/src/sys/i386/compile/HIND i386
| Description: |
See below for an rc.d script.
Also, the port should probably depend on sysutils/ucspi-tcp (if tcpserver is
not found) and security/checkpassword-pam (if /usr/local/bin/checkpassword* is
not found).
Also, the port should probably depend on sysutils/ucspi-tcp (if tcpserver is
not found) and security/checkpassword-pam (if /usr/local/bin/checkpassword* is
not found).
| How-To-Repeat: |
| Fix: |
#!/bin/sh
#
# Copyright 2007, AnyWi Technologies
#
# PROVIDE: bincimapd
# REQUIRE: LOGIN cleanvar
#
# Note: tcpserver can be found in the sysutils/ucspi-tcp package.
. /etc/rc.subr
name="bincimapd"
rcvar=`set_rcvar`
load_rc_config $name
: ${bincimapd_enable="NO"}
: ${bincimapd_tcpserver="/usr/local/bin/tcpserver"}
: ${bincimapd_tcpserver_flags="-R -H"}
: ${bincimapd_host="0"}
: ${bincimapd_port="imap"}
: ${bincimapd_conf="/usr/local/etc/bincimap/bincimap.conf"}
: ${bincimapd_pidfile="/var/run/bincimapd.pid"}
: ${bincimapd_checkpassword="/usr/local/bin/checkpassword-pam"} # e.g. /usr/local/bin/checkpassword-pam
: ${bincimapd_checksubprogram="/usr/bin/true"}
bincimapd_start()
{
echo -n "Starting bincimapd: "
$bincimapd_tcpserver $bincimapd_tcpserver_flags $bincimapd_host $bincimapd_port \
/usr/local/bin/bincimap-up --conf=$bincimapd_conf -- \
/usr/local/bin/checkpassword-pam -s imap -- /usr/local/bin/bincimapd &
echo $! > $bincimapd_pidfile
echo "."
}
bincimapd_stop()
{
echo "Stopping bincimapd"
pkill -F $bincimapd_pidfile
}
start_cmd="bincimapd_start"
stop_cmd="bincimapd_stop"
run_rc_command "$1"
#
# Copyright 2007, AnyWi Technologies
#
# PROVIDE: bincimapd
# REQUIRE: LOGIN cleanvar
#
# Note: tcpserver can be found in the sysutils/ucspi-tcp package.
. /etc/rc.subr
name="bincimapd"
rcvar=`set_rcvar`
load_rc_config $name
: ${bincimapd_enable="NO"}
: ${bincimapd_tcpserver="/usr/local/bin/tcpserver"}
: ${bincimapd_tcpserver_flags="-R -H"}
: ${bincimapd_host="0"}
: ${bincimapd_port="imap"}
: ${bincimapd_conf="/usr/local/etc/bincimap/bincimap.conf"}
: ${bincimapd_pidfile="/var/run/bincimapd.pid"}
: ${bincimapd_checkpassword="/usr/local/bin/checkpassword-pam"} # e.g. /usr/local/bin/checkpassword-pam
: ${bincimapd_checksubprogram="/usr/bin/true"}
bincimapd_start()
{
echo -n "Starting bincimapd: "
$bincimapd_tcpserver $bincimapd_tcpserver_flags $bincimapd_host $bincimapd_port \
/usr/local/bin/bincimap-up --conf=$bincimapd_conf -- \
/usr/local/bin/checkpassword-pam -s imap -- /usr/local/bin/bincimapd &
echo $! > $bincimapd_pidfile
echo "."
}
bincimapd_stop()
{
echo "Stopping bincimapd"
pkill -F $bincimapd_pidfile
}
start_cmd="bincimapd_start"
stop_cmd="bincimapd_stop"
run_rc_command "$1"
| Release-Note: |
| Audit-Trail: |
| Reply via E-mail | |
| From: | Stefan Walter <stefan@freebsd.org> |
| Date: | Mon, 13 Oct 2008 19:41:37 +0200 |
|
Hi Nick, can you provide a patch that can be applied to the current version of the port including the script you already sent and the changes you mentioned? Best regards, Stefan | |
| Reply via E-mail | |
| From: | Nick Hibma <nick@anywi.com> |
| Date: | Mon, 13 Oct 2008 22:09:15 +0200 |
|
Just add the file in the port, add it to pkg-plist, and add the lines RUN_DEPENDS += checkpassword-pam:${PORTSDIR}/security/checkpassword-pam RUN_DEPENDS += tcpserver:${PORTSDIR}/sysutils/ucspi-tcp to the Makefile. I do not have the time to test this unfortunately and I am not that great in writing ports anyway. Nick | |
| State Changed | |
| From-To: | open->suspended |
| By: | stefan |
| When: | Fri Oct 17 10:14:25 UTC 2008 |
| Why: | Suspended until someone can provide a tested patch. |
| Unformatted: |
