Import of ytree-1.71.
Submitted by William Yodlowsky <bsd@openbsd.rutgers.edu>. Ytree is a nifty filemanager similar to xtree. With some helper-applications (zip/zoo/tar etc.) you can also browse archive files. Viewers for "special" files are configurable (*.wav, *.gif etc.).
This commit is contained in:
parent
388adea370
commit
20f57f9e28
30
misc/ytree/Makefile
Normal file
30
misc/ytree/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD:
|
||||
# $FreeBSD: ports/misc/ytree/Makefile,v 1.10 2000/04/30 20:15:23 steve Exp $
|
||||
|
||||
DISTNAME= ytree-1.71
|
||||
CATEGORIES= misc
|
||||
NEED_VERSION= 1.348
|
||||
HOMEPAGE= http://www.han.de/~werner/ytree.html
|
||||
|
||||
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
|
||||
|
||||
MASTER_SITES= http://www.han.de/~werner/ \
|
||||
http://openbsd.rutgers.edu/
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= slang.14::devel/libslang
|
||||
|
||||
ALL_TARGET=
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/ytree ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ytree
|
||||
${INSTALL_DATA} ${WRKBUILD}/ytree.conf \
|
||||
${PREFIX}/share/examples/ytree/ytree.conf
|
||||
${INSTALL_MAN} ${WRKBUILD}/ytree.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/ytree/files/md5
Normal file
3
misc/ytree/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ytree-1.71.tar.gz) = e5d6f5be398924fd6cc6bc379a5f4148
|
||||
RMD160 (ytree-1.71.tar.gz) = fc7372f64b5ea62045578abba853356e1874bd54
|
||||
SHA1 (ytree-1.71.tar.gz) = 32dee3ed25ab4c2fe68125ded396082f9fc973bb
|
34
misc/ytree/patches/patch-Makefile
Normal file
34
misc/ytree/patches/patch-Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/03 18:54:09 naddy Exp $
|
||||
--- Makefile.orig Sun Jul 16 00:01:56 2000
|
||||
+++ Makefile Tue Jan 2 20:04:47 2001
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
-CC = cc
|
||||
+#CC = cc
|
||||
|
||||
#
|
||||
# ADD_CFLAGS: Add -DVI_KEYS if you want vi-cursor-keys
|
||||
@@ -23,12 +23,18 @@ MANEXT = 1
|
||||
# Uncomment the lines for your system (default is linux)
|
||||
|
||||
###########################
|
||||
+# OpenBSD
|
||||
+###########################
|
||||
+CFLAGS += -DCOLOR_SUPPORT -DNCURSES
|
||||
+LIBS = -lcurses
|
||||
+
|
||||
+###########################
|
||||
# LINUX (testet with ncurses 5.0)
|
||||
###########################
|
||||
-COLOR = -DCOLOR_SUPPORT
|
||||
+#COLOR = -DCOLOR_SUPPORT
|
||||
#CLOCK = -DCLOCK_SUPPORT # Experimental!
|
||||
-CFLAGS = $(ADD_CFLAGS) $(COLOR) $(CLOCK)
|
||||
-LIBS = -lncurses
|
||||
+#CFLAGS = $(ADD_CFLAGS) $(COLOR) $(CLOCK)
|
||||
+#LIBS = -lncurses
|
||||
|
||||
###########################
|
||||
# LINUX (X11 using PDCurses) thanks to Mark Hessling
|
45
misc/ytree/patches/patch-freesp_c
Normal file
45
misc/ytree/patches/patch-freesp_c
Normal file
@ -0,0 +1,45 @@
|
||||
$OpenBSD: patch-freesp_c,v 1.1.1.1 2001/01/03 18:54:09 naddy Exp $
|
||||
--- freesp.c.orig Sat Jul 15 18:01:56 2000
|
||||
+++ freesp.c Sat Dec 23 22:32:23 2000
|
||||
@@ -19,7 +19,10 @@
|
||||
#if defined( SVR4 ) || defined( OSF1 )
|
||||
#include <sys/statvfs.h>
|
||||
#else
|
||||
-#if ( defined( ultrix ) || defined ( __FreeBSD__ ) )
|
||||
+#if ( defined( ultrix ) )
|
||||
+#include <sys/mount.h>
|
||||
+#else
|
||||
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
@@ -30,6 +33,7 @@
|
||||
/* z.B. SVR3 */
|
||||
#include <sys/statfs.h>
|
||||
#endif /* QNX */
|
||||
+#endif /* BSD */
|
||||
#endif /* ultrix */
|
||||
#endif /* SVR4 */
|
||||
#endif /* WIN32 */
|
||||
@@ -85,8 +89,12 @@ int GetDiskParameter( char *path,
|
||||
fd = open(path, O_RDONLY );
|
||||
if( ( result = disk_space( fd, &free_blocks, &total_blocks ) ) == 0 )
|
||||
#else
|
||||
+#if defined( __OpenBSD__ )
|
||||
+ if( ( result = statfs( path, &statfs_struct ) ) == 0 )
|
||||
+#else
|
||||
|
||||
if( ( result = STATFS( path, &statfs_struct, sizeof( statfs_struct ), 0 ) ) == 0 )
|
||||
+#endif /* OpenBSD */
|
||||
#endif /* QNX */
|
||||
#endif /* __DJGPP__ */
|
||||
#endif /* WIN32 */
|
||||
@@ -127,7 +135,7 @@ int GetDiskParameter( char *path,
|
||||
fname = "LINUX";
|
||||
}
|
||||
#else
|
||||
-#if defined( sun ) || defined( hpux ) || defined( __NeXT__ ) || defined( ultrix ) || defined ( __FreeBSD__ )
|
||||
+#if defined( sun ) || defined( hpux ) || defined( __NeXT__ ) || defined( ultrix ) || defined ( BSD )
|
||||
fname = "UNIX";
|
||||
#else
|
||||
#ifdef WIN32
|
14
misc/ytree/patches/patch-match_c
Normal file
14
misc/ytree/patches/patch-match_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-match_c,v 1.1.1.1 2001/01/03 18:54:09 naddy Exp $
|
||||
--- match.c.orig Sat Jul 15 18:01:56 2000
|
||||
+++ match.c Sat Dec 23 22:28:59 2000
|
||||
@@ -17,6 +17,10 @@
|
||||
#define HAS_REGCOMP
|
||||
#endif
|
||||
|
||||
+#if defined( __OpenBSD__ )
|
||||
+#define HAS_REGCOMP
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
|
||||
#ifdef HAS_REGEX
|
||||
#ifdef sun
|
1
misc/ytree/pkg/COMMENT
Normal file
1
misc/ytree/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
DOS-XTREE(tm) look-a-like file manager
|
6
misc/ytree/pkg/DESCR
Normal file
6
misc/ytree/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Ytree is a nifty filemanager similar to xtree. With some
|
||||
helper-applications (zip/zoo/tar etc.) you can also browse archive
|
||||
files. Viewers for "special" files are configurable (*.wav, *.gif
|
||||
etc.).
|
||||
|
||||
WWW: ${HOMEPAGE}
|
5
misc/ytree/pkg/PLIST
Normal file
5
misc/ytree/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/03 18:54:09 naddy Exp $
|
||||
bin/ytree
|
||||
man/man1/ytree.1
|
||||
share/examples/ytree/ytree.conf
|
||||
@dirrm share/examples/ytree
|
Loading…
Reference in New Issue
Block a user