ports/148343: [patch] Adding the HFAXD_ARGS support for hfaxd

Serg mail_of_sergey at mail.ru
Sat Jul 3 15:50:02 UTC 2010


>Number:         148343
>Category:       ports
>Synopsis:       [patch] Adding the HFAXD_ARGS support for hfaxd
>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:   Sat Jul 03 15:50:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Serg
>Release:        
>Organization:
>Environment:
FreeBSD acc.acc.tula.ru 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #7: Thu Jul  1 17:41:39 MSD 2010     root at acc.acc.tula.ru:/usr/src/sys/i386/compile/Z  i386

>Description:
Unfortunately there is no hfaxd configuration parameter to disable IPv6. One way is /usr/local/sbin/hfaxd -l 127.0.0.1 -i hylafax
In my case, I've added the following to my setup.cache so that it bind to the
IPv4 localhost only:
HFAXD_ARGS='-l 127.0.0.1'



This patch is gotten from http://bugs.hylafax.org/show_bug.cgi?id=916
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- etc/hylafax.in.orig	2010-07-03 12:28:08.000000000 +0400
+++ etc/hylafax.in	2010-07-03 12:34:20.000000000 +0400
@@ -74,6 +74,9 @@
 if [ -z "$HFAXD_SNPP_SERVER" ]; then
     HFAXD_SNPP_SERVER=no
 fi
+if [ -z "$HFAXD_ARGS" ]; then
+    HFAXD_ARGS=
+fi
 
 IS_ON=/etc/chkconfig		# NB: chkconfig is IRIX- and Linux-specific
 FAXQ=$SBIN/faxq
@@ -154,7 +157,7 @@
 	        $FAXQ; printf " faxq"
             fi
             if test $HFAXD_SERVER = yes ; then
-	        HFAXD="$HFAXD -i $FAXPORT"
+		HFAXD="$HFAXD $HFAXD_ARGS -i $FAXPORT"	        
 		HFAXMSG=" hfaxd"
 		if [ $HFAXD_SNPP_SERVER = yes ]; then
 	    	    HFAXD="$HFAXD -s $SNPPPORT"


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



More information about the freebsd-ports-bugs mailing list