summaryrefslogtreecommitdiffstats
path: root/sysutils/tree
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2001-12-24 21:50:53 +0000
committerpetef <petef@FreeBSD.org>2001-12-24 21:50:53 +0000
commitcb642c659243910928430a55040c6f85ce00c5e5 (patch)
treec03a4708aa0b21a274e1749b6cce969504285459 /sysutils/tree
parentf563fa08ceac1526225e74cd9966126e9b531dbf (diff)
downloadFreeBSD-ports-cb642c659243910928430a55040c6f85ce00c5e5.zip
FreeBSD-ports-cb642c659243910928430a55040c6f85ce00c5e5.tar.gz
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>
Diffstat (limited to 'sysutils/tree')
-rw-r--r--sysutils/tree/Makefile18
-rw-r--r--sysutils/tree/distinfo1
-rw-r--r--sysutils/tree/files/patch-Makefile50
-rw-r--r--sysutils/tree/files/patch-tree.c13
-rw-r--r--sysutils/tree/pkg-comment1
-rw-r--r--sysutils/tree/pkg-descr8
-rw-r--r--sysutils/tree/pkg-plist1
7 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/tree/Makefile b/sysutils/tree/Makefile
new file mode 100644
index 0000000..a484590
--- /dev/null
+++ b/sysutils/tree/Makefile
@@ -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>
diff --git a/sysutils/tree/distinfo b/sysutils/tree/distinfo
new file mode 100644
index 0000000..aaa7716
--- /dev/null
+++ b/sysutils/tree/distinfo
@@ -0,0 +1 @@
+MD5 (tree-1.3.tgz) = cd595dc2eb53760ce32d978fd52fe93c
diff --git a/sysutils/tree/files/patch-Makefile b/sysutils/tree/files/patch-Makefile
new file mode 100644
index 0000000..9851ef0
--- /dev/null
+++ b/sysutils/tree/files/patch-Makefile
@@ -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)/
diff --git a/sysutils/tree/files/patch-tree.c b/sysutils/tree/files/patch-tree.c
new file mode 100644
index 0000000..8a12ffb
--- /dev/null
+++ b/sysutils/tree/files/patch-tree.c
@@ -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);
diff --git a/sysutils/tree/pkg-comment b/sysutils/tree/pkg-comment
new file mode 100644
index 0000000..23b15e3
--- /dev/null
+++ b/sysutils/tree/pkg-comment
@@ -0,0 +1 @@
+Display a tree-view of directories with optional color or HTML output
diff --git a/sysutils/tree/pkg-descr b/sysutils/tree/pkg-descr
new file mode 100644
index 0000000..ee043c5
--- /dev/null
+++ b/sysutils/tree/pkg-descr
@@ -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
diff --git a/sysutils/tree/pkg-plist b/sysutils/tree/pkg-plist
new file mode 100644
index 0000000..49245df
--- /dev/null
+++ b/sysutils/tree/pkg-plist
@@ -0,0 +1 @@
+bin/tree
OpenPOWER on IntegriCloud