]> git.pld-linux.org Git - packages/lha.git/commitdiff
- patches from MandrakeLinux.
authorkloczek <kloczek@pld-linux.org>
Sat, 21 Aug 1999 15:46:30 +0000 (15:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lha-ext.patch -> 1.1
    lha-make.patch -> 1.1

lha-ext.patch [new file with mode: 0644]
lha-make.patch [new file with mode: 0644]

diff --git a/lha-ext.patch b/lha-ext.patch
new file mode 100644 (file)
index 0000000..6821d19
--- /dev/null
@@ -0,0 +1,22 @@
+--- lha-114e/src/lharc.c.ext   Wed Jan 15 10:49:30 1997
++++ lha-114e/src/lharc.c       Mon Jun 28 12:37:40 1999
+@@ -963,6 +963,7 @@
+       }
+       if (p = (char *) rindex(archive_name, '.')) {
+               if (strucmp(".LZH", p) == 0
++                  || strucmp(".LHA", p) == 0  /* Amiga */
+                   || strucmp(".LZS", p) == 0
+                   || strucmp(".COM", p) == 0  /* DOS SFX */
+                   || strucmp(".EXE", p) == 0
+@@ -975,6 +976,11 @@
+       if (open_old_archive_1(archive_name, &fp))
+               return fp;
++      sprintf(expanded_archive_name, "%s%s", archive_name, ARCHIVENAME_EXTENTION);
++      if (open_old_archive_1(expanded_archive_name, &fp)) {
++              archive_name = expanded_archive_name;
++              return fp;
++      }
+       sprintf(expanded_archive_name, "%s.lzh", archive_name);
+       if (open_old_archive_1(expanded_archive_name, &fp)) {
+               archive_name = expanded_archive_name;
diff --git a/lha-make.patch b/lha-make.patch
new file mode 100644 (file)
index 0000000..7ca3f64
--- /dev/null
@@ -0,0 +1,22 @@
+--- lha-114e/Makefile.make     Sun Jun  6 16:52:33 1999
++++ lha-114e/Makefile  Mon Jun 28 13:51:36 1999
+@@ -18,14 +18,15 @@
+ SWITCHES      = -DNEED_INCREMENTAL_INDICATOR \
+  -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+ #MACHINE     = -DSYSTIME_HAS_NO_TM -DFTIME -DEUC
+-MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DHAVE_TM_ZONE -DSYSV_SYSTEM_DIR -DSUPPORT_LH6
++MACHINE     = -DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" \
++ -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH6
+ #OPTIMIZE     = -O2 -fstrength-reduce -fomit-frame-pointer -mv8
+ #OPTIMIZE     = -O2 -fstrength-reduce -fomit-frame-pointer
+-OPTIMIZE      = -O2 -fstrength-reduce -fomit-frame-pointer
++OPTIMIZE      = $(RPM_OPT_FLAGS)
+ #OPTIMIZE     = -g
+-BINDIR = /usr/local/bin
+-MANDIR = /usr/local/man
++BINDIR = /usr/bin
++MANDIR = /usr/man
+ MANSECT = n
+ INSTALL = install
This page took 0.092722 seconds and 4 git commands to generate.