[36649] trunk/dports/net/sendfile

ryandesign at macports.org ryandesign at macports.org
Fri May 9 02:56:08 PDT 2008


Revision: 36649
          http://trac.macosforge.org/projects/macports/changeset/36649
Author:   ryandesign at macports.org
Date:     2008-05-09 02:56:08 -0700 (Fri, 09 May 2008)

Log Message:
-----------
sendfile: update to 2.1b and fix homepage and download location; closes #15183

Modified Paths:
--------------
    trunk/dports/net/sendfile/Portfile
    trunk/dports/net/sendfile/files/patch-makeconfig.diff
    trunk/dports/net/sendfile/files/patch-sendfiled.c.diff

Modified: trunk/dports/net/sendfile/Portfile
===================================================================
--- trunk/dports/net/sendfile/Portfile	2008-05-09 09:43:47 UTC (rev 36648)
+++ trunk/dports/net/sendfile/Portfile	2008-05-09 09:56:08 UTC (rev 36649)
@@ -2,12 +2,11 @@
 
 PortSystem 1.0
 name			sendfile
-version			2.1a
-revision		3
+version			2.1b
 categories		net
 platforms		darwin
 maintainers		nomaintainer
-homepage		http://www.BelWue.DE/projekte/saft/index-us.html
+homepage		http://fex.rus.uni-stuttgart.de/saft/sendfile.html
 description		A saft suite for asynchronous transfers
 
 long_description	Sendfile is a SAFT implementation for UNIX and serves as a tool for \
@@ -18,12 +17,14 @@
 			sendmsg - a client for sending one-line text messages \
 			receive - a client for receiving spooled files
 
-master_sites		ftp://ftp.belwue.de/pub/unix/${name}
-checksums		md5 a8aa16b9891468a12c674a3e585128c0
+master_sites		http://fex.rus.uni-stuttgart.de/download/
+checksums		md5 619d5aef56d0d43e8f0459b05f0836c9 \
+			sha1 4c4842ae1c44bfbfe4c8d1b3646ebb4b29bcd341 \
+			rmd160 4bc23f4bc7ec26c5ff3625e0dec6f369d0203a00
 
 patchfiles		patch-makeconfig.diff patch-sendfiled.c.diff
 
-configure		{}
+use_configure		no
 
 pre-build {		reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/makeconfig
 			reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makeconfig
@@ -39,7 +40,7 @@
 			}
 
 destroot.destdir	${destroot}${prefix}
-destroot.target		{}
+destroot.target
 
 destroot {		xinstall -m 755 -v -W ${worksrcpath}/src \
 			sendfile sendmsg receive fetchfile utf7encode wlock \

Modified: trunk/dports/net/sendfile/files/patch-makeconfig.diff
===================================================================
--- trunk/dports/net/sendfile/files/patch-makeconfig.diff	2008-05-09 09:43:47 UTC (rev 36648)
+++ trunk/dports/net/sendfile/files/patch-makeconfig.diff	2008-05-09 09:56:08 UTC (rev 36649)
@@ -1,10 +1,10 @@
---- makeconfig		Thu Aug 26 20:53:32 1999
-+++ makeconfig.diff	Fri Nov 21 00:41:21 2003
+--- makeconfig	2006-06-07 08:57:47.000000000 -0500
++++ makeconfig	2008-05-09 04:50:03.000000000 -0500
 @@ -20,8 +20,6 @@
  MANDIR=/usr/local/man
  CONFIG=/usr/local/etc
  SERVERDIR=/usr/local/sbin
--INETDCONF=/etc/inetd.conf
+-INETDCONF=/etc/inetd.conf # xinetd will be automaticly recognized
 -SERVICES=/etc/services
  
  ############################# OPTIONAL SETTINGS ##############################
@@ -18,11 +18,3 @@
  export TAR GZIP BZIP2 PGP RECODE METAMAIL SENDMAIL
  
  topmake() {
-@@ -100,6 +98,7 @@
-   *convex*)	SYSTEM=CONVEXOS;;
-   *osf*)	SYSTEM=OSF1;;
-   *bsd*)	SYSTEM=BSD;;
-+  *darwin*)	SYSTEM=BSD;;
-   *)		SYSTEM=UNKNOWN;;
- #  *)		SYSTEM=`uname -a | tr '[a-z]' '[A-Z]'`
- #  		case "$SYSTEM" in

Modified: trunk/dports/net/sendfile/files/patch-sendfiled.c.diff
===================================================================
--- trunk/dports/net/sendfile/files/patch-sendfiled.c.diff	2008-05-09 09:43:47 UTC (rev 36648)
+++ trunk/dports/net/sendfile/files/patch-sendfiled.c.diff	2008-05-09 09:56:08 UTC (rev 36649)
@@ -1,5 +1,5 @@
---- src/sendfiled.c			Mon Jul 23 16:08:03 2001
-+++ src/sendfiled.c.diff		Thu Nov 20 02:47:59 2003
+--- src/sendfiled.c	2008-03-11 11:52:06.000000000 -0500
++++ src/sendfiled.c	2008-05-09 04:52:55.000000000 -0500
 @@ -74,7 +74,7 @@
   *   1997-01-30	Framstag	better SIZE parsing
   *   1997-02-03	Framstag	sprintf() -> snprintf()
@@ -9,10 +9,10 @@
   *   1997-02-12	Framstag	better IRIX and HP-UX support
   *   1997-02-13	Framstag	better OSF/1 support
   *   1997-02-23	Framstag	modified str_* function names
-@@ -262,8 +262,8 @@
+@@ -273,8 +273,8 @@
  #endif
  
- #ifdef HPUX
+ #if defined(HPUX) || defined(BSD)
 -  #define seteuid(a) setuid(a)
 -  #define setegid(a) setgid(a)
 +  #define setuid(a) setuid(a)
@@ -20,7 +20,7 @@
  #endif
  
  #ifndef _PATH_UTMP
-@@ -297,8 +297,8 @@
+@@ -308,8 +308,8 @@
  int restricted(const char *, const char *, char);
  
  /* missed in <unistd.h> in some systems */
@@ -31,7 +31,7 @@
  
  /* sendfile spool daemon for outgoing files */
  int sfsd(int, int, int, int, float);
-@@ -963,8 +963,8 @@
+@@ -1003,8 +1003,8 @@
  	fclose(inf);
        }
        
@@ -42,7 +42,7 @@
  
        /* user forward? */
        if (forwarding && *forward && *filename && !*rpipe) {
-@@ -1345,8 +1345,8 @@
+@@ -1379,8 +1379,8 @@
        fprintf(dbf,"chdir: %d\n",chdir(userspool));
        fprintf(dbf,"ruid: %d (%d)\n",ruid,geteuid());
        fprintf(dbf,"rgid: %d (%d)\n",rgid,getegid());
@@ -53,7 +53,7 @@
  */
        /* convert back to UTF-7 and write to log file */
        if (msglog && check_userspool(recipient,userconfighome)==0 && 
-@@ -1362,8 +1362,8 @@
+@@ -1396,8 +1396,8 @@
  	  close(lfd);
  	}
        }
@@ -64,7 +64,7 @@
  
        timetick=time(0);
        if (bell) strcat(msg,"\007");
-@@ -1376,8 +1376,8 @@
+@@ -1410,8 +1410,8 @@
        else {
  	
  	/* log sender address */
@@ -75,7 +75,7 @@
  	snprintf(MAXS(tmp),"%s/msg@%s",userconfig,localhost);
  	if ((outf=rfopen(tmp,"w"))) {
  	  strcpy(tmp,sender);
-@@ -1385,8 +1385,8 @@
+@@ -1419,8 +1419,8 @@
  	  fprintf(outf,"%s\n",tmp);
  	}
  	fclose(outf);
@@ -86,7 +86,7 @@
  	
          reply(200);
        }
-@@ -1711,8 +1711,8 @@
+@@ -1765,8 +1765,8 @@
        reply(201);
  
        /* reset uid and gid to root */
@@ -97,7 +97,7 @@
  
        /* add entry to global logfile if required */
        /* ### todo: this part needs locking! ### */
-@@ -1919,8 +1919,8 @@
+@@ -1973,8 +1973,8 @@
        else
  	reply(530);
        
@@ -108,7 +108,7 @@
  	     
        continue;
      }
-@@ -2003,8 +2003,8 @@
+@@ -2057,8 +2057,8 @@
  	
        }
  
@@ -119,7 +119,7 @@
  	     
        continue;
      }
-@@ -2097,8 +2097,8 @@
+@@ -2151,8 +2151,8 @@
  	fclose(inf);
  	reply(250);
  	
@@ -130,7 +130,7 @@
  	
  	continue;
        }
-@@ -2129,8 +2129,8 @@
+@@ -2183,8 +2183,8 @@
  	
  	close(infd);
  	
@@ -141,7 +141,7 @@
  	
  	continue;
        }
-@@ -2524,8 +2524,8 @@
+@@ -2578,8 +2578,8 @@
      if (utmpfd<0) utmpfd=open("/var/adm/utmp",O_RDONLY);
      if (utmpfd<0) utmpfd=open("/var/run/utmp",O_RDONLY);
      if (utmpfd<0) {
@@ -152,7 +152,7 @@
        return(-1);
      }
  
-@@ -2562,8 +2562,8 @@
+@@ -2616,8 +2616,8 @@
    }
  
    /* reset uid to root */
@@ -163,7 +163,7 @@
  
    if (success>0) return(0); else return(-1);
  }
-@@ -2597,8 +2597,8 @@
+@@ -2651,8 +2651,8 @@
    /* change user */
    /* note: setuid does not work if euid>0 ! STUPID! */
    chdir(pwe->pw_dir);
@@ -174,7 +174,7 @@
    if (setgid(rgid)<0) exit(1);
    initgroups(pwe->pw_name,pwe->pw_gid);
    if (setuid(ruid)<0) exit(1);
-@@ -3592,13 +3592,13 @@
+@@ -3765,13 +3765,13 @@
      chown(userspool,pwe->pw_uid,pwe->pw_gid);
  
    /* change uid and get user name */
@@ -192,7 +192,7 @@
      chdir(cwd);
      return(-1);
    }
-@@ -3608,8 +3608,8 @@
+@@ -3781,8 +3781,8 @@
    id=spoolid(MAXLEN);
    if (id<=0 || id>MAXLEN) {
      fclose(inf);
@@ -203,7 +203,7 @@
      chdir(cwd);
      return(-1);
    }
-@@ -3620,8 +3620,8 @@
+@@ -3793,8 +3793,8 @@
  
    if (!(outf=rfopen(shfn,"w"))) {
      fclose(inf);
@@ -214,7 +214,7 @@
      chdir(cwd);
      return(-1);
    }
-@@ -3673,8 +3673,8 @@
+@@ -3846,8 +3846,8 @@
    utime(shfn,&utb);
    utime(sdfn,&utb);
  
@@ -225,7 +225,7 @@
    chdir(cwd);
    return(0);
  }
-@@ -3805,8 +3805,8 @@
+@@ -3978,8 +3978,8 @@
        mkdir(userconfig,S_IRUSR|S_IWUSR|S_IXUSR);
    }
    
@@ -236,16 +236,16 @@
  
    return(0);
  }
-@@ -3873,7 +3873,7 @@
+@@ -4046,7 +4046,7 @@
   * 
   * RETURN: log file descriptor
   * 
 - * Be sure to call this function with correct seteuid/setegid settings!
 + * Be sure to call this function with correct setuid/setgid settings!
   */
- int openlog(const char *log) {
+ int openuserlog(const char *log) {
    int 
-@@ -3883,8 +3883,8 @@
+@@ -4056,8 +4056,8 @@
    struct stat finfo;	/* information about a file */
  
    /* security check */
@@ -256,7 +256,7 @@
    
    /* create logfile if not there */
    close(open(log,O_CREAT|O_EXCL,S_IRUSR|S_IWUSR));
-@@ -4000,13 +4000,13 @@
+@@ -4173,13 +4173,13 @@
   * RETURN: nothing, but terminates program on error
   */
  void setreugid() {
@@ -274,7 +274,7 @@
  	   (unsigned int)ruid,strerror(errno));
      exit(1);
    }
-@@ -4042,8 +4042,8 @@
+@@ -4215,8 +4215,8 @@
    /* change user */
    /* note: setuid does not work if euid>0 ! STUPID! */
    chdir(pwe->pw_dir);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080509/16624110/attachment-0001.html


More information about the macports-changes mailing list