Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 17:54:00 +0300 (MSK)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jmz@FreeBSD.org
Subject:   ports/47364: Optional FIDO support for comms/mgetty+sendfax port
Message-ID:  <200301221454.h0MEs068049629@bsd.chem.msu.ru>

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

>Number:         47364
>Category:       ports
>Synopsis:       Optional FIDO support for comms/mgetty+sendfax port
>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:   Wed Jan 22 07:00:14 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yar Tikhiy
>Release:        FreeBSD 4.7-RELEASE-p3 i386
>Organization:
Moscow State University
>Environment:
	FreeBSD

>Description:
	mgetty+sendfax includes optional support for FIDO on dialup lines.
	When building mgetty from its original sources, it can be enabled
	as easily as by adding -DFIDO to CFLAGS.
	Unfortunately, the comms/mgetty+sendfax port provides no conventional
	way to enable that feature when building the port.

>How-To-Repeat:
	Install comms/mgetty+sendfax

>Fix:

The below patch moves the CFLAGS tweak from a patchfile to Makefile
and allows adding -DFIDO to CFLAGS as an option.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/comms/mgetty+sendfax/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile	28 Oct 2002 00:19:19 -0000	1.40
+++ Makefile	22 Jan 2003 14:40:36 -0000
@@ -58,6 +58,18 @@
 		pvf.1 voctopvf.1 \
 		pvf.1 wavtopvf.1
 
+CFLAGS+=	-DAUTO_PPP
+.if defined(WITH_FIDO) && ${WITH_FIDO:L} != no
+CFLAGS+=	-DFIDO
+.endif
+
+pre-everything::
+.if !defined(WITH_FIDO)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "If you need FIDO EMSI support, use \"make WITH_FIDO=yes\""
+	@${ECHO_MSG}
+.endif
+
 pre-install:
 	@(cd ${WRKSRC}/doc; ${MAKE} manpages)
 
Index: files/patch-ab
===================================================================
RCS file: /home/ncvs/ports/comms/mgetty+sendfax/files/patch-ab,v
retrieving revision 1.8
diff -u -r1.8 patch-ab
--- files/patch-ab	1 Dec 1998 09:08:21 -0000	1.8
+++ files/patch-ab	22 Jan 2003 14:40:36 -0000
@@ -16,7 +16,7 @@
  #
  #CFLAGS=-Wall -O2 -pipe -DSECUREWARE -DUSE_POLL
 -CFLAGS=-O2 -Wall -pipe
-+CFLAGS+=-DAUTO_PPP
++#CFLAGS=-O2 -Wall -pipe
  #CFLAGS=-O -DSVR4
  #CFLAGS=-O -DSVR4 -DSVR42
  #CFLAGS=-O -DUSE_POLL
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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