diff --git a/misc/ytree/Makefile b/misc/ytree/Makefile new file mode 100644 index 00000000000..f45da53e151 --- /dev/null +++ b/misc/ytree/Makefile @@ -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 + +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 diff --git a/misc/ytree/files/md5 b/misc/ytree/files/md5 new file mode 100644 index 00000000000..c338bc252f6 --- /dev/null +++ b/misc/ytree/files/md5 @@ -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 diff --git a/misc/ytree/patches/patch-Makefile b/misc/ytree/patches/patch-Makefile new file mode 100644 index 00000000000..1af5ef09c5e --- /dev/null +++ b/misc/ytree/patches/patch-Makefile @@ -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 diff --git a/misc/ytree/patches/patch-freesp_c b/misc/ytree/patches/patch-freesp_c new file mode 100644 index 00000000000..e18cc79c569 --- /dev/null +++ b/misc/ytree/patches/patch-freesp_c @@ -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 + #else +-#if ( defined( ultrix ) || defined ( __FreeBSD__ ) ) ++#if ( defined( ultrix ) ) ++#include ++#else ++#if (defined(__unix__) || defined(unix)) && !defined(USG) + #include + #include + #else +@@ -30,6 +33,7 @@ + /* z.B. SVR3 */ + #include + #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 diff --git a/misc/ytree/patches/patch-match_c b/misc/ytree/patches/patch-match_c new file mode 100644 index 00000000000..b9021d96e4c --- /dev/null +++ b/misc/ytree/patches/patch-match_c @@ -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 ++#endif + + #ifdef HAS_REGEX + #ifdef sun diff --git a/misc/ytree/pkg/COMMENT b/misc/ytree/pkg/COMMENT new file mode 100644 index 00000000000..bc191ea585a --- /dev/null +++ b/misc/ytree/pkg/COMMENT @@ -0,0 +1 @@ +DOS-XTREE(tm) look-a-like file manager diff --git a/misc/ytree/pkg/DESCR b/misc/ytree/pkg/DESCR new file mode 100644 index 00000000000..92ce60fdda5 --- /dev/null +++ b/misc/ytree/pkg/DESCR @@ -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} diff --git a/misc/ytree/pkg/PLIST b/misc/ytree/pkg/PLIST new file mode 100644 index 00000000000..fe8a00a9c9e --- /dev/null +++ b/misc/ytree/pkg/PLIST @@ -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