Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 16:36:17 +0200
From:      Marco Molteni <molter@tin.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50822: [PATCH] graphics/netpbm doesn't install it's manual page
Message-ID:  <20030411143617.GC7506@cobweb.example.org>
Resent-Message-ID: <200304111440.h3BEe8EY000914@freefall.freebsd.org>

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

>Number:         50822
>Category:       ports
>Synopsis:       [PATCH] graphics/netpbm doesn't install it's manual page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 11 07:40:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marco Molteni
>Release:        FreeBSD 4.8-RC i386
>Organization:
Citello Networks
>Environment:
System: FreeBSD cobweb.example.org 4.8-RC
>Description:
	Port graphics/netpbm contains a manpage netpbm.1 that isn't installed.
>How-To-Repeat:
	Install the port and type "man netpbm" ;-)
>Fix:

	Apply following patch


--- Makefile.orig	Fri Apr 11 15:42:52 2003
+++ Makefile	Fri Apr 11 16:28:46 2003
@@ -27,6 +27,7 @@
 MAKEFILE=	GNUmakefile
 INSTALL_TARGET=	install.bin install.lib install.data install-dev
 INSTALLS_SHLIB=	yes
+MAN1=		netpbm.1
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
@@ -36,5 +37,12 @@
 	@${CP} ${FILESDIR}/Makefile.config.FreeBSD ${WRKSRC}/Makefile.config
 	@${LN} -sf ${WRKSRC}/lib/util/shhopt.h ${WRKSRC}/lib/util/pm_shhopt.h
 	@${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h
+
+post-install:
+	@${ECHO_MSG} "===>  Installing man pages..."
+	@${REINPLACE_CMD} -e 's|doc/USERDOC|${DOCSDIR}/USERDOC|g' ${WRKSRC}/doc/netpbm.1
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/USERDOC ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/doc/netpbm.1 ${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>
--- pkg-plist.orig	Fri Apr 11 16:02:54 2003
+++ pkg-plist	Fri Apr 11 16:05:33 2003
@@ -289,4 +289,6 @@
 share/netpbm/palmgray2.map
 share/netpbm/palmgray4.map
 share/netpbm/rgb.txt
+%%PORTDOCS%%share/doc/netpbm/USERDOC
+%%PORTDOCS%%@dirrm share/doc/netpbm
 @dirrm share/netpbm
>Release-Note:
>Audit-Trail:
>Unformatted:



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