Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2000 10:44:25 +0400 (MSD)
From:      "Dmitry S. Sivachenko" <dima@Chg.RU>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21591: Fix port: textproc/man2html
Message-ID:  <200009270644.KAA20196@chg.ru>

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

>Number:         21591
>Category:       ports
>Synopsis:       Fix port: textproc/man2html
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 26 23:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry S. Sivachenko
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:

	

>Description:

This patch fixes problem with man.cgi when 'Formatting page...' message was
included into real output from man.cgi.
Also change my e-mail.

Fix submitted by Michael Stowe <mstowe@baddomain.com>

	

>How-To-Repeat:

	

>Fix:
	
	

diff -Nur man2html.old/Makefile man2html/Makefile
--- man2html.old/Makefile	Mon Apr 10 01:52:51 2000
+++ man2html/Makefile	Wed Sep 27 10:36:32 2000
@@ -11,7 +11,7 @@
 MASTER_SITES=	ftp://ftp.gpad.ac.ru/pub/FreeBSD/distfiles/
 DISTNAME=	${PORTNAME}${PORTVERSION}
 
-MAINTAINER=	demon@gpad.ac.ru
+MAINTAINER=	dima@Chg.RU
 
 USE_PERL5=	yes
 NO_BUILD=	yes
@@ -20,13 +20,7 @@
 MAN1=  		man2html.1
 
 post-patch:
-
-	@ if [ -f ${CGIDIR} ] ; then \
-		@ ${MV} ${WRKSRC}/man.cgi ${WRKSRC}/man.cgi.pre_sed ; \
-		@ ${CAT} ${WRKSRC}/man.cgi.pre_sed | \
-		@ ${GREP} -Ev -e "/opt/|/openwin/" \
-		> ${WRKSRC}/man.cgi ; \
-	fi
+		${PERL} -pi -e "s#/usr/local/bin/perl#${PERL5}#" ${WRKSRC}/man.cgi
 
 do-install:
 
diff -Nur man2html.old/patches/patch-aa man2html/patches/patch-aa
--- man2html.old/patches/patch-aa	Wed Dec 23 20:23:05 1998
+++ man2html/patches/patch-aa	Wed Sep 27 10:34:58 2000
@@ -1,5 +1,5 @@
 --- man.cgi.orig	Tue Aug 12 21:19:18 1997
-+++ man.cgi	Mon Nov 30 17:18:04 1998
++++ man.cgi	Wed Sep 27 10:34:40 2000
 @@ -59,8 +59,8 @@
  ##  systems.  If using Tom Christiansen's Perl man program, than
  ##  define use "".
@@ -50,3 +50,12 @@
      /bin
      /usr/bin
  );
+@@ -270,7 +269,7 @@
+ 
+     # Convert output from man to html
+     #--------------------------------
+-    close(STDERR);
++    open(STDERR, ">&/dev/null");
+     open(MANPRG, "-|") or exec($ManPrg, @manargs);
+     $Man2Html::InFH = \*MANPRG;		# set input filehandle
+     require $ManConvPrg or

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


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




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