Skip site navigation (1)Skip section navigation (2)
Date:      30 Oct 1997 20:33:38 -0000
From:      vanilla@MinJe.com.TW
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/4900: New port - zh-samba
Message-ID:  <19971030203338.2285.qmail@MinJe.com.TW>
Resent-Message-ID: <199710302050.MAA09816@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4900
>Category:       ports
>Synopsis:       New port - zh-samba 1.9.17p4
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 30 12:50:01 PST 1997
>Last-Modified:
>Originator:     Vanill I. Shu
>Organization:
Cray running FreeBSD
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	FreeBSD 3.0c

>Description:
	
	Here is New ports,
	samba with BIG5(chinese) patch,
	as you know, most port code stolen from japanese/samba,
	samba-des will coming soon

>How-To-Repeat:

>Fix:
	
diff -ruN samba.orig/Makefile samba/Makefile
--- samba.orig/Makefile	Thu Jan  1 08:00:00 1970
+++ samba/Makefile	Fri Oct 31 02:44:52 1997
@@ -0,0 +1,60 @@
+# New ports collection makefile for:	zh-samba
+# Version required:	1.9.17p4
+# Date created:		31 Oct 1997
+# Whom:			Vanilla I. Shu <vanilla@MinJe.com.TW>
+#
+# $Id$
+#
+
+DISTNAME=	samba-1.9.17p4
+PKGNAME=	zh-samba-1.9.17.4
+CATEGORIES=	chinese net
+MASTER_SITES=	ftp://samba.anu.edu.au/pub/samba/
+
+MAINTAINER=	vanilla@MinJe.com.TW
+
+WRKSRC=		${WRKDIR}/${DISTNAME}/source
+MAN1=		smbstatus.1 smbclient.1 smbrun.1 smbtar.1 testparm.1 testprns.1
+MAN5=		smb.conf.5
+MAN7=		samba.7
+MAN8=		smbd.8 nmbd.8 smbpasswd.8
+
+STARTUP_SCRIPT=	${PREFIX}/etc/rc.d/samba.sh.sample
+SAMPLE_CONFIG=	${PREFIX}/etc/smb.conf.sample
+SAMBA_SPOOL=	/var/spool/samba
+XSAMBA_SPOOL=	\/var\/spool\/samba
+SAMBA_LOGDIR=	/var/log
+XSAMBA_LOGDIR=	\/var\/log
+
+post-install:
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${PREFIX}/share/doc/samba/faq
+	for i in ${WRKDIR}/${DISTNAME}/docs/*.txt ${WRKDIR}/${DISTNAME}/docs/README* ; do \
+		${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \
+	done
+	for i in ${WRKDIR}/${DISTNAME}/docs/faq/* ; do \
+		${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq ; \
+	done
+.endif
+	@if [ ! -f ${STARTUP_SCRIPT} ]; then				\
+		${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ;	\
+		${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT} ;			\
+		${ECHO} 'smbd=${PREFIX}/sbin/smbd' >> ${STARTUP_SCRIPT} ;\
+		${ECHO} 'nmbd=${PREFIX}/sbin/nmbd' >> ${STARTUP_SCRIPT} ;\
+		${ECHO} 'if [ -f $$smbd ]; then' >> ${STARTUP_SCRIPT} ;	\
+		${ECHO} "	${ECHO} -n ' Samba'" >> ${STARTUP_SCRIPT} ;\
+		${ECHO} '	$$smbd -D' >> ${STARTUP_SCRIPT} ;	\
+		${ECHO} '	$$nmbd -D' >> ${STARTUP_SCRIPT} ;	\
+		${ECHO} "fi" >> ${STARTUP_SCRIPT} ;			\
+		chmod 755 ${STARTUP_SCRIPT} ;				\
+		chown bin.bin ${STARTUP_SCRIPT};			\
+	fi
+	@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && chmod 1777 ${SAMBA_SPOOL}
+	@if [ ! -f ${SAMPLE_CONFIG} ]; then				\
+		${SED} -e 's/__SAMBA_SPOOL__/${XSAMBA_SPOOL}/'		\
+		    -e 's/__LOGDIR__/${XSAMBA_LOGDIR}/' 		\
+			${FILESDIR}/smb.conf.sample			\
+			> ${SAMPLE_CONFIG} ;				\
+	fi
+
+.include <bsd.port.mk>
diff -ruN samba.orig/files/md5 samba/files/md5
--- samba.orig/files/md5	Thu Jan  1 08:00:00 1970
+++ samba/files/md5	Sun Oct 26 10:20:42 1997
@@ -0,0 +1 @@
+MD5 (samba-1.9.17p4.tar.gz) = dd8a65242a2bb969a9a5f3d7095df602
diff -ruN samba.orig/files/smb.conf.sample samba/files/smb.conf.sample
--- samba.orig/files/smb.conf.sample	Thu Jan  1 08:00:00 1970
+++ samba/files/smb.conf.sample	Wed Oct 15 10:22:49 1997
@@ -0,0 +1,181 @@
+; Configuration file for smbd.
+; ============================================================================
+; For the format of this file and comprehensive descriptions of all the
+; configuration option, please refer to the man page for smb.conf(5).
+;
+; The following configuration should suit most systems for basic usage and 
+; initial testing. It gives all clients access to their home directories and
+; allows access to all printers specified in /etc/printcap.
+;
+; Things you need to check:
+; --------------------------
+;
+; 1: Check the path to your printcap file. If you are using a system that does 
+;    not use printcap (eg., Solaris), create a file containing lines of the 
+;    form
+;
+;       printername|printername|printername|
+;
+;    where each "printername" is the name of a printer you want to provide 
+;    access to. Then alter the "printcap =" entry to point to the new file.
+;
+;    If using Solaris, the following command will generate a suitable printcap
+;    file:
+;
+;       lpc status | grep ":" | sed s/:/\|/ > myprintcap
+;
+; 2: Make sure the "print command" entry is correct for your system. This 
+;    command should submit a file (represented by %s) to a printer 
+;    (represented by %p) for printing and should REMOVE the file after 
+;    printing.
+;  
+;    One most systems the default will be OK, as long as you get "printing ="
+;    right.
+;    
+;    It is also a good idea to use an absolute path in the print command
+;    as there is no guarantee the search path will be set correctly.
+;
+; 3: Make sure the "printing =" option is set correctly for your system.
+;    Possible values are "sysv", "bsd" or "aix".
+;
+; 4: Make sure the "lpq command" entry is correct for your system. The default
+;    may not work for you.
+;
+; 5: Make sure that the user specified in "guest account" exists. Typically
+;    this will be a user that cannot log in and has minimal privileges.
+;    Often the "nobody" account doesn't work (very system dependant).
+;
+; 6: You should consider the "security =" option. See a full description
+;    in the main documentation and the smb.conf(5) manual page
+;
+; 7: Look at the "hosts allow" option, unless you want everyone on the internet
+;    to be able to access your files.
+;
+[global]
+   comment = FreeBSD - Samba %v
+   workgroup = WORKGROUP
+   printing = bsd
+   printcap name = /etc/printcap
+   load printers = yes
+   guest account = nobody
+;  This next option sets a separate log file for each client. Remove
+;  it if you want a combined log file.
+   log file = __LOGDIR__/sambalog.%m
+   dont descend = /dev,/proc,/root,/stand
+
+;  You will need a world readable lock directory and "share modes=yes"
+;  if you want to support the file sharing modes for multiple users
+;  of the same files
+;  lock directory = /usr/local/samba/var/locks
+;  share modes = yes
+
+   map archive = no
+   status = yes
+   public = yes
+   read only = no
+   preserve case = yes
+   strip dot = yes
+   security = share
+   guest ok = no
+   coding system = cap
+
+[homes]
+   comment = Home Directories
+   browseable = no
+   read only = no
+   create mode = 0750
+
+[printers]
+   comment = All Printers
+   path = __SAMBA_SPOOL__
+   browseable = no
+   printable = yes
+   public = no
+   writable = no
+   create mode = 0700
+
+; you might also want this one, notice that it is read only so as not to give
+; people without an account write access. 
+;
+; [tmp]
+;   comment = Temporary file space
+;   path = /tmp
+;   read only = yes
+;   public = yes
+
+;
+; Other examples. 
+;
+; A private printer, usable only by fred. Spool data will be placed in fred's
+; home directory. Note that fred must have write access to the spool directory,
+; wherever it is.
+;[fredsprn]
+;   comment = Fred's Printer
+;   valid users = fred
+;   path = /homes/fred
+;   printer = freds_printer
+;   public = no
+;   writable = no
+;   printable = yes
+;
+; A private directory, usable only by fred. Note that fred requires write
+; access to the directory.
+;[fredsdir]
+;   comment = Fred's Service
+;   path = /usr/somewhere/private
+;   valid users = fred
+;   public = no
+;   writable = yes
+;   printable = no
+;
+; A publicly accessible directory, but read only, except for people in
+; the staff group
+;[public]
+;   comment = Public Stuff
+;   path = /usr/somewhere/public
+;   public = yes
+;   writable = no
+;   printable = no
+;   write list = @staff
+;
+; a service which has a different directory for each machine that connects
+; this allows you to tailor configurations to incoming machines. You could
+; also use the %u option to tailor it by user name.
+; The %m gets replaced with the machine name that is connecting.
+;[pchome]
+;  comment = PC Directories
+;  path = /usr/pc/%m
+;  public = no
+;  writeable = yes
+;
+;
+; A publicly accessible directory, read/write to all users. Note that all files
+; created in the directory by users will be owned by the default user, so
+; any user with access can delete any other user's files. Obviously this
+; directory must be writable by the default user. Another user could of course
+; be specified, in which case all files would be owned by that user instead.
+;[public]
+;   path = /usr/somewhere/else/public
+;   public = yes
+;   only guest = yes
+;   writable = yes
+;   printable = no
+;
+;
+; The following two entries demonstrate how to share a directory so that two
+; users can place files there that will be owned by the specific users. In this
+; setup, the directory should be writable by both users and should have the
+; sticky bit set on it to prevent abuse. Obviously this could be extended to
+; as many users as required.
+;[myshare]
+;   comment = Mary's and Fred's stuff
+;   path = /usr/somewhere/shared
+;   valid users = mary fred
+;   public = no
+;   writable = yes
+;   printable = no
+;   create mask = 0765
+
+
+
+
diff -ruN samba.orig/patches/patch-aa samba/patches/patch-aa
--- samba.orig/patches/patch-aa	Thu Jan  1 08:00:00 1970
+++ samba/patches/patch-aa	Fri Oct 31 03:27:38 1997
@@ -0,0 +1,70 @@
+--- Makefile.orig	Sat Sep 27 00:04:52 1997
++++ Makefile	Wed Oct 15 17:09:58 1997
+@@ -5,11 +5,11 @@
+ ###########################################################################
+ 
+ # The base directory for all samba files
+-BASEDIR = /usr/local/samba
++BASEDIR = $(PREFIX)
+ 
+ # The base manpages directory to put the man pages in
+ # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
+-MANDIR = /usr/local/man
++MANDIR = $(PREFIX)/man
+ 
+ # The directories to put things in. If you use multiple
+ # architectures or share the samba binaries across NFS then
+@@ -18,9 +18,9 @@
+ #       normally only applies to nmbd and smbd
+ #       SBINDIR implies a secure binary directory
+ BINDIR = $(BASEDIR)/bin
+-SBINDIR = $(BASEDIR)/bin
+-LIBDIR = $(BASEDIR)/lib
+-VARDIR = $(BASEDIR)/var
++SBINDIR = $(BASEDIR)/sbin
++ETCDIR = $(BASEDIR)/etc
++LOGDIR = /var/log
+ 
+ # The permissions to give the executables
+ INSTALLPERMS = 0755
+@@ -45,13 +45,13 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
+-CONFIGFILE = $(LIBDIR)/smb.conf
+-LMHOSTSFILE = $(LIBDIR)/lmhosts
++SMBLOGFILE = $(LOGDIR)/smb
++NMBLOGFILE = $(LOGDIR)/nmb
++CONFIGFILE = $(ETCDIR)/smb.conf
++LMHOSTSFILE = $(ETCDIR)/lmhosts
+ 
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = /var/spool/lock
+ 
+ # set this to the default group you want your machine to appear in
+ # for browsing. This can also be set in nmbd (see nmbd(8))
+@@ -383,8 +383,8 @@
+ # This is for FreeBSD
+ # contributed by kuku@acds.physik.rwth-aachen.de
+ # NOTE: You may need to add -DBSD44 if you have password problems
+-# FLAGSM = -DFreeBSD -DFAST_SHARE_MODES
+-# LIBSM = -lcrypt 
++FLAGSM = -DFreeBSD -DFAST_SHARE_MODES -DBIG5
++LIBSM = -lcrypt 
+ 
+ 
+ # This is for NEXTSTEP Release 2.X
+@@ -684,8 +684,8 @@
+ install: installbin installman installscripts
+ 
+ installbin: all
+-	@$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
+-	@$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
++	@$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(ETCDIR) $(LOGDIR) $(SPROGS)
++	@$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(ETCDIR) $(LOGDIR) $(PROGS)
+ 
+ installscripts:
+ 	@$(SHELL) $(srcdir)installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
diff -ruN samba.orig/patches/patch-ab samba/patches/patch-ab
--- samba.orig/patches/patch-ab	Thu Jan  1 08:00:00 1970
+++ samba/patches/patch-ab	Fri Oct 31 03:23:45 1997
@@ -0,0 +1,394 @@
+--- client.c.orig	Sat Sep  6 05:52:12 1997
++++ client.c	Fri Oct  3 00:12:33 1997
+@@ -3040,8 +3040,10 @@
+   /* send a session request (RFC 8002) */
+ 
+   strcpy(dest,desthost);
++#ifndef BIG5
+   p = strchr(dest,'.');
+   if (p) *p = 0;
++#endif
+ 
+   /* put in the destination name */
+   p = outbuf+len;
+--- clitar.c.orig	Sat Sep  6 04:53:47 1997
++++ clitar.c	Fri Oct  3 00:12:34 1997
+@@ -325,7 +325,20 @@
+     }
+   }
+ #else
++#ifdef BIG5
++  while (l > 0) {
++    if (is_shift_big5 (*fp)) {
++      *tptr++ = *fp++;
++      *tptr++ = *fp++;
++      l -= 2;
++    } else {
++      *tptr++ = *fp++;
++      l--;
++    }
++  }
++#else
+   while (l--) { *tptr=(*fp == '\\') ? '/' : *fp; tptr++; fp++; }
++#endif /* BIG5 */
+ #endif
+ }
+ 
+@@ -1222,7 +1235,20 @@
+     }
+   }
+ #else
++#ifdef BIG5
++  while (l > 0) {
++    if (is_shift_big5 (*fp)) {
++      *tptr++ = *fp++;
++      *tptr++ = *fp++;
++      l -= 2;
++    } else {
++      *tptr++ = *fp++;
++      l--;
++    }
++  }
++#else
+   while (l--) { *tptr=(*fp == '/') ? '\\' : *fp; tptr++; fp++; }
++#endif /* BIG5 */
+ #endif
+ }
+ 
+--- kanji.h.orig	Fri Aug 22 12:35:21 1997
++++ kanji.h	Fri Oct  3 00:12:34 1997
+@@ -145,3 +145,8 @@
+ #endif /* not KANJI */
+ 
+ #endif /* _KANJI_H_ */
++
++#ifdef BIG5
++#define	is_shift_big5(c) \
++	(0x80 <= ((unsigned char) (c)))
++#endif
+--- mangle.c.orig	Fri Sep 26 20:44:19 1997
++++ mangle.c	Fri Oct  3 00:12:34 1997
+@@ -140,12 +140,28 @@
+ 	  }
+       }      
+ #else
++#ifdef BIG5
++    dot_pos = 0;
++    while (*p)
++      {
++	  if (is_shift_big5 (*p)) {
++	      p += 2;
++	  } else {
++	      if (*p == '.' && !dot_pos)
++		  dot_pos = (char *) p;
++	      if (!isdoschar(*p))
++		  return(False);
++	      p++;
++	  }
++      }      
++#else
+     while (*p)
+       {
+ 	if (!isdoschar(*p))
+ 	  return(False);
+ 	p++;
+       }      
++#endif /* BIG5 */
+ #endif /* KANJI */
+   }
+ 
+@@ -532,9 +548,31 @@
+ 		  p++;
+ 		}
+ #else
++#ifdef BIG5
++	      if (is_shift_big5 (*p))
++		{
++		  if (extlen < 2)
++		    {
++		      extension[extlen++] = p[0];
++		      extension[extlen++] = p[1];
++		    }
++		  else 
++		    {
++		      extension[extlen++] = base36 (((unsigned char) *p) % 36);
++		    }
++		  p += 2;
++		}
++	      else 
++		{
++		  if (isdoschar (*p) && *p != '.')
++		    extension[extlen++] = p[0];
++		  p++;
++		}
++#else
+ 	      if (isdoschar(*p) && *p != '.')
+ 		extension[extlen++] = *p;
+ 	      p++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+ 	    }
+ 	  extension[extlen] = 0;
+@@ -571,9 +609,31 @@
+ 	  p++;
+ 	}
+ #else
++#ifdef BIG5
++      if (is_shift_big5 (*p))
++	{
++	  if (baselen < 4)
++	    {
++	      base[baselen++] = p[0];
++	      base[baselen++] = p[1];
++	    }
++	  else 
++	    {
++	      base[baselen++] = base36 (((unsigned char) *p) % 36);
++	    }
++	  p += 2;
++	}
++      else 
++	{
++	  if (isdoschar (*p) && *p != '.')
++	    base[baselen++] = p[0];
++	  p++;
++	}
++#else
+       if (isdoschar(*p) && *p != '.')
+ 	base[baselen++] = *p;
+       p++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+   base[baselen] = 0;
+@@ -621,8 +681,20 @@
+     }
+   }
+ #else
++#ifdef BIG5
++  for (s = (unsigned char *)name; *s;) {
++    if (is_shift_big5 (*s)) {
++      s += 2;
++    } else if (illegal[*s]) {
++      return(True);
++    } else {
++      s++;
++    }
++  }
++#else
+   for (s = (unsigned char *)name;*s;s++)
+     if (illegal[*s]) return(True);
++#endif /* BIG5 */
+ #endif
+ 
+ 
+--- util.c.orig	Fri Sep 26 20:44:20 1997
++++ util.c	Fri Oct  3 00:29:18 1997
+@@ -704,8 +704,19 @@
+ 
+   *out++ = 32;
+   for (i=0;i<16;i++) {
++#ifndef BIG5
+     char c = toupper(in[i]);
+-    out[i*2] = (c>>4) + 'A';
++#else
++    char c = in[i];
++    if(is_shift_big5(c)) {
++      out[i*2] = ((c>>4) & 0xF) + 'A';
++      out[i*2+1] = (c & 0xF) + 'A';
++      c=in[++i];
++    } else {
++      c = toupper(c);
++    }
++#endif
++    out[i*2] = ((c>>4) & 0xF) + 'A';
+     out[i*2+1] = (c & 0xF) + 'A';
+   }
+   out[32]=0;
+@@ -853,12 +864,42 @@
+ 	}
+   }
+ #else /* KANJI */
++#ifdef BIG5
++  int diff;
++  for (;;) {
++    if (!*s || !*t)
++	  return toupper (*s) - toupper (*t);
++    else if (is_shift_big5(*s) && is_shift_big5(*t)) {
++      diff = ((int) (unsigned char) *s) - ((int) (unsigned char) *t);
++      if (diff)
++        return diff;
++      diff = ((int) (unsigned char) *(s+1)) - ((int) (unsigned char) *(t+1));
++      if (diff)
++        return diff;
++      s += 2;
++      t += 2;
++    }
++    else if (is_shift_big5 (*s))
++          return 1;
++    else if (is_shift_big5 (*t))
++          return -1;
++    else
++    {
++      diff = toupper (*s) - toupper (*t);
++      if (diff)
++        return diff;
++      s++;
++      t++;
++    }
++  }
++#else
+   while (*s && *t && toupper(*s) == toupper(*t))
+   {
+     s++; t++;
+   }
+ 
+   return(toupper(*s) - toupper(*t));
++#endif /* BIG5 */
+ #endif /* KANJI */
+ }
+ 
+@@ -915,6 +956,39 @@
+   }
+   return 0;
+ #else /* KANJI */
++#ifdef BIG5
++  int diff;
++  for(;n>0;) {
++    if (!*s || !*t)
++	  return toupper (*s) - toupper (*t);
++    if (is_shift_big5 (*s) && is_shift_big5 (*t))
++    {
++      diff = ((int) (unsigned char) *s) - ((int) (unsigned char) *t);
++      if (diff)
++ 	return diff;
++      diff = ((int) (unsigned char) *(s+1)) - ((int) (unsigned char) *(t+1));
++      if (diff)
++	return diff;
++      s += 2;
++      t += 2;
++      n -= 2;
++    }
++    else if (is_shift_big5(*s))
++      return 1;
++    else if (is_shift_big5(*t))
++      return -1;
++    else 
++    {
++      diff = toupper (*s) - toupper (*t);
++      if (diff)
++        return diff;
++      s++;
++      t++;
++      n--;
++    }
++  }
++  return 0;
++#else
+   while (n-- && *s && *t && toupper(*s) == toupper(*t))
+   {
+     s++; t++;
+@@ -925,6 +999,7 @@
+ 
+   /* identical up to where we run out of chars, and strings are same length */
+   return(0);
++#endif /* BIG5 */
+ #endif /* KANJI */
+ }
+ 
+@@ -984,9 +1059,19 @@
+ 	    s++;
+ 	}
+ #else /* KANJI */
++#ifdef BIG5
++	if (is_shift_big5 (*s)) {
++	    s += 2;
++	} else {
++	    if (isupper(*s))
++		*s = tolower(*s);
++	    s++;
++	}
++#else /* KANJI */
+       if (isupper(*s))
+ 	  *s = tolower(*s);
+       s++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+ }
+@@ -1013,9 +1098,19 @@
+ 	    s++;
+ 	}
+ #else /* KANJI */
++#ifdef BIG5
++	if (is_shift_big5 (*s)) {
++	    s += 2;
++	} else {
++	    if (islower(*s))
++		*s = toupper(*s);
++	    s++;
++	}
++#else
+       if (islower(*s))
+ 	*s = toupper(*s);
+       s++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+ }
+@@ -1062,9 +1157,19 @@
+ 	    s++;
+ 	}
+ #else /* KANJI */
++#ifdef BIG5
++	if (is_shift_big5 (*s)) {
++	    s += 2;
++	} else {
++	    if (oldc == *s)
++		*s = newc;
++	    s++;
++	}
++#else
+       if (oldc == *s)
+ 	*s = newc;
+       s++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+ }
+@@ -1700,8 +1805,17 @@
+ 	    s++;
+ 	}
+ #else /* KANJI */
++#ifdef BIG5
++	if (is_shift_big5 (*s)) {
++	    s += 2;
++	} else {
++	    if (isupper(*s)) return(True);
++	    s++;
++	}
++#else
+       if (isupper(*s)) return(True);
+       s++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+   return(False);
+@@ -1727,8 +1841,17 @@
+ 	    s++;
+ 	}
+ #else /* KANJI */
++#ifdef BIG5
++	if (is_shift_big5 (*s)) {
++	    s += 2;
++	} else {
++	    if (islower(*s)) return(True);
++	    s++;
++	}
++#else
+       if (islower(*s)) return(True);
+       s++;
++#endif /* BIG5 */
+ #endif /* KANJI */
+     }
+   return(False);
diff -ruN samba.orig/pkg/COMMENT samba/pkg/COMMENT
--- samba.orig/pkg/COMMENT	Thu Jan  1 08:00:00 1970
+++ samba/pkg/COMMENT	Fri Oct 31 04:31:39 1997
@@ -0,0 +1 @@
+A LanManager(R)-compatible server suite for Unix (config w/ Chinese filename)
diff -ruN samba.orig/pkg/DESCR samba/pkg/DESCR
--- samba.orig/pkg/DESCR	Thu Jan  1 08:00:00 1970
+++ samba/pkg/DESCR	Wed Oct 15 10:22:50 1997
@@ -0,0 +1,16 @@
+The Samba suite is a set of programs which run under the FreeBSD
+operating system. These programs deliver most of the important
+functionality of a Microsoft Lan Manager server. That is, they support
+remote access to FreeBSD filespace and FreeBSD printers from Lan Manager
+compatible clients. In practical terms, this means that such clients
+can connect to and use FreeBSD filespace as if it was a local disk drive,
+or FreeBSD printers as if they were local printers.
+
+Some of the most popular Lan Manager compatible clients include Lan
+Manager itself, Windows for Workgroups, OS/2 and Windows NT.
+
+Please note that if you want to use Windows NT 4.0 + Service Pack 3
+or above as clients, you have to use -des version of samba ports.
+-des version is not redistributable as a binary package because of 
+the export control of US.  Please type make install at net/samba-des 
+in ports collection.
diff -ruN samba.orig/pkg/PLIST samba/pkg/PLIST
--- samba.orig/pkg/PLIST	Thu Jan  1 08:00:00 1970
+++ samba/pkg/PLIST	Wed Oct 15 17:03:00 1997
@@ -0,0 +1,75 @@
+bin/smbclient
+bin/smbrun
+bin/smbstatus
+bin/smbpasswd
+bin/nmblookup
+bin/smbtar
+bin/addtosmbpass
+bin/testparm
+bin/testprns
+sbin/smbd
+sbin/nmbd
+man/man1/smbstatus.1.gz
+man/man1/smbclient.1.gz
+man/man1/smbrun.1.gz
+man/man1/smbtar.1.gz
+man/man1/testparm.1.gz
+man/man1/testprns.1.gz
+man/man5/smb.conf.5.gz
+man/man7/samba.7.gz
+man/man8/smbd.8.gz
+man/man8/nmbd.8.gz
+man/man8/smbpasswd.8.gz
+share/doc/samba/faq/Samba-Server-FAQ-1.html
+share/doc/samba/faq/Samba-Server-FAQ-2.html
+share/doc/samba/faq/Samba-Server-FAQ.html
+share/doc/samba/faq/Samba-Server-FAQ.sgml
+share/doc/samba/faq/Samba-meta-FAQ-1.html
+share/doc/samba/faq/Samba-meta-FAQ-2.html
+share/doc/samba/faq/Samba-meta-FAQ-3.html
+share/doc/samba/faq/Samba-meta-FAQ-4.html
+share/doc/samba/faq/Samba-meta-FAQ-5.html
+share/doc/samba/faq/Samba-meta-FAQ-6.html
+share/doc/samba/faq/Samba-meta-FAQ.html
+share/doc/samba/faq/Samba-meta-FAQ.sgml
+share/doc/samba/faq/Samba-meta-FAQ.txt
+share/doc/samba/faq/sambafaq-1.html
+share/doc/samba/faq/sambafaq-2.html
+share/doc/samba/faq/sambafaq-3.html
+share/doc/samba/faq/sambafaq-4.html
+share/doc/samba/faq/sambafaq-5.html
+share/doc/samba/faq/sambafaq.html
+share/doc/samba/faq/sambafaq.sgml
+share/doc/samba/faq/sambafaq.txt
+share/doc/samba/Application_Serving.txt
+share/doc/samba/BROWSING.txt
+share/doc/samba/BUGS.txt
+share/doc/samba/DIAGNOSIS.txt
+share/doc/samba/DNIX.txt
+share/doc/samba/DOMAIN.txt
+share/doc/samba/DOMAIN_CONTROL.txt
+share/doc/samba/ENCRYPTION.txt
+share/doc/samba/Faxing.txt
+share/doc/samba/GOTCHAS.txt
+share/doc/samba/HINTS.txt
+share/doc/samba/MIRRORS.txt
+share/doc/samba/NetBIOS.txt
+share/doc/samba/OS2-Client-HOWTO.txt
+share/doc/samba/Passwords.txt
+share/doc/samba/Printing.txt
+share/doc/samba/SCO.txt
+share/doc/samba/Speed.txt
+share/doc/samba/Support.txt
+share/doc/samba/Tracing.txt
+share/doc/samba/UNIX-SMB.txt
+share/doc/samba/Win95.txt
+share/doc/samba/UNIX_INSTALL.txt
+share/doc/samba/WinNT.txt
+share/doc/samba/security_level.txt
+share/doc/samba/README.DCEDFS
+share/doc/samba/README.jis
+share/doc/samba/README.sambatar
+etc/rc.d/samba.sh.sample
+etc/smb.conf.sample
+@dirrm share/doc/samba/faq
+@dirrm share/doc/samba
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971030203338.2285.qmail>