summaryrefslogtreecommitdiff
path: root/archivers/lha/patches
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-11-30 01:54:05 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-11-30 01:54:05 +0000
commit4809ea04ef1597945bb26f1a418b3a428ef3a430 (patch)
tree954ca05ef869a740e76e9ab833d4fdb53030ce41 /archivers/lha/patches
parent6d79854dee52ea47c930420fdac8909d41af6ec0 (diff)
downloadpkgsrc-4809ea04ef1597945bb26f1a418b3a428ef3a430.tar.gz
Update lha to 114f.
Change MASTER_SITES. Changes 114c to 114f: some bugfix. support -lh6-.
Diffstat (limited to 'archivers/lha/patches')
-rw-r--r--archivers/lha/patches/patch-ab15
-rw-r--r--archivers/lha/patches/patch-ac12
-rw-r--r--archivers/lha/patches/patch-ad11
-rw-r--r--archivers/lha/patches/patch-ae36
4 files changed, 47 insertions, 27 deletions
diff --git a/archivers/lha/patches/patch-ab b/archivers/lha/patches/patch-ab
deleted file mode 100644
index 25118b0eda5..00000000000
--- a/archivers/lha/patches/patch-ab
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ab,v 1.4 1999/05/22 20:11:33 tv Exp $
-
---- src/lharc.c.orig Fri Mar 8 01:09:06 1996
-+++ src/lharc.c Sat May 22 15:55:50 1999
-@@ -318,7 +318,9 @@
- cmd_filec = 0;
- if ((xfilev = (char **) malloc(sizeof(char *) * xfilec)) == NULL)
- fatal_error("Virtual memory exhausted\n");
-- while (gets(inpbuf)) {
-+ while (fgets(inpbuf, sizeof(inpbuf), stdin)) {
-+ if ((p = strchr(inpbuf, '\n')))
-+ *p = '\0';
- if (cmd_filec >= xfilec) {
- xfilec += 256;
- cmd_filev = (char **) realloc(xfilev,
diff --git a/archivers/lha/patches/patch-ac b/archivers/lha/patches/patch-ac
deleted file mode 100644
index 819e2a11db3..00000000000
--- a/archivers/lha/patches/patch-ac
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ac,v 1.1 1998/12/01 04:19:00 tv Exp $
-
---- src/lha.h.orig Mon Nov 30 23:13:56 1998
-+++ src/lha.h Mon Nov 30 23:14:25 1998
-@@ -10,6 +10,7 @@
- lharc.h interface.h slidehuf.h
- */
- #include <stdio.h>
-+#include <stdlib.h>
- #include <errno.h>
- #include <ctype.h>
- #include <sys/types.h>
diff --git a/archivers/lha/patches/patch-ad b/archivers/lha/patches/patch-ad
new file mode 100644
index 00000000000..edda54db88f
--- /dev/null
+++ b/archivers/lha/patches/patch-ad
@@ -0,0 +1,11 @@
+$NetBSD: patch-ad,v 1.1 1999/11/30 01:54:16 sakamoto Exp $
+
+--- ./src/lhext.c.orig Sun Aug 29 01:36:16 1999
++++ ./src/lhext.c Tue Nov 30 10:31:41 1999
+@@ -163,5 +163,5 @@
+ if (!getuid()) {
+ #ifndef HAVE_NO_LCHOWN
+- if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) != UNIX_FILE_SYMLINK)
++ if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) == UNIX_FILE_SYMLINK)
+ lchown(name, hdr->unix_uid, hdr->unix_gid);
+ else
diff --git a/archivers/lha/patches/patch-ae b/archivers/lha/patches/patch-ae
new file mode 100644
index 00000000000..2600f3c88c9
--- /dev/null
+++ b/archivers/lha/patches/patch-ae
@@ -0,0 +1,36 @@
+$NetBSD: patch-ae,v 1.1 1999/11/30 01:54:16 sakamoto Exp $
+
+--- ./Makefile.orig Sun Aug 29 01:36:34 1999
++++ ./Makefile Tue Nov 30 10:33:28 1999
+@@ -11,23 +11,21 @@
+ #-----------------------------------------------------------------------
+
+-SHELL=/bin/sh
+-MAKE = make
++SHELL=${SH}
++#MAKE = make
+
+ #CC = cc
+-CC = gcc
+-SWITCHES = -DNEED_INCREMENTAL_INDICATOR \
+- -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
++#CC = gcc
++SWITCHES = -DNEED_INCREMENTAL_INDICATOR -DEUC -DSUPPORT_LH6
+
+ #MACHINE = -DSYSTIME_HAS_NO_TM -DFTIME -DEUC
+ #MACHINE = -DSYSTIME_HAS_NO_TM -DEUC -DHAVE_TM_ZONE -DSYSV_SYSTEM_DIR
+-MACHINE = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DMKTIME
++MACHINE = -DSYSTIME_HAS_NO_TM -DSYSV_SYSTEM_DIR -DMKTIME -DUSESTRCASECMP
+
+-#OPTIMIZE = -O2 -fstrength-reduce -fomit-frame-pointer
+-OPTIMIZE = -O2 -DSUPPORT_LH6
++OPTIMIZE = ${CFLAGS}
+
+-BINDIR = /usr/local/bin
+-MANDIR = /usr/local/man
+-MANSECT = n
++BINDIR = ${PREFIX}/bin
++MANDIR = ${PREFIX}/man/ja_JP.EUC
++MANSECT = 1
+
+ INSTALL = install