ports/176386: [patch] graphics/netpbm: manweb doesn't work

Lawrence Chen beastie at tardisi.com
Sun Feb 24 03:10:01 UTC 2013


>Number:         176386
>Category:       ports
>Synopsis:       [patch] graphics/netpbm: manweb doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 24 03:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	manweb doesn't work, can't find /etc/manweb.conf
>How-To-Repeat:
	
>Fix:

	- Change manweb to look for config at ${PREFIX}/etc/manweb.conf
        - Provide manweb.conf as buildtools/installnetpbm.pl would create
        - Provide netpbm.url/doc.url as GNUmakefile install.manweb would create

	The patch provides just the basic from the missing install steps,
	though adding 'browser=/usr/local/bin/lynx' to manweb.conf is helpful.

--- patch.txt begins here ---
--- Makefile.orig	2013-02-15 09:21:49.000000000 -0600
+++ Makefile	2013-02-23 20:11:35.054975713 -0600
@@ -42,6 +42,8 @@
 .endif
 
 pre-configure:
+	@${REINPLACE_CMD} -e 's|/etc/manweb.conf|${PREFIX}/etc/manweb.conf|g' \
+		${WRKSRC}/manweb
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
 		 -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		 ${WRKSRC}/pm_config.in.h
@@ -73,5 +75,10 @@
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/USERDOC ${DOCSDIR}/
 .endif
+	@${INSTALL_DATA} ${PATCHDIR}/manweb.conf ${PREFIX}/etc/
+	@${MKDIR} ${MANPREFIX}/man/web
+	@${INSTALL_DATA} ${PATCHDIR}/netpbm.url ${MANPREFIX}/man/web
+	@${INSTALL_DATA} ${PATCHDIR}/doc.url ${PREFIX}/bin/
+	
 
 .include <bsd.port.mk>
--- files/manweb.conf.orig	1969-12-31 18:00:00.000000000 -0600
+++ files/manweb.conf	2013-02-23 17:04:28.233973666 -0600
@@ -0,0 +1,2 @@
+#Configuration file for Manweb
+webdir=/usr/local/man/web
--- files/netpbm.url.orig	1969-12-31 18:00:00.000000000 -0600
+++ files/netpbm.url	2013-02-23 19:38:57.140973953 -0600
@@ -0,0 +1 @@
+http://netpbm.sourceforge.net/doc/
--- files/doc.url.orig	1969-12-31 18:00:00.000000000 -0600
+++ files/doc.url	2013-02-23 19:39:08.223974361 -0600
@@ -0,0 +1 @@
+http://netpbm.sourceforge.net/doc/
--- pkg-plist.orig	2012-05-24 23:13:40.000000000 -0500
+++ pkg-plist	2013-02-23 19:53:31.482974130 -0600
@@ -9,6 +9,7 @@
 bin/cameratopam
 bin/cmuwmtopbm
 bin/ddbugtopbm
+bin/doc.url
 bin/escp2topbm
 bin/eyuvtoppm
 bin/fiascotopnm
@@ -318,6 +319,7 @@
 bin/yuvsplittoppm
 bin/yuvtoppm
 bin/zeisstopnm
+etc/manweb.conf
 include/bitio.h
 include/colorname.h
 include/mallocvar.h
@@ -340,6 +342,7 @@
 lib/libnetpbm.a
 lib/libnetpbm.so
 lib/libnetpbm.so.1
+man/web/netpbm.url
 %%DATADIR%%/palmcolor8.map
 %%DATADIR%%/palmgray1.map
 %%DATADIR%%/palmgray2.map
--- patch.txt ends here ---


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


More information about the freebsd-ports-bugs mailing list