diff options
author | Philippe Audeoud <jadawin@FreeBSD.org> | 2010-01-14 19:38:55 +0000 |
---|---|---|
committer | Philippe Audeoud <jadawin@FreeBSD.org> | 2010-01-14 19:38:55 +0000 |
commit | 817604a84bc4c730cd92dfb6eb2d11ea6ca3bb2f (patch) | |
tree | d386b5a3f1a6947b2f14c401de2cfecf00e7d061 /sysutils | |
parent | 952b345160f7cfdb29298333da8a3bb3d4c1fd44 (diff) | |
download | ports-817604a84bc4c730cd92dfb6eb2d11ea6ca3bb2f.tar.gz ports-817604a84bc4c730cd92dfb6eb2d11ea6ca3bb2f.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/tree/Makefile | 2 | ||||
-rw-r--r-- | sysutils/tree/distinfo | 6 | ||||
-rw-r--r-- | sysutils/tree/files/patch-Makefile | 20 | ||||
-rw-r--r-- | sysutils/tree/files/patch-tree.c | 21 |
4 files changed, 23 insertions, 26 deletions
diff --git a/sysutils/tree/Makefile b/sysutils/tree/Makefile index 3d7dee96d442..20dcfce6db45 100644 --- a/sysutils/tree/Makefile +++ b/sysutils/tree/Makefile @@ -6,7 +6,7 @@ # PORTNAME= tree -PORTVERSION= 1.5.2.2 +PORTVERSION= 1.5.3 CATEGORIES= sysutils MASTER_SITES= ftp://mama.indstate.edu/linux/tree/ \ CENKES diff --git a/sysutils/tree/distinfo b/sysutils/tree/distinfo index 19f6d1210f6c..d9f64fb46360 100644 --- a/sysutils/tree/distinfo +++ b/sysutils/tree/distinfo @@ -1,3 +1,3 @@ -MD5 (tree-1.5.2.2.tgz) = a7731a898e2c0d7e422a57a84ffbb06c -SHA256 (tree-1.5.2.2.tgz) = bfd4ceca156a9f20352c1b5d44312c5a223a7cac3480d6eaef46edadded7c539 -SIZE (tree-1.5.2.2.tgz) = 33993 +MD5 (tree-1.5.3.tgz) = c07ce9065667a23f27aca4de8ecccb10 +SHA256 (tree-1.5.3.tgz) = 1128755ea9455615188212bb04319cf103114fb78f687aa887ce29ef184ffb8d +SIZE (tree-1.5.3.tgz) = 34494 diff --git a/sysutils/tree/files/patch-Makefile b/sysutils/tree/files/patch-Makefile index 3681d7cb4f4d..8eb80ae2c6c6 100644 --- a/sysutils/tree/files/patch-Makefile +++ b/sysutils/tree/files/patch-Makefile @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- Makefile.orig -+++ Makefile +--- ./Makefile.orig 2010-01-14 14:04:12.000000000 +0100 ++++ ./Makefile 2010-01-14 14:08:21.000000000 +0100 @@ -6,27 +6,27 @@ # warranties, including, without limitation, the implied warranties # of merchant-ability and fitness for a particular purpose. @@ -13,7 +10,7 @@ $FreeBSD$ -CC=gcc +CC?=gcc - VERSION=1.5.2.2 + VERSION=1.5.3 TREE_DEST=tree BINDIR=${prefix}/bin -MAN=tree.1 @@ -23,11 +20,10 @@ $FreeBSD$ # Uncomment options below for your particular OS: # Linux defaults: - #CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 --LDFLAGS=-s -+#CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -+#LDFLAGS=-s +-CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++#CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + #CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + #LDFLAGS=-s # Uncomment for FreeBSD: -#CFLAGS=-O2 -Wall -fomit-frame-pointer @@ -35,7 +31,7 @@ $FreeBSD$ -#XOBJS=strverscmp.o +CFLAGS?=-O2 -Wall -fomit-frame-pointer +LDFLAGS?=-s -+XOBJS=strverscmp.o ++XOBJS?=strverscmp.o # Uncomment for Solaris: #CC=cc diff --git a/sysutils/tree/files/patch-tree.c b/sysutils/tree/files/patch-tree.c index 5a8681f4b78e..d9cae4a344e4 100644 --- a/sysutils/tree/files/patch-tree.c +++ b/sysutils/tree/files/patch-tree.c @@ -1,6 +1,6 @@ ---- tree.c.orig 2008-08-28 03:05:43.000000000 +0800 -+++ tree.c 2008-09-22 21:37:05.000000000 +0800 -@@ -663,7 +663,7 @@ +--- ./tree.c.orig 2010-01-14 14:08:55.000000000 +0100 ++++ ./tree.c 2010-01-14 14:15:23.000000000 +0100 +@@ -682,7 +682,7 @@ #ifdef __USE_FILE_OFFSET64 if (inodeflag) sprintf(path," %7lld",(*dir)->inode); #else @@ -9,22 +9,23 @@ #endif if (devflag) sprintf(path+strlen(path), " %3d", (int)(*dir)->dev); #ifdef __EMX__ -@@ -1087,8 +1087,10 @@ +@@ -1106,8 +1106,10 @@ } else { if (Hflag) fprintf(outfile,"<br>\t\t\t\t "); - for(i=0;dirs[i];i++) { -+ if( dirs[i] <= 0 ) -+ break; + for(i=0; dirs[i] && i <= maxlevel; i++) { ++ if (dirs[i] <= 0) ++ break; fprintf(outfile,"%s ", - dirs[i+1] ? (dirs[i]==1 ? linedraw->vert : (Hflag? " " : " ") ) -+ dirs[i+1] > 0 ? (dirs[i]==1 ? linedraw->vert : (Hflag? " " : " ") ) ++ dirs[i+1] > 0 ? (dirs[i]==1 ? linedraw->vert : (Hflag? " " : " ") ) : (dirs[i]==1 ? linedraw->vert_left:linedraw->corner)); } } -@@ -1276,7 +1276,12 @@ +@@ -1294,8 +1296,12 @@ + { char *unit="BKMGTPEZY"; int idx; - +- - if (!hflag) sprintf(buf, sizeof(off_t) == sizeof(long long)? " %11lld" : " %9ld", size); + if (!hflag) { + if (sizeof(off_t) == sizeof(__int64_t)) |