Commit graph

260 commits

Author SHA1 Message Date
jlam
5a3003c385 When built with PAM support, add USE_PAM to BUILD_DEFS. 2002-01-30 03:36:09 +00:00
jlam
6bc0c4b062 Don't hardcode the location of the other rc.d scripts as @RCD_SCRIPTS_DIR@
as they might not be there depending on whether INSTALL_RCD_SCRIPTS is set
in /etc/mk.conf when the package is built.  Instead, assume that the other
rc.d scripts are in the same place as this "meta" script and locate them
using "dirname $0".  Problem noted by Stoned Elipot <seb@netbsd.org> in
private email.
2002-01-10 12:01:37 +00:00
jlam
9efcd64075 Since print/cups conflicts with another popular print package,
print/lprng, we make a new variable USE_CUPS that is used by packages to
determine whether depend on print/cups and to compile in support for CUPS.
USE_CUPS may be either "YES" or undefined.  Deprecate SAMBA_WITH_CUPS as
its purpose is superseded by USE_CUPS.  Convert net/samba and net/samba20
to use USE_CUPS and make x11/kdelibs2 respect USE_CUPS.
2001-12-18 20:22:59 +00:00
jlam
55ffb37406 bsd.pkg.install.mk calls the INSTALL script at the right times
automatically, so no need to do it ourselves.
2001-12-02 06:56:38 +00:00
taca
ee52f3cca4 Replace remained SAMBA_SHARE to SAMBA_DATA. It was changed in revision
1.69, but some were remained.

Fix the problem that some data files are installed into root directory,
noted from Lennart Augustsson <lennart@augustsson.net> private mail.
2001-11-26 23:55:06 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
lukem
085432311f no need to PROVIDE anything since this isn't part of the dependency graph 2001-11-22 00:55:51 +00:00
jlam
892b322f45 These rc.d scripts are copied to ${RCD_SCRIPTS_DIR} == /etc/rc.d, so change
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
2001-11-21 21:38:50 +00:00
jlam
38d6066075 Cosmetic changes. 2001-11-21 17:16:05 +00:00
jlam
41ecc7fe8b Remove unneeded DEINSTALL script as we use the general one. 2001-11-21 17:14:53 +00:00
jlam
f5d54c7eaa Remove extra blank line. 2001-11-21 17:13:38 +00:00
jlam
e9cad20f1e dd the new rc.d scripts to the PLIST. 2001-11-21 17:12:54 +00:00
jlam
16bb385d16 Use the general INSTALL/DEINSTALL scripts instead of the homegrown ones.
Also split the one rc.d script into one for each daemon and one admin
script (idea from Luke Mewburn <lukem@wasabisystems.com>).
2001-11-21 16:44:17 +00:00
taca
415af3beb6 Remove duplicated line. 2001-11-15 15:24:39 +00:00
abs
15400ec503 Revert last (thanks to Stoned for the clue-by-four). 2001-11-01 15:18:52 +00:00
abs
15374c7314 Work with new locations of INSTALL and DEINSTALL 2001-11-01 14:46:10 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
martti
2b5f91777b Updated samba to the latest stable version (2.2.2). A complete list of changes
is available at http://www.samba.org/samba/whatsnew/samba-2.2.2.html
2001-10-15 08:50:51 +00:00
jlam
a731badbdc Make "samba reload" actually kick smbd like it's supposed to. Thanks
again to Luke Mewburn <lukem@wasabisystems.com> for pointing this out.
2001-08-23 04:15:10 +00:00
jlam
bf6b5a7711 Consolidate nmbd and smbd rc.d scripts into one "samba" script. Kindly
provided by Luke Mewburn <lukem@wasabisystems.com> with modifications by
me to allow running on older NetBSD systems (so any errors in the script
are mine alone).
2001-08-22 15:42:17 +00:00
jlam
55d8038c48 smbd responds to SIGHUP by reloading its configuration file, so add
"reload" to the rc.d command listing.  Noted by Luke Mewburn
<lukem@wasabisystems.com>.
2001-08-20 14:01:46 +00:00
jlam
09d63bb5f1 Undo changes from previous patch from pkg/12921. The rc.d-style startup
scripts need for the nmbd and smbd programs to always start in daemom-mode,
which is why the "-D" flag was set via command_args in the scripts
themselves.  Any additional options should be passed in through the
{nmbd,smbd}_flags settings in /etc/rc.conf.  Add comments to reflect this
in the scripts.

The error reported by the PR author is most likely due to either installing
these scripts with ".sh" extensions, which is not how these are installed
into the ${PREFIX}/etc/rc.d and is definitely wrong, or in directly
sourcing these files from an rc.local script, which is again, definitely
wrong.
2001-08-17 16:08:20 +00:00
wiz
d4da48b3d9 Standardize format. 2001-07-20 12:13:48 +00:00
jlam
70cf5e59c3 Don't use find ... -print0 | xargs -0 ... as -0 isn't an acceptable option
on Solaris' xargs.
2001-07-14 12:37:45 +00:00
taca
db2fe9636b Update samba to 2.2.1a.
WHATS NEW IN Samba 2.2.1a:  11th July 2001
              ==========================================

This is the latest stable release of Samba. This is the version that all
production Samba servers should be running for all current bug-fixes.

This is a minor bugfix release for 2.2.1, *NOT* security related.

1). 2.2.1 had a bug where using smbpasswd -m to add a Windows NT or
Windows2000 machine into a Samba hosted PDC would fail due to our
stricter user name checking. We were disallowing user names
containing '$', which is needed when using smbpasswd to add a
machine into a domain. Automatically adding machines (using the
native Windows tools) into a Samba domain worked correctly.

2.2.1a fixes this single problem.

New/Changed parameters in 2.2.1
-------------------------------

Added parameters.
-----------------

obey pam restrictions

When Samba is configured to use PAM, turns on or off Samba checking
the PAM account restrictions. Defaults to off.

pam password change

When Samba is configured to use PAM, turns on or off Samba passing
the password changes to PAM. Defaults to off.

large readwrite

New option to allow new Windows 2000 large file (64k) streaming
read/write options. Needs a 64 bit underlying operating system
(for Linux use kernel 2.4 with glibc 2.2 or above). Can improve performance
by 10% with Windows 2000 clients. Defaults to off. Not as tested
as some other Samba code paths.

hide unreadable

Prevents clients from seeing the existance of files that cannot
be read. Off by default.

enhanced browsing

Turn on/off the enhanced Samba browing functionality (*1B names).
Default is "on". Can prevent eternal machines in workgroups when
WINS servers are not synchronised.

Removed parameters.
-------------------

domain groups
domain admin users
domain guest users

Changes in 2.2.1
-----------------

1). "find" command removed for smbclient. Internal code now used.
2). smbspool updates to retry connections from Michael Sweet.
3). Fix for mapping 8859-15 characters to UNICODE.
4). Changed "security=server" to try with invalid username to prevent
    account lockouts.
5). Fixes to allow Windows 2000 SP2 clients to join a Samba PDC.
6). Support for Windows 9x Nexus tools to allow security changes from Win9x.
7). Two locking fixes added. Samba 2.2.1 now passes the Clarion network
    lock tester tool for distributed databases.
8). Preliminary support added for Windows 2000 large file read/write SMBs.
9). Changed random number generator in Samba to prevent guess attacks.
10). Fixes for tdb corruption in connections.tdb and file locking brlock.tdb.
     smbd's clean the tdb files on startup and shutdown.
11). Fixes for default ACLs on Solaris.
12). Tidyup of password entry caching code.
13). Correct shutdowns added for send fails. Helps tdb cleanup code.
14). Prevent invalid '/' characters in workgroup names.
15). Removed more static arrays in SAMR code.
16). Client code is now UNICODE on the wire.
17). Fix 2 second timstamp resolution everywhere if dos timestamp set to yes.
18). All tdb opens now going through logging function.
19). Add pam password changing and pam restrictions code.
20). Printer driver management improvements (delete driver).
21). Fix difference between NULL security descriptors and empty
     security descriptors.
22). Fix SID returns for server roles.
23). Allow Windows 2000 mmc to view and set Samba share security descriptors.
24). Allow smbcontrol to forcibly disconnect a share.
25). tdb fixes for HPUX, OpenBSD and other OS's that don't have a coherent
     mmap/file read/write cache.
26). Fix race condition in returning create disposition for file create/open.
27). Fix NT rewriting of security descriptors to their canonical form for
     ACLs.
28). Fix for Samba running on top of Linux VFAT ftruncate bug.
29). Swat fixes for being run with xinetd that doesn't set the umask.
30). Fix for slow writes with Win9x Explorer clients. Emulates Microsoft
     TCP stack early ack specification error.
31). Changed lock & persistant tdb directory to /var/cache/samba by default on
     RedHat and Mandrake as they clear the /var/lock/samba directory on reboot.
2001-07-13 16:08:40 +00:00
jlam
9820a22a90 In package Makefiles, create FILES_SUBST instead of duplicating sed
expression for substituting in DEINSTALL/INSTALL scripts.  Use "${CMP} -s"
instead of "diff -q" since the former is more portable across OSes.
2001-07-13 07:09:17 +00:00
taca
d1eee7f719 Update samba to 2.2.0a as samba-2.2.0nb2. Quoting from WHATSNEW.txt:
WHATS NEW IN Samba 2.2.0a:  23rd June 2001
              ==========================================

SECURITY FIX
============

This is a security bugfix release for Samba 2.2.0. This release provides the
following two changes *ONLY* from the 2.2.0 release.

1). Fix for the security hole discovered by Michal Zalewski (lcamtuf@bos.bindview.com)
    and described in the security advisory below.
2). Fix for the hosts allow/hosts deny parameters not being honoured.

No other changes are being made for this release to ensure a security fix only.
For new functionality (including these security fixes) download Samba 2.2.1
when it is available.

The security advisory follows :


                IMPORTANT: Security bugfix for Samba
                ------------------------------------

June 23rd 2001


Summary
-------

A serious security hole has been discovered in all versions of Samba
that allows an attacker to gain root access on the target machine for
certain types of common Samba configuration.

The immediate fix is to edit your smb.conf configuration file and
remove all occurances of the macro "%m". Replacing occurances of %m
with %I is probably the best solution for most sites.

Details
-------

A remote attacker can use a netbios name containing unix path
characters which will then be substituted into the %m macro wherever
it occurs in smb.conf. This can be used to cause Samba to create a log
file on top of an important system file, which in turn can be used to
compromise security on the server.

The most commonly used configuration option that can be vulnerable to
this attack is the "log file" option. The default value for this
option is VARDIR/log.smbd. If the default is used then Samba is not
vulnerable to this attack.

The security hole occurs when a log file option like the following is
used:

  log file = /var/log/samba/%m.log

In that case the attacker can use a locally created symbolic link to
overwrite any file on the system. This requires local access to the
server.

If your Samba configuration has something like the following:

  log file = /var/log/samba/%m

Then the attacker could successfully compromise your server remotely
as no symbolic link is required. This type of configuration is very
rare.

The most commonly used log file configuration containing %m is the
distributed in the sample configuration file that comes with Samba:

  log file = /var/log/samba/log.%m

in that case your machine is not vulnerable to this attack unless you
happen to have a subdirectory in /var/log/samba/ which starts with the
prefix "log."

Credit
------

Thanks to Michal Zalewski (lcamtuf@bos.bindview.com) for finding this
vulnerability.


New Release
-----------

While we recommend that vulnerable sites immediately change their
smb.conf configuration file to prevent the attack we will also be
making new releases of Samba within the next 24 hours to properly fix
the problem. Please see http://www.samba.org/ for the new releases.

Please report any attacks to the appropriate authority.

        The Samba Team
        security@samba.org
2001-06-24 07:55:22 +00:00
jlam
f665d6974c Remove unused ROOT_GROUP definition. 2001-06-19 09:06:05 +00:00
jlam
4e45a43e1d Convert to use buildlink.mk files and remove unnecessary config.cache
entry to prevent finding libncurses and unnecessary patches to configure
script to handle SSL location and probing libcups.  Also use FILES_SUBST
instead of repeating a sed script throughout the Makefile.
2001-06-19 09:03:30 +00:00
jlam
c4e71c5e7a CPPFLAGS is now passed to MAKE_ENV and CONFIGURE_ENV by bsd.pkg.mk, so
adapt by moving CPPFLAGS settings to top-level, and removing explicit
inclusion of CPPFLAGS into MAKE_ENV and CONFIGURE_ENV.
2001-06-11 06:34:17 +00:00
jlam
dbfde59b14 The buildlink include and lib directories are added to CFLAGS, CPPFLAGS,
CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra
definitions to add them from the package Makefiles.  As advised by the
bsd.buildlink.mk file, also ensure that the buildlink.mk files are
included prior to defining any package-specific CFLAGS/LDFLAGS to ensure
that the buildlink directories are at the head of the compiler search
paths.
2001-06-11 02:05:07 +00:00
jlam
3bc5e40254 Remove dependency on ${BUILDLINK_TARGETS} in pre-configure and pre-build
targets as the buildlink.mk files now add the dependency automatically.
Remove any NO_CONFIGURE definitions as they seem to be useless.
2001-06-10 00:08:41 +00:00
jlam
1510d04371 Remove USE_LIBINTL as nothing uses libintl.a, and pass
-I${BUILDLINK}/include through via CPPFLAGS as well as CFLAGS to ensure
that readline/readline.h is found by the configure script.  Fixes
pkg/13110 by Jesse Off.
2001-06-07 20:17:39 +00:00
groo
ba75a66f20 Apply patch to tdb.c so that it works on pre-UBC systems. .tdb databases
were previously enlarged by the sequence:  lseek, write, munmap, mmap
and are now enlarged by: munmap, lseek, write, mmap.

The Samba team is already aware of the problem.  I expect this patch will
be incorporated in a future release.
2001-06-01 15:17:23 +00:00
jlam
1d95063aab Use S_IRUSR/S_IWUSR and related flags from <sys/stat.h> instead of
SHM_{R,W}.  Fix suggest by Klaus Klein.  This should fix build on
non-current NetBSD systems and closes PRs 13023 and 13033.
2001-05-24 21:52:14 +00:00
jlam
d25fb28a4b Use buildlink.mk files for cups and pam. 2001-05-24 16:41:58 +00:00
jlam
54718a4db7 Standardize name of file to include for build-links to be "buildlink.mk".
Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers
and libraries.  Create a variable BUILDLINK_TARGETS whose value is the
list of build-link targets to execute.
2001-05-24 08:53:54 +00:00
jlam
fd6a226617 Add fix for platforms that don't define SHM_{R_W} in <sys/shm.h>. We
define them to IPC_{R,W} as they're the right values.  Problem discovered
by browsing current-users and port-alpha (why were there no PRs?!).
2001-05-22 22:07:00 +00:00
jlam
655520be9d Use devel/readline/Makefile.readline for GNU readline support and note why
GNU readline is required.  Clean up how to pass location of OpenSSL headers
to the configure script.
2001-05-22 21:49:28 +00:00
jlam
8888c438d6 Remove unneeded patches after samba update to 2.2.0. 2001-05-14 18:57:01 +00:00
jlam
65c9bef91b Update samba to 2.2.0. Changes from version 2.0.9 include:
* Integration between Windows oplocks and NFS file opens (IRIX and Linux
  2.4 kernel only). This gives complete data and locking integrity between
  Windows and UNIX file access to the same data files.

* Ability to act as an authentication source for Windows 2000 clients as
  well as for NT4.x clients.

* Integration with the winbind daemon that provides a single
  sign on facility for UNIX servers in Windows 2000/NT4 networks
  driven by a Windows 2000/NT4 PDC.

* Support for native Windows 2000/NT4 printing RPCs. This includes
  support for automatic printer driver download.

* Support for server supported Access Control Lists (ACLs).

* On PAM (Pluggable Authentication Module) based systems - better debugging
  messages and encrypted password users now have access control verified via
  PAM - Note: Authentication still uses the encrypted password database.

* Rewritten internal locking semantics for more robustness.
  This release supports full 64 bit locking semantics on all
  (even 32 bit) platforms. SMB locks are mapped onto POSIX
  locks (32 bit or 64 bit) as the underlying system allows.

* Conversion of various internal flat data structures to use
  database records for increased performance and
  flexibility.

* Support for acting as a MS-DFS (Distributed File System) server.

* Support for manipulating Samba shares using Windows client tools
  (server manager). Per share security can be set using these tools
  and Samba will obey the access restrictions applied.

* Samba profiling support

* Compile time option for enabling a (Virtual file system) VFS layer
  to allow non-disk resources to be exported as Windows filesystems
  (such as databases etc.).
2001-05-14 18:56:15 +00:00
wiz
e86c933503 Don't set $command_args, set ${smbd,nmbd}_flags instead.
Patch provided in pkg/12921 by Paul Goyette.
2001-05-13 00:44:50 +00:00
abs
7226c7476e Update samba to 2.0.9:
Samba 2.0.9 is a security bugfix release which correctly fixes the problem
2.0.8 was supposed to address.  (A bug in the handling of temporary files
that allowed local users to destroy data on local devices).
2001-05-10 09:00:23 +00:00
wiz
433b62957e Move to sha1 checksum, and/or add distfile sizes. 2001-04-21 11:23:08 +00:00
tron
7081622420 Remove note about Japanese support which is missing in this version. 2001-04-18 14:46:57 +00:00
tron
ce7de5f754 Update "samba" package to version 2.0.8:
Samba 2.0.8 is a security bugfix release. Previous versions of Samba
 had a bug with the handling of temporary files that allows local users
 to destroy data on local devices. This bug was discovered during a
 routine security audit by Caldera. While no exploitation of this bug
 is known to have occurred it is fairly easy to exploit so sites with
 untrusted local users should take the threat seriously.
Unfortunately we lose japanese language support by this update.
2001-04-18 12:54:47 +00:00
agc
2d6b6a009c + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:43:32 +00:00
hubertf
c878bfed20 In smbclient 'mput' command, don't use find(1) with "-maxdepth"
argument which NetBSD doesn't support. Use ls(1) instead.

Patch contributed by Claude Marinier <claude.marinier@dreo.dnd.ca> in PR 12564.
2001-04-07 10:00:42 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
hubertf
d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00
wiz
a13ea108bb Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:52:59 +00:00
fredb
46a9e2c3de Make that "autoreconf" -- there is no "autoremake". 2001-02-06 03:16:56 +00:00
tron
f2d262e0be Use full pathname "${LOCALBASE}/bin/auto..." in dependences and make
targets. This includes a fix for PR pkg/12125 by Tomasz Luchowski.
2001-02-05 09:00:54 +00:00
tron
fdb69bc253 Install startup script without ".sh" extension because policy was changed. 2001-02-04 18:08:27 +00:00
tron
43db17d3e2 Replace monolithic old style startup script with two new style startup
scripts which include backward compatibility for pre 1.5 systems.
2001-02-04 15:29:58 +00:00
kim
ebef7becef USE_LIBINTL 2000-11-20 02:45:18 +00:00
kei
1236e90f44 Updated samba pkg to 2.0.7.1.3 (original version is 2.0.7-ja-1.3). Patch
supplied by Osamu OISHI <oishi@ims.ac.jp>.


Changes from 2.0.7.1.2a to 2.0.7.1.3:

- fixed bug that caused garbled output in browsing when
  Samba was LMB.

- fixed bug that wrong file name length is sent to client in
  short file name.  It fixes bug that MS Access cannot run
  under NT4 environment.

- multibyte characters are now allowed at fstype in
  smb.conf.

- fixed bug that wrong string length is sent to client when
  multibyte characters are used in Volume name.

- fixed bug that one extra memory block allocated in every
  time and wasted it.

- included tools for administrating e.g. Coding System
  modifier, replacement of `ls' or `cd' when CAP/HEX Coding
  System is used.

- fixed bug about utmp.
2000-10-07 13:58:30 +00:00
wiz
ac2cdb6ff8 remove some whitespace and shuffle lines to make pkglint more quiet 2000-09-03 12:53:51 +00:00
kei
7c7b9d694d Merged japanese/samba package to net/samba, as per discussion of
Hubert Feyrer and Manuel Bouyer.
2000-09-03 09:17:00 +00:00
kei
4f9287bcc6 added conflicts with pkgsrc/japanese/samba. 2000-08-30 17:44:25 +00:00
wiz
8aea2b0442 add etc/rc.d/samba.sh.sample (no reason not to remove it) 2000-08-25 23:47:24 +00:00
tron
ebcef6eadf Depend on version 4.0 or newer of the "readline" package. 2000-07-20 15:40:58 +00:00
jlam
63efc4647b Remove obvious pasto. 2000-06-26 23:07:37 +00:00
jlam
c91a86a1f2 Add missing file. Fix supplied in PR#10255 by Jeff Rizzo. 2000-06-19 21:47:18 +00:00
veego
679ed71d51 Solaris has no group wheel, so we have to extend the sed line in the Makefile
and change the chgrp command.
2000-05-17 09:22:28 +00:00
veego
05cc4a699b Split the chown user:group into two call: chown and chgrp 2000-05-17 09:09:42 +00:00
jlam
facbd11306 Be more informative when we create the private smbpasswd file. I got tired
of guessing whether or not a samba upgrade was overwriting my current
smbpasswd.
2000-05-02 23:41:11 +00:00
jlam
f11cb0ac10 Forgot these scripts, which break out some magic from the PLIST into
separate scripts.
2000-05-02 15:25:18 +00:00
jlam
3651dec6a6 Updated samba to 2.0.7. Major changes from version 2.0.6 are below. A
complete list of changes can be found at http://www.samba.org/.

New Documentation in 2.0.7
--------------------------

O'Reilly and Associates have donated their book "Using Samba"
to the Samba community to be updated in a collaberative way
along with the Samba software. Starting with this release the
html of "Using Samba" will be distributed with the Samba software
as the online documentation for Samba. Bug fixes for the book
are encouraged as is new material. Please help us make this
documentation the best it can be for Samba !

Windows 2000 Issues
-------------------

This version of Samba has been tested with Windows 2000 and
the five known incompatibilities with Windows 2000 have been
fixed. See the "Changes in 2.0.7" list below for details.

New/Changed parameters in 2.0.7
-------------------------------

There are 5 new parameters in the smb.conf file.

utmp
utmp dir
utmp hostname
utmp consolidate
wtmp directory

These parameters are only available if the "--with-utmp"
option was selected at configure time. The yes/no option "utmp"
specifies whether utmp records should be recorded on user
logon/logoff. It defaults to "no". The "utmp dir" and "wtmp dir"
are string parameters specifying pathnames to the directories containing
the utmp/wtmp file databases. See the smb.conf man page for more details.

inherit permissions

This boolean parameter causes newly created files and directories
to inherit their initial permissions from their parent directory.
This can be very useful in propagating such things as the set-group
bit in directory heirarchies. See the smb.conf man page for more
details.

write cache size

This integer parameter specifies (in bytes) the size of a user level
per-file write cache that smbd will create for an oplocked file. This
can improve performance significantly for writing files by causing
writes to be done in large chunk sizes. If this parameter is set (it
defaults to zero which means no write cache) to the stripe size of
a raid volume then it will cause writes to be much more efficient.
Up to 10 write caches can be active simultaneously per smbd (allocated
for the first 10 oplocked file opens). All normal warnings about the
dangers of user level caching of data apply. See the smb.conf man page
for more details.

source environment

This pathname parameter causes Samba to read a list of environment
variables from a named file on startup. This can be useful in setting
up Samba in a clustered environment. See the smb.conf man page for more
details.

Ability to delete users added
-----------------------------

SWAT and smbpasswd can now delete users from the Samba smbpasswd file.
See the man page for smbpasswd for details.

Roving profile behavior finalized
---------------------------------

The change in behavior with roving profiles (using the "logon home"
parameter instead of the "logon path" parameter) introduced in 2.0.6
has been discovered to be consistant with the way Windows NT behaves,
and has been left as the default action. Please see the additional
notes in the "logon home" parameter description in the smb.conf man
page for more details.
2000-05-02 15:24:08 +00:00
wiz
1989d0cc4d regen 2000-02-05 19:55:36 +00:00
jlam
55cbc7acab Remove readline dependency for systems whose libedit.a has readline emulation.
I've finally learned enough autoconf voodoo to do this the right way :)
Also preliminary preparations for CUPS (IPP) support.
2000-01-19 00:42:41 +00:00
abs
df05aef71f Strip trailing '.', and/or leading '(a|an) ' 2000-01-05 15:37:50 +00:00
jlam
52c7e9035d Add example configuration files. 1999-11-16 21:23:03 +00:00
jlam
e105e20f2d * Update samba to 2.0.6.
* It turns out -lreadline also needs -ltermcap to link under ELF.  I had
  to patch the GNU configure script to make it correctly detect readline.
  Are we going to have to do this to all the packages which depend upon
  readline?

New/Changed parameters in 2.0.6
-------------------------------

There are 6 new parameters in the smb.conf file.

wins hook

This parameter allows an external program to be called
on all changes to a Samba WINS database, allowing dynamic
DNS updates.

debug hires timestamp
debug pid
debug uid

The above 3 parameters provide greater debug information.

preexec close
rootpreexec close

The above 2 parameters control the action taken on the
success or failure of a 'preexec' script.

There is also one removed parameter.

mangle locks

The addition of these new parameters and the removal of the old
is described in more detail in the smb.conf man page,

When using "security=domain" the "password server"
parameter can now be set to the string "*', which will
cause Samba to search for Domain controllers in the
same way that Windows NT does. See the smb.conf man
page for more details.

The "interfaces" parameter in smb.conf can now be dynamically
detected on startup and can also now take an interface name
such as eth0. See the smb.conf man page for the details
on the new features of the "interfaces" parameter.
nmbd has been enhanced to use this feature.

The syntax for the Linux-specific smbmount command has been changed
and is now compatible with the standard mount command. See the modified
smbmount man page for details.

Support for the UNIX CUPS printer standard has been added.
See www.cups.org for details. Thanks to the folks at Easy Software
Products for this code. Set the printcap name to "cups" to
enable this. See the smb.conf man page for details.

Changes in 2.0.6
-----------------

1). 64-bit locking removed from Linux autoconf build. This fixes
several Linux specific locking issues.
2). Crash bug fix in smbclient recursive processing. Fix from
E. Jay Berkenbilt (ejb@ql.org).
3). "history" command added to smbclient if readline available.
4). smbtar - updates files and directory message on restore.
5). smbmnt - 'u', 'g', 'r', 'f', 'd' options added by Andrew. See
man page for details.
6). smbmount updated to be useable by autofs on Linux. See the
samba/examples/autofs/README file for details.
7). Bug fixed where TCP_NODELAY was not being used by default in smbd.
8). Many oplock fixes. Samba now waits 30 seconds, not 45. Also
smbd no longer aborts on client break failure, but logs a message
and continues. This is what NT does. This should fix many "oplock
break" message problems people have been having.
9). New code from Andrew to dynamically detect interfaces. nmbd will
now attempt to dynamically detect interface changes and register names
as an interface goes "up".
10). Win95 ioctl for print jobs added by Matt.
11). Mapping for ISO8859-1 extended for codepage 437 and 850.
12). Code Page 737 -> ISO-8859-7 (Greek-Hellenic) mapping added.
13). Character strings now correctly converted from UNIX character set
format to DOS codepage when read from smb.conf or external passwd or
group files. Samba is now much more careful about what format external
strings should be converted to/from.
14). snprintf crash fix for IRIX 6.2 and below.
15). Increased timestamp debug fixes (adds milliseconds and uid/pid if
requested).
16). Optimisation for wildcard exact match requests.
17). Win95 wildcard semantics fix - unused code removed.
18). 'mangle locks' parameter removed. This now done automatically.
19). setXid() routines re-written to provide asserts and also to fix
AIX versions prior to 4.1.x.
20). MSG_WAITALL optimisation removed due to bugs in FreeBSD.
21). Length fix when writing UNICODE string.
22). oplock processing added to libsmb client code.
23). Added more client error message strings.
24). Fix bug with connecting to encrypted server when non-encrypted
password given.
25). In security=domain, password server extended to search for DC's
if parameter = '*'.
26). "root did not create samaphore" bug fixed.
27). random generator initialized early to prevent icons not showing
up in Win9x.
28). Logging fix after SIGHUP.
29). WINS hook external call added when nmbd is a WINS server.
30). Support for CUPS printer protocol added by Michael Sweet.
31). Support for NIS+ backend password database updates.
32). Handle dashes in print job id's. Fix from Dom.Mitchell@palmerharvey.co.uk
33). Race condition in UNIX password sync on some platforms fixed by Matt.
34). Dirptr leak from Win98 fixed.
35). Logic bug in handling of level II oplocks fixed.
36). smbd crash bug fix when opening directories.
37). Paranoia oplock fix from Charles Hoch (hoch@exemplary.com)
38). Fix Win2k problem where DCE/RPC is done on SMBwrite as well as SMBwriteX.
39). Fix Win95 redirector alignment bug that caused oplock break failures.
40). Preexec close code added.
41). Extra sanity checks in testparm code.
42). oplock tests added to smbtorture.
43). Tell SWAT user if logged in as root or not.
44). Solaris packaging fixes donated by VERITAS.
1999-11-16 21:01:04 +00:00
dmcmahill
1fa4ec25df add missing readline DEPENDS 1999-10-06 17:05:23 +00:00
bouyer
cd138936c9 Update to 2.0.5a. Supplied by mcmahill@mtl.mit.edu with minor corrections by
me.
1999-08-10 16:38:08 +00:00
agc
f4d5171de1 Add package patch checksum files. 1999-07-09 14:09:02 +00:00
agc
e20be6c347 Remove NOPORTDOCS definition - it was useless anyway, as any attempt to
build a binary package with this definition would fail as the PLIST is
not correct.

If a package's documentation is overwhelming, it should arguably be handled
in a separate pre-requisite documentation package.
1999-04-13 15:31:04 +00:00
agc
d8d880edf3 Make the ${SAMBA_PRIVATE} directory owned by root, rather than
${BINOWN}, for backwards compatibility, as suggested by Manuel (group
ownership doesn't matter, since the directory is mode 700).
1999-04-09 10:55:33 +00:00
bouyer
06177b67d9 Change ${CHOWN} bin:bin to ${CHOWN} ${BINOWN}:${BINGRP}; pointed out
by Alistair G. Crooks.
1999-04-07 09:44:44 +00:00
agc
f401fde155 Make this work on Solaris.
s/chown/${CHOWN}/g
s/chmod/${CHMOD}/g
s/root:wheel/${BINOWN}:${BINGRP}/g
1999-04-07 09:18:18 +00:00
bouyer
d47976f291 Update to samba 2.0.3. 1999-03-29 16:15:34 +00:00
hubertf
2a95ad9c6b Fix CONFLICTS (remove redundancy, mostly) 1999-02-20 22:48:24 +00:00
bouyer
c5e74d2682 Samba 1.9.18 is dead, upgrade to samba 2.0.2. 1999-02-18 11:50:06 +00:00
bouyer
4c795eafc7 Make this conflict with sanba 2.* 1999-01-29 10:39:18 +00:00
kleink
bf237c0e31 Get rid of obsolete chown(8) operand usage. 1999-01-09 20:49:26 +00:00
drochner
10a5217908 samba doesn't require (and doesn't want) smbpasswd to be setuid anymore 1998-11-27 13:45:20 +00:00
bouyer
f05002c4c2 Add conflict with samba-1.9.18p8 and samba-2.0.0beta2 1998-11-27 13:13:09 +00:00
agc
e00e0b3ec3 Include bsd.prefs.mk earlier, so that SAMBA_ETCDIR and SAMBA_PRIVATE can
be set in /etc/mk.conf.
Use ${SED}, rather than sed.
Minor formatting changes.
1998-10-28 19:44:24 +00:00
bouyer
0db480e0c5 'mkdir -p', not 'mkdir'. 1998-09-24 09:00:30 +00:00
bad
bd0e640265 Update to samba-1.9.18p10.
While here clean up the package somewhat:
- Remove confusion about where the SAMBA_PRIVATE directory is.
- Don't gratitously create yet another world writeable directory.
- Don't use $PREFIX as the WEB_ROOT, use the htdocs directory from the
  Apache pkg instead.
- Enable use of netgroups, checking of disk quotas and the password
  changing feature.
- Use /var/run/samba for runtime status files.
- Always install the example startup file.
- Misc. minor modification for better maintainability.
1998-09-04 19:17:18 +00:00
tsarna
6bd0d65c65 The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
1998-08-20 15:16:34 +00:00
kim
b93a4daed2 The password file for samba cannot generally be share between machines,
so place it in /etc/samba/private.  Other machine dependent files (e.g.
the printer defs) go now into /etc/samba by default.
1998-08-09 16:14:08 +00:00
agc
05b88260d7 Add NetBSD RCS Ids. 1998-08-07 13:16:49 +00:00
agc
41bfb30737 Add NetBSD RCS Ids. 1998-08-07 11:08:53 +00:00
agc
988019b016 Update package Makefiles for automatic manual page handling. 1998-06-22 12:58:33 +00:00
bouyer
376c59429a Update to 1.9.18p8. 1998-06-17 17:07:13 +00:00
agc
eddab138fd Upgrade to samba version 1.9.18p7, from Ty Sarna in PR pkg/5529. 1998-06-04 13:08:36 +00:00
agc
d1ee46230d Include bsd.prefs.mk so that variables can be set in /etc/mk.conf 1998-06-03 13:16:56 +00:00
agc
258b808c9f Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree.
Remove redundant (and sometimes erroneous) comments.
1998-04-15 10:38:15 +00:00
frueauf
c53c21a08f - add missing bin/mksmbpasswd.sh and lib/codepages/codepage.866, pointed
out by Matthias Scheler
- add .gz extension to manpags
1998-02-25 22:33:10 +00:00
frueauf
02cf4aac39 adjust for samba-1.9.18p3. Fixes pr 5033 by Lennart Augustsson. 1998-02-21 21:21:04 +00:00
frueauf
f367b450ba samba is at version 1.9.18p3 now. Fixes pr 5033 by Lennart Augustsson. 1998-02-21 21:20:09 +00:00
agc
ea1c3b9adc Delete erroneous patch. (from Ty Sarna) 1998-01-28 13:24:20 +00:00
agc
6a0bcf5c71 Upgrade to samba version 1.9.18p1, to avoid a possible data loss
problem, as reported by Scott reynolds in PR pkg/4809
1998-01-13 13:10:19 +00:00
agc
b0985455ba Additional patches for 1.9.18 from Ty Sarna (tsarna@endicor.com) 1998-01-12 17:31:16 +00:00
agc
3e1a0d7579 Update to version 1.9.18, from Ty Sarna (tsarna@endicor.com).
This version unites the samba and the uncommitted samba-des packages,
as it includes a "castrated" DES implementation that is only usable as
a hash function.

Some very minor typos in the description file corrected by myself.
1998-01-12 17:19:25 +00:00
agc
ebeab1d3b3 Clean up a sed command, and lose two inappropriate and duplicate
Makefile definitions in the process.
1997-12-24 10:52:31 +00:00
agc
e584ba82cc Add NetBSD RCS Ids. 1997-12-24 10:35:27 +00:00
agc
eb359c12c4 Initial import of samba, from FreeBSD, into the NetBSD packages
collection, thanks to Ty Sarna (tsarna@endicor.com), and addresses the
first part of PR pkg/4746.

The Samba software suite is a collection of programs that implements
the SMB protocol for UNIX systems.
1997-12-24 10:32:01 +00:00