Update of /cvsroot/fink/packages/dists/unstable/main/finkinfo/net
In directory usw-pr-cvs1:/tmp/cvs-serv12128
Added Files:
gift-0.10.0-20020626-2.info gift-0.10.0-20020626-2.patch
Removed Files:
gift-0.10.0-20020626-1.info gift-0.10.0-20020626-1.patch
Log Message:
new version from the maintainer
--- NEW FILE: gift-0.10.0-20020626-2.info ---
Package: gift
Version: 0.10.0-20020626
Revision: 2
Source: http://homepage.mac.com/beren/%n-%v.tar.gz
Source-MD5: b8a8f41aba32dfe6a5a9fc8a56d1e660
Depends: dlcompat
BuildDepends: dlcompat, automake, autoconf25, libtool14
Recommends: giftcurs
Patch: %f.patch
SetCPPFLAGS: -Ddlsym=dlsym_prepend_underscore
ConfigureParams: --disable-perl --mandir='${prefix}/share'
CompileScript: <<
find . -name CVS -type d -print0 | xargs -0 rm -r --
mv m4/support/gtk.m4 m4/
./autogen.macosx.sh %c
patch < ltmain.patch
./configure %c
make
<<
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/etc
cp -r etc %i/etc/giFT
mkdir -p %i/share/man/man1
cp giFT.1 %i/share/man/man1
mkdir -p %i/share/man/man5
cp gift.conf.5 %i/share/man/man5
cp OpenFT.conf.5 %i/share/man/man5
<<
DocFiles: doc/* AUTHORS COPYING ChangeLog NEWS README README.dev TODO
Description: GNU Internet File Transfer project
DescDetail: <<
giFT is a `recursive' acronym for `giFT: Internet File Transfer'. The
giFT project is actually a collection of several components together:
the giFT daemon (which acts as bridge to the actual file sharing
protocols), OpenFT (a p2p network designed to exploit all the
functionality giFT supports), and a user interface front-end.
Note that giFT is alpha software (but it works!), and is still very much
under development! You should update *often*.
<<
DescUsage: <<
Make sure you run giFT-setup before using giFT.
I usually open a termnial window and run giFT, and then in another
window run giFT-shell or giFTcurs.
man giFT, OpenFT and gift.conf. They are your friends
sample config files are in %p/etc/giFT this entire dir can be copied to
~/.giFT
please do not beg for help on #gift. They *will* flame you if the
information you seek is in the docs. You have been warned.
You can ask me for help in #fink, my nick is cirdan. Just private msg
me.
giFT -d detaches giFT from the term.
Share! (there is no meta-info or resource forks. Files with resource
forks must be encoded somehow: .bin .sit .dmg, etc.)
:-)
<<
DescPort: <<
Uses different .m4 so it does not need gtk headers
Fixes an rmdir call because of kernel bug in 10.1
There is no meta information support in this version, and it does not
handle resource forks.
TODO: play with the daemon and make a daemonic script for it.
<<
License: GPL
Maintainer: Chris Zubrzycki <beren@xxxxxxx>
Homepage: http://gift.sourceforge.net/
--- NEW FILE: gift-0.10.0-20020626-2.patch ---
diff -ruN gift-0.10.0-20020626.orig/OpenFT/openft.c
gift-0.10.0-20020626/OpenFT/openft.c
--- gift-0.10.0-20020626.orig/OpenFT/openft.c 2002-06-01 21:32:39.000000000
-0400
+++ gift-0.10.0-20020626/OpenFT/openft.c 2002-06-26 14:05:02.000000000
-0400
@@ -305,7 +305,7 @@
share_comp_write ();
/* delete any host shares left over from previous search node sessions
*/
- file_rmdir (gift_conf_path ("OpenFT/db/"));
+ file_rmdir (gift_conf_path ("OpenFT/db"));
/* OpenFT, here we come :) */
ft_initial_connect ();
diff -ruN gift-0.10.0-20020626.orig/OpenFT/xfer.c
gift-0.10.0-20020626/OpenFT/xfer.c
--- gift-0.10.0-20020626.orig/OpenFT/xfer.c 2002-06-26 09:32:47.000000000
-0400
+++ gift-0.10.0-20020626/OpenFT/xfer.c 2002-06-26 15:05:25.000000000 -0400
@@ -27,8 +27,12 @@
/*****************************************************************************/
+/* Does not work correctly right now...
+
#define PERSISTENT_HTTP
+*/
+
#ifdef PERSISTENT_HTTP
/* this list is very misleading...it actually means open connections which
* do not have an immediate "use"...they in waiting for some action to need
diff -ruN gift-0.10.0-20020626.orig/autogen.macosx.sh
gift-0.10.0-20020626/autogen.macosx.sh
--- gift-0.10.0-20020626.orig/autogen.macosx.sh 2002-04-21 18:44:17.000000000
-0400
+++ gift-0.10.0-20020626/autogen.macosx.sh 2002-06-26 14:05:02.000000000
-0400
@@ -3,7 +3,6 @@
srcdir=`dirname $0`
PKG_NAME="giFT"
-export LDFLAGS="-ldl -L/sw/lib -lltdl -L../OpenFT/.libs"
DIE=0
@@ -78,9 +77,6 @@
the"
echo \`$0\'" command line."
echo
- 1="ppc"
- 2="--disable-libdl"
- 3="--with-zlib=\"/usr/include/net/\""
echo "Default is:"
echo "./configure $*"
echo
@@ -156,10 +152,10 @@
#conf_flags="--enable-maintainer-mode --enable-compile-warnings"
#--enable-iso-c
-if test x$NOCONFIGURE = x; then
- echo Running $srcdir/configure $conf_flags "$@" ...
- $srcdir/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile $PKG_NAME
-else
+#if test x$NOCONFIGURE = x; then
+# echo Running $srcdir/configure $conf_flags "$@" ...
+# $srcdir/configure $conf_flags "$@" \
+# && echo Now type \`make\' to compile $PKG_NAME
+#else
echo Skipping configure process.
-fi
+#fi
diff -ruN gift-0.10.0-20020626.orig/lib/log.c gift-0.10.0-20020626/lib/log.c
--- gift-0.10.0-20020626.orig/lib/log.c 2002-06-15 17:25:30.000000000 -0400
+++ gift-0.10.0-20020626/lib/log.c 2002-06-26 14:05:02.000000000 -0400
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <stdarg.h>
+#include <sys/stat.h>
#include "gift.h"
#include "log.h"
@@ -82,6 +83,8 @@
static LogOptions log_options = GLOG_STDERR; /* for platform_init errors */
static FILE *log_fd = NULL;
static FILE *log_file_fd = NULL;
+char *logfile_mode; /*Are we appending or creating?*/
+struct stat sbuf;
/* horribly non-threadsafe macro abuse */
static char *trace_file = "";
@@ -120,7 +123,9 @@
if (log_file_fd)
fclose (log_file_fd);
- if (!(log_file_fd = fopen (log_file, "w+t"))) /* t=cr/lf in
win32 */
+ if (!stat(log_file,&sbuf) && (sbuf.st_size < 1024* 1024))
logfile_mode= "a+t";
+ else logfile_mode = "w+t"; /* If the logfile is < 1 Meg, we
replace it, otherwise append*/
+ if (!(log_file_fd = fopen (log_file, logfile_mode))) /* t=cr/lf
in win32 */
{
fprintf (stderr, "Can't open %s: %s", log_file,
GIFT_STRERROR ());
return FALSE;
diff -ruN gift-0.10.0-20020626.orig/ltmain.patch
gift-0.10.0-20020626/ltmain.patch
--- gift-0.10.0-20020626.orig/ltmain.patch 1969-12-31 19:00:00.000000000
-0500
+++ gift-0.10.0-20020626/ltmain.patch 2002-06-26 14:05:02.000000000 -0400
@@ -0,0 +1,62 @@
+--- ltmain.sh.orig 2002-06-22 21:27:18.000000000 -0400
++++ ltmain.sh 2002-06-22 21:27:52.000000000 -0400
+@@ -1739,7 +1739,7 @@
+
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+- need_relink=yes
++ need_relink=no
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+@@ -1884,7 +1884,11 @@
+ add="-l$name"
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+- add_dir="-L$libdir"
++ if test "X$installed" = Xyes; then
++ add_dir="-L$libdir"
++ else
++ add_dir="-L$DESTDIR$libdir"
++ fi
+ add="-l$name"
+ fi
+
+@@ -4146,12 +4150,21 @@
+ esac
+
+ # Add the libdir to current_libdirs if it is the destination.
++ DESTDIR=
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
++ case "$destdir" in
++ *"$libdir")
++ DESTDIR=`$echo "$destdir" | sed -e 's!'"$libdir"'$!!'`
++ if test "X$destdir" != "X$DESTDIR$libdir"; then
++ DESTDIR=
++ fi
++ ;;
++ esac
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+@@ -4165,6 +4178,7 @@
+
+ if test -n "$relink_command"; then
+ $echo "$modename: warning: relinking \`$file'" 1>&2
++ export DESTDIR
+ $show "$relink_command"
+ if $run eval "$relink_command"; then :
+ else
+@@ -4172,6 +4186,7 @@
+ continue
+ fi
+ fi
++ unset DESTDIR
+
+ # See the names of the shared library.
+ set dummy $library_names
--- gift-0.10.0-20020626-1.info DELETED ---
--- gift-0.10.0-20020626-1.patch DELETED ---
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
|