diff options
-rw-r--r-- | mail/fetchmail/Makefile | 4 | ||||
-rwxr-xr-x | mail/fetchmail/files/fetchmail.sh | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index 82d06fcf17f..54f117be19e 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.173 2010/05/09 11:45:28 tron Exp $ +# $NetBSD: Makefile,v 1.174 2011/03/20 01:38:35 shattered Exp $ # Note to updaters: mail/fetchmailconf reaches over here, make sure it builds. DISTNAME= fetchmail-6.3.17 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= mail MASTER_SITES= http://download.berlios.de/fetchmail/ EXTRACT_SUFX= .tar.bz2 diff --git a/mail/fetchmail/files/fetchmail.sh b/mail/fetchmail/files/fetchmail.sh index 09380f9fc4b..963cdffc547 100755 --- a/mail/fetchmail/files/fetchmail.sh +++ b/mail/fetchmail/files/fetchmail.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: fetchmail.sh,v 1.2 2004/08/01 04:54:56 jlam Exp $ +# $NetBSD: fetchmail.sh,v 1.3 2011/03/20 01:38:36 shattered Exp $ # # PROVIDE: fetchmail # REQUIRE: mail @@ -14,8 +14,20 @@ rcvar=$name command="@PREFIX@/bin/${name}" pidfile="/var/run/${name}.pid" required_files="@PKG_SYSCONFDIR@/${name}.conf" -extra_commands="reload" +extra_commands="awaken reload" command_args="-f - < @PKG_SYSCONFDIR@/${name}.conf" +awaken_cmd="start_poll" + +start_poll () +{ + DAEMON_PID=`sed 1q ${pidfile}` + : ${DAEMON_PID:=0} + @ECHO@ -n "Awakening ${name} daemon" + if [ ${DAEMON_PID} -ne 0 ]; then + kill -SIGUSR1 ${DAEMON_PID} >/dev/null 2>&1; + fi + @ECHO@ '.' +} if [ -f /etc/rc.subr ]; then load_rc_config $name |