Add tree 1.3, display a tree-view of directories with optional

color or HTML output.

PR:		33145
Submitted by:	Alan Eldridge <ports@geeksrus.net>
This commit is contained in:
Pete Fritchman
2001-12-24 21:50:53 +00:00
parent c526b4c2ef
commit 0cf708bc4e
8 changed files with 93 additions and 0 deletions

View File

@@ -169,6 +169,7 @@
SUBDIR += tdir
SUBDIR += ticker.app
SUBDIR += timelimit
SUBDIR += tree
SUBDIR += truncate
SUBDIR += ttyload
SUBDIR += tua

18
sysutils/tree/Makefile Normal file
View File

@@ -0,0 +1,18 @@
# New ports collection makefile for: tree
# Date created: 2001/12/24
# Whom: Alan Eldridge <ports@geeksrus.net>
#
# $FreeBSD$
#
PORTNAME= tree
PORTVERSION= 1.3
CATEGORIES= sysutils
MASTER_SITES= ftp://mama.indstate.edu/linux/tree/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@geeksrus.net
MAN1= tree.1
.include <bsd.port.mk>

1
sysutils/tree/distinfo Normal file
View File

@@ -0,0 +1 @@
MD5 (tree-1.3.tgz) = cd595dc2eb53760ce32d978fd52fe93c

View File

@@ -0,0 +1,50 @@
$FreeBSD$
--- Makefile.orig Mon Dec 11 14:43:23 2000
+++ Makefile Mon Dec 24 08:17:21 2001
@@ -6,15 +6,16 @@
# warranties, including, without limitation, the implied warranties
# of merchant-ability and fitness for a particular purpose.
-CC=gcc
-CFLAGS=-O2 -Wall -fomit-frame-pointer #-m486
-LDFLAGS=-s
+CC?= gcc
+CFLAGS?= -O2 -Wall
+LDFLAGS?=
+PREFIX?= /usr/local
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man/man1
VERSION=1.3
TREE_DEST=tree
-BINDIR=/usr/local/bin
MAN=tree.1
-MANDIR=/usr/man/man1
all: tree
@@ -28,18 +29,15 @@
if [ -f tree.o ]; then rm *.o; fi
rm -f *~
-install:
- install -d $(BINDIR)
- install -d $(MANDIR)
- if [ -e $(TREE_DEST) ]; then \
- install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \
- fi
- install $(MAN) $(MANDIR)/$(MAN)
+install: $(TREE_DEST) $(MAN)
+ mkdir -p $(BINDIR)
+ mkdir -p $(MANDIR)
+ ${BSD_INSTALL_PROGRAM} $(TREE_DEST) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(MAN) $(MANDIR)
distclean:
if [ -f tree.o ]; then rm *.o; fi
rm -f *~
-
dist: distclean
tar zcf ../tree-$(VERSION).tgz -C .. tree-$(VERSION)/

View File

@@ -0,0 +1,13 @@
$FreeBSD$
--- tree.c.orig Mon Jan 29 22:38:30 2001
+++ tree.c Mon Dec 24 08:09:39 2001
@@ -422,7 +422,7 @@
if (!noindent) indent();
if (inodeflag || devflag || pflag || sflag || uflag || gflag || Dflag) fprintf(outfile,"[");
- if (inodeflag) fprintf(outfile,"%7ld",(*dir)->inode);
+ if (inodeflag) fprintf(outfile,"%7ld",(long)(*dir)->inode);
if (inodeflag && (devflag || pflag || uflag || gflag || sflag || Dflag)) fprintf(outfile,"%s",sp);
if (devflag) fprintf(outfile,"%3d",(*dir)->dev);
if (devflag && (pflag || uflag || gflag || sflag || Dflag)) fprintf(outfile,"%s",sp);

View File

@@ -0,0 +1 @@
Display a tree-view of directories with optional color or HTML output

8
sysutils/tree/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
Tree is a simple utility that displays a tree-view of directories
and files. It has options to use ANSI color escape-sequences or ASCII
graphic characters, and can also output in HTML format.
Tree was written by Steve Baker for Linux.
-- AlanE
ports@geeksrus.net

1
sysutils/tree/pkg-plist Normal file
View File

@@ -0,0 +1 @@
bin/tree