Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17890/main/finkinfo/net

Added Files:
        sendfile-2.1a-2.info sendfile-2.1a-2.patch 
Log Message:
10.2-gcc3.3 -> 10.3 (Maintainer = None)


--- NEW FILE: sendfile-2.1a-2.info ---
Package: sendfile
Version: 2.1a
Revision: 2
Description: SAFT implementation for UNIX
License: GPL
Source: ftp://ftp.belwue.de/pub/unix/sendfile/sendfile-%v.tar.gz
Source-MD5: a8aa16b9891468a12c674a3e585128c0
Depends: readline
BuildDepends: autoconf2.5
BuildDependsOnly: true
UpdateConfigGuess: true
PatchScript: <<
 mkdir -p %p/var/run
 touch %p/var/run/.placeholder
 mv -f config.guess config.sub develop
 sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
 cd develop; aclocal; autoconf
<<
CompileScript: <<
 ./makeconfig
 make
<<
InstallScript: <<
 mkdir -p %i/bin
 ( cd src; cp sendfile sendmsg receive fetchfile utf7encode wlock %i/bin )
 ( cd %i/bin; ln -s utf7encode utf7decode )
 ( cd etc; cp sfconf sfdconf %i/bin )
 cp etc/check_sendfile %i/bin
 mkdir -p %i/sbin
 cp src/sendfiled %i/sbin
 mkdir -p %i/share/man/man1
 ( cd doc; cp sendmsg.1 sendfile.1 receive.1 fetchfile.1 %i/share/man/man1 )
 mkdir -p %i/share/man/man7
 cp doc/fetchfile.7 %i/share/man/man7
 mkdir -p %i/share/man/man8
 cp doc/sendfiled.8 %i/share/man/man8
 mkdir -p %i/etc
 cp etc/sendfile.deny %i/etc
 cp etc/sendfile.cf %i/etc
 mkdir -p %i/var/spool/sendfile
 mkdir -p %i/var/spool/sendfile/LOG
 chmod 700 %i/var/spool/sendfile/LOG
 mkdir -p %i/var/spool/sendfile/OUTGOING
 chmod 1777 %i/var/spool/sendfile/OUTGOING
<<
DescDetail: <<
Sendfile is a SAFT implementation for UNIX and serves as a tool for 
asynchronous sending of files in the Internet, conserving their file 
attributes. It consists (besides a complete documentation) of the following 
parts: 

- sendfiled
the server daemon

- sendfile
a client for sending files

- sendmsg
a client for sending one-line text messages

- receive
a client for receiving spooled files

The sendfile client is a user software which transfers files to the 
sendfiled of the recipient's host. The sendfiled takes the files, stores 
them in a local spool area and informes the recipient that files have been 
spooled. Now the recipient can invoke the receive client which will copy 
the files into the local directory, deleting the file in the spool area.
<<
DescPort: <<
 Uses autoconf, wrapped in a custom script that does
 additional configuration. Needs patches in various places...
<<
DescPackaging: <<
 Installed by hand. The spool directory is an issue when upgrading the package.
<<
Homepage: http://www.belwue.de/aktivitaeten/projekte/saft/index-us.html
Maintainer: None <[EMAIL PROTECTED]>

--- NEW FILE: sendfile-2.1a-2.patch ---
diff -ru sendfile-2.1a/develop/configure.in sendfile-2.1a-patched/develop/configure.in
--- sendfile-2.1a/develop/configure.in  Fri Feb 16 14:59:52 2001
+++ sendfile-2.1a-patched/develop/configure.in  Fri Mar  2 12:53:50 2001
@@ -38,7 +38,7 @@
 dnl Checks for libraries.
 AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(nsl, gethostbyname)
-AC_CHECK_LIB(readline, readline, , , -ltermcap)
+AC_CHECK_LIB(readline, readline, , , )
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
diff -ru sendfile-2.1a/makeconfig sendfile-2.1a-patched/makeconfig
--- sendfile-2.1a/makeconfig    Thu Aug 26 20:53:32 1999
+++ sendfile-2.1a-patched/makeconfig    Fri Mar  2 14:41:23 2001
@@ -10,17 +10,17 @@
 # or simply call: makeconfig CC=gcc ...
 
 # default compiling settings
-CC=gcc
-CFLAGS=-O2
-LDFLAGS=-s
+CC=cc
+CFLAGS="-O2 [EMAIL PROTECTED]@/include -DHAVE_STRERROR"
[EMAIL PROTECTED]@/lib
 
 # default installation settings
-SPOOL=/var/spool/sendfile
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/man
-CONFIG=/usr/local/etc
-SERVERDIR=/usr/local/sbin
-INETDCONF=/etc/inetd.conf
[EMAIL PROTECTED]@/var/spool/sendfile
[EMAIL PROTECTED]@/bin
[EMAIL PROTECTED]@/man
[EMAIL PROTECTED]@/etc
[EMAIL PROTECTED]@/sbin
[EMAIL PROTECTED]@/etc/inetd.conf
 SERVICES=/etc/services
 
 ############################# OPTIONAL SETTINGS ##############################
@@ -82,7 +82,7 @@
     --sysconfdir=$CONFIG \
   || exit $?
 
-if [ -d /var/run ]; then FIFODIR=/var/run/sfm; fi
+if [ -d @PREFIX@/var/run ]; then [EMAIL PROTECTED]@/var/run/sfm; fi
 
 SYSTEM=`./config.guess`
 
@@ -100,6 +100,7 @@
   *convex*)    SYSTEM=CONVEXOS;;
   *osf*)       SYSTEM=OSF1;;
   *bsd*)       SYSTEM=BSD;;
+  *darwin*)    SYSTEM=DARWIN;;
   *)           SYSTEM=UNKNOWN;;
 #  *)          SYSTEM=`uname -a | tr '[a-z]' '[A-Z]'`
 #              case "$SYSTEM" in
@@ -116,8 +117,12 @@
 for i in nsl socket readline; do
   if grep -i "have_lib$i 1" config.h >/dev/null; then LIBS="$LIBS -l$i"; fi
 done
-case "$LIBS" in
-  *readline*) LIBS="$LIBS -ltermcap";;
+case "$SYSTEM" in
+  *DARWIN*)    ;;
+  *)
+      case "$LIBS" in
+        *readline*) LIBS="$LIBS -ltermcap";;
+      esac
 esac
 
 echo creating globals.h
diff -ru sendfile-2.1a/src/sendfiled.c sendfile-2.1a-patched/src/sendfiled.c
--- sendfile-2.1a/src/sendfiled.c       Tue Feb  6 00:42:53 2001
+++ sendfile-2.1a-patched/src/sendfiled.c       Fri Mar  2 14:25:45 2001
@@ -341,7 +341,7 @@
 int send_file(int);
 
 /* open user log file */  
-int openlog(const char *);
+int open_log(const char *);
 
 /* clean termination routine */
 void cleanexit();
@@ -1351,7 +1351,7 @@
       /* convert back to UTF-7 and write to log file */
       if (msglog && check_userspool(recipient,userconfighome)==0 && 
          chdir(userspool)==0) {
-       if ((lfd=openlog("msglog"))) {
+       if ((lfd=open_log("msglog"))) {
          iso2utf(tmp,msg);
          timetick=time(0);
          strftime(currentdate,20,"%Y-%m-%d %H:%M:%S",localtime(&timetick));
@@ -1664,7 +1664,7 @@
       if (!test) {
       
        /* write to the log file */
-       if ((lfd=openlog("log"))) {
+       if ((lfd=open_log("log"))) {
          writeheader(lfd,"FROM",logsender);
          writeheader(lfd,"FILE",filename);
          writeheader(lfd,"DATE",currentdate);
@@ -3867,7 +3867,7 @@
 
 
 /*
- * openlog  - open user log file
+ * open_log  - open user log file
  * 
  * INPUT:  log - name of log file
  * 
@@ -3875,7 +3875,7 @@
  * 
  * Be sure to call this function with correct seteuid/setegid settings!
  */
-int openlog(const char *log) {
+int open_log(const char *log) {
   int 
     n,                 /* simple loop counter */
     lfd;               /* log file descriptor */



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to