summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-08-18 18:40:36 +0000
committerminskim <minskim@pkgsrc.org>2004-08-18 18:40:36 +0000
commitfed181f436b66ea589bcdc6d71cf238b80545965 (patch)
treee3f401537dd5fb98d498143d8591c66252a0c4f4 /archivers
parentf51fc2ab44750006280a6da603a75334d2896b25 (diff)
downloadpkgsrc-fed181f436b66ea589bcdc6d71cf238b80545965.tar.gz
Make this package build on Linux.
- Include time.h to use struct tm. - Define LINUX_NAMLEN on Linux to avoid using d_namlen in struct dirent.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/mousetar/Makefile6
-rw-r--r--archivers/mousetar/distinfo4
-rw-r--r--archivers/mousetar/patches/patch-aa18
3 files changed, 21 insertions, 7 deletions
diff --git a/archivers/mousetar/Makefile b/archivers/mousetar/Makefile
index 663525b27b1..c02a4039098 100644
--- a/archivers/mousetar/Makefile
+++ b/archivers/mousetar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/07/30 14:53:43 minskim Exp $
+# $NetBSD: Makefile,v 1.11 2004/08/18 18:40:36 minskim Exp $
#
DISTNAME= mousetar-20021217
@@ -21,6 +21,10 @@ USE_BUILDLINK3= yes
CPPFLAGS+= -DTAR_INODE_INTERNAL
.endif
+.if ${OPSYS} == "Linux"
+CPPFLAGS+= -DLINUX_NAMLEN
+.endif
+
INSTALLATION_DIRS= bin man/man1
do-extract:
diff --git a/archivers/mousetar/distinfo b/archivers/mousetar/distinfo
index 79b503ea3f4..8ad5480f6bf 100644
--- a/archivers/mousetar/distinfo
+++ b/archivers/mousetar/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2003/01/02 09:45:48 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/08/18 18:40:36 minskim Exp $
SHA1 (tar.c) = 0fcce941a7e5beee2646b3b7d7dee5d6cf22f455
Size (tar.c) = 286925 bytes
SHA1 (tar.man) = a43498f78f3122edf1970a471c9bd313c0ace2f1
Size (tar.man) = 49336 bytes
-SHA1 (patch-aa) = fcc8cb946c1649c0510cb503c8a2ce1dcf491abb
+SHA1 (patch-aa) = c0c3d8a1f2262d03d5e827a8f7eb90462895704a
diff --git a/archivers/mousetar/patches/patch-aa b/archivers/mousetar/patches/patch-aa
index d28af23ee0a..6cef5f5e59f 100644
--- a/archivers/mousetar/patches/patch-aa
+++ b/archivers/mousetar/patches/patch-aa
@@ -1,8 +1,18 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/10/28 12:41:55 agc Exp $
+$NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $
---- tar.c 2002/10/16 09:25:24 1.1
-+++ tar.c 2002/10/16 09:25:38
-@@ -472,8 +472,8 @@
+--- tar.c.orig 2004-08-06 16:27:58.000000000 -0500
++++ tar.c
+@@ -235,6 +235,9 @@ standards: gwoods sez IEEE Std 1003.1-19
+
+ #include <stdio.h>
+ /* #include <time.h> grrr... */
++#ifdef __linux__
++#include <time.h>
++#endif
+ #include <errno.h>
+ #include <ctype.h>
+ #include <setjmp.h>
+@@ -471,8 +474,8 @@ extern char *valloc();
/* NetBSD: fix up itoo/itod and the fs_q?mask fields, and BIG* */
#ifdef TAR_INODE_NETBSD
#include <sys/param.h>