OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 27-Oct-2006 20:47:07
Branch: HEAD Handle: 2006102719470700
Added files:
openpkg-src/ytree ytree.patch ytree.spec
Log:
new package: ytree 1.86 (Filesystem Tree Browser)
Summary:
Revision Changes Path
1.1 +31 -0 openpkg-src/ytree/ytree.patch
1.1 +113 -0 openpkg-src/ytree/ytree.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/ytree/ytree.patch
============================================================================
$ cvs diff -u -r0 -r1.1 ytree.patch
--- /dev/null 2006-10-27 20:46:29 +0200
+++ ytree.patch 2006-10-27 20:47:07 +0200
@@ -0,0 +1,31 @@
+Index: freesp.c
+--- freesp.c.orig 2005-10-05 22:18:46 +0200
++++ freesp.c 2006-10-27 20:34:10 +0200
+@@ -9,9 +9,12 @@
+
+ #include "ytree.h"
+
+-#if ( defined( linux ) || defined( sun ) || defined( __NeXT__ ) ||
defined(hpux) || defined ( __FreeBSD__ ) || defined( __DJGPP__ ) || defined (
__GNU__ ) ) && !defined( SVR4 )
++#if ( defined( linux ) || defined( sun ) || defined( __NeXT__ ) ||
defined(hpux) || defined( __DJGPP__ ) || defined ( __GNU__ ) ) && !defined(
SVR4 )
+
+ #include <sys/vfs.h>
++#elif defined(__FreeBSD__)
++#include <sys/param.h>
++#include <sys/mount.h>
+ #else
+ #ifdef WIN32
+ #include <dos.h>
+Index: main.c
+--- main.c.orig 2005-10-05 22:18:46 +0200
++++ main.c 2006-10-27 20:34:36 +0200
+@@ -9,6 +9,10 @@
+
+ #include "ytree.h"
+
++#if defined(__FreeBSD__)
++#include <locale.h>
++#endif
++
+
+
+ static char buffer[PATH_LENGTH+1];
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/ytree/ytree.spec
============================================================================
$ cvs diff -u -r0 -r1.1 ytree.spec
--- /dev/null 2006-10-27 20:46:29 +0200
+++ ytree.spec 2006-10-27 20:47:07 +0200
@@ -0,0 +1,113 @@
+##
+## ytree.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: ytree
+Summary: Filesystem Tree Browser
+URL: http://www.han.de/~werner/ytree.html
+Vendor: Werner Bregulla
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Terminal
+License: GPL
+Version: 1.86
+Release: 20061027
+
+# list of sources
+Source0: http://www.han.de/~werner/ytree-%{version}.tar.gz
+Patch0: ytree.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc
+PreReq: OpenPKG, openpkg >= 20040130
+BuildPreReq: ncurses, readline
+PreReq: ncurses, readline
+AutoReq: no
+AutoReqProv: no
+
+%description
+ ytree(1) is a full-screen filesystem tree and archive format manager
+ similar to the popular DOS-XTREE(tm). It understands the archive
+ formats RAR, SPM, RPM, TAR, ARC, LHA, ZIP, and ZOO.
+
+%track
+ prog ytree = {
+ version = %{version}
+ url = http://www.han.de/~werner/ytree.html
+ regex = ytree-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ # determine available terminal library
+ termlib=""
+ echo "int main(int argc, char *argv[]) { return 0; }" >dummy.c
+ for lib in termcap termlib curses ncurses; do
+ rc=0; %{l_cc} -o dummy dummy.c -l$lib >/dev/null 2>&1 || rc=1
+ if [ $rc -eq 0 ]; then termlib="-l$lib"; break; fi
+ done
+ [ ".$termlib" = . ] && exit 1
+
+ # determine standard set of build-time flags
+ export CC="%{l_cc}"
+ export ADD_CFLAGS="%{l_cflags -O} %{l_cppflags} -DNCURSES"
+ export LFLAGS="%{l_ldflags}"
+ export LIBS="-lncurses -lreadline $termlib"
+
+ # determine platform specific build-time flags extensions
+ case "%{l_platform -t}" in
+ *-freebsd* ) LIBS="$LIBS -lcompat" ;;
+ *-sunos* ) ADD_CFLAGS="$ADD_CFLAGS -DSVR4" ;;
+ esac
+
+ # build program
+ %{l_make} %{l_mflags} \
+ CC="$CC" ADD_CFLAGS="$ADD_CFLAGS" \
+ LFLAGS="$LFLAGS" LIBS="$LIBS"
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
+ $RPM_BUILD_ROOT%{l_prefix}/share/ytree
+ %{l_shtool} install -c -s -m 755 \
+ ytree $RPM_BUILD_ROOT%{l_prefix}/bin/
+ %{l_shtool} install -c -m 644 \
+ ytree.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
+ %{l_shtool} install -c -m 644 \
+ ytree.conf $RPM_BUILD_ROOT%{l_prefix}/share/ytree/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]