Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2001 04:36:16 +0200
From:      Jason Quigley <jasonq@mac.com>
To:        Pete Fritchman <petef@databits.net>, marcus@marcuscom.com
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: netatalk-1.5p6_1
Message-ID:  <78C7DFBB-8D38-11D5-AE67-000A277D821C@>
In-Reply-To: <20010809102648.B15206@databits.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Pete & Marcus!

Doh!!! Must remember to purge out the old ports directory!

Anyway, that compiles nicely. I have also included some patches 
pertaining to OS X (still get the horrible -43 error :-( ) which you may 
wish to include in the package. I just split these out of the unified 
diff in CVS. Can the ports build system accept unified diffs?



patch-aa:

*** etc/afpd/directory.c.orig   Wed Feb 28 10:53:24 2001
--- etc/afpd/directory.c        Wed Feb 28 10:53:24 2001
@@ -943,13 +943,13 @@
             break;

         case DIRPBIT_UID :
-           aint = st->st_uid;
+           aint = htonl(st->st_uid);
             memcpy( data, &aint, sizeof( aint ));
             data += sizeof( aint );
             break;

         case DIRPBIT_GID :
-           aint = st->st_gid;
+           aint = htonl(st->st_gid);
             memcpy( data, &aint, sizeof( aint ));
             data += sizeof( aint );
             break;
@@ -1188,7 +1188,7 @@
             memcpy( &aint, buf, sizeof(aint));
             buf += sizeof( aint );
             if ( (curdir->d_did == DIRDID_ROOT) &&
-                (setdeskowner( aint, -1 ) < 0)) {
+                (setdeskowner( ntohl(aint), -1 ) < 0)) {
                 switch ( errno ) {
                 case EPERM :
                 case EACCES :
@@ -1208,7 +1208,7 @@
                     break;
                 }
             }
-           if ( setdirowner( aint, -1, vol_noadouble(vol) ) < 0 ) {
+           if ( setdirowner( ntohl(aint), -1, vol_noadouble(vol) ) < 
0 ) {
                 switch ( errno ) {
                 case EPERM :
                 case EACCES :
@@ -1225,12 +1225,11 @@
                 }
             }
             break;
-
         case DIRPBIT_GID :
             memcpy( &aint, buf, sizeof( aint ));
             buf += sizeof( aint );
             if (curdir->d_did == DIRDID_ROOT)
-             setdeskowner( -1, aint );
+             setdeskowner( -1, ntohl(aint) );

  #if 0       /* don't error if we can't set the desktop owner. */
                 switch ( errno ) {
@@ -1253,7 +1252,7 @@
                 }
  #endif

-           if ( setdirowner( -1, aint, vol_noadouble(vol) ) < 0 ) {
+           if ( setdirowner( -1, ntohl(aint), vol_noadouble(vol) ) < 
0 ) {
                 switch ( errno ) {
                 case EPERM :
                 case EACCES :




patch-ab:

*** etc/afpd/messages.c.orig   Sun Apr 15 21:14:11 2001
--- etc/afpd/messages.c Sun Apr  1 11:11:38 2001
@@ -115,9 +115,6 @@
      return AFPERR_BITMAP;
    }

-  if(strlen(message)==0)
-    return AFP_OK;
-
    /* output format:
     * message type:   2 bytes
     * bitmap:         2 bytes



patch-ac:

*** etc/uams/uams_dhx_pam.c.orig   Sun Apr 15 19:15:08 2001
--- etc/uams/uams_dhx_pam.c     Tue Feb 27 11:07:43 2001
@@ -19,6 +19,7 @@
  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
  #endif /* HAVE_UNISTD_H */
+#include <errno.h>

  #include <security/pam_appl.h>

@@ -78,6 +79,8 @@

  #define COPY_STRING(s) (s) ? strdup(s) : NULL

+  errno = 0;
+
    if (num_msg < 1) {
      /* Log Entry */
             syslog(LOG_INFO, "uams_dhx_pam.c :PAM DHX Conversation 
Err -- %m");
@@ -454,7 +457,7 @@
      memset(rbuf, 0, PASSWDLEN); /* zero out the password */
      *uam_pwd = dhxpwd;
      /* Log Entry */
-           syslog(LOG_INFO, "uams_dhx_pam.c :PAM: PAM Auth OK!: %s -- 
%m", AFP_OK);
+           syslog(LOG_INFO, "uams_dhx_pam.c :PAM: PAM Auth OK!");
      /* Log Entry */
      return AFP_OK;



Cheers,
Jason.


On Thursday, August 9, 2001, at 04:26 PM, Pete Fritchman wrote:

> ++ 09/08/01 12:05 +0200 - Jason Quigley:
> | When I try to make netatalk, I get the prompts/failures detailed 
> below.
> | patch-aa seems like it wants to patch the Makefile, which doesn't yet
> | exist as configure hasn't been run. What needs to be done to make the
> | port work cleanly?
> |
> | Thanks,
> | Jason.
> |
>
> Well, you have the latest Makefile, but however you updated your ports
> tree didn't remove files/patch-aa (and whatever else it might have
> needed to).  For the current patches, see
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/netatalk/files/.
>
> | [vulcan:ports/net/netatalk] jason# make
> | ===>  Extracting for netatalk-1.5p6_1
>
> [ this is the current version/revision ]
>
> |  >> Patch patch-aa failed to apply cleanly.
>
> [ patch-aa no longer exists though ]
>
>
> -pete
>
> --
> Pete Fritchman <petef@databits.net>
> Databits Network Services, Inc. <http://databits.net>;
> finger petef@databits.net for PGP key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78C7DFBB-8D38-11D5-AE67-000A277D821C>