Subject: pkg/22864: Fix install target for converters/ack
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 09/19/2003 17:37:02
>Number:         22864
>Category:       pkg
>Synopsis:       Fix install target for converters/ack
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 19 17:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
Hardcoded install(1) causes pain.
>How-To-Repeat:
===> Installing for ack-1.39
install -s -c ack /home/jonp/bulk/pkg/bin
cp: /home/jonp/bulk/pkg/bin: is a directory
install: cp /home/jonp/bulk/pkg/bin ack/bin failed 
*** Error code 2
>Fix:
http://www.perkin.org.uk/projects/netbsd/ack.diff

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/converters/ack/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	2002/05/31 13:01:01	1.1
+++ Makefile	2003/09/19 17:35:11
@@ -11,4 +11,8 @@
 
 ALL_TARGET=     ack
 
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/ack ${PREFIX}/bin/ack
+	${INSTALL_DATA} ${WRKSRC}/ack.1 ${PREFIX}/man/ja_JP.EUC/man1/ack.1
+
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: