Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2006 21:08:59 -0500 (CDT)
From:      Martin Jackson <mhjacks@swbell.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        barner@FreeBSD.org
Subject:   ports/96079: [PATCH] mail/fetchmail: [SUMMARIZE CHANGES]
Message-ID:  <20060420020859.CE9732E031@anduril.minas.tirith>
Resent-Message-ID: <200604200210.k3K2AJCi008502@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96079
>Category:       ports
>Synopsis:       [PATCH] mail/fetchmail: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 20 02:10:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Martin Jackson
>Release:        FreeBSD 6.0-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD anduril.minas.tirith 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #4: Wed Mar 22 21:08:22 CST 2006
>Description:
[DESCRIBE CHANGES]
Add rcNG script to enable fetchmail's daemon mode.  This also recognizes a
fetchmail_flags command.  It defaults to a systemwide config file in
/usr/local/etc/fetchmailrc.

Added file(s):
- files/fetchmail.in

Port maintainer (barner@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- fetchmail-6.3.2_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/Makefile /root/ports_devel/fetchmail/Makefile
--- /usr/ports/mail/fetchmail/Makefile	Mon Jan 30 06:47:52 2006
+++ /root/ports_devel/fetchmail/Makefile	Wed Apr 19 21:04:34 2006
@@ -11,7 +11,7 @@
 
 PORTNAME=	fetchmail
 PORTVERSION=	6.3.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail ipv6
 MASTER_SITES=	http://download.berlios.de/%SUBDIR%/ \
 		http://home.pages.de/~mandree/%SUBDIR%/ \
@@ -23,8 +23,9 @@
 
 RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root.crt:${PORTSDIR}/security/ca-roots
 
+USE_RC_SUBR=	fetchmail
+
 USE_BZIP2=	yes
-USE_REINPLACE=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 USE_OPENSSL=	yes
diff -ruN --exclude=CVS /usr/ports/mail/fetchmail/files/fetchmail.in /root/ports_devel/fetchmail/files/fetchmail.in
--- /usr/ports/mail/fetchmail/files/fetchmail.in	Wed Dec 31 18:00:00 1969
+++ /root/ports_devel/fetchmail/files/fetchmail.in	Wed Apr 19 20:59:22 2006
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: fetchmail
+# REQUIRE: mail
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable fetchmail:
+#
+#fetchmail_enable="YES"
+#
+# See fetchmail(1) for flags
+#
+
+. %%RC_SUBR%%
+
+name=fetchmail
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/bin/${name}
+pidfile=%%RUNDIR%%/${name}.pid
+extra_commands="awaken"
+awaken_cmd="fetchmail_awaken"
+
+# read settings, set default values
+load_rc_config "$name"
+: ${fetchmail_enable="NO"}
+: ${fetchmail_flags="-f /usr/local/etc/fetchmailrc"}
+
+fetchmail_awaken()
+{
+	if [ $rc_pid ]; then
+		echo "Forcing fetchmail to check mailbox(es)..."
+		kill -USR1 $rc_pid
+	else
+		echo "$name not running? (check $pidfile)"
+	fi
+
+	return
+}
+
+run_rc_command "$1"
--- fetchmail-6.3.2_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060420020859.CE9732E031>