pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

new version of archivers/lha.



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Thu Dec 17 17:49:09 2020 +0100
Changeset:	38fb3fa12d0c5a30b5e3d0841acdf57adb8ba555

Added Files:
	lha/DESCR
	lha/Makefile
	lha/PLIST
	lha/distinfo
	lha/patches/patch-src_lhext.c

Log Message:
new version of archivers/lha.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=38fb3fa12d0c5a30b5e3d0841acdf57adb8ba555

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lha/DESCR                     | 13 +++++++++++++
 lha/Makefile                  | 27 +++++++++++++++++++++++++++
 lha/PLIST                     |  3 +++
 lha/distinfo                  |  7 +++++++
 lha/patches/patch-src_lhext.c | 27 +++++++++++++++++++++++++++
 5 files changed, 77 insertions(+)

diffs:
diff --git a/lha/DESCR b/lha/DESCR
new file mode 100644
index 0000000000..56cacdcb0d
--- /dev/null
+++ b/lha/DESCR
@@ -0,0 +1,13 @@
+    LHa for UNIX version 1.14c Mar. 7 1996 by Tsugio Okamoto
+
+     This unofficial version of lha is based on Version 1.00.  This
+version supports extraction & archiving using -lh5- as well as
+extraction using -lh6- algorithm.
+
+     All the bug reports on this version should be directed to Tsuguo
+Okamoto <GBA02146%NIFTYSERVE.OR.JP@localhost>.
+
+
+     If this software is included in medium that may be obtained by
+users without network connectivity, please notify Tsuguo Okamoto in
+advance.  Redistribution over networks is not restricted.
diff --git a/lha/Makefile b/lha/Makefile
new file mode 100644
index 0000000000..31dcb4dfaf
--- /dev/null
+++ b/lha/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.41 2019/11/02 22:54:26 rillig Exp $
+
+DISTNAME=	lha-114i
+PKGREVISION=	20201213
+CATEGORIES=	archivers
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jca02266/}
+GITHUB_PROJECT=	lha
+GITHUB_TAG=	dc524ca3c90ae701d939f23fdc672a90199e9d22
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/jca02266/lha
+COMMENT=	Archive files using LZW compression (.lzh files)
+LICENSE=	lha-license
+
+RESTRICTED=		Other than for-free distribution of the unmodified \
+			source over a network, redistribution terms are complex.
+NO_SRC_ON_CDROM=	${RESTRICTED}
+NO_BIN_ON_FTP=		${RESTRICTED}
+NO_BIN_ON_CDROM=	${RESTRICTED}
+
+USE_TOOLS+=	autoconf automake autoreconf gmake
+GNU_CONFIGURE=	yes
+
+pre-configure:
+	cd ${WRKSRC} && autoreconf --install --symlink
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lha/PLIST b/lha/PLIST
new file mode 100644
index 0000000000..2cd0a44309
--- /dev/null
+++ b/lha/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/lha
+man/man1/lha.1
diff --git a/lha/distinfo b/lha/distinfo
new file mode 100644
index 0000000000..c85092ce1c
--- /dev/null
+++ b/lha/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.11 2015/11/03 00:56:22 agc Exp $
+
+SHA1 (lha-114i-dc524ca3c90ae701d939f23fdc672a90199e9d22.tar.gz) = 24aa105f20234d19d1f8dafe2a23b9d037553ba0
+RMD160 (lha-114i-dc524ca3c90ae701d939f23fdc672a90199e9d22.tar.gz) = 72463d1a76e900abefdf627b5de1ebbfbdc24d7f
+SHA512 (lha-114i-dc524ca3c90ae701d939f23fdc672a90199e9d22.tar.gz) = 2c1f6e75363f5aa852d1b6a46e9ce90002aa480ee78a4d79a7fa041d20657d8ea7d46fea597bac8a773dd8c25775864d9e714db1750387631b39a49fd6c0e919
+Size (lha-114i-dc524ca3c90ae701d939f23fdc672a90199e9d22.tar.gz) = 220783 bytes
+SHA1 (patch-src_lhext.c) = 0703579f96b6c9e3969aee2c962b54b890fbf973
diff --git a/lha/patches/patch-src_lhext.c b/lha/patches/patch-src_lhext.c
new file mode 100644
index 0000000000..78fd598530
--- /dev/null
+++ b/lha/patches/patch-src_lhext.c
@@ -0,0 +1,27 @@
+$NetBSD$
+
+utimes() fixes for netbsd-6 time_t
+
+upstream: not reported, docs in .jp only, wakarimasen :(
+
+--- src/lhext.c.orig	2020-12-17 15:59:30.545844796 +0000
++++ src/lhext.c
+@@ -220,13 +220,15 @@ adjust_info(name, hdr)
+     char           *name;
+     LzHeader       *hdr;
+ {
+-    struct utimbuf utimebuf;
++    struct timeval utimebuf[2];
+ 
+     /* adjust file stamp */
+-    utimebuf.actime = utimebuf.modtime = hdr->unix_last_modified_stamp;
++    utimebuf[0].tv_sec = hdr->unix_last_modified_stamp;
++    utimebuf[0].tv_usec = 0;
++    utimebuf[1] = utimebuf[0];
+ 
+     if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) != UNIX_FILE_SYMLINK)
+-        utime(name, &utimebuf);
++        utimes(name, &utimebuf[0]);
+ 
+     if (hdr->extend_type == EXTEND_UNIX
+         || hdr->extend_type == EXTEND_OS68K


Home | Main Index | Thread Index | Old Index