Subject: pkg/10819: lha support addition in pkg system.
To: None <gnats-bugs@gnats.netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: netbsd-bugs
Date: 08/11/2000 16:14:37
>Number:         10819
>Category:       pkg
>Synopsis:       lha support addition in pkg system.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 11 16:15:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
>Release:        2000-08-12
>Organization:
home
>Environment:
	
System: NetBSD azarin 1.4P NetBSD 1.4P (AZARIN) #84: Wed Dec 1 21:54:14 JST 1999 kei@azarin:/a/anoncvs/netbsd/src/sys/arch/macppc/compile/AZARIN macppc


>Description:
	There are some software distributed in lha archive format, which is
	not so popular in unix world.
	
>How-To-Repeat:
	Try to make a pkg of some software like above.

	One thing: We might define LHA, ZIP as lha, zip and use them.

>Fix:

Index: bsd.pkg.mk
===================================================================
RCS file: /a/rsync/netbsd.org/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.537
diff -u -r1.537 bsd.pkg.mk
--- bsd.pkg.mk	2000/08/07 10:23:38	1.537
+++ bsd.pkg.mk	2000/08/11 22:58:47
@@ -329,6 +329,10 @@
 .elif ${EXTRACT_SUFX} == ".zip"
 BUILD_DEPENDS+=		unzip:../../archivers/unzip
 EXTRACT_CMD?=		unzip -Laq ${DOWNLOADED_DISTFILE}
+.elif ${EXTRACT_SUFX} == ".lzh"
+BUILD_DEPENDS+=		lha:../../archivers/lha
+DECOMPRESS_CMD?=
+EXTRACT_CMD?=		lha xq ${DOWNLOADED_DISTFILE}
 .else
 DECOMPRESS_CMD?=	${GZCAT}
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted: