Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2009 00:48:24 +0900
From:      WATANABE Kazuhiro <CQG00620@nifty.ne.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/134544: [patch] x11/numlockx: No document is installed
Message-ID:  <20090514154824.C7A3C778BD@mail2.asahi-net.or.jp>
Resent-Message-ID: <200905141610.n4EGA33s055457@freefall.freebsd.org>

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

>Number:         134544
>Category:       ports
>Synopsis:       [patch] x11/numlockx: No document is installed
>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:   Thu May 14 16:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Watanabe Kazuhiro
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD capricorn.sign.local 7.2-RELEASE FreeBSD 7.2-RELEASE #1: Wed May 6 11:49:22 JST 2009 nabe@capricorn:/FreeBSD/obj/i386/RELENG_7_2/FreeBSD/RELENG_7_2/src/sys/VASH i386
>Description:
The numlockx port (ports/x11/numlockx) doesn't install any document.
It has some helpful documents (but no manual pages).  We should
install them.
>How-To-Repeat:
# cd /usr/ports/x11/numlockx
# make install
(snip)
# pkg_info -L -x numlockx
Information for numlockx-1.1_2:

Files:
/usr/local/bin/numlockx

# 
>Fix:
I've tested the patch on 7.2-RELEASE with the latest ports tree.

diff -ruN numlockx.orig/Makefile numlockx/Makefile
--- numlockx.orig/Makefile	2008-09-01 20:52:23.000000000 +0900
+++ numlockx/Makefile	2009-05-14 17:45:53.000000000 +0900
@@ -19,8 +19,15 @@
 GNU_CONFIGURE=	yes
 USE_XORG=	x11 xext
 PLIST_FILES=	bin/numlockx
+PORTDOCS=	ChangeLog LICENSE README
 
 # Needed for the "configure" program to find XTest and XKB header files
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include"
 
+post-install:
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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