summaryrefslogtreecommitdiff
path: root/archivers/arc
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-04-10 23:31:27 +0000
committerminskim <minskim@pkgsrc.org>2004-04-10 23:31:27 +0000
commitab56bdc82c6f198a0c748a7c4c574e8d8ca586b3 (patch)
tree42f27dd9703da3fe9c3698dbbb6c5c1d6e5e7956 /archivers/arc
parent4fcbaa734af5417271565e43e71d2c58a0380695 (diff)
downloadpkgsrc-ab56bdc82c6f198a0c748a7c4c574e8d8ca586b3.tar.gz
Make this package build on Linux. Patch provided by Georg Schwarz in
PR pkg/25043.
Diffstat (limited to 'archivers/arc')
-rw-r--r--archivers/arc/distinfo4
-rw-r--r--archivers/arc/patches/patch-ab24
2 files changed, 20 insertions, 8 deletions
diff --git a/archivers/arc/distinfo b/archivers/arc/distinfo
index 8836c3be718..2358210e9b0 100644
--- a/archivers/arc/distinfo
+++ b/archivers/arc/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2002/06/10 15:09:16 schmonz Exp $
+$NetBSD: distinfo,v 1.4 2004/04/10 23:31:27 minskim Exp $
SHA1 (arc521e.pl8.tar.Z) = 34210f9aeaac39a15b34e6aa400b38127b6a2a20
Size (arc521e.pl8.tar.Z) = 100821 bytes
SHA1 (patch-aa) = 62324f346559b2997eba56698b1c0c1c29a328c3
-SHA1 (patch-ab) = dfdfde740d70511adba711bb0a228154a9c9993e
+SHA1 (patch-ab) = 431f3581ed6cfce2e760da9aa2f2b8b59fc4eb56
diff --git a/archivers/arc/patches/patch-ab b/archivers/arc/patches/patch-ab
index ea16ca43816..6f31fe8a193 100644
--- a/archivers/arc/patches/patch-ab
+++ b/archivers/arc/patches/patch-ab
@@ -1,12 +1,24 @@
-$NetBSD: patch-ab,v 1.2 2002/06/10 15:09:17 schmonz Exp $
+$NetBSD: patch-ab,v 1.3 2004/04/10 23:31:27 minskim Exp $
---- arcdos.c.orig Tue Apr 14 18:58:21 1992
-+++ arcdos.c Sun Jun 9 12:01:30 2002
-@@ -173,14 +173,21 @@
+--- arcdos.c.orig 1992-04-14 17:58:21.000000000 -0500
++++ arcdos.c
+@@ -31,7 +31,11 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #if BSD
++#ifdef __linux__
++#include <time.h>
++#else
+ #include <sys/time.h>
++#endif
+ #else
+ #include <time.h> /* Sys V. Bleah. */
+ struct timeval {
+@@ -173,14 +177,21 @@ setstamp(f, date, time) /* set a file's
struct tm tm;
struct timeval tvp[2];
int utimes();
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
long tmclock();
+#endif
tm.tm_sec = (time & 31) * 2;
@@ -16,7 +28,7 @@ $NetBSD: patch-ab,v 1.2 2002/06/10 15:09:17 schmonz Exp $
tm.tm_mon = ((date >> 5) & 15) - 1;
tm.tm_year = (date >> 9) + 80;
+ tm.tm_isdst = -1;
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
tvp[0].tv_sec = tmclock(&tm);
+#else
+ tvp[0].tv_sec = mktime(&tm);