Subject: pkg/22932: Fix install target for editors/vilearn
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 09/24/2003 15:30:13
>Number:         22932
>Category:       pkg
>Synopsis:       Fix install target for editors/vilearn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 24 15:31: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:
Override install target for vilearn as the supplied arguments are not
portable.
>How-To-Repeat:
===> Installing for vilearn-1.0
mkdir /home/jonp/bulk/pkg/share/vilearn
for i in 1basics 2moving 3cutpaste 3temp 4inserting 5tricks ; do  rm -f /home/jonp/bulk/pkg/share/vilearn/$i;  install -c -m 444 $i /home/jonp/bulk/pkg/share/vilearn/$i ;  done
install: The -c, -f, -n options each require a directory following!
*** Error code 2
>Fix:
http://www.perkin.org.uk/projects/netbsd/vilearn.diff

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/editors/vilearn/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	2001/04/19 11:01:06	1.2
+++ distinfo	2003/09/24 15:28:06
@@ -2,4 +2,4 @@
 
 SHA1 (vilearn-1.0.shar.Z) = 08aed424df46f30c93c604f3dc79d2affe1ec70e
 Size (vilearn-1.0.shar.Z) = 25787 bytes
-SHA1 (patch-aa) = 50b90ae9c4902c14b4129e274f8bf7175a5679f4
+SHA1 (patch-aa) = 8410d97ecf7d764af139878476663a4e484a8352
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/editors/vilearn/patches/patch-aa,v
retrieving revision 1.1
diff -u -r1.1 patch-aa
--- patches/patch-aa	1999/10/29 11:55:15	1.1
+++ patches/patch-aa	2003/09/24 15:28:06
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.1 1999/10/29 11:55:15 abs Exp $
 
---- Makefile.orig	Fri Oct 29 12:13:10 1999
-+++ Makefile	Fri Oct 29 12:13:27 1999
+--- Makefile.orig	Wed Sep 24 16:22:05 2003
++++ Makefile	Wed Sep 24 16:26:08 2003
 @@ -4,12 +4,12 @@
  
  # BINDIR is where the vilearn shell script will live. It should be in the
@@ -26,3 +26,21 @@
  
  # Shouldn't have to edit below here.
  
+@@ -33,13 +33,12 @@
+ 	sed -e s@:SEC:@${SEC}@ < vilearn.man > vilearn.${SEC}
+ 
+ install : all
+-	-mkdir ${TUTORIALS}
++	${BSD_INSTALL_DATA_DIR} ${TUTORIALS}
+ 	for i in ${TUTS} ; do \
+-	    rm -f ${TUTORIALS}/$$i; \
+-	    install -c -m 444 $$i ${TUTORIALS}/$$i ; \
++	    ${BSD_INSTALL_DATA} $$i ${TUTORIALS}/$$i ; \
+ 	done
+-	install -m 755 vilearn ${BINDIR}/vilearn
+-	install -m 444 vilearn.${SEC} ${MANDIR}/man${SEC}/vilearn.${SEC}
++	${BSD_INSTALL_SCRIPT} vilearn ${BINDIR}/vilearn
++	${BSD_INSTALL_MAN} vilearn.${SEC} ${MANDIR}/man${SEC}/vilearn.${SEC}
+ 
+ clean :
+ 	rm -f vilearn vilearn.${SEC}
>Release-Note:
>Audit-Trail:
>Unformatted: