Subject: pkg/22908: Fix install target for sysutils/osname
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 09/23/2003 09:36:06
>Number: 22908
>Category: pkg
>Synopsis: Fix install target for sysutils/osname
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 23 09:37: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:
Fix hardcoded install/options.
>How-To-Repeat:
===> Installing for osname-1.1
install -c osname /home/jonp/bulk/pkg/bin/osname
cp: cannot access /home/jonp/bulk/pkg/bin/osname
install: cp /home/jonp/bulk/pkg/bin/osname osname/osname failed
*** Error code 2
>Fix:
http://www.perkin.org.uk/projects/netbsd/osname.diff
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/osname/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 2001/04/19 11:29:06 1.2
+++ distinfo 2003/09/23 09:32:53
@@ -2,3 +2,4 @@
SHA1 (osname-1.1.tar.gz) = 4faefdd1b57412805342314b540d909a3289a8ba
Size (osname-1.1.tar.gz) = 1531 bytes
+SHA1 (patch-aa) = a4a3fccf8ebd4a75a478cdd53cff57c5df9d5b6e
--- /dev/null Tue Sep 23 10:31:52 2003
+++ patches/patch-aa Tue Sep 23 10:31:32 2003
@@ -1,0 +1,15 @@
+$NetBSD$
+
+--- Makefile.orig Tue Sep 23 10:30:17 2003
++++ Makefile Tue Sep 23 10:31:00 2003
+@@ -7,8 +7,8 @@
+ all: $(CMD)
+
+ install: $(CMD)
+- install -c $(CMD) ${PREFIX}/bin/$(CMD)
+- install -m 664 $(CMD).1 ${PREFIX}/man/man1
++ ${BSD_INSTALL_SCRIPT} $(CMD) ${PREFIX}/bin/$(CMD)
++ ${BSD_INSTALL_MAN} $(CMD).1 ${PREFIX}/man/man1/$(CMD).1
+
+ clean:
+ rm -f $(CMD)
>Release-Note:
>Audit-Trail:
>Unformatted: