1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

Bringing packaging/Debian/ up to date with the current Samba package

in Debian unstable. The stuff here was ages old...
(This used to be commit 5646df8bfb327d74f9c07fc219023a5aecdbc70d)
This commit is contained in:
Eloy Paris 2003-06-01 04:30:13 +00:00
parent dbd4a83c7f
commit 72cc0c82c4
77 changed files with 4332 additions and 7587 deletions

View File

@ -1,6 +1,21 @@
Building Samba Packages for Debian GNU/Linux
--------------------------------------------
Building Debian packages is not as hard as some people might think. The
following instructions will allow you to build your own Samba Debian
packages. These instructions, and the files in packaging/Debian/, should
be current as of Samba 3.0beta1, and should allow you to build Debian
packages for Debian unstable.
We try to maintain as much compatibility with previous releases
of Debian as possible, so it is possible that the files in
packaging/Debian/ can also be used to build Samba Debian packages for
other Debian releases. However, sometimes this is just not possible
because we need to use stuff that is only available on Debian unstable.
Instructions
------------
If you want to build Samba packages for Debian and you just want to use
upstream sources, i.e. you don't want to wait for us to put official
packages out, or you want packages for a Debian version for which we
@ -8,35 +23,45 @@ don't provide deb's, or you don't want to use official packages, or
you want to add --this-cool-switch to configure, or whatever, follow
these instructions:
0) Make sure you have the following packages installed:
debhelper
libpam0g-dev
libreadline4-dev
libcupsys2-dev
+ the minimum Debian development stuff (dpkg-dev, libc6-dev, etc.)
Note: libcupsys2-dev is not available for Potato. It's safe
to not install it if you don't need CUPS support.
1) cd samba[-<version>]
0) Make sure you have the following packages installed (in addition
to the normal Debian development packages -- dpkg-dev, libc6-dev,
devscripts, etc.):
debhelper
libpam0g-dev
libreadline4-dev
libcupsys2-dev
autoconf
Notes about the packages required to build Samba Debian packages:
* The libcupsys2-dev is not available in Debian Potato (Debian 2.2).
That's fine; the configure script won't detect CUPS support and the
resulting binaries won't support CUPS.
1) cd samba[-<version>]. For example, "cd samba-2.2.5".
2) cp -a packaging/Debian/debian/ debian
It's important that you copy instead of symlink because the build
tools in Potato have a problem that prevents the build to work with
a symlink.
3) dch -i
3) dch -i (this is completely optional - only do it if you understand
Debian version numbers! Don't complain later if you can't upgrade
to official versions of the Samba packages for Debian.)
- Edit the changelog and make sure the version is right. For example,
for Samba 2.2.3, the version number should be 2.2.3-0.1 (use
a number less than 1 like 0.1, 0.2, etc. so there is no conflict
for Samba 2.2.4, the version number should something like 2.2.4-0.1
(use a number less than 1 like 0.1, 0.2, etc. so there is no conflict
with future upgrades to the official Debian packages.)
4) Run 'debian/rules binary'.
- It is better that you prefix the above command with 'fakeroot'.
If you have problems you might try building as root.
5) That's it. Your new packages should be in ../. Install with dpkg.
Please e-mail samba@packages.debian.org with comments, question or
usggestions. Please talk to us and not to the Samba Team. They have
Please e-mail samba@packages.debian.org with comments, questions or
suggestions. Please talk to us and not to the Samba Team. They have
better things to do and know nothing about the Debian packaging system.
Eloy A. Paris <peloy@debian.org>
Steve Langasek <vorlon@debian.org>
Sat Feb 2 00:44:42 CET 2002
$Id: README,v 1.2.2.1 2003/06/01 04:30:09 peloy Exp $

View File

@ -0,0 +1,62 @@
Building Samba Packages for Debian GNU/Linux
--------------------------------------------
Building Debian packages is not as hard as some people might think. The
following instructions will allow you to build your own Samba Debian
packages. These instructions, and the files in packaging/Debian/, are
current as of Samba 2.2.5, and should allow you to build Debian packages
for Debian Potato (2.2), Debian Woody (3.0), and Debian unstable as of
the date Samba 2.2.5 was released.
Instructions
------------
If you want to build Samba packages for Debian and you just want to use
upstream sources, i.e. you don't want to wait for us to put official
packages out, or you want packages for a Debian version for which we
don't provide deb's, or you don't want to use official packages, or
you want to add --this-cool-switch to configure, or whatever, follow
these instructions:
0) Make sure you have the following packages installed (in addition
to the normal Debian development packages -- dpkg-dev, libc6-dev,
devscripts, etc.):
debhelper
libpam0g-dev
libreadline4-dev
libcupsys2-dev
autoconf
Notes about the packages required to build Samba Debian packages:
* The libcupsys2-dev is not available in Debian Potato (Debian 2.2).
That's fine; the configure script won't detect CUPS support and the
resulting binaries won't support CUPS.
1) cd samba[-<version>]. For example, "cd samba-2.2.5".
2) cp -a packaging/Debian/debian/ debian
It's important that you copy instead of symlink because the build
tools in Potato have a problem that prevents the build to work with
a symlink.
3) dch -i (this is completely optional - only do it if you understand
Debian version numbers! Don't complain later if you can't upgrade
to official versions of the Samba packages for Debian.)
- Edit the changelog and make sure the version is right. For example,
for Samba 2.2.4, the version number should something like 2.2.4-0.1
(use a number less than 1 like 0.1, 0.2, etc. so there is no conflict
with future upgrades to the official Debian packages.)
4) Run 'debian/rules binary'.
- It is better that you prefix the above command with 'fakeroot'.
If you have problems you might try building as root.
5) That's it. Your new packages should be in ../. Install with dpkg.
Please e-mail samba@packages.debian.org with comments, questions or
suggestions. Please talk to us and not to the Samba Team. They have
better things to do and know nothing about the Debian packaging system.
Eloy A. Paris <peloy@debian.org>
Steve Langasek <vorlon@debian.org>
$Id: README.build-upstream,v 1.1.6.1 2003/06/01 04:30:10 peloy Exp $

View File

@ -1,30 +1,45 @@
Samba for Debian
----------------
This package was built by Eloy Paris <peloy@debian.org> and Steve
Langasek <vorlon@debian.org>, current maintainers of the Samba packages
for Debian, based on work from Bruce Perens <Bruce@Pixar.com>, Andrew
This package was built by Eloy Paris <peloy@debian.org> and Steve Langasek
<vorlon@debian.org>, current maintainers of the Samba packages for Debian,
based on previous work from Bruce Perens <Bruce@Pixar.com>, Andrew
Howell <andrew@it.com.au>, Klee Dienes <klee@debian.org> and Michael
Meskes <meskes@topsystem.de>, all previous maintainers of the packages
samba and sambades (now merged together - see below).
samba and sambades (merged together for longer than we can remember.)
As of Samba 2.0.6-1, the Debian version of Samba is compiled with
Pluggable Authentication Modules (PAM) support. PAM support was
discontinued during the libc5 -> libc6 migration process and I never
brought it back until 2.0.6-1.
Contents of this README file:
The smbfs package does not support the 2.0.x Linux kernels anymore.
This has been the case since the very first packages of the CVS sources
that eventually became Samba 2.2. To use the smbfs package you need to
run a 2.2.x kernel or later.
1. Notes
2. Packages Generated from the Samba Sources
3. Support for NT Domains
4. Samba and LDAP
5. Reporting bugs
Starting with the Debian packages for Samba 2.2, the Samba log files (for
nmbd and smbd) have been moved to a new location: /var/log/samba/. The
files also have new names: log.nmbd and log.smbd. The old files
(/var/log/{nmb,smb} were moved to the new location.
As of Samba 2.2.2-11, the Samba sources produce the following binary
packages:
1. Notes
--------
- As of Samba 2.0.6-1, the Debian version of Samba is compiled with
Pluggable Authentication Modules (PAM) support. PAM support was
discontinued during the libc5 -> libc6 migration process and I never
brought it back until 2.0.6-1.
- The smbfs package does not support the 2.0.x Linux kernels anymore.
This has been the case since the very first packages of the CVS sources
that eventually became Samba 2.2. To use the smbfs package you need to
run a 2.2.x kernel or later.
- Starting with the Debian packages for Samba 2.2, the Samba log files (for
nmbd and smbd) have been moved to a new location: /var/log/samba/. The
files also have new names: log.nmbd and log.smbd. The old files
(/var/log/{nmb,smb} were moved to the new location.
2. Packages Generated from the Samba Sources
--------------------------------------------
Currently, the Samba sources produce the following binary packages:
samba: A LanManager like file and printer server for Unix.
samba-common: Samba common files used by both the server and the client.
@ -37,7 +52,10 @@ libpam-smbpass: pluggable authentication module for SMB password
database.
libsmbclient: Shared library that allows applications to talk to SMB servers.
libsmbclient-dev: libsmbclient shared libraries.
winbind: Service to resolve user and group information from a Windows NT
server.
python2.2-samba: Python bindings that allow access to various aspects of
Samba.
Please note that the package smbwrapper (a shared library that provides
SMB client services that existed between Samba 2.0.0-1 and Samba-2.0.5a-4
@ -47,8 +65,9 @@ recommended to disable the compilation of smbwrapper until some issues
with glibc2.1 get cleared out (the problem is with glibc, not with Samba
itself).
Support for NT Domains
----------------------
3. Support for NT Domains
-------------------------
Samba 2.2 includes preliminary support for NT domains. A Samba server
can now be part of a Windows NT domain whose Primary Domain Controller
@ -66,6 +85,49 @@ section).
Please note that NT domain PDC support is far from complete and is still
experimental.
4. Samba and LDAP
-----------------
Starting with Samba 2.999+3.0cvs20020723-1 we are building Samba with
ldapsam support.
5. Reporting Bugs
-----------------
If you believe you have found a bug please make sure the possible bug
also exists in the latest version of Samba that is available for the
unstable Debian distribution. If you are running Debian stable this
means that you will probably have to build your own packages. And if the
problem does not exist in the latest version of Samba we have packaged it
means that you will have to run the version of Samba you built yourself
since it is not easy to upload new packages to the stable distribution,
unless they fix critical security problems.
If you can reproduce the problem in the latest version of Samba then
it is likely to be a real bug. Your best shot is to search the Samba
mailing lists to see if it is something that has already been reported
and fixed - if it is a simple fix we can add the patch to our packages
without waiting for a new Samba release.
If you decide that your problem deserves to be submitted to the Debian
Bug Tracking System (BTS) we expect you to be responsive if we request
more information. If we request more information and do not receive
any in a reasonable time frame expect to see your bug closed without
explanation - we can't fix bugs we can't reproduce, and most of the
time we need more information to be able to reproduce them.
When submitting a bug to the Debian BTS please include the version of
the Debian package you are using as well as the Debian distribution you
are using. Think _twice_ about the severity you assign to the bug: we
are _very_ sensitive about bug severities; the fact that it doesn't
work for you doesn't mean that the severity must be such that it holds
a major Debian release. In fact, that it doesn't work for you it
doesn't mean that it doesn't work for others. So again: think _twice_.
Eloy A. Paris <peloy@debian.org>
Steve Langasek <vorlon@debian.org>
January 14, 2002
$Id: README.debian,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $

View File

@ -1,10 +1,4 @@
In no particular order:
Nothing in our list right now.
- New packages for winbind stuff.
- Fix stuff in packaging/Debian/ (add infrastructure for stable
builds)
- Compile with LDAP support.
- Finish debconf support.
- Test debconf support.
- Review /etc/init.d/samba (Brian White reports problems, should add
--oknodo to start-stop-daemon)
Debian Samba Maintainers.-
Sun Apr 6 01:34:21 EST 2003

View File

@ -1,10 +1,599 @@
samba (2.2.2.cvs20020201-1) unstable; urgency=low
samba (3.0beta1-1) unstable; urgency=low
* Getting ready for Samba 2.2.3.
* Using a poor's man build system to keep our patches to upstream
under the debian/ directory.
* Local build.
-- Eloy A. Paris <peloy@debian.org> Fri, 1 Feb 2002 16:10:58 -0500
-- Debian User <somebody@somewhere> Sat, 31 May 2003 22:49:18 -0400
samba (2.999+3.0.alpha24-4) unstable; urgency=low
* Build-depend on python-dev >= 2.2 instead of on just python-dev
(without version).
-- Eloy A. Paris <peloy@debian.org> Sat, 31 May 2003 18:46:05 -0400
samba (2.999+3.0.alpha24-3) unstable; urgency=low
* Make sure Samba DSOs are compiled with -fPIC. (closes: #194324)
* Rebuild against pristine Kerberos libs, to squelch warnings about
versioned symbols. (closes: #194431, #194396)
-- Steve Langasek <vorlon@debian.org> Thu, 22 May 2003 15:32:00 -0500
samba (2.999+3.0.alpha24-2) unstable; urgency=low
* Fixed description of the smbfs package. (closes: #194183)
* Negate the sense of the unixsam check when upgrading. (closes: #194234)
-- Steve Langasek <vorlon@debian.org> Wed, 21 May 2003 12:21:53 -0400
samba (2.999+3.0.alpha24-1) unstable; urgency=low
* New upstream version. (closes: #189354)
-- Eloy A. Paris <peloy@debian.org> Tue, 20 May 2003 13:55:57 -0400
samba (2.999+3.0.alpha23-5) unstable; urgency=low
* Move the python package from section "net" to section "python".
* Make sure we use PIC code for python on all platforms.
* French translation of an additional debconf template, courtesy of
Christian Perrier <bubulle@debian.org>. (closes: #188832)
* Updated Brazilian Portuguese translation from André Luís Lopes
<andrelop@ig.com.br>.
* s/unixsam/guest/ everywhere, since the unixsam backend is now
deprecated. (closes: #190095)
* Create our temp config file as /etc/samba/smb.conf.dpkg-tmp; not
only does using /tmp violate SELinux policies, it introduces the
possibility of data loss during the final copy if /tmp is a separate
filesystem. (closes: #189823)
* Pull in fix for SWAT, so that logins work again
(closes: #188255, #192077).
* Move passdb.tdb into /var/lib/samba, since it's not user-editable.
* Make sure with don't ship any .cvsignore files.
* Don't ship examples for python2.2-samba and samba-doc in an
"examples" directory inside another "examples" directory.
-- Eloy A. Paris <peloy@debian.org> Tue, 6 May 2003 12:05:46 -0400
samba (2.999+3.0.alpha23-4) unstable; urgency=low
* Instead of s/LPT1:/LPT:/, we need to do s/LPT:/LPT1:/ -- now all
non-RPC printing clients are working again.
* Change shlibs to 0 instead of 0.1. The library already in the
archive is using this soname, and there are no packages depending
on libsmbclient, so skip changing the package name for now.
(closes: #188661)
-- Steve Langasek <vorlon@debian.org> Fri, 11 Apr 2003 14:42:00 -0500
samba (2.999+3.0.alpha23-3) unstable; urgency=low
* Put the Samba Python modules in /usr/lib/python2.2/site-packages/,
not in /usr/lib/python2.2/lib-dynload/.
-- Eloy A. Paris <peloy@debian.org> Wed, 9 Apr 2003 19:49:25 -0400
samba (2.999+3.0.alpha23-2) unstable; urgency=low
* New package python2.2-samba that includes the Python modules
included in the Samba sources. Feedback on these modules and the new
package is welcome, as we (Debian Samba maintainers) don't use them.
(closes: #170731, #173322)
* Move libsmbclient-dev from section "devel" to "libdevel".
* Fix panic action script to give a sensible error message instead of
an empty backtrace when we don't have permission to attach to the
process. (closes: #188164)
* Fix libpam-smbpass so that it really does something. (closes: #178245)
* Apply patch to fix printing-related segfaults. (closes: #188076)
-- Eloy A. Paris <peloy@debian.org> Sun, 6 Apr 2003 21:40:33 -0400
samba (2.999+3.0.alpha23-1) unstable; urgency=high
* new upstream release, includes security fix for DSA-262
* tweak the debconf templates to avoid references to specific
front-ends (closes: #183718)
-- Steve Langasek <vorlon@debian.org> Sun, 9 Mar 2003 14:58:00 -0600
samba (2.999+3.0.alpha21-5) unstable; urgency=low
* touch up the package descriptions a little bit (caps, punctuation)
* remove addtosmbpass, which snuck back in when we weren't looking
* reverse the position of the wins server tag, after looking more
closely at the code (closes: #183061)
* fix a glitch in the Spanish .po that rendered it invalid, plus a typo
* updated Brazilian Portuguese templates (closes: #183295)
* fix a typo in upstream manpage (s/shave/share/) (closes: #180546)
* run sed before we run sed, to deal with crazybad special chars
in the workgroup name (!) (closes: #176717)
-- Steve Langasek <vorlon@debian.org> Sat, 1 Mar 2003 15:14:00 -0600
samba (2.999+3.0.alpha21-4) unstable; urgency=low
* add scripts to samba-common to grab the netbios-name-servers options
if we're running a DHCP client (closes: #38413)
* major rearrangement of build scripts: install target now operates on
debian/tmp, not debian/samba, so we can see when new files are
added and decide where to put them; several files that should have
been in samba-common but were in samba (for the above reason) --
smbcacls, -- have been moved, with a replaces: added.
* Fix rc script so that whitespace is consistent between inetd and
daemon modes (closes: #174677).
* smbclient -M must always connect to port 139, because port 445
doesn't support messaging and we can't do the port 135 stuff yet
(closes: #175292, #167859).
* Import the diff from upstream CVS, which has fixed a few bugs
(closes: #178219, #177583, #181467, #181487, #181603, #175864).
Remove a few patches of ours which are now superseded.
* Add po-debconf support to the tree, for better i18n.
* Install the libsmbclient.so symlink in the libsmbclient-dev package,
per policy (closes: #181466).
-- Steve Langasek <vorlon@debian.org> Fri, 27 Dec 2002 00:37:00 -0600
samba (2.999+3.0.alpha21-3) unstable; urgency=low
* Drop --with-ldapsam from the configure options, since this no longer
means what we thought it did. Revert patch for changing the 'passdb
backend' defaults.
* Add patch from CVS HEAD to fix pdbedit segfault; postinst script
should work better now. (Closes: #173936)
-- Steve Langasek <vorlon@debian.org> Sun, 22 Dec 2002 13:29:00 -0600
samba (2.999+3.0.alpha21-2) unstable; urgency=low
* add CONFIGDIR to the set of directories exported in the install
target, so we don't try to write to /etc/ on the autobuilders.
* Reset the default 'passdb backend' value to something sensible, so
that we don't unnecessarily break upgrading systems (closes: #173731).
-- Steve Langasek <vorlon@debian.org> Fri, 20 Dec 2002 09:13:00 -0600
samba (2.999+3.0.alpha21-1) unstable; urgency=low
* new upstream release, many patches now incorporated upstream
-- Steve Langasek <vorlon@debian.org> Mon, 16 Dec 2002 23:39:00 -0600
samba (2.999+3.0.alpha20-4) unstable; urgency=low
* Remove obsolete comments about non-existant LDAP support in the
Debian Samba packages. (Closes: #165035)
* Apply patch for segfault in pam_smbpass when using the unixsam
backend.
* Drop support for nmbd in inetd, since it's not supported by
upstream and is reported to cause problems (closes: #23243, #137726,
165037).
* Clarify example printing configs in smb.conf (closes: #168174).
* Make sure nmbd still responds to SIGTERM if it has no interfaces to
listen on (closes: #168079).
* Fix to get samba working again on 64-bit archs, after a
pointer<->int size mismatch bug. Already fixed in upstream CVS.
* Merge fix from CVS for broken libsmbclient.h references to internal
structures (closes: #162956).
* Add a default 'panic action' for Samba that will give us genuinely
useful debugging information after a crash.
* Fixed correct patch to example configurations in the libpam-smbpass
packages (closes: #169350).
* acl-dev is not in sid anymore; Build-Depend on libacl1-dev instead
(closes: #169682).
* Only ask the user for permission to edit if there's a chance of us
damaging something.
-- Steve Langasek <vorlon@debian.org> Mon, 18 Nov 2002 19:53:00 -0500
samba (2.999+3.0.alpha20-3) unstable; urgency=low
* Make sure smbstatus behavior is sane when Samba *has* been started,
as well as when it has not (closes: #164179). Thank to Robbert Kouprie
<robbert@radium.jvb.tudelft.nl> for this patch.
* Not using 'killall' in any of the maintainer scripts (the last one
remaining was winbind.logrotate.) We now just use 'kill' to send
a SIGHUP to a specific PID (which is stored in a file in
/var/run/samba.)
* Do not depend on procps because we're not using killall anymore.
-- Eloy A. Paris <peloy@debian.org> Tue, 15 Oct 2002 22:15:57 -0400
samba (2.999+3.0.alpha20-2) unstable; urgency=low
* fix an off-by-one error in smbd/lanman.c, which should shut off the
flood of log messages (closes: #157432)
* add a --config-cache option to the configure invocation, since
autoconf 2.5 doesn't load config.cache by default (closes: #163504)
-- Steve Langasek <vorlon@debian.org> Sat, 5 Oct 2002 01:40:00 -0500
samba (2.999+3.0.alpha20-1) unstable; urgency=low
* new upstream release
- non-primary groups appear to work again (closes: #161271)
* the official beginning of the upstream 3.0 branch
* exit without error from smbstatus when no connections have
been seen yet (closes: #161489)
-- Steve Langasek <vorlon@debian.org> Wed, 2 Oct 2002 19:02:00 -0500
samba (2.999+3.0cvs20020906-1) unstable; urgency=low
* CVS update
- domain authentication works again (closes: #158698)
* Factor out common code in samba-common.config
* Handle character set settings in smb.conf on upgrade
(closes: #153913, #158770)
* Don't use killall in logrotate script; there are better ways
(closes: #160076)
* Ignore value of 'hostname lookups' for hosts allow/hosts deny
(closes: #154376)
-- Steve Langasek <vorlon@debian.org> Sat, 7 Sep 2002 11:46:00 -0500
samba (2.999+3.0cvs20020829-1) unstable; urgency=low
* CVS update.
* Move the smb.conf manpage to the samba-common package (closes: #159572)
-- Steve Langasek <vorlon@debian.org> Thu, 29 Aug 2002 17:53:25 -0500
samba (2.999+3.0cvs20020827-1) unstable; urgency=low
* CVS update. (Closes: #158508)
* Part 1 of 3 of the library separation patch that Vorlon wrote has
gone upstream - removed the patch from our patches/ directory.
* Debconf note to warn users that their smb.conf will be re-written
and changed if they use Swat to maintain it. (Closes: #158479)
* Fixed typo in samba.prerm.
-- Eloy A. Paris <peloy@debian.org> Tue, 27 Aug 2002 15:23:23 -0400
samba (2.999+3.0cvs20020825-2) unstable; urgency=low
* scale back the tdbsam migration support, because of undesirable
side-effects; now always defaults to 'no'.
* strip out hyperactive library dependencies that are only needed by
smbd (closes: #155156).
* nuke any broken registry.tdb files left by previous CVS snapshots.
* support rolling back the smbpasswd->tdbsam conversion on downgrade,
since many people are likely to need to downgrade for a while.
* remove postrm handling of legacy directories, and add handling of
current ones.
-- Steve Langasek <vorlon@debian.org> Sun, 28 Jul 2002 09:44:24 -0500
samba (2.999+3.0cvs20020825-1) unstable; urgency=low
* CVS update. These packages are based on Samba 3.0alpha19 + any
code commited after 3.0alpha19 was released.
-- Eloy A. Paris <peloy@debian.org> Sun, 25 Aug 2002 14:56:46 -0400
samba (2.999+3.0cvs20020723-1) unstable; urgency=medium
* remove spurious line from samba.config
* migrate from smbpasswd to tdbsam
* re-add the pdbedit util and manpage
* compile in ldapsam support (closes: #146935)
* add PRIVATEDIR to the list of vars we override for the install
target, so Samba doesn't try to create /etc/samba (closes: #153746).
* fix makefile handling of LOGBASEDIR, so that logs always end up in
the right place (closes: 153727).
* Fixed bug in the FHS migration path that causes nmbd to read its
state from one location, but write it out to another. (closes: #154210)
* Make sure nmbd is always looking for wins.tdb in the same place.
-- Steve Langasek <vorlon@debian.org> Fri, 19 Jul 2002 21:38:54 -0500
samba (2.99.cvs.20020713-1) unstable; urgency=low
* first attempt for 3.0pre.
* only post a debconf note about moving logfiles if we're upgrading
from a version that had the logfiles in the old location
(closes: #152924).
-- Steve Langasek <vorlon@debian.org> Sat, 13 Jul 2002 12:54:25 -0500
samba (2.2.5-2) unstable; urgency=low
* No longer ship make_printerdef, which is deprecated. (closes: #63059)
* Clean up some empty directories from the samba package.
* Add call to dh_installinit for winbind rc.x symlinks (closes: #151860).
* Clean up per-package documentation lists, to reduce clutter
(closes: #147638).
* Make sure we don't ship pdbedit's man page since we are still using
smbpasswd passwords. (closes: #152208)
* move libnss_wins.so to libnss_wins.so.2, where glibc expects to find
it (closes: #148586).
* reorder postinst, so that installing samba-common from scratch loads
the debconf answers properly (closes: #151985).
* add lintian overrides for winbind, to eliminate some noise.
* rename pam_smbpass changelog to comply with policy.
-- Steve Langasek <vorlon@debian.org> Sun, 23 Jun 2002 22:45:04 -0500
samba (2.2.5-1) unstable; urgency=low
* New upstream release.
-- Eloy A. Paris <peloy@debian.org> Sun, 9 Jun 2002 15:49:21 -0400
samba (2.2.4+2.2.5pre1-1) experimental; urgency=low
* Getting ready for Samba 2.2.5.
* Remove patches/parse_spoolss.patch, now included upstream.
* Fixed thinko WRT POSIX ACL support, which we "half-enabled" in
2.2.4-1. We don't use POSIX ACL support ourselves, so we'd
appreciate reports from those using this feature so we can
be sure this works.
* Fix the filename-matching algorithm used for smbtar's 'exclude'
functionality. (closes: #131571)
* Look for secrets.tdb in /var/lib/samba, and handle in the postinst.
This is not really a config file, because users don't edit it.
(closes: #147429)
* Doxygen fix for libsmbclient.h, thanks to Tommi Komulainen
<Tommi.Komulainen@iki.fi> for the patch. (closes: #144847)
-- Eloy A. Paris <peloy@debian.org> Tue, 28 May 2002 11:33:51 -0400
samba (2.2.4-1) unstable; urgency=low
* New upstream release (closes: #144713)
* Building with POSIX ACL support (closes: #137819)
* Include samples, exclude INSTALL from libpam-smbpass (closes: #145055)
* Compile with --with-automount, for NIS homedir support (closes: #123396)
* Add a proper 'flags' field to the mount entry we write to /etc/mtab;
fixes a display bug with mount (closes: #140397)
* Added logic to /etc/init.d/samba so a help message is printed out
when Samba is running from inetd _and_ we are not booting, i.e. the
user called the init script manually. Thanks to Francesco
Potorti <pot@gnu.org> for the suggestion on how to implement this.
(Closes: #139807, #140204)
* samba.postinst: added logic so we don't call /etc/init.d/samba if
we are running from inetd (this prevents the stupid help message
to be printed during package upgrades if we are running from inetd.)
* samba.prerm: idem.
* /etc/init.d/samba: delete stale PID files after nmbd and smbd are
stopped. This prevents start-stop-daemon from printing an ugly
error message when called from '/etc/init.d/samba stop'. I prefer
this than running start-stop-daemon with --oknodo because
start-stop-daemon might print other important error messages that with
--oknodo it would otherwise not print. (Closes: #102187, #109301)
* Patch from jerry@samba.org to fix parsing of spoolss structures.
-- Eloy A. Paris <peloy@debian.org> Thu, 23 May 2002 23:16:52 -0400
samba (2.2.3a-7) unstable; urgency=medium
* More README.debian updates.
* Neutralize the smb.conf 'lock dir' directive, which doesn't mean
what the FHS says it should, and causes us no end of grief.
(Closes: #122299)
* LPRng-handling patch so that jobs printed to recent versions of
LPRng show up properly as 'done' instead of 'paused' in the Windows
print queue. Thanks to Jaroslav Serdula <serdula_jaroslav@vse.sk>
for this patch. (Closes: #139458)
* Applied patch from Urban Widmark <urban@teststation.com>
(smbfs upstream maintainer) to add a '-n' option to smbmount
that does the same as mount's '-n'. (Closes: #139590)
* Minor tweak to unpatch-source so we unpatch sources in the
reverse order we patched them.
* Don't depend on grep in samba.prerm to determine if Samba was
running before the upgrade starts.
* Tweak the wording of debconf templates.
* Incorporate debconf translations for French, Spanish and Portuguese;
thanks to Carlos Valdivia Yagüe <valyag@hotpop.com> (es),
Andre Luis Lopes <andrelop@ig.com.br> (pt_BR), and Philippe
Batailler and Denis Barbier <barbier@debian.org> (fr).
(closes: #142657, #142659, #141551, #141699, #141682)
* Fixed symlinks in the swat package so the point to /usr/share/doc/
instead of /usr/doc/. Added note to the description of the
swat packages that says that samba-doc must be installed for
the on-line documentation to work. Thanks to Torne Wuff
<torne@wolfpuppy.org.uk>. (Closes: #95437)
* 'dh_installinit -n' gives us no initscript handling -- we need to
handle all starting and stopping of daemons ourselves, which wasn't
happening in the {pre,post}rm scripts.
* Vary the priority of the debconf question "Do you want to generate
/etc/samba/smbpassd?" depending on whether the file already exists.
File exists -> priority 'medium', file does not exist -> priority
'low'. Changed priorities of all other questions from 'high' to 'medium'.
-- Steve Langasek <vorlon@debian.org> Sat, 20 Apr 2002 17:48:27 -0400
samba (2.2.3a-6) unstable; urgency=low
* Call db_stop as soon as we're done with debconf in the postinst, to
avoid hanging bugs (closes: #137813)
* Ony call 'update-inetd --add' on first installation, just as we only
call 'update-inetd --remove' on package purge.
* Bring our shipped smb.conf closer in line with the upstream
defaults: don't twiddle the send/recv buffer sizes, since the Linux
kernel already provides a much better default setting
(closes: #80966, #80934, #137415, #133477)
* Added libnss_wins.so to the winbind package (closes: #137201)
* Updates to README.debian.
-- Eloy A. Paris <peloy@debian.org> Tue, 12 Mar 2002 10:57:40 -0500
samba (2.2.3a-5) unstable; urgency=low
* Having multiple workgroup lines in your smb.conf, though wacky, is
perfectly valid. Account for this in samba-common.config.
(closes: #137157)
-- Steve Langasek <vorlon@debian.org> Sun, 10 Mar 2002 21:52:51 -0600
samba (2.2.3a-4) unstable; urgency=low
* Fixed typo in samba.postinst. Cosmetic fixes there as well.
* Fix to improper usage of /usr/bin/tr in samba-common config script
(closes: #137744)
-- Steve Langasek <vorlon@debian.org> Sat, 9 Mar 2002 14:14:02 -0500
samba (2.2.3a-3) unstable; urgency=medium
* Make sure /etc/init.d/samba is executable before calling it
in the postinst. Quickly checked all other maintainer scripts
to make sure we are not calling an init script if it is not
executable. (closes: #137321)
* Fix up maintainer scripts to detect if samba was not running before
an upgrade. (closes: #33520, #130534)
* Make sure /etc/samba/ is included in the samba-common package.
Closes: #137157
-- Steve Langasek <vorlon@debian.org> Fri, 8 Mar 2002 11:13:21 -0500
samba (2.2.3a-2) unstable; urgency=low
* merge in debconf support:
- Moved all smb.conf-related questions to samba-common (smb.conf
is part of the samba-common package, not the samba package.)
- smb.conf is not a samba-common conffile anymore since it is
being managed by debconf. It is ABSOLUTELY necessary to make
sure /etc/samba/smb.conf _NEVER_ gets overwritten by changes
made via debconf. In other words, any changes made by the user
should be honored by the debconf interface.
- samba.postinst now moves old log files from /var/log/ to
/var/log/samba/. There's a Debconf note that informs the user
the log files are stored now in a new location.
- debian/control:
+ Make samba depend on debconf.
- New file debian/samba.templates.
- New file debian/samba.config.
- Re-worked debian/samba.postinst.
+ Got rid of all /etc/samba/debian_config sillyness.
- remove /usr/sbin/sambaconfig; "dpkg-reconfigure samba" replaces
it.
- Removed debian/samba.prerm.
- Cleaned up /etc/init.d/samba.
+ Added infrastructure for debconf.
+ Got rid of all /etc/samba/debian_config sillyness.
+ Got rid of /etc/samba/smbpasswd conversion stuff for
compatibility with versions of Samba < 2.0.0final-2.
(closes: #127959, #34408, #113594)
* make samba.postinst ignore the absence of /var/log/{s,n}mb*;
makes for a clean upgrade path.
* Building with MSDFS support (closes: #116793)
-- Steve Langasek <vorlon@debian.org> Tue, 5 Mar 2002 14:14:33 -0600
samba (2.2.3a-1) unstable; urgency=low
* New upstream version (closes: #135001)
* Potato builds were failing because debian/rules was not creating
debian/winbind/etc/logrotate.d/. A user having problems creating
Potato packages brought this to my attention. dh_installlogrotate
takes care of creating the directory for us, that's why we didn't
notice.
* Removed code that converts /etc/samba/smbpasswd from an ancient
format to the new format of Samba 2.0.0 and later.
Closes: #134375 - samba: postinst failed due to missing
/usr/bin/convert_smbpasswd.
* Re-organized FHS migration code in samba.postinst. Make sure we
don't fail when we move files that don't exist.
Closes: #133813 - samba: Install failed.
* Adding docs. to the libpam-smbpass package.
* Remove man pages for findsmb because we are not providing this
script.
Closes: #134181 - findsmb referenced, but not included.
* Removed replace.patch because it is now present upstream.
* Added patch from Jerry Carter to fix a problem when saving
document preferences for printing from NT clients.
* The real winbindd daemon is a forked process so we can't use
--make-pidfile when calling start-stop-daemon. Fixed
/etc/init.d/winbind to work around the issue. Thanks to
Lin Li <linl@xandros.com> for the patience and for reporting
the problems. Hopefully I got it right this time.
-- Eloy A. Paris <peloy@debian.org> Wed, 20 Feb 2002 18:39:03 -0500
samba (2.2.3-6) unstable; urgency=low
* Make sure there are actual files in /var/state/samba before trying
to move them (Closes: #133534, #133510).
* Fix up the 2.2.3 makefile so that pam_smbpass builds correctly
again.
-- Steve Langasek <vorlon@debian.org> Tue, 12 Feb 2002 09:19:29 -0600
samba (2.2.3-5) unstable; urgency=low
* Whoops, missed a spot on the samba.postinst -- will fail badly if
/var/state/samba/ no longer exists. Better get this fix into the
next upload. ;) (Closes: #133088)
* Regenerate configure only if it is older than configure.in.
* Fix smbd handling of network neighborhood lists, which was missed
in the FHS conversion (Closes: #133091)
-- Eloy A. Paris <peloy@debian.org> Sat, 9 Feb 2002 16:37:57 -0500
samba (2.2.3-4) unstable; urgency=low
* FHS cleanup; files in /var are now properly sorted according to
their nature. (Closes: #102101)
* Remove patches to source/configure, since we now call autoconf to
regenerate this file cleanly.
* lintian fixes:
- Create winbind.conffiles and add /etc/logrotate.d/winbind and
/etc/init.d/winbind to it.
- Use a relative symlink for /usr/lib/cups/backend/smb.
- Removal of a .cvsignore file in the samba-doc package.
* winbind.init fixes:
- Corrected name of the pid file (Steve)
- Make start-stop-daemon create a pid file for winbindd since it
does not create one on his own.
* #DEBHELPER# is not needed in samba.postinst because we are adding
manually everything that debhelper adds automatically. In fact,
since we are calling update-rc.d without standard paramaters I
think we can't use #DEBHELPER#.
* Fix fatal syntax error in samba.prerm.
-- Steve Langasek <vorlon@debian.org> Thu, 7 Feb 2002 13:12:08 -0500
samba (2.2.3-3) unstable; urgency=low
* work on lintian-cleanness in the package (wrong permissions,
maintainer scripts in need of debhelpering)
* /lib/security/pam_smbpass.so is now being included in the
libpam-smbpass package only, and not in both the libpam-smbpass and
samba packages (which was the case prior to 2.2.3-3.)
* Instead of making our patch scripts executable in the rules file
we run them through /bin/sh.
* New 'winbind' package that has all the winbind stuff that was in the
samba package in 2.2.3-2 and before.
* Added replace.patch: patch from Jeremy Allison to fix problems when
replacing or overwriting files in a Samba share. Patch was sent to
the samba mailing list.
-- Eloy A. Paris <peloy@debian.org> Tue, 5 Feb 2002 21:12:48 -0500
samba (2.2.3-2) unstable; urgency=low
* add support to debian/scripts/{patch-source,unpatch-source} for
automatic updating and cleaning of <version.h>. This was a request
from the Samba Team: they wanted us to clearly mark our packages
so it is always known a user is running Samba with (possibly)
Debian-specific patches.
* Change init.d killscript link to K19samba, so we stop before autofs
(closes: 117327)
* Make our patch scripts executable in the rules file -- dpkg won't do
this for us (closes: #132415).
-- Steve Langasek <vorlon@debian.org> Mon, 4 Feb 2002 09:51:00 -0600
samba (2.2.3-1) unstable; urgency=low
* New upstream release (closes: #131228).
* Restructured build system that provides DBS-like separation of
patches
* Fix typo in smbfs description (closes: #116209).
* Use killall -q in logrotate.d script, to avoid spurious cron
emails (closes: #130100).
-- Steve Langasek <vorlon@debian.org> Sat, 2 Feb 2002 19:56:18 -0500
samba (2.2.2-12) unstable; urgency=high

View File

@ -46,12 +46,6 @@ samba_cv_have_setresgid=${samba_cv_have_setresgid=yes}
samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=yes}
# POSIX ACL support not present in Linux 2.2; not allowed in the
# Debian packages, even if present on the build machine.
ac_cv_header_sys_acl_h=${ac_cv_header_sys_acl_h=no}
# Various basic libc/compiler stuff that it's blindingly obvious that
# Linux supports (now watch me get bitten for saying that)
@ -130,8 +124,6 @@ samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes}
# to support transparent userland VFS. We might as well preempt
# any checks for shadowed symbols that are only useful for smbwrapper.
ac_cv_func___acl=${ac_cv_func___acl=no}
ac_cv_func__acl=${ac_cv_func__acl=no}
ac_cv_func___chdir=${ac_cv_func___chdir=no}
ac_cv_func__chdir=${ac_cv_func__chdir=no}
ac_cv_func___close=${ac_cv_func___close=no}
@ -142,8 +134,6 @@ ac_cv_func___dup=${ac_cv_func___dup=no}
ac_cv_func__dup=${ac_cv_func__dup=no}
ac_cv_func___dup2=${ac_cv_func___dup2=no}
ac_cv_func__dup2=${ac_cv_func__dup2=no}
ac_cv_func___facl=${ac_cv_func___facl=no}
ac_cv_func__facl=${ac_cv_func__facl=no}
ac_cv_func___fchdir=${ac_cv_func___fchdir=no}
ac_cv_func__fchdir=${ac_cv_func__fchdir=no}
ac_cv_func___fcntl=${ac_cv_func___fcntl=no}

View File

@ -3,15 +3,15 @@ Section: net
Priority: optional
Maintainer: Eloy A. Paris <peloy@debian.org>
Uploaders: Steve Langasek <vorlon@debian.org>
Build-Depends: debhelper (>=2.0.103), libpam0g-dev, libreadline4-dev, libcupsys2-dev
Build-Depends: debhelper (>= 4.1.13), libpam0g-dev, libreadline4-dev, libcupsys2-dev, autoconf, libacl1-dev | acl-dev (>= 2.0.0), libkrb5-dev, libldap2-dev, po-debconf, python-dev (>= 2.2)
Standards-Version: 3.1.1
Package: samba
Architecture: any
Depends: samba-common (= ${Source-Version}), netbase, logrotate, ${shlibs:Depends}
Depends: debconf, samba-common (= ${Source-Version}), netbase, logrotate, ${shlibs:Depends}
Replaces: samba-common (<= 2.0.5a-2)
Suggests: samba-doc
Description: A LanManager like file and printer server for Unix.
Description: a LanManager-like file and printer server for Unix
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
@ -20,23 +20,29 @@ Description: A LanManager like file and printer server for Unix.
This package contains all the components necessary to turn your
Debian GNU/Linux box into a powerful file and printer server.
.
As of Samba 2.2.1a-3, the Samba Debian packages consist of the following:
Currently, the Samba Debian packages consist of the following:
.
samba - A LanManager like file and printer server for Unix.
samba - LanManager-like file and printer server for Unix.
samba-common - Samba common files used by both the server and the client.
smbclient - A LanManager like simple client for Unix.
smbclient - LanManager-like simple client for Unix.
swat - Samba Web Administration Tool
samba-doc - Samba documentation.
smbfs - Mount and umount commands for the smbfs (kernels 2.0.x and above).
smbfs - Mount and umount commands for the smbfs (kernels 2.2.x and above).
libpam-smbpass - pluggable authentication module for SMB password database
libsmbclient - Shared library that allows applications to talk to SMB servers
libsmbclient-dev - libsmbclient shared libraries
winbind: Service to resolve user and group information from Windows NT servers
python2.2-samba: Python bindings that allow access to various aspects of Samba
.
It is possible to install a subset of these packages depending on
your particular needs. For example, to access other SMB servers you
should only need the smbclient and samba-common packages.
Package: samba-common
Architecture: any
Depends: libpam-modules, ${shlibs:Depends}
Replaces: samba (<= 2.0.5a-2)
Description: Samba common files used by both the server and the client.
Depends: debconf, libpam-modules, ${shlibs:Depends}
Replaces: samba (<< 2.999+3.0.alpha21-4)
Description: Samba common files used by both the server and the client
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
@ -49,10 +55,10 @@ Description: Samba common files used by both the server and the client.
Package: smbclient
Architecture: any
Depends: samba-common (= ${Source-Version}), ${shlibs:Depends}
Replaces: samba (<= 2.2.2-5)
Replaces: samba (<< 2.999+3.0.alpha21-4)
Provides: samba-client
Suggests: smbfs
Description: A LanManager like simple client for Unix.
Description: a LanManager-like simple client for Unix
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
@ -65,7 +71,7 @@ Description: A LanManager like simple client for Unix.
Package: swat
Architecture: any
Depends: samba (= ${Source-Version}), ${shlibs:Depends}
Depends: debconf, samba (= ${Source-Version}), ${shlibs:Depends}
Recommends: samba-doc
Description: Samba Web Administration Tool
The Samba software suite is a collection of programs that
@ -75,11 +81,14 @@ Description: Samba Web Administration Tool
.
This package contains the components of the Samba suite that are needed
for Web administration of the Samba server.
.
Note: if you want to use the on-line documentation that is accesible
through the Swat front-end you must install the samba-doc package.
Package: samba-doc
Section: doc
Architecture: all
Description: Samba documentation.
Description: Samba documentation
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
@ -104,13 +113,13 @@ Description: mount and umount commands for the smbfs (for kernels >= than 2.2.x)
site into a file server for DOS or Windows clients.
.
If you want to use command-line utilities like smbclient, smbtar
and/or smbspool just need to install the smbclient package.
and/or smbspool you just need to install the smbclient package.
.
Starting with the Debian Samba packages version 2.2.0-1, the old smbfs
utilities for 2.0.x have been removed. There are no wrapper scripts
that call a specific smbmount/smbmount depending on the kernel version.
If you are using a 2.0.x kernel please upgrade or use the latest Samba
2.0.7 Debian package.
that call a specific smbmount/smbumount depending on the kernel
version. If you are using a 2.0.x kernel please upgrade or use the
latest Samba 2.0.7 Debian package.
Package: libpam-smbpass
Section: admin
@ -130,7 +139,7 @@ Section: libs
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}
Description: Shared library that allows applications to talk to SMB servers
Description: shared library that allows applications to talk to SMB servers
libsmbclient allows to write applications that use the SMB protocol.
This gives applications the ability to talk to Microsoft Windows servers
and Unix servers running Samba.
@ -138,10 +147,10 @@ Description: Shared library that allows applications to talk to SMB servers
This package contains the libsmbclient shared library.
Package: libsmbclient-dev
Section: devel
Section: libdevel
Priority: extra
Architecture: any
Depends: libsmbclient (= ${Source-Version}), ${shlibs:Depends}
Depends: libsmbclient (= ${Source-Version})
Description: libsmbclient static libraries and headers
libsmbclient allows to write applications that use the SMB protocol.
This gives applications the ability to talk to Microsoft Windows servers
@ -149,3 +158,31 @@ Description: libsmbclient static libraries and headers
.
This package contains the libsmbclient static libraries and headers
needed to build applications that use SMB services.
Package: winbind
Section: net
Priority: optional
Architecture: any
Depends: ${shlibs:Depends}
Replaces: samba (<= 2.2.3-2)
Description: service to resolve user and group information from Windows NT servers
This package provides the winbindd daemon, which provides a
service for the Name Service Switch capability that is present
in most modern C libraries (like the GNU C Library - glibc.)
.
The service provided by winbindd is called `winbind' and
can be used to resolve user and group information from a
Windows NT server. The service can also provide authentication
services via an associated PAM module.
Package: python2.2-samba
Section: python
Priority: optional
Architecture: any
Depends: ${shlibs:Depends}, python2.2
Description: Python bindings that allow access to various aspects of Samba
The Samba Python bindings allow you to access various aspects of Samba.
At the moment their status is "experimental" but they have been reported
to work well.
.
See /usr/share/doc/python2.2-samba/examples for a couple of examples.

View File

@ -1,111 +0,0 @@
Source: samba
Section: net
Priority: optional
Maintainer: Eloy A. Paris <peloy@debian.org>
Standards-Version: 2.4.0.0
Package: samba
Architecture: any
Depends: samba-common (= ${Source-Version}), ${shlibs:Depends}
Replaces: samba-common (<= 2.0.5a-2)
Suggests: samba-doc
Description: A LanManager like file and printer server for Unix.
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains all the components necessary to turn your
Debian GNU/Linux box into a powerful file and printer server.
.
As of Samba 2.0.0, the Samba Debian packages consist of the following:
.
samba - A LanManager like file and printer server for Unix.
samba-common - Samba common files used by both the server and the client.
smbclient - A LanManager like simple client for Unix.
swat - Samba Web Administration Tool
samba-doc - Samba documentation.
smbfsx - Mount and umount commands for the smbfs and kernels > 2.1.70.
smbwrapper - A shared library that provides SMB client services
Package: samba-common
Architecture: any
Depends: ${shlibs:Depends}
Replaces: samba (<= 2.0.5a-2)
Description: Samba common files used by both the server and the client.
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains the common files that are used by both the server
(provided in the samba package) and the client (provided in the smbclient
package).
Package: smbclient
Architecture: any
Depends: samba-common (= ${Source-Version}), ${shlibs:Depends}
Description: A LanManager like simple client for Unix.
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains the client components of the Samba suite.
Package: swat
Architecture: any
Depends: samba, ${shlibs:Depends}
Description: Samba Web Administration Tool
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains the components of the Samba suite that are needed
for Web administration fo the Samba server.
Package: samba-doc
Architecture: all
Description: Samba documentation.
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains all the documentation that comes in the original
tarball.
Package: smbfs
Section: otherosfs
Priority: optional
Architecture: any
Depends: netbase (>= 2.02), samba-common (= ${Source-Version}), ${shlibs:Depends}
Replaces: smbfsx
Conflicts: smbfsx
Description: Mount and umount commands for the smbfs (2.0.x and 2.1.x kernels)
Smbfs is a filesystem which understands the SMB protocol.
This is the protocol Windows for Workgroups, Windows NT or
Lan Manager use to talk to each other. It was inspired by
samba, the program by Andrew Tridgell that turns any unix
site into a file server for DOS or Windows clients.
.
Starting with the Debian Samba packages version 2.0.4b-2, the old smbfs
utilities for 2.0.x and the new smbfs utilities for 2.2.x kernels have been
merged in a single package called smbfs. A wrapper script called smbmount.sh
identifies the version of the kernel running and calls the correct binary.
Package: smbwrapper
Section: otherosfs
Priority: optional
Architecture: any
Depends: ${shlibs:Depends}
Description: A shared library that provides SMB client services
The Samba software suite is a collection of programs that
implements the SMB protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol
is sometimes also referred to as the LanManager or Netbios protocol.
.
This package contains prelodable shared library that provides SMB client
services for existing executables. Using this you can simulate a smb
filesystem.

View File

@ -3,18 +3,10 @@ This is the Debian Linux prepackaged version of the Samba SMB
<Andrew.Tridgell@anu.edu.au> and many others.
This package was put together by Eloy Paris <peloy@debian.org>
based on previous work by Klee Dienes <klee@debian.org>,
Andrew Howell <andrew@it.com.au> and Bruce Perens <bruce@pixar.com>
from sources found at <URL:ftp://samba.anu.edu.au/pub/samba>.
As of early in the samba-2.0.0alpha series, the Samba package for Debian
was split into the following packages:
- samba (the Samba server)
- smbclient (a LAN Manager client - like the ftp program)
- swat (Samba Web Administration Tool)
- smbfs (smbfs userland utilities for kernels > 2.0.x)
- samba-doc (Samba documentation).
and Steve Langasek <vorlon@debian.org> based on previous work by
Klee Dienes <klee@debian.org>, Andrew Howell <andrew@it.com.au>
and Bruce Perens <bruce@pixar.com> from sources found at
<URL:ftp://ftp.samba.org/pub/samba>.
Copyright:

View File

@ -0,0 +1,2 @@
bt
quit

View File

@ -0,0 +1,2 @@
source/pam_smbpass/README
source/pam_smbpass/TODO

View File

@ -0,0 +1,5 @@
source/pam_smbpass/samples/README
source/pam_smbpass/samples/kdc-pdc
source/pam_smbpass/samples/password-mature
source/pam_smbpass/samples/password-migration
source/pam_smbpass/samples/password-sync

View File

@ -0,0 +1 @@
examples/libsmbclient/

View File

@ -1,2 +1,3 @@
usr/lib/libsmbclient.a
usr/lib/libsmbclient.so
usr/include/libsmbclient.h

View File

@ -2,6 +2,8 @@
#
# postinst script for libsmbclient
#
# $Id: libsmbclient.postinst,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
if [ "$1" = "configure" ]; then
ldconfig

View File

@ -1 +1 @@
libsmbclient 0.1 libsmbclient (>= 2.2.2-11)
libsmbclient 0 libsmbclient (>= 2.2.2-11)

View File

@ -0,0 +1,48 @@
#!/bin/sh
# Redirect all output to our mail command
(
# We must be given a pid to look at
if [ -z "$1" ]; then
echo "$0 called with no arguments."
exit 1
fi
if [ ! -d "/proc/$1" ]; then
echo "$0: No such process: $1"
exit 1
fi
# Find out what binary we're debugging
BINARYNAME=`readlink "/proc/$1/exe"`
# Generic header for our email
echo "The Samba 'panic action' script, $0,"
echo "was called for pid $1 ($BINARYNAME)."
echo
if [ -z "$BINARYNAME" ]; then
echo "This means there was a problem with the program, such as a segfault."
echo "However, the executable could not be found for process $1."
echo "It may have died unexpectedly, or you may not have permission to"
echo "debug the process."
exit 1
fi
# No debugger
if [ ! -x /usr/bin/gdb ]; then
echo "This means there was a problem with the program, such as a segfault."
echo "However, gdb was not found on your system, so the error could not be"
echo "debugged. Please install the gdb package so that debugging information is"
echo "available the next time such a problem occurs."
exit 1
fi
echo "Below is a backtrace for this process generated with gdb, which shows"
echo "the state of the program at the time the error occured. You are"
echo "encouraged to submit this information as a bug report to Debian. For"
echo "information about the procedure for submitting bug reports , please see"
echo "http://www.debian.org/Bugs/Reporting or the reportbug(1) manpage."
echo
gdb -x /etc/samba/gdbcommands -batch "$BINARYNAME" "$1"
) | mail -s "Segfault in Samba" root

View File

@ -1,49 +0,0 @@
--- samba-2.2.2.cvs20020120.orig/source/Makefile.in
+++ samba-2.2.2.cvs20020120/source/Makefile.in
@@ -91,7 +91,7 @@
SPROGS = bin/smbd bin/nmbd bin/swat
PROGS1 = bin/smbclient bin/smbspool bin/testparm bin/testprns bin/smbstatus bin/smbcontrol bin/make_printerdef @RUNPROG@
-PROGS2 = bin/smbpasswd bin/make_smbcodepage bin/rpcclient bin/make_unicodemap bin/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@ @PDBEDIT@ @LIBSMBCLIENT@
+PROGS2 = bin/smbpasswd bin/make_smbcodepage bin/rpcclient bin/make_unicodemap bin/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@ @PDBEDIT@ @LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
MPROGS = @MPROGS@
LPROGS = $(WINBIND_PAM_PROGS) $(WINBIND_LPROGS)
PROGS = $(PROGS1) $(PROGS2) $(MPROGS) bin/nmblookup
@@ -614,13 +614,15 @@
@echo Linking shared library $@
@$(SHLD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS)
-libsmbclient: $(LIBSMBCLIENT_PICOBJS)
- @echo Linking libsmbclient shared library bin/$@.@SHLIBEXT@
- @$(SHLD) @LDSHFLAGS@ -o bin/$@.@SHLIBEXT@ \
+bin/libsmbclient.so: $(LIBSMBCLIENT_PICOBJS)
+ @echo Linking libsmbclient shared library $@
+ @$(SHLD) @LDSHFLAGS@ -o $@ \
$(LIBSMBCLIENT_PICOBJS) $(LIBS) \
@SONAMEFLAG@libsmbclient.so.$(LIBSMBCLIENT_MAJOR)
- @echo Linking libsmbclient non-shared library bin/$@.a
- @-$(AR) -rc bin/$@.a $(LIBSMBCLIENT_PICOBJS)
+
+bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS)
+ @echo Linking libsmbclient non-shared library $@
+ @-$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS)
bin/smbsh: $(SMBSH_OBJ) bin/.dummy
@echo Linking $@
@@ -673,10 +675,12 @@
installswat: installdirs
@$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
-installclientlib:
- -$(INSTALLCMD) bin/libsmbclient.so
- -$(INSTALLCMD) -d ${prefix}/include
- -$(INSTALLCMD) include/libsmbclient.h ${prefix}/include
+installclientlib: bin/libsmbclient.so bin/libsmbclient.a
+ # Installed (in the wrong location, BTW) by installbin above (peloy@debian.org)
+ # -$(INSTALLCMD) bin/libsmbclient.so $(BASEDIR)/lib
+ # -$(INSTALLCMD) bin/libsmbclient.a $(BASEDIR)/lib
+ -$(INSTALLCMD) -d $(INCLUDEDIR)
+ -$(INSTALLCMD) include/libsmbclient.h $(INCLUDEDIR)
# revert to the previously installed version
revert:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,106 @@
diff -uNr samba-2.999+3.0.alpha21.orig/docs/htmldocs/using_samba/ch06_05.html samba-2.999+3.0.alpha21/docs/htmldocs/using_samba/ch06_05.html
--- samba-2.999+3.0.alpha21.orig/docs/htmldocs/using_samba/ch06_05.html 2000-07-30 02:38:29.000000000 -0500
+++ samba-2.999+3.0.alpha21/docs/htmldocs/using_samba/ch06_05.html 2002-12-16 23:15:46.000000000 -0600
@@ -102,13 +102,13 @@
WARNING:</strong> You will need to use at least Samba 2.1 to ensure that PDC functionality for Windows NT clients is present. Prior to Samba 2.1, only limited user authentication for NT clients was present. At the time this book went to press, Samba 2.0.5 was the latest version, but Samba 2.1 was available through CVS download. Instructions on downloading alpha versions of Samba are given in <a href="appe_01.html"><b>Appendix E, <CITE CLASS="appendix">Downloading Samba with CVS</cite></b></a>.</p></blockquote><P CLASS="para">
As before, you need to ensure that Samba is a primary domain controller for the current workgroup and is using user-level security. However, you must also ensure that Samba is using encrypted passwords. In other words, alter the <CODE CLASS="literal">
[global]</code> options the previous example to include the <CODE CLASS="literal">
-encrypted</code> <CODE CLASS="literal">
+encrypt</code> <CODE CLASS="literal">
passwords</code> <CODE CLASS="literal">
=</code> <CODE CLASS="literal">
yes</code> option, as shown here: </p><PRE CLASS="programlisting">
[global]
workgroup = SIMPLE
- encrypted passwords = yes
+ encrypt passwords = yes
domain logons = yes
security = user </pre></div><DIV CLASS="sect3">
diff -uNr samba-2.999+3.0.alpha21.orig/docs/manpages/swat.8 samba-2.999+3.0.alpha21/docs/manpages/swat.8
--- samba-2.999+3.0.alpha21.orig/docs/manpages/swat.8 2002-11-26 20:54:13.000000000 -0600
+++ samba-2.999+3.0.alpha21/docs/manpages/swat.8 2002-12-16 23:15:46.000000000 -0600
@@ -42,19 +42,26 @@
server. \fR
.SH "INSTALLATION"
.PP
+\fBDebian-specific Note\fR: all these steps have already been done for
+you. However, by default, swat is not enabled. This has been done for
+security reasons. To enable swat you need to edit /etc/inetd.conf,
+uncomment the swat entry (usually at the end of the file), and then
+restart inetd.
+.PP
After you compile SWAT you need to run \fBmake install
\fR to install the \fBswat\fR binary
-and the various help files and images. A default install would put
-these in:
+and the various help files and images. Under \fBDebian\fR, these
+files are in (please note that these locations are different than the
+default location):
.TP 0.2i
\(bu
-/usr/local/samba/bin/swat
+/usr/sbin/*
.TP 0.2i
\(bu
-/usr/local/samba/swat/images/*
+/usr/share/samba/swat/images/*
.TP 0.2i
\(bu
-/usr/local/samba/swat/help/*
+/usr/share/samba/swat/help/*
.SS "INETD INSTALLATION"
.PP
You need to edit your \fI/etc/inetd.conf
@@ -62,7 +69,7 @@
to enable SWAT to be launched via \fBinetd\fR.
.PP
In \fI/etc/services\fR you need to
-add a line like this:
+add a line like this (not needed for Debian):
.PP
\fBswat 901/tcp\fR
.PP
@@ -76,10 +83,11 @@
\fBinetd\fR daemon).
.PP
In \fI/etc/inetd.conf\fR you should
-add a line like this:
+add a line like this (not needed for Debian, the postinst script takes
+care of this):
.PP
\fBswat stream tcp nowait.400 root
-/usr/local/samba/bin/swat swat\fR
+/usr/sbin/swat swat\fR
.PP
One you have edited \fI/etc/services\fR
and \fI/etc/inetd.conf\fR you need to send a
@@ -105,11 +113,10 @@
(e.g., swat) to service port (e.g., 901) and protocol type
(e.g., tcp).
.TP
-\fB\fI/usr/local/samba/lib/smb.conf\fB\fR
+\fB\fI/etc/samba/smb.conf\fB\fR
This is the default location of the \fIsmb.conf(5)
-\fR server configuration file that swat edits. Other
-common places that systems install this file are \fI /usr/samba/lib/smb.conf\fR and \fI/etc/smb.conf
-\fR. This file describes all the services the server
+\fRserver configuration file that swat edits.
+This file describes all the services the server
is to make available to clients.
.SH "WARNINGS"
.PP
--- samba-2.2.2.cvs20020120.orig/swat/README
+++ samba-2.2.2.cvs20020120/swat/README
@@ -1,3 +1,11 @@
+[Debian-specific Note: you can safely skip the installation notes in
+this document. swat was configured for you when the package was
+installed. For security reasons, swat is not enabled. To enable it, you
+need to edit /etc/inetd.conf, uncomment the swat entry, and reload
+inetd. Please note that the file locations given in this file are not
+correct for the Debian version of swat. The correct file locations are
+given in swat's man page.]
+
This is a brief description of how to install and use the Samba Web
Administration Tool on your machine.

View File

@ -0,0 +1,567 @@
diff -uNr samba-3.0alpha23.orig/source/Makefile.in samba-3.0alpha23/source/Makefile.in
--- samba-3.0alpha23.orig/source/Makefile.in 2003-03-30 20:28:28.000000000 -0600
+++ samba-3.0alpha23/source/Makefile.in 2003-04-04 21:04:05.000000000 -0600
@@ -67,6 +67,7 @@
CONFIGDIR = @configdir@
VARDIR = @localstatedir@
MANDIR = @mandir@
+DATADIR = @datadir@
# The permissions to give the executables
INSTALLPERMS = 0755
@@ -90,6 +91,13 @@
# the directory where lock files go
LOCKDIR = @lockdir@
+# FHS directories; equal to LOCKDIR if not using --with-fhs
+CACHEDIR = @cachedir@
+STATEDIR = @statedir@
+
+# Where to look for (and install) codepage databases.
+CODEPAGEDIR = @codepagedir@
+
# the directory where pid files go
PIDDIR = @piddir@
# man pages language(s)
@@ -115,7 +123,7 @@
PATH_FLAGS4 = $(PATH_FLAGS3) -DSWATDIR=\"$(SWATDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\"
PATH_FLAGS5 = $(PATH_FLAGS4) -DLIBDIR=\"$(LIBDIR)\" \
-DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"@SHLIBEXT@\"
-PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\"
+PATH_FLAGS6 = $(PATH_FLAGS5) -DCONFIGDIR=\"$(CONFIGDIR)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" -DCACHEDIR=\"$(CACHEDIR)\" -DSTATEDIR=\"$(STATEDIR)\"
PATH_FLAGS = $(PATH_FLAGS6) $(PASSWD_FLAGS)
# Note that all executable programs now provide for an optional executable suffix.
@@ -1144,7 +1152,7 @@
@$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(DESTDIR)$(BINDIR) $(SCRIPTS)
installdat: installdirs
- @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
+ @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(CODEPAGEDIR) $(srcdir)
installswat: installdirs
@$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
diff -uNr samba-3.0alpha23.orig/source/configure.in samba-3.0alpha23/source/configure.in
--- samba-3.0alpha23.orig/source/configure.in 2003-04-04 21:03:52.000000000 -0600
+++ samba-3.0alpha23/source/configure.in 2003-04-04 21:04:05.000000000 -0600
@@ -17,18 +17,25 @@
AC_ARG_WITH(fhs,
[ --with-fhs Use FHS-compliant paths (default=no)],
configdir="${sysconfdir}/samba"
- lockdir="\${VARDIR}/cache/samba"
+ lockdir="\${VARDIR}/run/samba"
piddir="\${VARDIR}/run/samba"
logfilebase="\${VARDIR}/log/samba"
privatedir="\${CONFIGDIR}/private"
libdir="\${prefix}/lib/samba"
- swatdir="\${DATADIR}/samba/swat",
+ swatdir="\${DATADIR}/samba/swat"
+ codepagedir="\${DATADIR}/samba"
+ statedir="\${VARDIR}/lib/samba"
+ cachedir="\${VARDIR}/cache/samba"
+ AC_DEFINE(FHS_COMPATIBLE, 1, [Whether to use fully FHS-compatible paths]),
configdir="\${LIBDIR}"
logfilebase="\${VARDIR}"
lockdir="\${VARDIR}/locks"
piddir="\${VARDIR}/locks"
privatedir="\${prefix}/private"
- swatdir="\${prefix}/swat")
+ codepagedir="\${LIBDIR}"
+ swatdir="\${prefix}/swat"
+ statedir="\${LOCKDIR}"
+ cachedir="\${LOCKDIR}")
#################################################
# set private directory location
@@ -134,6 +141,9 @@
AC_SUBST(swatdir)
AC_SUBST(bindir)
AC_SUBST(sbindir)
+AC_SUBST(codepagedir)
+AC_SUBST(statedir)
+AC_SUBST(cachedir)
dnl Unique-to-Samba variables we'll be playing with.
AC_SUBST(SHELL)
diff -uNr samba-3.0alpha23.orig/source/dynconfig.c samba-3.0alpha23/source/dynconfig.c
--- samba-3.0alpha23.orig/source/dynconfig.c 2003-02-14 16:34:36.000000000 -0600
+++ samba-3.0alpha23/source/dynconfig.c 2003-04-04 21:04:05.000000000 -0600
@@ -53,6 +53,13 @@
pstring dyn_LMHOSTSFILE = LMHOSTSFILE;
/**
+ * @brief Samba data directory.
+ *
+ * @sa data_path() to get the path to a file inside the CODEPAGEDIR.
+ **/
+pstring dyn_CODEPAGEDIR = CODEPAGEDIR;
+
+/**
* @brief Samba library directory.
*
* @sa lib_path() to get the path to a file inside the LIBDIR.
@@ -70,3 +77,27 @@
const pstring dyn_SMB_PASSWD_FILE = SMB_PASSWD_FILE;
const pstring dyn_PRIVATE_DIR = PRIVATE_DIR;
+
+
+/* In non-FHS mode, these should be configurable using 'lock dir =';
+ but in FHS mode, they are their own directory. Implement as wrapper
+ functions so that everything can still be kept in dynconfig.c.
+ */
+
+char *dyn_STATEDIR(void)
+{
+#ifdef FHS_COMPATIBLE
+ return STATEDIR;
+#else
+ return lp_lockdir();
+#endif
+}
+
+char *dyn_CACHEDIR(void)
+{
+#ifdef FHS_COMPATIBLE
+ return CACHEDIR;
+#else
+ return lp_lockdir();
+#endif
+}
diff -uNr samba-3.0alpha23.orig/source/groupdb/mapping.c samba-3.0alpha23/source/groupdb/mapping.c
--- samba-3.0alpha23.orig/source/groupdb/mapping.c 2003-03-30 20:28:28.000000000 -0600
+++ samba-3.0alpha23/source/groupdb/mapping.c 2003-04-04 21:04:05.000000000 -0600
@@ -214,7 +214,7 @@
if (tdb && local_pid == sys_getpid())
return True;
- tdb = tdb_open_log(lock_path("group_mapping.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb = tdb_open_log(state_path("group_mapping.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb) {
DEBUG(0,("Failed to open group mapping database\n"));
return False;
diff -uNr samba-3.0alpha23.orig/source/include/dynconfig.h samba-3.0alpha23/source/include/dynconfig.h
--- samba-3.0alpha23.orig/source/include/dynconfig.h 2003-02-14 16:34:36.000000000 -0600
+++ samba-3.0alpha23/source/include/dynconfig.h 2003-04-04 21:04:05.000000000 -0600
@@ -31,8 +31,12 @@
extern pstring dyn_CONFIGFILE;
extern pstring dyn_LOGFILEBASE, dyn_LMHOSTSFILE;
extern pstring dyn_LIBDIR;
+extern pstring dyn_CODEPAGEDIR;
extern const fstring dyn_SHLIBEXT;
extern const pstring dyn_LOCKDIR;
extern const pstring dyn_PIDDIR;
extern const pstring dyn_SMB_PASSWD_FILE;
extern const pstring dyn_PRIVATE_DIR;
+
+char *dyn_STATEDIR();
+char *dyn_CACHEDIR();
diff -uNr samba-3.0alpha23.orig/source/intl/lang_tdb.c samba-3.0alpha23/source/intl/lang_tdb.c
--- samba-3.0alpha23.orig/source/intl/lang_tdb.c 2003-01-03 08:41:24.000000000 -0600
+++ samba-3.0alpha23/source/intl/lang_tdb.c 2003-04-04 21:04:05.000000000 -0600
@@ -123,7 +123,7 @@
/* if no lang then we don't translate */
if (!lang) return True;
- asprintf(&msg_path, "%s.msg", lib_path((const char *)lang));
+ asprintf(&msg_path, "%s.msg", data_path((const char *)lang));
if (stat(msg_path, &st) != 0) {
/* the msg file isn't available */
free(msg_path);
@@ -131,7 +131,7 @@
}
- asprintf(&path, "%s%s.tdb", lock_path("lang_"), lang);
+ asprintf(&path, "%s%s.tdb", state_path("lang_"), lang);
tdb = tdb_open_log(path, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0644);
if (!tdb) {
diff -uNr samba-3.0alpha23.orig/source/lib/account_pol.c samba-3.0alpha23/source/lib/account_pol.c
--- samba-3.0alpha23.orig/source/lib/account_pol.c 2003-01-03 08:41:24.000000000 -0600
+++ samba-3.0alpha23/source/lib/account_pol.c 2003-04-04 21:04:06.000000000 -0600
@@ -36,7 +36,7 @@
if (tdb && local_pid == sys_getpid())
return True;
- tdb = tdb_open_log(lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb = tdb_open_log(state_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb) {
DEBUG(0,("Failed to open account policy database\n"));
return False;
diff -uNr samba-3.0alpha23.orig/source/lib/util.c samba-3.0alpha23/source/lib/util.c
--- samba-3.0alpha23.orig/source/lib/util.c 2003-03-30 20:28:28.000000000 -0600
+++ samba-3.0alpha23/source/lib/util.c 2003-04-04 21:04:06.000000000 -0600
@@ -2241,6 +2241,61 @@
}
/**
+ * @brief Returns an absolute path to a file in the Samba data directory.
+ *
+ * @param name File to find, relative to CODEPAGEDIR.
+ *
+ * @retval Pointer to a static #pstring containing the full path.
+ **/
+
+char *data_path(const char *name)
+{
+ static pstring fname;
+ snprintf(fname, sizeof(fname), "%s/%s", dyn_CODEPAGEDIR, name);
+ return fname;
+}
+
+/*****************************************************************
+a useful function for returning a path in the Samba state directory
+ *****************************************************************/
+char *state_path(char *name)
+{
+ static pstring fname;
+
+ pstrcpy(fname,dyn_STATEDIR());
+ trim_string(fname,"","/");
+
+ if (!directory_exist(fname,NULL)) {
+ mkdir(fname,0755);
+ }
+
+ pstrcat(fname,"/");
+ pstrcat(fname,name);
+
+ return fname;
+}
+
+/*****************************************************************
+a useful function for returning a path in the Samba cache directory
+ *****************************************************************/
+char *cache_path(char *name)
+{
+ static pstring fname;
+
+ pstrcpy(fname,dyn_CACHEDIR());
+ trim_string(fname,"","/");
+
+ if (!directory_exist(fname,NULL)) {
+ mkdir(fname,0755);
+ }
+
+ pstrcat(fname,"/");
+ pstrcat(fname,name);
+
+ return fname;
+}
+
+/**
* @brief Returns the platform specific shared library extension.
*
* @retval Pointer to a static #fstring containing the extension.
diff -uNr samba-3.0alpha23.orig/source/lib/util_unistr.c samba-3.0alpha23/source/lib/util_unistr.c
--- samba-3.0alpha23.orig/source/lib/util_unistr.c 2003-02-27 09:22:58.000000000 -0600
+++ samba-3.0alpha23/source/lib/util_unistr.c 2003-04-04 21:04:06.000000000 -0600
@@ -54,8 +54,8 @@
if (initialised) return;
initialised = 1;
- upcase_table = map_file(lib_path("upcase.dat"), 0x20000);
- lowcase_table = map_file(lib_path("lowcase.dat"), 0x20000);
+ upcase_table = map_file(data_path("upcase.dat"), 0x20000);
+ lowcase_table = map_file(data_path("lowcase.dat"), 0x20000);
/* we would like Samba to limp along even if these tables are
not available */
@@ -161,7 +161,7 @@
return;
}
- valid_file = map_file(lib_path("valid.dat"), 0x10000);
+ valid_file = map_file(data_path("valid.dat"), 0x10000);
if (valid_file) {
valid_table = valid_file;
mapped_file = 1;
diff -uNr samba-3.0alpha23.orig/source/libsmb/netlogon_unigrp.c samba-3.0alpha23/source/libsmb/netlogon_unigrp.c
--- samba-3.0alpha23.orig/source/libsmb/netlogon_unigrp.c 2003-01-02 10:22:58.000000000 -0600
+++ samba-3.0alpha23/source/libsmb/netlogon_unigrp.c 2003-04-04 21:04:06.000000000 -0600
@@ -41,7 +41,7 @@
BOOL uni_group_cache_init(void)
{
if (!netlogon_unigrp_tdb) {
- netlogon_unigrp_tdb = tdb_open_log(lock_path("netlogon_unigrp.tdb"), 0,
+ netlogon_unigrp_tdb = tdb_open_log(state_path("netlogon_unigrp.tdb"), 0,
TDB_DEFAULT, O_RDWR | O_CREAT, 0644);
}
@@ -119,7 +119,7 @@
return NULL;
}
if (!netlogon_unigrp_tdb) {
- netlogon_unigrp_tdb = tdb_open_log(lock_path("netlogon_unigrp.tdb"), 0,
+ netlogon_unigrp_tdb = tdb_open_log(state_path("netlogon_unigrp.tdb"), 0,
TDB_DEFAULT, O_RDWR, 0644);
}
if (!netlogon_unigrp_tdb) {
diff -uNr samba-3.0alpha23.orig/source/nmbd/nmbd_serverlistdb.c samba-3.0alpha23/source/nmbd/nmbd_serverlistdb.c
--- samba-3.0alpha23.orig/source/nmbd/nmbd_serverlistdb.c 2002-12-12 09:07:32.000000000 -0600
+++ samba-3.0alpha23/source/nmbd/nmbd_serverlistdb.c 2003-04-04 21:04:06.000000000 -0600
@@ -343,7 +343,7 @@
updatecount++;
- pstrcpy(fname,lp_lockdir());
+ pstrcpy(fname,dyn_CACHEDIR());
trim_string(fname,NULL,"/");
pstrcat(fname,"/");
pstrcat(fname,SERVER_LIST);
diff -uNr samba-3.0alpha23.orig/source/nsswitch/winbindd_cache.c samba-3.0alpha23/source/nsswitch/winbindd_cache.c
--- samba-3.0alpha23.orig/source/nsswitch/winbindd_cache.c 2002-10-16 12:52:31.000000000 -0500
+++ samba-3.0alpha23/source/nsswitch/winbindd_cache.c 2003-04-04 21:04:06.000000000 -0600
@@ -53,7 +53,7 @@
}
if (opt_nocache) return;
- wcache->tdb = tdb_open_log(lock_path("winbindd_cache.tdb"), 5000,
+ wcache->tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), 5000,
TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, 0600);
if (!wcache->tdb) {
diff -uNr samba-3.0alpha23.orig/source/param/loadparm.c samba-3.0alpha23/source/param/loadparm.c
--- samba-3.0alpha23.orig/source/param/loadparm.c 2003-03-30 20:28:29.000000000 -0600
+++ samba-3.0alpha23/source/param/loadparm.c 2003-04-04 21:04:06.000000000 -0600
@@ -104,6 +104,9 @@
char *szAddPrinterCommand;
char *szDeletePrinterCommand;
char *szOs2DriverMap;
+#ifdef FHS_COMPATIBLE
+ char *szLockDirStub;
+#endif
char *szLockDir;
char *szPidDir;
char *szRootdir;
@@ -1052,8 +1055,13 @@
{"config file", P_STRING, P_GLOBAL, &Globals.szConfigFile, NULL, NULL, FLAG_HIDE},
{"preload", P_STRING, P_GLOBAL, &Globals.szAutoServices, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
{"auto services", P_STRING, P_GLOBAL, &Globals.szAutoServices, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
+#ifdef FHS_COMPATIBLE
+ {"lock dir", P_STRING, P_GLOBAL, &Globals.szLockDirStub, NULL, NULL, 0},
+ {"lock directory", P_STRING, P_GLOBAL, &Globals.szLockDirStub, NULL, NULL, 0},
+#else
{"lock dir", P_STRING, P_GLOBAL, &Globals.szLockDir, NULL, NULL, FLAG_HIDE},
{"lock directory", P_STRING, P_GLOBAL, &Globals.szLockDir, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
+#endif
{"pid directory", P_STRING, P_GLOBAL, &Globals.szPidDir, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
#ifdef WITH_UTMP
{"utmp directory", P_STRING, P_GLOBAL, &Globals.szUtmpDir, NULL, NULL, FLAG_ADVANCED | FLAG_DEVELOPER},
diff -uNr samba-3.0alpha23.orig/source/passdb/secrets.c samba-3.0alpha23/source/passdb/secrets.c
--- samba-3.0alpha23.orig/source/passdb/secrets.c 2003-03-30 20:28:29.000000000 -0600
+++ samba-3.0alpha23/source/passdb/secrets.c 2003-04-04 21:04:06.000000000 -0600
@@ -37,8 +37,7 @@
if (tdb)
return True;
- pstrcpy(fname, lp_private_dir());
- pstrcat(fname,"/secrets.tdb");
+ pstrcpy(fname, state_path("secrets.tdb"));
tdb = tdb_open_log(fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
diff -uNr samba-3.0alpha23.orig/source/printing/nt_printing.c samba-3.0alpha23/source/printing/nt_printing.c
--- samba-3.0alpha23.orig/source/printing/nt_printing.c 2003-03-30 20:28:29.000000000 -0600
+++ samba-3.0alpha23/source/printing/nt_printing.c 2003-04-04 21:04:07.000000000 -0600
@@ -287,28 +287,28 @@
if (tdb_drivers)
tdb_close(tdb_drivers);
- tdb_drivers = tdb_open_log(lock_path("ntdrivers.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb_drivers = tdb_open_log(state_path("ntdrivers.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb_drivers) {
DEBUG(0,("nt_printing_init: Failed to open nt drivers database %s (%s)\n",
- lock_path("ntdrivers.tdb"), strerror(errno) ));
+ state_path("ntdrivers.tdb"), strerror(errno) ));
return False;
}
if (tdb_printers)
tdb_close(tdb_printers);
- tdb_printers = tdb_open_log(lock_path("ntprinters.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb_printers = tdb_open_log(state_path("ntprinters.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb_printers) {
DEBUG(0,("nt_printing_init: Failed to open nt printers database %s (%s)\n",
- lock_path("ntprinters.tdb"), strerror(errno) ));
+ state_path("ntprinters.tdb"), strerror(errno) ));
return False;
}
if (tdb_forms)
tdb_close(tdb_forms);
- tdb_forms = tdb_open_log(lock_path("ntforms.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb_forms = tdb_open_log(state_path("ntforms.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!tdb_forms) {
DEBUG(0,("nt_printing_init: Failed to open nt forms database %s (%s)\n",
- lock_path("ntforms.tdb"), strerror(errno) ));
+ state_path("ntforms.tdb"), strerror(errno) ));
return False;
}
diff -uNr samba-3.0alpha23.orig/source/printing/printing.c samba-3.0alpha23/source/printing/printing.c
--- samba-3.0alpha23.orig/source/printing/printing.c 2003-03-30 20:28:29.000000000 -0600
+++ samba-3.0alpha23/source/printing/printing.c 2003-04-04 21:04:08.000000000 -0600
@@ -174,8 +174,8 @@
if (local_pid == sys_getpid())
return True;
- unlink(lock_path("printing.tdb"));
- pstrcpy(printing_path,lock_path("printing"));
+ unlink(cache_path("printing.tdb"));
+ pstrcpy(printing_path,cache_path("printing"));
mkdir(printing_path,0755);
local_pid = sys_getpid();
diff -uNr samba-3.0alpha23.orig/source/printing/printing_db.c samba-3.0alpha23/source/printing/printing_db.c
--- samba-3.0alpha23.orig/source/printing/printing_db.c 2003-02-14 16:34:37.000000000 -0600
+++ samba-3.0alpha23/source/printing/printing_db.c 2003-04-04 21:04:08.000000000 -0600
@@ -86,7 +86,7 @@
DLIST_ADD(print_db_head, p);
}
- pstrcpy(printdb_path, lock_path("printing/"));
+ pstrcpy(printdb_path, cache_path("printing/"));
pstrcat(printdb_path, printername);
pstrcat(printdb_path, ".tdb");
diff -uNr samba-3.0alpha23.orig/source/registry/reg_db.c samba-3.0alpha23/source/registry/reg_db.c
--- samba-3.0alpha23.orig/source/registry/reg_db.c 2002-08-26 09:46:07.000000000 -0500
+++ samba-3.0alpha23/source/registry/reg_db.c 2003-04-04 21:04:08.000000000 -0600
@@ -131,13 +131,13 @@
* if we need to init the data in the registry
*/
- tdb_reg = tdb_open_log(lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
+ tdb_reg = tdb_open_log(state_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
if ( !tdb_reg )
{
- tdb_reg = tdb_open_log(lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ tdb_reg = tdb_open_log(state_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if ( !tdb_reg ) {
DEBUG(0,("init_registry: Failed to open registry %s (%s)\n",
- lock_path("registry.tdb"), strerror(errno) ));
+ state_path("registry.tdb"), strerror(errno) ));
return False;
}
diff -uNr samba-3.0alpha23.orig/source/rpc_server/srv_srvsvc_nt.c samba-3.0alpha23/source/rpc_server/srv_srvsvc_nt.c
--- samba-3.0alpha23.orig/source/rpc_server/srv_srvsvc_nt.c 2003-03-30 20:28:31.000000000 -0600
+++ samba-3.0alpha23/source/rpc_server/srv_srvsvc_nt.c 2003-04-04 21:04:08.000000000 -0600
@@ -133,10 +133,10 @@
if (share_tdb && local_pid == sys_getpid())
return True;
- share_tdb = tdb_open_log(lock_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ share_tdb = tdb_open_log(state_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (!share_tdb) {
DEBUG(0,("Failed to open share info database %s (%s)\n",
- lock_path("share_info.tdb"), strerror(errno) ));
+ state_path("share_info.tdb"), strerror(errno) ));
return False;
}
diff -uNr samba-3.0alpha23.orig/source/smbd/lanman.c samba-3.0alpha23/source/smbd/lanman.c
--- samba-3.0alpha23.orig/source/smbd/lanman.c 2003-02-25 14:51:35.000000000 -0600
+++ samba-3.0alpha23/source/smbd/lanman.c 2003-04-04 21:04:08.000000000 -0600
@@ -966,9 +966,9 @@
BOOL local_list_only;
int i;
- lines = file_lines_load(lock_path(SERVER_LIST), NULL);
+ lines = file_lines_load(cache_path(SERVER_LIST), NULL);
if (!lines) {
- DEBUG(4,("Can't open %s - %s\n",lock_path(SERVER_LIST),strerror(errno)));
+ DEBUG(4,("Can't open %s - %s\n",cache_path(SERVER_LIST),strerror(errno)));
return(0);
}
diff -uNr samba-3.0alpha23.orig/source/wrepld/process.c samba-3.0alpha23/source/wrepld/process.c
--- samba-3.0alpha23.orig/source/wrepld/process.c 2003-01-14 10:01:01.000000000 -0600
+++ samba-3.0alpha23/source/wrepld/process.c 2003-04-04 21:04:09.000000000 -0600
@@ -197,7 +197,7 @@
{
TDB_CONTEXT *tdb;
- tdb = tdb_open_log(lock_path(WINS_LIST), 0, TDB_DEFAULT, O_RDONLY, 0600);
+ tdb = tdb_open_log(state_path(WINS_LIST), 0, TDB_DEFAULT, O_RDONLY, 0600);
if (!tdb) {
DEBUG(2,("get_our_last_id: Can't open wins database file %s. Error was %s\n", WINS_LIST, strerror(errno) ));
return;
@@ -489,7 +489,7 @@
}
- tdb = tdb_open_log(lock_path(WINS_LIST), 0, TDB_DEFAULT, O_RDONLY, 0600);
+ tdb = tdb_open_log(state_path(WINS_LIST), 0, TDB_DEFAULT, O_RDONLY, 0600);
if (!tdb) {
DEBUG(2,("send_entry_request: Can't open wins database file %s. Error was %s\n", WINS_LIST, strerror(errno) ));
return;
diff -uNr samba-3.0alpha23.orig/source/passdb/pdb_tdb.c samba-3.0alpha23/source/passdb/pdb_tdb.c
--- samba-3.0alpha23.orig/source/passdb/pdb_tdb.c 2003-03-30 20:28:29.000000000 -0600
+++ samba-3.0alpha23/source/passdb/pdb_tdb.c 2003-04-30 13:51:43.000000000 -0500
@@ -943,10 +943,7 @@
if (location) {
tdb_state->tdbsam_location = talloc_strdup(pdb_context->mem_ctx, location);
} else {
- pstring tdbfile;
- get_private_directory(tdbfile);
- pstrcat(tdbfile, "/");
- pstrcat(tdbfile, PASSDB_FILE_NAME);
+ char *tdbfile = state_path(PASSDB_FILE_NAME);
tdb_state->tdbsam_location = talloc_strdup(pdb_context->mem_ctx, tdbfile);
}
--- samba-3.0alpha24/source/nmbd/nmbd_winsserver.c.orig 2003-05-18 19:12:27.000000000 -0400
+++ samba-3.0alpha24/source/nmbd/nmbd_winsserver.c 2003-05-18 19:18:04.000000000 -0400
@@ -230,7 +230,7 @@
add_samba_names_to_subnet(wins_server_subnet);
- if((fp = x_fopen(lock_path(WINS_LIST),O_RDONLY,0)) == NULL)
+ if((fp = x_fopen(state_path(WINS_LIST),O_RDONLY,0)) == NULL)
{
DEBUG(2,("initialise_wins: Can't open wins database file %s. Error was %s\n",
WINS_LIST, strerror(errno) ));
@@ -1836,7 +1836,7 @@
}
}
- slprintf(fname,sizeof(fname)-1,"%s/%s", lp_lockdir(), WINS_LIST);
+ slprintf(fname,sizeof(fname)-1,"%s/%s", dyn_STATEDIR(), WINS_LIST);
all_string_sub(fname,"//", "/", 0);
slprintf(fnamenew,sizeof(fnamenew)-1,"%s.%u", fname, (unsigned int)sys_getpid());
--- samba-3.0alpha24/source/nsswitch/winbindd_idmap_tdb.c.orig 2003-05-18 19:22:14.000000000 -0400
+++ samba-3.0alpha24/source/nsswitch/winbindd_idmap_tdb.c 2003-05-18 19:27:14.000000000 -0400
@@ -283,16 +283,16 @@
SMB_STRUCT_STAT stbuf;
/* move to the new database on first startup */
- if (!file_exist(lock_path("idmap.tdb"), &stbuf)) {
- if (file_exist(lock_path("winbindd_idmap.tdb"), &stbuf)) {
+ if (!file_exist(state_path("idmap.tdb"), &stbuf)) {
+ if (file_exist(state_path("winbindd_idmap.tdb"), &stbuf)) {
char *cmd = NULL;
/* lazy file copy */
- if (asprintf(&cmd, "cp -p %s/winbindd_idmap.tdb %s/idmap.tdb", lp_lockdir(), lp_lockdir()) != -1) {
+ if (asprintf(&cmd, "cp -p %s/winbindd_idmap.tdb %s/idmap.tdb", dyn_STATEDIR(), dyn_STATEDIR()) != -1) {
system(cmd);
free(cmd);
}
- if (!file_exist(lock_path("idmap.tdb"), &stbuf)) {
+ if (!file_exist(state_path("idmap.tdb"), &stbuf)) {
DEBUG(0, ("idmap_init: Unable to make a new database copy\n"));
return False;
}
@@ -300,7 +300,7 @@
}
/* Open tdb cache */
- if (!(idmap_tdb = tdb_open_log(lock_path("idmap.tdb"), 0,
+ if (!(idmap_tdb = tdb_open_log(state_path("idmap.tdb"), 0,
TDB_DEFAULT, O_RDWR | O_CREAT,
0600))) {
DEBUG(0,

View File

@ -0,0 +1,84 @@
--- samba-3.0alpha23.orig/source/script/installswat.sh 2001-10-17 16:00:14.000000000 -0400
+++ samba-3.0alpha23/source/script/installswat.sh 2003-04-06 03:18:29.000000000 -0400
@@ -9,7 +9,7 @@
echo Installing the Samba Web Administration Tool
LANGS=". `cd $SRCDIR../swat/; /bin/echo lang/??`"
-echo Installing langs are `cd $SRCDIR../swat/lang/; /bin/echo ??`
+echo Installing the following additional langs: `cd $SRCDIR../swat/lang/; /bin/echo ??`
for ln in $LANGS; do
SWATLANGDIR=$SWATDIR/$ln
@@ -23,21 +23,17 @@
fi
fi
done
-done
-
-# Install images
-for ln in $LANGS; do
-for f in $SRCDIR../swat/$ln/images/*.gif; do
+ # Install images
+ for f in $SRCDIR../swat/$ln/images/*.gif; do
FNAME=$SWATDIR/$ln/images/`basename $f`
echo $FNAME
cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
chmod 0644 $FNAME
-done
-
-# Install html help
+ done
-for f in $SRCDIR../swat/$ln/help/*.html; do
+ # Install html help
+ for f in $SRCDIR../swat/$ln/help/*.html; do
FNAME=$SWATDIR/$ln/help/`basename $f`
echo $FNAME
if [ "x$BOOKDIR" = "x" ]; then
@@ -49,31 +45,31 @@
cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
rm -f $f
chmod 0644 $FNAME
-done
-
-# Install html documentation
-
-for f in $SRCDIR../docs/htmldocs/*.html; do
- FNAME=$SWATDIR/help/`basename $f`
- echo $FNAME
- cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
- chmod 0644 $FNAME
-done
-
-# Install "server-side" includes
+ done
-for f in $SRCDIR../swat/$ln/include/*.html; do
+ # Install "server-side" includes
+ for f in $SRCDIR../swat/$ln/include/*.html; do
FNAME=$SWATDIR/$ln/include/`basename $f`
echo $FNAME
cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
chmod 0644 $FNAME
+ done
done
+# Install html documentation
+for f in $SRCDIR../docs/htmldocs/*.html; do
+ FNAME=$SWATDIR/help/`basename $f`
+ echo $FNAME
+ ln -s ../../../doc/samba-doc/htmldocs/`basename $f` $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+# chmod 0644 $FNAME
done
# Install Using Samba book
-if [ "x$BOOKDIR" != "x" ]; then
+# For Debian we do not install anything here, we just create a symlink
+# pointing to /usr/share/doc/samba-doc/htmldocs/using_samba/ in
+# debian/rules (peloy@debian.org)
+if /bin/false; then
# Create directories

View File

@ -1,78 +0,0 @@
--- samba-2.2.2.cvs20020201/source/param/loadparm.c.orig Fri Feb 1 17:03:50 2002
+++ samba-2.2.2.cvs20020201/source/param/loadparm.c Fri Feb 1 18:45:41 2002
@@ -1085,26 +1085,26 @@
case PRINT_AIX:
case PRINT_LPRNT:
case PRINT_LPROS2:
- string_set(&sDefault.szLpqcommand, "lpq -P%p");
- string_set(&sDefault.szLprmcommand, "lprm -P%p %j");
+ string_set(&sDefault.szLpqcommand, "lpq -P'%p'");
+ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j");
string_set(&sDefault.szPrintcommand,
- "lpr -r -P%p %s");
+ "lpr -r -P'%p' %s");
break;
case PRINT_LPRNG:
case PRINT_PLP:
- string_set(&sDefault.szLpqcommand, "lpq -P%p");
- string_set(&sDefault.szLprmcommand, "lprm -P%p %j");
+ string_set(&sDefault.szLpqcommand, "lpq -P'%p'");
+ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j");
string_set(&sDefault.szPrintcommand,
- "lpr -r -P%p %s");
+ "lpr -r -P'%p' %s");
string_set(&sDefault.szQueuepausecommand,
- "lpc stop %p");
+ "lpc stop '%p'");
string_set(&sDefault.szQueueresumecommand,
- "lpc start %p");
+ "lpc start '%p'");
string_set(&sDefault.szLppausecommand,
- "lpc hold %p %j");
+ "lpc hold '%p' %j");
string_set(&sDefault.szLpresumecommand,
- "lpc release %p %j");
+ "lpc release '%p' %j");
break;
case PRINT_CUPS:
@@ -1120,19 +1120,19 @@
string_set(&Globals.szPrintcapname, "cups");
#else
string_set(&sDefault.szLpqcommand,
- "/usr/bin/lpstat -o %p");
+ "/usr/bin/lpstat -o '%p'");
string_set(&sDefault.szLprmcommand,
- "/usr/bin/cancel %p-%j");
+ "/usr/bin/cancel '%p-%j'");
string_set(&sDefault.szPrintcommand,
- "/usr/bin/lp -d %p %s; rm %s");
+ "/usr/bin/lp -d '%p' %s; rm %s");
string_set(&sDefault.szLppausecommand,
- "lp -i %p-%j -H hold");
+ "lp -i '%p-%j' -H hold");
string_set(&sDefault.szLpresumecommand,
- "lp -i %p-%j -H resume");
+ "lp -i '%p-%j' -H resume");
string_set(&sDefault.szQueuepausecommand,
- "/usr/bin/disable %p");
+ "/usr/bin/disable '%p'");
string_set(&sDefault.szQueueresumecommand,
- "/usr/bin/enable %p");
+ "/usr/bin/enable '%p'");
string_set(&Globals.szPrintcapname, "lpstat");
#endif /* HAVE_CUPS */
break;
@@ -1437,7 +1437,10 @@
else
StrnCpy(ret, s, len);
- trim_string(ret, "\"", "\"");
+ if (trim_string(ret, "\"", "\"")) {
+ if (strchr(ret,'"') != NULL)
+ StrnCpy(ret, s, len);
+ }
standard_sub_basic(ret);
return (ret);

View File

@ -0,0 +1,20 @@
diff -uNr samba-2.999+3.0.alpha21.orig/source/nmbd/nmbd_subnetdb.c samba-2.999+3.0.alpha21/source/nmbd/nmbd_subnetdb.c
--- samba-2.999+3.0.alpha21.orig/source/nmbd/nmbd_subnetdb.c 2002-11-26 20:54:19.000000000 -0600
+++ samba-2.999+3.0.alpha21/source/nmbd/nmbd_subnetdb.c 2002-12-16 23:34:13.000000000 -0600
@@ -230,12 +230,16 @@
extern struct in_addr loopback_ip;
if(num_interfaces == 0) {
+ void (*old_handler)(int);
+
DEBUG(0,("create_subnets: No local interfaces !\n"));
DEBUG(0,("create_subnets: Waiting for an interface to appear ...\n"));
+ old_handler = CatchSignal( SIGTERM, SIGNAL_CAST SIG_DFL );
while (iface_count() == 0) {
sleep(5);
load_interfaces();
}
+ CatchSignal( SIGTERM, SIGNAL_CAST old_handler );
}
num_interfaces = iface_count();

View File

@ -1,15 +1,16 @@
--- samba-2.2.2.cvs20020120.orig/source/client/smbmount.c
+++ samba-2.2.2.cvs20020120/source/client/smbmount.c
@@ -719,7 +719,7 @@
diff -uNr samba-3.0alpha23.orig/source/client/smbmount.c samba-3.0alpha23/source/client/smbmount.c
--- samba-3.0alpha23.orig/source/client/smbmount.c 2003-03-30 20:28:28.000000000 -0600
+++ samba-3.0alpha23/source/client/smbmount.c 2003-04-04 21:05:58.000000000 -0600
@@ -765,7 +765,7 @@
*lp = 0;
pstrcpy(password,lp+1);
got_pass = True;
- memset(strchr(opteq+1,'%')+1,'X',strlen(password));
+ memset(strchr(opteq+1,'%')+1,'\0',strlen(password));
- memset(strchr_m(opteq+1,'%')+1,'X',strlen(password));
+ memset(strchr_m(opteq+1,'%')+1,'\0',strlen(password));
}
if ((lp=strchr(username,'/'))) {
if ((lp=strchr_m(username,'/'))) {
*lp = 0;
@@ -729,7 +729,7 @@
@@ -775,7 +775,7 @@
!strcmp(opts, "password")) {
pstrcpy(password,opteq+1);
got_pass = True;
@ -18,27 +19,19 @@
} else if(!strcmp(opts, "credentials")) {
pstrcpy(credentials,opteq+1);
} else if(!strcmp(opts, "netbiosname")) {
@@ -822,7 +822,7 @@
@@ -889,7 +889,7 @@
*p = 0;
pstrcpy(password,p+1);
got_pass = True;
- memset(strchr(getenv("USER"),'%')+1,'X',strlen(password));
+ memset(strchr(getenv("USER"),'%')+1,'\0',strlen(password));
- memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
+ memset(strchr_m(getenv("USER"),'%')+1,'\0',strlen(password));
}
strupper(username);
}
--- samba-2.2.2.cvs20020120.orig/source/script/installbin.sh
+++ samba-2.2.2.cvs20020120/source/script/installbin.sh
@@ -11,7 +11,7 @@
shift
shift
-for d in $BASEDIR $BINDIR $LIBDIR $VARDIR $BASEDIR/private; do
+for d in $BASEDIR $BINDIR $LIBDIR $VARDIR; do
if [ ! -d $d ]; then
mkdir $d
if [ ! -d $d ]; then
@@ -33,9 +33,11 @@
diff -uNr samba-3.0alpha23.orig/source/script/installbin.sh samba-3.0alpha23/source/script/installbin.sh
--- samba-3.0alpha23.orig/source/script/installbin.sh 2002-04-22 13:16:20.000000000 -0500
+++ samba-3.0alpha23/source/script/installbin.sh 2003-04-04 21:05:58.000000000 -0600
@@ -22,9 +22,11 @@
chmod $INSTALLPERMS $BINDIR/$p2
# this is a special case, mount needs this in a specific location
@ -53,34 +46,40 @@
done
--- samba-2.2.2.cvs20020120.orig/source/script/installswat.sh
+++ samba-2.2.2.cvs20020120/source/script/installswat.sh
@@ -48,8 +48,8 @@
for f in $SRCDIR../docs/htmldocs/*.html; do
FNAME=$SWATDIR/help/`basename $f`
echo $FNAME
- cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
- chmod 0644 $FNAME
+ ln -s ../../../../doc/samba-doc/htmldocs/`basename $f` $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
+# chmod 0644 $FNAME
done
diff -uNr samba-3.0alpha23.orig/source/smbd/service.c samba-3.0alpha23/source/smbd/service.c
--- samba-3.0alpha23.orig/source/smbd/service.c 2003-03-30 20:28:31.000000000 -0600
+++ samba-3.0alpha23/source/smbd/service.c 2003-04-04 21:05:58.000000000 -0600
@@ -888,6 +888,14 @@
change_to_root_user();
}
# Install "server-side" includes
@@ -63,7 +63,10 @@
# Install Using Samba book
-if [ "x$BOOKDIR" != "x" ]; then
+# For Debian we do not install anything here, we just create a symlink
+# pointing to /usr/share/doc/samba-doc/htmldocs/using_samba/ in
+# debian/rules (peloy@debian.org)
+if /bin/false; then
# Create directories
--- samba-2.2.2.cvs20020120.orig/source/web/diagnose.c
+++ samba-2.2.2.cvs20020120/source/web/diagnose.c
@@ -54,6 +54,7 @@
+ /* If our root postexec command includes a call to 'unmount', we want
+ to make sure we aren't blocking the mount point. */
+ /* I think this patch should go here, but I am not sure since
+ the code looks very different than in Samba 2.2.2. Will come
+ back later; should check what change_to_root_user() does. Eloy.-
+ vfs_ChDir(conn,"/");
+ /*
+
change_to_root_user();
/* execute any "root postexec = " line */
if (*lp_rootpostexec(SNUM(conn))) {
diff -uNr samba-3.0alpha23.orig/source/smbwrapper/smbsh.c samba-3.0alpha23/source/smbwrapper/smbsh.c
--- samba-3.0alpha23.orig/source/smbwrapper/smbsh.c 2003-03-30 20:28:31.000000000 -0600
+++ samba-3.0alpha23/source/smbwrapper/smbsh.c 2003-04-04 21:05:58.000000000 -0600
@@ -36,7 +36,7 @@
int main(int argc, char *argv[])
{
char *p, *u;
- const char *libd = dyn_BINDIR;
+ const char *libd = dyn_LIBDIR;
pstring line, wd;
int opt;
extern char *optarg;
diff -uNr samba-3.0alpha23.orig/source/web/diagnose.c samba-3.0alpha23/source/web/diagnose.c
--- samba-3.0alpha23.orig/source/web/diagnose.c 2003-01-18 13:03:58.000000000 -0600
+++ samba-3.0alpha23/source/web/diagnose.c 2003-04-04 21:05:58.000000000 -0600
@@ -70,6 +70,7 @@
static struct cli_state cli;
extern struct in_addr loopback_ip;
@ -88,112 +87,3 @@
if (!cli_initialise(&cli))
return False;
--- samba-2.2.2.cvs20020120.orig/source/web/startstop.c
+++ samba-2.2.2.cvs20020120/source/web/startstop.c
@@ -37,7 +37,7 @@
return;
}
- slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", SBINDIR);
+ slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", "/usr/sbin");
become_daemon();
@@ -58,7 +58,7 @@
return;
}
- slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", SBINDIR);
+ slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", "/usr/sbin");
become_daemon();
--- samba-2.2.2.cvs20020120.orig/source/web/swat.c
+++ samba-2.2.2.cvs20020120/source/web/swat.c
@@ -49,6 +49,19 @@
#define ENABLE_USER_FLAG "enable_user_flag"
#define RHOST "remote_host"
+typedef struct html_conversion {
+ char src;
+ char *dest;
+} html_conversion;
+
+static const html_conversion entities[] = {
+ { '"', "&quot;" },
+ { '&', "&amp;" },
+ { '<', "&lt;" },
+ { '>', "&gt;" },
+ { '\0', NULL },
+};
+
/* we need these because we link to locking*.o */
void become_root(void) {}
void unbecome_root(void) {}
@@ -77,6 +90,51 @@
return newstring;
}
+static char *htmlentities(char *str)
+{
+ int i,j, destlen = 0;
+ int length = strlen(str);
+ /* Feel free to use a pstring if appropriate -- I haven't
+ checked if it's guaranteed to be long enough, and suspect it
+ isn't. -SRL */
+ char *dststr = NULL;
+ char *p;
+
+ for (i = 0; i < length; i++) {
+ for (j = 0; entities[j].src; j++) {
+ if (str[i] == entities[j].src) {
+ destlen += strlen(entities[j].dest);
+ break;
+ }
+ }
+ if (!entities[j].src) {
+ destlen++;
+ }
+ }
+ if (length == destlen) {
+ return(strdup(str));
+ }
+ p = dststr = malloc(destlen + 1);
+ if (!dststr) {
+ return(NULL);
+ }
+ dststr[destlen] = '\0';
+ for (i = 0; i < length; i++) {
+ for (j = 0; entities[j].src; j++) {
+ if (str[i] == entities[j].src) {
+ strncpy(p, entities[j].dest,
+ strlen(entities[j].dest));
+ p += strlen(entities[j].dest);
+ break;
+ }
+ }
+ if (!entities[j].src) {
+ *p++ = str[i];
+ }
+ }
+ return(dststr);
+}
+
static char *stripspace(char *str)
{
static char newstring[1024];
@@ -182,8 +240,12 @@
case P_STRING:
case P_USTRING:
- printf("<input type=text size=40 name=\"parm_%s\" value=\"%s\">",
- make_parm_name(parm->label), *(char **)ptr);
+ str = htmlentities(*(char **)ptr);
+ printf("<input type=\"text\" size=\"40\" name=\"parm_%s\" value=\"%s\">",
+ make_parm_name(parm->label), str);
+ if (str != NULL) {
+ free(str);
+ }
printf("<input type=button value=\"Set Default\" onClick=\"swatform.parm_%s.value=\'%s\'\">",
make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue)));
break;

View File

@ -1,5 +1,6 @@
--- samba-2.2.2.cvs20020120.orig/source/script/smbadduser
+++ samba-2.2.2.cvs20020120/source/script/smbadduser
diff -uNr samba-3.0alpha21.orig/source/smbadduser samba-3.0alpha21/source/smbadduser
--- samba-3.0alpha21.orig/source/smbadduser 2003-02-16 13:01:45.000000000 -0600
+++ samba-3.0alpha21/source/smbadduser 2003-02-16 16:25:16.000000000 -0600
@@ -2,13 +2,14 @@
#
# smbadduser - Written by Mike Zakharoff
@ -12,9 +13,9 @@
+#set path = ($path /usr/local/samba/bin)
-set smbpasswd = /usr/local/samba/private/smbpasswd
-#set smbpasswd = /etc/samba.d/smbpasswd
-#set smbpasswd = /etc/samba/smbpasswd
-set user_map = /usr/local/samba/lib/users.map
-#set user_map = /etc/samba.d/smbusers
-#set user_map = /etc/samba/smbusers
+set smbpasswd = /etc/samba/smbpasswd
+set user_map = /etc/samba/users.map
#

View File

@ -1,6 +1,7 @@
--- samba-2.2.2.cvs20020120.orig/source/include/local.h
+++ samba-2.2.2.cvs20020120/source/include/local.h
@@ -105,7 +105,7 @@
diff -uNr samba-2.999+3.0cvs20020906.orig/source/include/local.h samba-2.999+3.0cvs20020906/source/include/local.h
--- samba-2.999+3.0cvs20020906.orig/source/include/local.h 2002-09-04 14:13:06.000000000 -0500
+++ samba-2.999+3.0cvs20020906/source/include/local.h 2002-09-08 14:19:24.000000000 -0500
@@ -109,7 +109,7 @@
/* the default pager to use for the client "more" command. Users can
override this with the PAGER environment variable */
#ifndef PAGER

View File

@ -1,17 +0,0 @@
--- samba-2.2.2.cvs20020120/source/client/client.c.orig Wed Jan 23 23:32:44 2002
+++ samba-2.2.2.cvs20020120/source/client/client.c Wed Jan 23 23:33:50 2002
@@ -92,10 +92,10 @@
extern file_info def_finfo;
/* timing globals */
-int get_total_size = 0;
-int get_total_time_ms = 0;
-int put_total_size = 0;
-int put_total_time_ms = 0;
+SMB_BIG_UINT get_total_size = 0;
+unsigned int get_total_time_ms = 0;
+SMB_BIG_UINT put_total_size = 0;
+unsigned int put_total_time_ms = 0;
/* totals globals */
static double dir_total;

View File

@ -0,0 +1,15 @@
diff -ur samba-2.2.4.orig/source/client/smbmnt.c samba-2.2.4/source/client/smbmnt.c
--- samba-2.2.4.orig/source/client/smbmnt.c Sun Apr 8 15:22:51 2001
+++ samba-2.2.4/source/client/smbmnt.c Sun May 5 16:42:29 2002
@@ -259,7 +259,10 @@
ment.mnt_fsname = share_name ? share_name : "none";
ment.mnt_dir = mount_point;
ment.mnt_type = "smbfs";
- ment.mnt_opts = "";
+ if (mount_ro)
+ ment.mnt_opts = "ro";
+ else
+ ment.mnt_opts = "rw";
ment.mnt_freq = 0;
ment.mnt_passno= 0;

View File

@ -0,0 +1,160 @@
diff -uNr samba-3.0alpha22.orig/source/client/smbmnt.c samba-3.0alpha22/source/client/smbmnt.c
--- samba-3.0alpha22.orig/source/client/smbmnt.c 2003-03-15 12:11:39.000000000 -0600
+++ samba-3.0alpha22/source/client/smbmnt.c 2003-03-15 12:11:49.000000000 -0600
@@ -28,6 +28,7 @@
static uid_t mount_uid;
static gid_t mount_gid;
static int mount_ro;
+static int no_mtab;
static unsigned mount_fmask;
static unsigned mount_dmask;
static int user_mount;
@@ -40,6 +41,7 @@
printf("Usage: smbmnt mount-point [options]\n");
printf("Version %s\n\n",VERSION);
printf("-s share share name on server\n"
+ "-n don't update /etc/mtab\n"
"-r mount read-only\n"
"-u uid mount as uid\n"
"-g gid mount as gid\n"
@@ -54,7 +56,7 @@
{
int opt;
- while ((opt = getopt (argc, argv, "s:u:g:rf:d:o:")) != EOF)
+ while ((opt = getopt (argc, argv, "s:u:g:nrf:d:o:")) != EOF)
{
switch (opt)
{
@@ -71,6 +73,9 @@
mount_gid = strtol(optarg, NULL, 0);
}
break;
+ case 'n':
+ no_mtab = 1;
+ break;
case 'r':
mount_ro = 1;
break;
@@ -274,36 +279,38 @@
return -1;
}
- if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1)
- {
- fprintf(stderr, "Can't get "MOUNTED"~ lock file");
- return 1;
- }
- close(fd);
+ if (!no_mtab) {
+ if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1)
+ {
+ fprintf(stderr, "Can't get "MOUNTED"~ lock file");
+ return 1;
+ }
+ close(fd);
- if ((mtab = setmntent(MOUNTED, "a+")) == NULL)
- {
- fprintf(stderr, "Can't open " MOUNTED);
- return 1;
- }
+ if ((mtab = setmntent(MOUNTED, "a+")) == NULL)
+ {
+ fprintf(stderr, "Can't open " MOUNTED);
+ return 1;
+ }
- if (addmntent(mtab, &ment) == 1)
- {
- fprintf(stderr, "Can't write mount entry");
- return 1;
- }
- if (fchmod(fileno(mtab), 0644) == -1)
- {
- fprintf(stderr, "Can't set perms on "MOUNTED);
- return 1;
- }
- endmntent(mtab);
+ if (addmntent(mtab, &ment) == 1)
+ {
+ fprintf(stderr, "Can't write mount entry");
+ return 1;
+ }
+ if (fchmod(fileno(mtab), 0644) == -1)
+ {
+ fprintf(stderr, "Can't set perms on "MOUNTED);
+ return 1;
+ }
+ endmntent(mtab);
- if (unlink(MOUNTED"~") == -1)
- {
- fprintf(stderr, "Can't remove "MOUNTED"~");
- return 1;
- }
+ if (unlink(MOUNTED"~") == -1)
+ {
+ fprintf(stderr, "Can't remove "MOUNTED"~");
+ return 1;
+ }
+ }
return 0;
}
diff -uNr samba-3.0alpha22.orig/source/client/smbmount.c samba-3.0alpha22/source/client/smbmount.c
--- samba-3.0alpha22.orig/source/client/smbmount.c 2003-03-15 12:04:29.000000000 -0600
+++ samba-3.0alpha22/source/client/smbmount.c 2003-03-15 12:15:10.000000000 -0600
@@ -48,6 +48,7 @@
static int mount_ro;
static unsigned mount_fmask;
static unsigned mount_dmask;
+static BOOL no_mtab = False;
static BOOL use_kerberos;
/* TODO: Add code to detect smbfs version in kernel */
static BOOL status32_smbfs = False;
@@ -273,6 +274,9 @@
return;
}
+ if (no_mtab)
+ return;
+
if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1) {
DEBUG(0,("%d: Can't get "MOUNTED"~ lock file", sys_getpid()));
return;
@@ -466,6 +470,9 @@
args[i++] = "-s";
args[i++] = svc2;
+ if (no_mtab) {
+ args[i++] = "-n";
+ }
if (mount_ro) {
args[i++] = "-r";
}
@@ -661,7 +668,7 @@
****************************************************************************/
static void usage(void)
{
- printf("Usage: mount.smbfs service mountpoint [-o options,...]\n");
+ printf("Usage: mount.smbfs service mountpoint [-n] [-o options,...]\n");
printf("Version %s\n\n",VERSION);
@@ -739,8 +746,13 @@
argc -= 2;
argv += 2;
- opt = getopt(argc, argv, "o:");
- if(opt != 'o') {
+ opt = getopt(argc, argv, "no:");
+ if (opt == 'n') {
+ DEBUG(3,("No mtab!\n"));
+ no_mtab = True;
+ opt = getopt(argc, argv, "o:");
+ }
+ if (opt != 'o') {
return;
}

View File

@ -0,0 +1,20 @@
diff -uNr samba-2.999+3.0.alpha21.orig/source/utils/status.c samba-2.999+3.0.alpha21/source/utils/status.c
--- samba-2.999+3.0.alpha21.orig/source/utils/status.c 2002-11-26 20:54:22.000000000 -0600
+++ samba-2.999+3.0.alpha21/source/utils/status.c 2002-12-16 23:37:14.000000000 -0600
@@ -635,6 +635,16 @@
if (!shares_only) {
int ret;
+ tdb = tdb_open_log(lock_path("locking.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0);
+
+ if (!tdb) {
+ d_printf("%s not initialised\n", lock_path("locking.tdb"));
+ d_printf("This is normal if an SMB client has never connected to your server.\n");
+ exit(0);
+ } else {
+ tdb_close(tdb);
+ }
+
if (!locking_init(1)) {
d_printf("Can't initialise locking module - exiting\n");
exit(1);

View File

@ -0,0 +1,3 @@
[type: gettext/rfc822deb] samba-common.templates
[type: gettext/rfc822deb] samba.templates
[type: gettext/rfc822deb] swat.templates

View File

@ -0,0 +1,301 @@
#
# Translators, if you are not familiar with the PO format, gettext
# documentation is worth reading, especially sections dedicated to
# this format, e.g. by running:
# info -n '(gettext)PO Files'
# info -n '(gettext)Header Entry'
#
# Some information specific to po-debconf are available at
# /usr/share/doc/po-debconf/README-trans
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
#
# Developers do not need to manually edit POT or PO files.
#
msgid ""
msgstr ""
"Project-Id-Version: Samba for Debian 2.999+3.0.alpha21-4\n"
"POT-Creation-Date: 2003-04-30 13:11-0500\n"
"PO-Revision-Date: 2003-03-09 20:27-0600\n"
"Last-Translator: Steve Langasek <vorlon@debian.org>\n"
"Language-Team: Spanish <debian-l10n-spanish@lists.debian.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Description
#: ../samba-common.templates:3
msgid "Character Set for Unix filesystem"
msgstr "Juego de caracteres para el sistema de ficheros Unix"
#
#. Description
#: ../samba-common.templates:3
msgid ""
"You currently have a \"character set\" configured in your smb.conf. In "
"Samba 3.0, this option is replaced by two new options, \"unix charset\" and "
"\"display charset\". Please specify the character set you wish to use for "
"these new options, which control how Samba interprets filenames on the file "
"system and how smbclient will interpret these names when you connect to a "
"file server."
msgstr ""
"Actualmente hay una opción de \"character set\" en smb.conf. En Samba 3.0 "
"esta opción ha sido reemplazado por dos opciones nuevas: \"unix charset\" y "
"\"display charset\". Por favor, indique el juego de caracteres que desea "
"usar para estas opciones nuevas, que controlan cómo Samba interpretará los "
"nombres en el sistema de ficheros y también cómo smbclient los interpretará "
"al conectarse a un servidor de ficheros."
#. Description
#: ../samba-common.templates:3
msgid "If you leave this option blank, your smb.conf will not be changed."
msgstr "Si deja en blanco este campo, no se cambiará smb.conf."
#. Description
#: ../samba-common.templates:15
msgid "Character Set for DOS clients"
msgstr "Juego de caracteres para los clientes DOS"
#. Description
#: ../samba-common.templates:15
msgid ""
"You currently have a \"client code page\" set in your smb.conf. In Samba "
"3.0, this option is replaced by the option \"dos charset\". Please specify "
"the character set you wish to use for this new option. In most cases, the "
"default chosen for you will be sufficient. Note that this option is not "
"needed to support Windows clients, it is only for DOS clients. If you leave "
"this option blank, your smb.conf will not be changed."
msgstr ""
"Actualmente hay una opción de \"client code page\" en smb.conf. En Samba "
"3.0 esta opción ha sido reemplazado por la opción \"dos charset\". Por "
"favor, indique el juego de caracteres que desea usar para esta opción "
"nueva. Esta opción no se necesita en absoluto para clientes Windows; es "
"exclusivamente para los clientes DOS. Si deja en blanco este campo, no se "
"cambiará smb.conf."
#. Description
#: ../samba-common.templates:26
msgid "Modify smb.conf to use WINS settings from DHCP?"
msgstr ""
"¿Modificar smb.conf para usar la configuración WINS que proviene de DHCP?"
#. Description
#: ../samba-common.templates:26
msgid ""
"If your computer gets IP address information from a DHCP server on the "
"network, the DHCP server may also provide information about WINS servers "
"(\"NetBIOS name servers\") present on the network. This requires a change "
"to your smb.conf file so that DHCP-provided WINS settings will automatically "
"be read from /etc/samba/dhcp.conf."
msgstr ""
"Si su sistema recibe la dirección IP desde un servidor DHCP en la red, el "
"servidor DHCP también puede proveerle informaciones sobre los servidores de "
"WINS que haya en la red. Esto requiere un cambio en el fichero smb.conf "
"para que la configuración de WINS proveniente de DHCP se lea automaticamente "
"de /etc/samba/dhcp.conf."
#. Description
#: ../samba-common.templates:26
msgid ""
"You must have the dhcp3-client package installed to take advantage of this "
"feature."
msgstr ""
"Hay que instalar el paquete dhcp3-client para aprovechar esta funcionalidad."
#. Description
#: ../samba-common.templates:39
msgid "Configure smb.conf through debconf?"
msgstr "¿Configurar smb.conf mediante debconf?"
#. Description
#: ../samba-common.templates:39
msgid ""
"The rest of the configuration of Samba deals with questions that affect "
"parameters in /etc/samba/smb.conf, which is the file used to configure the "
"Samba programs (nmbd and smbd.) Your current smb.conf contains an 'include' "
"line or an option that spans multiple lines, which could confuse debconf and "
"require you to edit your smb.conf by hand to get it working again."
msgstr ""
"El resto de la configuración de Samba trata sobre cuestiones que afectan al "
"contenido de /etc/samba/smb.conf, que es el fichero utilizado para "
"configurar los programas de Samba (nmbd y smbd). Su smb.conf actual contiene "
"una línea 'include' o una opción que atraviesa más de una línea, así que "
"debconf puede dejarlo con un smb.conf descompuesto, requiriendo que lo "
"arregle a mano."
#. Description
#: ../samba-common.templates:39
msgid ""
"If you don't use debconf to configure smb.conf, you will have to handle any "
"configuration changes yourself, and will not be able to take advantage of "
"periodic configuration enhancements. Therefore, use of debconf is "
"recommended if possible."
msgstr ""
"Si no usa debconf para configurar smb.conf, tendrá que cuidar a mano "
"cualquier cambio a la configuración de Samba y no disfrutará de aumentos "
"periódicos de configuración. Por eso se recomienda el uso de debconf cuando "
"sea posible."
#. Description
#: ../samba-common.templates:54
msgid "Workgroup/Domain Name?"
msgstr "Nombre del dominio o del grupo de trabajo"
#. Description
#: ../samba-common.templates:54
msgid ""
"This controls what workgroup your server will appear to be in when queried "
"by clients. Note that this parameter also controls the Domain name used with "
"the security=domain setting."
msgstr ""
"Es el grupo de trabajo en el que aparecerá su servidor cuando se lo "
"pregunten los clientes de la red. Este parámetro también controla el nombre "
"de dominio que se usa con la configuración security=domain."
#. Description
#: ../samba-common.templates:62
msgid "Use password encryption?"
msgstr "¿Utilizar contraseñas cifradas?"
#. Description
#: ../samba-common.templates:62
msgid ""
"Recent Windows clients communicate with SMB servers using encrypted "
"passwords. If you want to use clear text passwords you will need to change a "
"parameter in your Windows registry. It is recommended that you use encrypted "
"passwords. If you do, make sure you have a valid /etc/samba/smbpasswd file "
"and that you set passwords in there for each user using the smbpasswd "
"command."
msgstr ""
"Los clientes Windows más modernos se comunican con los servidores SMB "
"utilizando contraseñas cifradas. Si quiere usar contraseñas en texto plano, "
"tendrá que cambiar un parámetro en el registro de Windows. Es muy "
"recomendable usar cifrado en las contraseñas. Si elige hacerlo, compruebe "
"que tiene un fichero /etc/samba/smbpasswd válido y que ha puesto las "
"contraseñas con el programa smbpasswd."
#. Description
#: ../samba.templates:4
msgid "Create samba password database, /var/lib/samba/passdb.tdb?"
msgstr "¿Crear el base de dados de contraseñas /var/lib/samba/passdb.tdb?"
#. Description
#: ../samba.templates:4
msgid ""
"To be compatible with the defaults in most versions of Windows, Samba must "
"be configured to use encrypted passwords. This requires user passwords to "
"be stored in a file separate from /etc/passwd. This file can be created "
"automatically, but the passwords must be added manually (by you or the user) "
"by running smbpasswd, and you must arrange to keep it up-to-date in the "
"future. If you do not create it, you will have to reconfigure samba (and "
"probably your client machines) to use plaintext passwords. See /usr/share/"
"doc/samba-doc/htmldocs/ENCRYPTION.html from the samba-doc package for more "
"details."
msgstr ""
"Para manterner la compatibilidad con el comportamiento por defecto de la "
"mayoria de los sistemas Windows, hay que configurar Samba para que use "
"contraseñas cifradas, lo cual requiere la creación de un fichero, distinto "
"del /etc/passwd, donde se guarden las contraseñas de los usuarios. El "
"fichero se puede crear automaticamente, aunque es necesario añadir las "
"contraseñas manualmente (por usted o por el usuario) mediante el programa "
"'smbpasswd', y debe encargarse de mantener las contraseñas al día. Si no "
"crea este fichero, es imprescindible configurar Samba (y posiblemente los "
"sistemas Windows) para que use contraseñas no cifradas. Véa /usr/share/doc/"
"samba-doc/htmldocs/ENCRYPTION.html del paquete samba-doc para más "
"información."
#. Description
#: ../samba.templates:17
msgid "Samba's log files have moved."
msgstr "Se han cambiado de lugar los ficheros de registro de Samba."
#. Description
#: ../samba.templates:17
msgid ""
"Starting with the first packages of Samba 2.2 for Debian the log files for "
"both Samba daemons (nmbd and smbd) are now stored in /var/log/samba/. The "
"names of the files are log.nmbd and log.smbd, for nmbd and smbd respectively."
msgstr ""
"A partir de los primeros paquetes Debian de Samba 2.2, los ficheros de "
"registro de los dos demonios del Samba (nmbd y smbd) se encuentran en /var/"
"log/samba/. Los nombres de estos ficheros son log.nmbd y log.smbd, para "
"nmbd y smbd respectivamente."
#. Description
#: ../samba.templates:17
msgid ""
"The old log files that were in /var/log/ will be moved to the new location "
"for you."
msgstr ""
"Los ficheros de registro antiguos que había en /var/log se moverán "
"automáticamente a su nueva ubicación."
#. Description
#: ../samba.templates:28
msgid "Running nmbd from inetd is no longer supported"
msgstr "Ya no se puede ejecutar nmbd desde el inetd"
#. Description
#: ../samba.templates:28
msgid ""
"Your system was previously configured to start nmbd and smbd from inetd. As "
"of version 2.999+3.0.alpha20-4, nmbd will no longer be started from inetd. "
"If you have modified your /etc/init.d/samba startup script, you may need to "
"adjust it by hand now so that nmbd will start."
msgstr ""
"Su sistema estaba configurado anteriormente para ejectuar nmbd y smbd desde "
"inetd. A partir de la version 2.999+3.0.alpha20-4, nmbd ya no se ejecuta "
"desde inetd. Si ha modificado el script de arranque /etc/init.d/samba, "
"puede que tenga que editarlo ahora para que nmbd se ejecute."
#. Choices
#: ../samba.templates:36
msgid "daemons, inetd"
msgstr "demonios, inetd"
#. Description
#: ../samba.templates:38
msgid "How do you want to run Samba?"
msgstr "¿Cómo quiere que se ejecute Samba?"
#. Description
#: ../samba.templates:38
msgid ""
"The Samba daemon smbd can run as a normal daemon or from inetd. Running as a "
"daemon is the recommended approach."
msgstr ""
"El servicio Samba smbd puede ejecutarse como demonio normal o desde el "
"inetd. Se recomienda que se ejecute como demonio independiente."
#. Description
#: ../samba.templates:45
msgid "Move /etc/samba/smbpasswd to /var/lib/samba/passdb.tdb?"
msgstr ""
"¿Convertir el fichero /etc/samba/smbpasswd en /var/lib/samba/passdb.tdb?"
#. Description
#: ../samba.templates:45
#, fuzzy
msgid ""
"Samba 3.0 introduces a newer, more complete SAM database interface which "
"supersedes the /etc/samba/smbpasswd file. Would you like your existing "
"smbpasswd file to be migrated to /var/lib/samba/passdb.tdb for you? If you "
"plan to use another pdb backend (e.g., LDAP) instead, you should answer 'no' "
"here."
msgstr ""
"La versión 3.0 de Samba introduce un nuevo base de dados \"SAM\" más "
"completo que suplanta al fichero /etc/samba/smbpasswd. ¿Quiere que el "
"fichero corriente smbpasswd sea convertido en /var/lib/samba/passdb.tdb? Si "
"pretende usar otro "
#. Description
#: ../swat.templates:3
msgid "Your smb.conf will be re-written!"
msgstr "¡Se sobrescribirá su configuración smb.conf!"
#. Description
#: ../swat.templates:3
msgid ""
"SWAT will rewrite your smb.conf file. It will rearrange the entries and "
"delete all comments, include= and copy= options. If you have a carefully "
"crafted smb.conf then back it up or don't use SWAT!"
msgstr ""

View File

@ -0,0 +1,305 @@
#
# Translators, if you are not familiar with the PO format, gettext
# documentation is worth reading, especially sections dedicated to
# this format, e.g. by running:
# info -n '(gettext)PO Files'
# info -n '(gettext)Header Entry'
#
# Some information specific to po-debconf are available at
# /usr/share/doc/po-debconf/README-trans
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
#
# Developers do not need to manually edit POT or PO files.
#
msgid ""
msgstr ""
"Project-Id-Version: Samba for Debian 2.999+3.0.alpha23-1\n"
"POT-Creation-Date: 2003-04-30 13:11-0500\n"
"PO-Revision-Date: 2003-04-19 08:28-0100\n"
"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
#. Description
#: ../samba-common.templates:3
msgid "Character Set for Unix filesystem"
msgstr "Jeu de caractères pour les systèmes de fichiers Unix"
#. Description
#: ../samba-common.templates:3
msgid ""
"You currently have a \"character set\" configured in your smb.conf. In "
"Samba 3.0, this option is replaced by two new options, \"unix charset\" and "
"\"display charset\". Please specify the character set you wish to use for "
"these new options, which control how Samba interprets filenames on the file "
"system and how smbclient will interpret these names when you connect to a "
"file server."
msgstr ""
"Une instruction « character set » (jeu de caractères) est utilisée dans "
"votre fichier smb.conf. Avec Samba 3.0, cette option est remplacée par deux "
"nouvelles options, « unix charset » (jeu de caractères Unix) et « display "
"charset » (jeu de caractères à l'affichage). Veuillez indiquer le jeu de "
"caractères que vous voulez utiliser avec chacune de ces deux options. La "
"première permet d'interpréter les noms de fichiers sur le système et la "
"seconde permet à smbclient d'interpréter ces noms lors d'une connexion à un "
"serveur de fichiers."
#. Description
#: ../samba-common.templates:3
msgid "If you leave this option blank, your smb.conf will not be changed."
msgstr ""
"Le fichier smb.conf ne sera pas modifié si vous laissez cette option sans "
"réponse."
#. Description
#: ../samba-common.templates:15
msgid "Character Set for DOS clients"
msgstr "Jeu de caractères pour les clients DOS"
#. Description
#: ../samba-common.templates:15
msgid ""
"You currently have a \"client code page\" set in your smb.conf. In Samba "
"3.0, this option is replaced by the option \"dos charset\". Please specify "
"the character set you wish to use for this new option. In most cases, the "
"default chosen for you will be sufficient. Note that this option is not "
"needed to support Windows clients, it is only for DOS clients. If you leave "
"this option blank, your smb.conf will not be changed."
msgstr ""
"Votre fichier smb.conf contient une option « client code page » (page de "
"codes du client). Avec Samba 3.0, cette option a été remplacée par l'option "
 dos charset » (jeu de caractères DOS). Veuillez indiquer le jeu de "
"caractères que vous voulez utiliser avec la nouvelle option. En général le "
"jeu de caractères choisi par défaut est suffisant. Veuillez noter que cette "
"option ne sert pas pour les clients Windows mais seulement pour les clients "
"DOS. Le fichier smb.conf ne sera pas modifié si vous laissez cette option "
"sans réponse. "
#. Description
#: ../samba-common.templates:26
msgid "Modify smb.conf to use WINS settings from DHCP?"
msgstr "Modifier smb.conf pour utiliser les paramètres WINS fournis par DHCP ?"
#. Description
#: ../samba-common.templates:26
msgid ""
"If your computer gets IP address information from a DHCP server on the "
"network, the DHCP server may also provide information about WINS servers "
"(\"NetBIOS name servers\") present on the network. This requires a change "
"to your smb.conf file so that DHCP-provided WINS settings will automatically "
"be read from /etc/samba/dhcp.conf."
msgstr ""
"Si votre ordinateur obtient ses paramètres IP à partir d'un serveur DHCP du "
"réseau, ce serveur peut aussi fournir des informations sur les serveurs WINS "
"(serveurs de noms NetBIOS) présents sur le réseau. Une modification du "
"fichier smb.conf est nécessaire afin que les réglages WINS fournis par le "
"serveur DHCP soient lus dans /etc/samba/dhcp.conf."
#. Description
#: ../samba-common.templates:26
msgid ""
"You must have the dhcp3-client package installed to take advantage of this "
"feature."
msgstr "Pour cela, le paquet dhcp3-client doit être installé."
#. Description
#: ../samba-common.templates:39
msgid "Configure smb.conf through debconf?"
msgstr "Voulez-vous configurer smb.conf avec debconf ?"
#. Description
#: ../samba-common.templates:39
msgid ""
"The rest of the configuration of Samba deals with questions that affect "
"parameters in /etc/samba/smb.conf, which is the file used to configure the "
"Samba programs (nmbd and smbd.) Your current smb.conf contains an 'include' "
"line or an option that spans multiple lines, which could confuse debconf and "
"require you to edit your smb.conf by hand to get it working again."
msgstr ""
"La suite de la configuration de Samba pose des questions sur des paramètres "
"de /etc/samba/smb.conf, le fichier utilisé pour configurer les programmes de "
"Samba (nmbd et smbd). Votre fichier actuel contient une ligne « include » ou "
"une option qui s'étale sur plusieurs lignes : cela peut perturber debconf et "
"il vaut mieux gérer manuellement le contenu de ce fichier."
#. Description
#: ../samba-common.templates:39
msgid ""
"If you don't use debconf to configure smb.conf, you will have to handle any "
"configuration changes yourself, and will not be able to take advantage of "
"periodic configuration enhancements. Therefore, use of debconf is "
"recommended if possible."
msgstr ""
"Si vous n'utilisez pas debconf pour configurer smb.conf, vous devrez vous-"
"même gérer les modifications de configuration et vous ne pourrez pas "
"bénéficier des améliorations faites dans la configuration. Si possible, il "
"est conseillé d'utiliser debconf."
#. Description
#: ../samba-common.templates:54
msgid "Workgroup/Domain Name?"
msgstr "Groupe de travail et nom de domaine ?"
#. Description
#: ../samba-common.templates:54
msgid ""
"This controls what workgroup your server will appear to be in when queried "
"by clients. Note that this parameter also controls the Domain name used with "
"the security=domain setting."
msgstr ""
"Ce paramètre indique le groupe de travail où les clients trouveront le "
"serveur. Il indique aussi le nom de domaine utilisé par le paramètre "
 security=domain »."
#. Description
#: ../samba-common.templates:62
msgid "Use password encryption?"
msgstr "Voulez-vous chiffrer les mots de passe ?"
#. Description
#: ../samba-common.templates:62
msgid ""
"Recent Windows clients communicate with SMB servers using encrypted "
"passwords. If you want to use clear text passwords you will need to change a "
"parameter in your Windows registry. It is recommended that you use encrypted "
"passwords. If you do, make sure you have a valid /etc/samba/smbpasswd file "
"and that you set passwords in there for each user using the smbpasswd "
"command."
msgstr ""
"Des clients Windows récents communiquent avec les serveurs SMB en utilisant "
"des mots de passe chiffrés. Si vous voulez utiliser des mots de passe sans "
"chiffrement, vous devez modifier un paramètre dans le registre de Windows. "
"Il est recommandé d'utiliser des mots de passe chiffrés. Si vous le faites, "
"n'oubliez pas de créer un fichier /etc/samba/smbpasswd et d'y mettre les "
"mots de passe de tous les utilisateurs qui se servent de la commande "
"smbpasswd."
#. Description
#: ../samba.templates:4
msgid "Create samba password database, /var/lib/samba/passdb.tdb?"
msgstr "Faut-il créer une base de données /var/lib/samba/passdb.tdb ?"
#. Description
#: ../samba.templates:4
msgid ""
"To be compatible with the defaults in most versions of Windows, Samba must "
"be configured to use encrypted passwords. This requires user passwords to "
"be stored in a file separate from /etc/passwd. This file can be created "
"automatically, but the passwords must be added manually (by you or the user) "
"by running smbpasswd, and you must arrange to keep it up-to-date in the "
"future. If you do not create it, you will have to reconfigure samba (and "
"probably your client machines) to use plaintext passwords. See /usr/share/"
"doc/samba-doc/htmldocs/ENCRYPTION.html from the samba-doc package for more "
"details."
msgstr ""
"Pour préserver la compatibilité avec le comportement par défaut de la "
"plupart des systèmes Windows, Samba doit utiliser les mots de passe "
"chiffrés. Cela exige la création d'un fichier, distinct du fichier /etc/"
"passwd, pour mettre les mots de passe des utilisateurs. Ce fichier peut être "
"créé automatiquement, mais quelqu'un (vous ou l'utilisateur) devra ajouter "
"les mots de passe manuellement en utilisant la commande smbpasswd ; et vous "
"devrez maintenir à jour ce fichier. Si vous ne voulez pas créer le fichier "
"maintenant, Samba (et peut-être les ordinateurs Windows) devra utiliser des "
"mots de passe non chiffrés. Voyez /usr/share/doc/samba-doc/htmldocs/"
"ENCRYPTION.html dans le paquet samba-doc pour plus de détails."
#. Description
#: ../samba.templates:17
msgid "Samba's log files have moved."
msgstr "Les fichiers-journaux de Samba ont changé de place."
#. Description
#: ../samba.templates:17
msgid ""
"Starting with the first packages of Samba 2.2 for Debian the log files for "
"both Samba daemons (nmbd and smbd) are now stored in /var/log/samba/. The "
"names of the files are log.nmbd and log.smbd, for nmbd and smbd respectively."
msgstr ""
"À partir des premiers paquets de Samba 2.2 pour Debian, les fichiers-"
"journaux des démons nmbd et smbd se trouvent dans /var/log/samba/. Les noms "
"de ces fichiers sont log.nmbd et log.smbd pour, respectivement, nmbd et smbd."
#. Description
#: ../samba.templates:17
msgid ""
"The old log files that were in /var/log/ will be moved to the new location "
"for you."
msgstr ""
"Les anciens fichiers-journaux dans /var/log/ seront mis au bon endroit."
#. Description
#: ../samba.templates:28
msgid "Running nmbd from inetd is no longer supported"
msgstr "L'utilisation de nmbd à partir d'inetd n'est plus supportée"
#. Description
#: ../samba.templates:28
msgid ""
"Your system was previously configured to start nmbd and smbd from inetd. As "
"of version 2.999+3.0.alpha20-4, nmbd will no longer be started from inetd. "
"If you have modified your /etc/init.d/samba startup script, you may need to "
"adjust it by hand now so that nmbd will start."
msgstr ""
"Votre système lançait nmbd et smbd à partir d'inetd. Depuis la version 2.999"
"+3.0.alpha20-4, on ne peut plus exécuter nmbd à partir d'inetd. Si vous avez "
"modifié le script de lancement /etc/init.d/samba, vous avez peut-être besoin "
"de le corriger manuellement pour permettre le lancement de nmbd. "
#. Choices
#: ../samba.templates:36
msgid "daemons, inetd"
msgstr "démons, inetd"
#. Description
#: ../samba.templates:38
msgid "How do you want to run Samba?"
msgstr "Comment voulez-vous lancer Samba ?"
#. Description
#: ../samba.templates:38
msgid ""
"The Samba daemon smbd can run as a normal daemon or from inetd. Running as a "
"daemon is the recommended approach."
msgstr ""
"Le service de Samba smbd peut s'exécuter en tant que démon classique ou bien "
"être lancé par inetd. L'approche recommandée est qu'il s'exécute en tant que "
"démon."
#. Description
#: ../samba.templates:45
msgid "Move /etc/samba/smbpasswd to /var/lib/samba/passdb.tdb?"
msgstr "Faut-il convertir /etc/samba/smbpasswd en /var/lib/samba/passdb.tdb ?"
#. Description
#: ../samba.templates:45
msgid ""
"Samba 3.0 introduces a newer, more complete SAM database interface which "
"supersedes the /etc/samba/smbpasswd file. Would you like your existing "
"smbpasswd file to be migrated to /var/lib/samba/passdb.tdb for you? If you "
"plan to use another pdb backend (e.g., LDAP) instead, you should answer 'no' "
"here."
msgstr ""
"Avec Samba 3.0, une nouvelle interface pour les bases de données SAM, plus "
"complète, vient remplacer le fichier /etc/samba/smbpasswd. Voulez-vous que "
"votre fichier existant soit remplacé par /var/lib/samba/passdb.tdb ? Si vous "
"envisagez d'utiliser une autre interface d'authentification (p.ex. LDAP), "
"refusez la proposition maintenant."
#. Description
#: ../swat.templates:3
msgid "Your smb.conf will be re-written!"
msgstr "Ré-écriture de votre fichier smb.conf !"
#. Description
#: ../swat.templates:3
msgid ""
"SWAT will rewrite your smb.conf file. It will rearrange the entries and "
"delete all comments, include= and copy= options. If you have a carefully "
"crafted smb.conf then back it up or don't use SWAT!"
msgstr ""
"SWAT va modifier votre fichier smb.conf. Les entrées seront réorganisées et "
"les commentaires détruits ainsi que les entrées « include = » et « copy = ». "
"Si votre smb.conf était soigneusement construit, sauvegardez-le ou "
"n'utilisez pas SWAT !"

View File

@ -0,0 +1,310 @@
#
# Translators, if you are not familiar with the PO format, gettext
# documentation is worth reading, especially sections dedicated to
# this format, e.g. by running:
# info -n '(gettext)PO Files'
# info -n '(gettext)Header Entry'
#
# Some information specific to po-debconf are available at
# /usr/share/doc/po-debconf/README-trans
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
#
# Developers do not need to manually edit POT or PO files.
#
msgid ""
msgstr ""
"Project-Id-Version: samba_2.999+3.0.alpha20-4\n"
"POT-Creation-Date: 2003-04-30 13:11-0500\n"
"PO-Revision-Date: 2003-04-05 13:30-0300\n"
"Last-Translator: André Luís Lopes <andrelop@ig.com.br>\n"
"Language-Team: Debian-BR Project <debian-l10n-portuguese@lists.debian.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
#. Description
#: ../samba-common.templates:3
msgid "Character Set for Unix filesystem"
msgstr "Conjunto de caracteres para sistema de arquivos Unix"
#. Description
#: ../samba-common.templates:3
msgid ""
"You currently have a \"character set\" configured in your smb.conf. In "
"Samba 3.0, this option is replaced by two new options, \"unix charset\" and "
"\"display charset\". Please specify the character set you wish to use for "
"these new options, which control how Samba interprets filenames on the file "
"system and how smbclient will interpret these names when you connect to a "
"file server."
msgstr ""
"Atualmente existe um \"conjunto de caracteres\" (\"character set\") "
"configurado em seu arquivo smb.conf. No Samba 3.0, esta opção foi "
"substituída por duas novas opções, \"unix charset\" e \"display charset\". "
"Por favor especifique o conjunto de caracteres a ser usado para essas novas "
"opções, as quais controlam como o Samba interpreta nomes de arquivos no "
"sistema de arquivos e como o smbclient irá interpretar esses nomes quando "
"você se conectar a um servidor de arquivos, respectivamente."
#. Description
#: ../samba-common.templates:3
msgid "If you leave this option blank, your smb.conf will not be changed."
msgstr ""
"Caso você deixe esta opção em branco, seu arquivo smb.conf não será "
"modificado."
#. Description
#: ../samba-common.templates:15
msgid "Character Set for DOS clients"
msgstr "Conjunto de caracteres para clientes DOS"
#. Description
#: ../samba-common.templates:15
msgid ""
"You currently have a \"client code page\" set in your smb.conf. In Samba "
"3.0, this option is replaced by the option \"dos charset\". Please specify "
"the character set you wish to use for this new option. In most cases, the "
"default chosen for you will be sufficient. Note that this option is not "
"needed to support Windows clients, it is only for DOS clients. If you leave "
"this option blank, your smb.conf will not be changed."
msgstr ""
"Atualmente existe um \"código de página do cliente\" (\"client code page\") "
"definido em seu arquivo smb.conf. No Samba 3.0, essa opção foi substituída "
"pela opção \"dos charset\". Por favor, especifique o conjunto de caracteres "
"que você deseja usar para essa nova opção. Note que essa opção não é "
"necessária para suportar clientes Windows mas sim válida somente para "
"clientes DOS. Caso você deixe essa opção em branco, seu arquivo smb.conf não "
"será modificado."
#. Description
#: ../samba-common.templates:26
msgid "Modify smb.conf to use WINS settings from DHCP?"
msgstr "Modificar smb.conf para usar configurações WINS fornecidas via DHCP ?"
#. Description
#: ../samba-common.templates:26
msgid ""
"If your computer gets IP address information from a DHCP server on the "
"network, the DHCP server may also provide information about WINS servers "
"(\"NetBIOS name servers\") present on the network. This requires a change "
"to your smb.conf file so that DHCP-provided WINS settings will automatically "
"be read from /etc/samba/dhcp.conf."
msgstr ""
"Caso seu computador obtenha as informações de endereçamento IP de um "
"servidor DHCP na rede, o servidor DHCP pode também fornecer informações "
"sobre servidor WINS (\"Servidor de Nomes NetBIOS\") presentes na rede. Para "
"o Samba ler as configurações WINS fornecidas pelo servidor DHCP "
"automaticamente do arquivo /etc/samba/dhcp.conf, é preciso modificar seu "
"arquivo smb.conf."
#. Description
#: ../samba-common.templates:26
msgid ""
"You must have the dhcp3-client package installed to take advantage of this "
"feature."
msgstr ""
"Você deve possuir o pacote dhcp3-client instalado para poder usar este "
"recurso."
#. Description
#: ../samba-common.templates:39
msgid "Configure smb.conf through debconf?"
msgstr "Configurar smb.conf através do debconf ?"
#. Description
#: ../samba-common.templates:39
msgid ""
"The rest of the configuration of Samba deals with questions that affect "
"parameters in /etc/samba/smb.conf, which is the file used to configure the "
"Samba programs (nmbd and smbd.) Your current smb.conf contains an 'include' "
"line or an option that spans multiple lines, which could confuse debconf and "
"require you to edit your smb.conf by hand to get it working again."
msgstr ""
"O restante da configuração do Samba lida com questões que afetam parâmetros "
"no arquivo /etc/samba/smb.conf, que é o arquivo usado para configurar os "
"programas Samba (nmbd e smbd). Seu arquivo smb.conf atual contém uma linha "
"'include' ou uma opção que ocupa diversas linhas, o que pode confundir o "
"debconf e requerer que você edite seu arquivo smb.conf manualmente para tê-"
"lo funcional novamente."
#. Description
#: ../samba-common.templates:39
msgid ""
"If you don't use debconf to configure smb.conf, you will have to handle any "
"configuration changes yourself, and will not be able to take advantage of "
"periodic configuration enhancements. Therefore, use of debconf is "
"recommended if possible."
msgstr ""
"Caso você opte por não usar o debconf para configurar o smb.conf, será "
"necessário que você lide com quaisquer mudanças de configurações manualmente "
"e você não poderá aproveitar os melhoramentos periódicos de configuração. "
"Por esse motivo, é recomendado usar o debconf, caso seja possível."
#. Description
#: ../samba-common.templates:54
msgid "Workgroup/Domain Name?"
msgstr "Nome de Domínio/Grupo de Trabalho ?"
#. Description
#: ../samba-common.templates:54
msgid ""
"This controls what workgroup your server will appear to be in when queried "
"by clients. Note that this parameter also controls the Domain name used with "
"the security=domain setting."
msgstr ""
"Este parâmetro controla em qual grupo de trabalho (workgroup) seu servidor "
"parecerá estar quando o mesmo for pesquisado por clientes. Note que este "
"parâmetro também controla o nome de Domínio usado com a configuração "
"security=domain."
#. Description
#: ../samba-common.templates:62
msgid "Use password encryption?"
msgstr "Usar encriptação de senhas ?"
#. Description
#: ../samba-common.templates:62
msgid ""
"Recent Windows clients communicate with SMB servers using encrypted "
"passwords. If you want to use clear text passwords you will need to change a "
"parameter in your Windows registry. It is recommended that you use encrypted "
"passwords. If you do, make sure you have a valid /etc/samba/smbpasswd file "
"and that you set passwords in there for each user using the smbpasswd "
"command."
msgstr ""
"Clientes Windows atuais comunicam-se com servidores SMB usando senhas "
"encriptadas. Caso você queira usar senhas em texto puro você precisará "
"modificar um parâmetro no registro de seu Windows. É recomendado que você "
"use senhas encriptadas. Se for usá-las, certifique-se de possuir um arquivo /"
"etc/samba/smbpasswd válido e que você tenha definido senhas no mesmo para "
"cada usuário, utilizando o comando smbpasswd."
#. Description
#: ../samba.templates:4
msgid "Create samba password database, /var/lib/samba/passdb.tdb?"
msgstr "Gerar a base de dados para senhas /var/lib/samba/passdb.tdb ?"
#. Description
#: ../samba.templates:4
msgid ""
"To be compatible with the defaults in most versions of Windows, Samba must "
"be configured to use encrypted passwords. This requires user passwords to "
"be stored in a file separate from /etc/passwd. This file can be created "
"automatically, but the passwords must be added manually (by you or the user) "
"by running smbpasswd, and you must arrange to keep it up-to-date in the "
"future. If you do not create it, you will have to reconfigure samba (and "
"probably your client machines) to use plaintext passwords. See /usr/share/"
"doc/samba-doc/htmldocs/ENCRYPTION.html from the samba-doc package for more "
"details."
msgstr ""
"Para compatibilidade com os padrões adotados em todas as versões atuais do "
"Windows o Samba deve ser configurado para usar senhas encriptadas. Isso "
"requer que as senhas dos usuários sejam armazenadas em um arquivo diferente "
"do /etc/passwd. Esse arquivo pode ser criado automaticamente, mas as senhas "
"devem ser definidas manualmente (por você ou pelo usuário) executando o "
"utilitário smbpasswd. Você deve certificar-se de manter esse arquivo "
"atualizado futuramente. Caso você não crie esse arquivo, você terá que "
"reconfigurar o Samba (e provavelmente suas máquinas clientes) para "
"utilização de senhas em texto puro. Consulte a documentação do pacote samba-"
"doc em /usr/share/doc/samba-doc/htmldocs/ENCRYPTION.html para maiores "
"detalhes."
#. Description
#: ../samba.templates:17
msgid "Samba's log files have moved."
msgstr "Arquivos de log do Samba foram movidos."
#. Description
#: ../samba.templates:17
msgid ""
"Starting with the first packages of Samba 2.2 for Debian the log files for "
"both Samba daemons (nmbd and smbd) are now stored in /var/log/samba/. The "
"names of the files are log.nmbd and log.smbd, for nmbd and smbd respectively."
msgstr ""
"Desde os primeiros pacotes Debian do Samba 2.2 os arquivos de log para ambos "
"os daemons Samba (nmbd e smbd) são armazenados no diretório /var/log/samba/. "
"Os nomes desses arquivos são log.nmbd e log.smbd, para o nmbd e para o smbd, "
"respectivamente."
#. Description
#: ../samba.templates:17
msgid ""
"The old log files that were in /var/log/ will be moved to the new location "
"for you."
msgstr ""
"Os antigos arquivos de log que estavam em /var/log/ serão movidos para a "
"nova localização automaticamente para você."
#. Description
#: ../samba.templates:28
msgid "Running nmbd from inetd is no longer supported"
msgstr "A execução do nmbd a partir do inetd não é mais suportada"
#. Description
#: ../samba.templates:28
msgid ""
"Your system was previously configured to start nmbd and smbd from inetd. As "
"of version 2.999+3.0.alpha20-4, nmbd will no longer be started from inetd. "
"If you have modified your /etc/init.d/samba startup script, you may need to "
"adjust it by hand now so that nmbd will start."
msgstr ""
"Seu sistema foi previamente configurado para iniciar os daemons nmbd e smbd "
"a partir do inetd. Desde a versão 2.999+3.0.alpha20-4, o nmbd não mais será "
"iniciado a partir do inetd. Caso você tenha modificado seu script de "
"inicialização /etc/init.d/samba, você pode precisar ajustá-lo manualmente "
"agora para que o nmbd seja iniciado."
#. Choices
#: ../samba.templates:36
msgid "daemons, inetd"
msgstr "daemons, inetd"
#. Description
#: ../samba.templates:38
msgid "How do you want to run Samba?"
msgstr "Como você deseja que o Samba seja executado ?"
#. Description
#: ../samba.templates:38
msgid ""
"The Samba daemon smbd can run as a normal daemon or from inetd. Running as a "
"daemon is the recommended approach."
msgstr ""
"O serviço Samba smbd pode ser executado como daemon normal ou a partir do "
"inetd. Executá-lo como daemon é o método recomendado."
#. Description
#: ../samba.templates:45
msgid "Move /etc/samba/smbpasswd to /var/lib/samba/passdb.tdb?"
msgstr "Mover /etc/samba/smbpasswd para /var/lib/samba/passdb.tdb ?"
#. Description
#: ../samba.templates:45
msgid ""
"Samba 3.0 introduces a newer, more complete SAM database interface which "
"supersedes the /etc/samba/smbpasswd file. Would you like your existing "
"smbpasswd file to be migrated to /var/lib/samba/passdb.tdb for you? If you "
"plan to use another pdb backend (e.g., LDAP) instead, you should answer 'no' "
"here."
msgstr ""
"O Samba 3.0 introduz uma nova e mais complete interface de base de dados SAM "
"que substitui o arquivo /etc/samba/smbpasswd. Você gostaria que o arquivo "
"smbpasswd existente fosse migrado para /var/lib/samba/passdb.tdb para você ? "
"Caso você planeje usar um outro backend (como LDAP, por exemplo) você deverá "
"escolher 'não' aqui."
#. Description
#: ../swat.templates:3
msgid "Your smb.conf will be re-written!"
msgstr "Seu arquivo smb.conf será reescrito !"
#. Description
#: ../swat.templates:3
msgid ""
"SWAT will rewrite your smb.conf file. It will rearrange the entries and "
"delete all comments, include= and copy= options. If you have a carefully "
"crafted smb.conf then back it up or don't use SWAT!"
msgstr ""
"O SWAT irá reescrever seu arquivo smb.conf. Ele irá rearrumar as entradas e "
"apagar todos os comentários, opções include= e copy=. Caso você possua um "
"arquivo smb.conf cuidadosamente criado e comentado, faça uma cópia de "
"segurança (backup) do mesmo ou não use o SWAT !"

View File

@ -0,0 +1,234 @@
#
# Translators, if you are not familiar with the PO format, gettext
# documentation is worth reading, especially sections dedicated to
# this format, e.g. by running:
# info -n '(gettext)PO Files'
# info -n '(gettext)Header Entry'
#
# Some information specific to po-debconf are available at
# /usr/share/doc/po-debconf/README-trans
# or http://www.debian.org/intl/l10n/po-debconf/README-trans
#
# Developers do not need to manually edit POT or PO files.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2003-04-30 13:11-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#. Description
#: ../samba-common.templates:3
msgid "Character Set for Unix filesystem"
msgstr ""
#. Description
#: ../samba-common.templates:3
msgid ""
"You currently have a \"character set\" configured in your smb.conf. In "
"Samba 3.0, this option is replaced by two new options, \"unix charset\" and "
"\"display charset\". Please specify the character set you wish to use for "
"these new options, which control how Samba interprets filenames on the file "
"system and how smbclient will interpret these names when you connect to a "
"file server."
msgstr ""
#. Description
#: ../samba-common.templates:3
msgid "If you leave this option blank, your smb.conf will not be changed."
msgstr ""
#. Description
#: ../samba-common.templates:15
msgid "Character Set for DOS clients"
msgstr ""
#. Description
#: ../samba-common.templates:15
msgid ""
"You currently have a \"client code page\" set in your smb.conf. In Samba "
"3.0, this option is replaced by the option \"dos charset\". Please specify "
"the character set you wish to use for this new option. In most cases, the "
"default chosen for you will be sufficient. Note that this option is not "
"needed to support Windows clients, it is only for DOS clients. If you leave "
"this option blank, your smb.conf will not be changed."
msgstr ""
#. Description
#: ../samba-common.templates:26
msgid "Modify smb.conf to use WINS settings from DHCP?"
msgstr ""
#. Description
#: ../samba-common.templates:26
msgid ""
"If your computer gets IP address information from a DHCP server on the "
"network, the DHCP server may also provide information about WINS servers "
"(\"NetBIOS name servers\") present on the network. This requires a change "
"to your smb.conf file so that DHCP-provided WINS settings will automatically "
"be read from /etc/samba/dhcp.conf."
msgstr ""
#. Description
#: ../samba-common.templates:26
msgid ""
"You must have the dhcp3-client package installed to take advantage of this "
"feature."
msgstr ""
#. Description
#: ../samba-common.templates:39
msgid "Configure smb.conf through debconf?"
msgstr ""
#. Description
#: ../samba-common.templates:39
msgid ""
"The rest of the configuration of Samba deals with questions that affect "
"parameters in /etc/samba/smb.conf, which is the file used to configure the "
"Samba programs (nmbd and smbd.) Your current smb.conf contains an 'include' "
"line or an option that spans multiple lines, which could confuse debconf and "
"require you to edit your smb.conf by hand to get it working again."
msgstr ""
#. Description
#: ../samba-common.templates:39
msgid ""
"If you don't use debconf to configure smb.conf, you will have to handle any "
"configuration changes yourself, and will not be able to take advantage of "
"periodic configuration enhancements. Therefore, use of debconf is "
"recommended if possible."
msgstr ""
#. Description
#: ../samba-common.templates:54
msgid "Workgroup/Domain Name?"
msgstr ""
#. Description
#: ../samba-common.templates:54
msgid ""
"This controls what workgroup your server will appear to be in when queried "
"by clients. Note that this parameter also controls the Domain name used with "
"the security=domain setting."
msgstr ""
#. Description
#: ../samba-common.templates:62
msgid "Use password encryption?"
msgstr ""
#. Description
#: ../samba-common.templates:62
msgid ""
"Recent Windows clients communicate with SMB servers using encrypted "
"passwords. If you want to use clear text passwords you will need to change a "
"parameter in your Windows registry. It is recommended that you use encrypted "
"passwords. If you do, make sure you have a valid /etc/samba/smbpasswd file "
"and that you set passwords in there for each user using the smbpasswd "
"command."
msgstr ""
#. Description
#: ../samba.templates:4
msgid "Create samba password database, /var/lib/samba/passdb.tdb?"
msgstr ""
#. Description
#: ../samba.templates:4
msgid ""
"To be compatible with the defaults in most versions of Windows, Samba must "
"be configured to use encrypted passwords. This requires user passwords to "
"be stored in a file separate from /etc/passwd. This file can be created "
"automatically, but the passwords must be added manually (by you or the user) "
"by running smbpasswd, and you must arrange to keep it up-to-date in the "
"future. If you do not create it, you will have to reconfigure samba (and "
"probably your client machines) to use plaintext passwords. See /usr/share/"
"doc/samba-doc/htmldocs/ENCRYPTION.html from the samba-doc package for more "
"details."
msgstr ""
#. Description
#: ../samba.templates:17
msgid "Samba's log files have moved."
msgstr ""
#. Description
#: ../samba.templates:17
msgid ""
"Starting with the first packages of Samba 2.2 for Debian the log files for "
"both Samba daemons (nmbd and smbd) are now stored in /var/log/samba/. The "
"names of the files are log.nmbd and log.smbd, for nmbd and smbd respectively."
msgstr ""
#. Description
#: ../samba.templates:17
msgid ""
"The old log files that were in /var/log/ will be moved to the new location "
"for you."
msgstr ""
#. Description
#: ../samba.templates:28
msgid "Running nmbd from inetd is no longer supported"
msgstr ""
#. Description
#: ../samba.templates:28
msgid ""
"Your system was previously configured to start nmbd and smbd from inetd. As "
"of version 2.999+3.0.alpha20-4, nmbd will no longer be started from inetd. "
"If you have modified your /etc/init.d/samba startup script, you may need to "
"adjust it by hand now so that nmbd will start."
msgstr ""
#. Choices
#: ../samba.templates:36
msgid "daemons, inetd"
msgstr ""
#. Description
#: ../samba.templates:38
msgid "How do you want to run Samba?"
msgstr ""
#. Description
#: ../samba.templates:38
msgid ""
"The Samba daemon smbd can run as a normal daemon or from inetd. Running as a "
"daemon is the recommended approach."
msgstr ""
#. Description
#: ../samba.templates:45
msgid "Move /etc/samba/smbpasswd to /var/lib/samba/passdb.tdb?"
msgstr ""
#. Description
#: ../samba.templates:45
msgid ""
"Samba 3.0 introduces a newer, more complete SAM database interface which "
"supersedes the /etc/samba/smbpasswd file. Would you like your existing "
"smbpasswd file to be migrated to /var/lib/samba/passdb.tdb for you? If you "
"plan to use another pdb backend (e.g., LDAP) instead, you should answer 'no' "
"here."
msgstr ""
#. Description
#: ../swat.templates:3
msgid "Your smb.conf will be re-written!"
msgstr ""
#. Description
#: ../swat.templates:3
msgid ""
"SWAT will rewrite your smb.conf file. It will rearrange the entries and "
"delete all comments, include= and copy= options. If you have a carefully "
"crafted smb.conf then back it up or don't use SWAT!"
msgstr ""

View File

@ -0,0 +1 @@
usr/lib/python2.2/site-packages/

View File

@ -1,9 +1,11 @@
#!/usr/bin/make -f
#
# Important modifications (introduction of a saved config.cache to
# solve build problems) we introduced in Samba 2.2.1a-5. These
# solve build problems) introduced in Samba 2.2.1a-5. These
# modification were made by Steve Langasek <vorlon@netexpress.net>.
#
# $Id: rules,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
@ -22,64 +24,54 @@ DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_GNU_TYPE
export DEB_BUILD_GNU_TYPE
BVARS = SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb
DESTDIR=`pwd`/debian/samba
DESTDIR=`pwd`/debian/tmp
SWATDIR=`pwd`/debian/swat
SAMBABOOK=`pwd`/debian/swat
IVARS = BASEDIR=$(DESTDIR)/usr \
prefix=$(DESTDIR)/usr \
BINDIR=$(DESTDIR)/usr/bin \
SBINDIR=$(DESTDIR)/usr/sbin \
MANDIR=$(DESTDIR)/usr/share/man \
LIBDIR=$(DESTDIR)/etc/samba \
VARDIR=$(DESTDIR)/var/state/samba \
VARDIR=$(DESTDIR)/var \
INCLUDEDIR=$(DESTDIR)/usr/include \
SWATDIR=$(SWATDIR)/usr/share/samba/swat \
SAMBABOOK=$(SAMBABOOK)/usr/share/samba/swat/using_samba \
CODEPAGEDIR=$(DESTDIR)/usr/share/samba/codepages
CODEPAGEDIR=$(DESTDIR)/usr/share/samba/ \
PRIVATEDIR=$(DESTDIR)/etc/samba \
CONFIGDIR=$(DESTDIR)/etc/samba
patch: patch-stamp
patch-stamp:
dh_testdir
if [ ! -f patch-stamp ]; then debian/scripts/patch-source; fi
if [ ! -f patch-stamp ]; then /bin/sh debian/scripts/patch-source; fi
touch patch-stamp
unpatch:
dh_testdir
if [ -f patch-stamp ]; then debian/scripts/unpatch-source; fi
if [ -f patch-stamp ]; then /bin/sh debian/scripts/unpatch-source; fi
rm -f patch-stamp
configure: patch-stamp configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
# >
# > Does the --with-fhs option work in configure? I tried it with
# > alpha3, but everything was stored in /usr/local. Is that correct?
# > ...
#
# Yes - the default prefix is still /usr/local; --with-fhs just
# changes the default paths for the config, etc. files to match
# the GNU/FHS specs. To get a complete FHS directory spec, use:
#
# ./configure --with-fhs --prefix=/usr --sysconfdir=/etc \
# --localstatedir=/var
if [ -f debian/config.cache ]; then \
cp -f debian/config.cache source/config.cache; \
fi
# [ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp)
[ -f source/Makefile ] || (cd source && ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--cache-file=./config.cache \
--with-fhs \
--enable-shared \
--enable-static \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-lockdir=/var/state/samba \
--localstatedir=/var \
--with-netatalk \
--with-smbmount \
@ -89,7 +81,14 @@ configure-stamp:
--with-utmp \
--with-readline \
--with-pam_smbpass \
--with-libsmbclient)
--with-libsmbclient \
--with-winbind \
--with-msdfs \
--with-automount \
--with-acl-support \
--with-tdbsam \
--with-ldap \
--with-python=python2.2)
touch configure-stamp
@ -97,9 +96,7 @@ build: patch-stamp configure-stamp build-stamp
build-stamp:
dh_testdir
# Compile the Samba package first
# $(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html
$(MAKE) -C source all
$(MAKE) -C source all nsswitch/libnss_wins.so python_ext
touch build-stamp
@ -111,11 +108,11 @@ clean: unpatch
# Clean first the Samba package
# -$(MAKE) -C source realclean
# -$(MAKE) -C source clean
-$(MAKE) -C source distclean
-$(MAKE) -C source python_clean distclean
# Delete stuff left after a build that is not deleted by 'make clean'
rm -f source/bin/wbinfo source/bin/winbindd source/bin/rpctorture \
source/bin/debug2html
rm -f source/bin/wbinfo source/bin/winbindd source/bin/debug2html \
source/bin/libsmbclient.a source/include/stamp-h
dh_clean
@ -126,29 +123,40 @@ install: build
dh_clean -k
dh_installdirs
mkdir -p $(DESTDIR)/usr/share/man $(DESTDIR)/usr/lib \
$(DESTDIR)/lib/security $(DESTDIR)/sbin \
$(DESTDIR)/usr/lib/cups/backend $(DESTDIR)/usr/share/samba \
$(DESTDIR)/etc/pam.d $(DESTDIR)/etc/dhcp3/dhclient-enter-hooks.d \
$(DESTDIR)/usr/lib/python2.2/site-packages
# Add here commands to install the package into debian/tmp.
$(MAKE) -C source install $(IVARS)
# libsmbclient is installed in usr/bin/. Move to usr/lib/.
mv $(DESTDIR)/usr/bin/libsmbclient.so $(DESTDIR)/usr/lib/libsmbclient.so.0.1
mv $(DESTDIR)/usr/bin/libsmbclient.a $(DESTDIR)/usr/lib/
# This is to comply with policy (the symlink that ldconfig would
# produce must exist in the package).
/sbin/ldconfig -n $(DESTDIR)/usr/lib/
# libsmbclient include file is not installed by standard
# libsmbclient files are not installed by the standard
# 'make install' - do it manually.
$(MAKE) -C source installclientlib $(IVARS)
mv $(DESTDIR)/usr/lib/libsmbclient.so $(DESTDIR)/usr/lib/libsmbclient.so.0.1
ln -s libsmbclient.so.0.1 $(DESTDIR)/usr/lib/libsmbclient.so.0
ln -s libsmbclient.so.0.1 $(DESTDIR)/usr/lib/libsmbclient.so
# Install other stuff not installed by "make install"
install -m 0755 debian/mksmbpasswd.awk $(DESTDIR)/usr/sbin/mksmbpasswd
install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/
install -m 0755 source/bin/pam_smbpass.so $(DESTDIR)/lib/security/
# This is only temporary, while we create new packages for winbind and friends
install -m 0644 source/nsswitch/libnss_winbind.so $(DESTDIR)/lib/libnss_winbind.so.2
install -m 0644 source/nsswitch/pam_winbind.so $(DESTDIR)/lib/security/
# Install winbind stuff not installed by 'make install'
install -m 0644 source/nsswitch/libnss_winbind.so \
$(DESTDIR)/lib/libnss_winbind.so.2
install -m 0644 source/nsswitch/pam_winbind.so \
$(DESTDIR)/lib/security/
# Install libnss_wins.so, which is not installed by 'make install' either.
install -m 0644 source/nsswitch/libnss_wins.so \
$(DESTDIR)/lib/libnss_wins.so.2
# pam_smbpass.so isn't being installed by 'make install'.
# We'll move it here to $(DESTDIR)/lib/security/ and then
# libpam-smbpass.files will make dh_movefiles move it to the
# right location in the libpam-smbpass package.
install -m 0644 source/bin/pam_smbpass.so $(DESTDIR)/lib/security/
# Create the symlink that will allow us to do "mount -t smbfs ...".
# Create also a symlink that will allow "mount -t smb ..." to
@ -162,7 +170,7 @@ install: build
# For CUPS to support printing to samba printers, it's necessary
# to make the following symlink (according to
# Erich Schubert <debian@vitavonni.de> in #109509):
ln -s /usr/bin/smbspool $(DESTDIR)/usr/lib/cups/backend/smb
ln -s ../../../bin/smbspool $(DESTDIR)/usr/lib/cups/backend/smb
# To avoid duplication of a large number of files, the swat package
# does not contain the "Using Samba" book nor the HTML docs.
@ -170,10 +178,9 @@ install: build
# are accessed through symlinks provided in the swat package.
# Here we create the symlink for the book, and the symlinks
# for the HTML files are created by the script installswat.sh.
ln -s ../../../doc/samba-doc/htmldocs/using_samba $(SAMBABOOK)/usr/share/samba/swat/using_samba
ln -s ../../doc/samba-doc/htmldocs/using_samba $(SAMBABOOK)/usr/share/samba/swat/using_samba
# Install man pages for files without man pages in the upstream sources
install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8
install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8
# Delete unwanted stuff leftover from "make install"
@ -182,28 +189,33 @@ install: build
# delete the related man pages.
rm $(DESTDIR)/usr/share/man/man1/smbsh.1
# We're not providing findsmb (should we?) so let's remove the man
# pages.
find debian/ -name 'findsmb*' -exec rm -f {} \;
# Install samba-common's conffiles - they'll get moved later to their
# correct place by dh_movefiles.
cp debian/smb.conf $(DESTDIR)/etc/samba/
cp debian/smb.conf $(DESTDIR)/usr/share/samba/
install -m755 debian/panic-action $(DESTDIR)/usr/share/samba/
cp debian/gdbcommands $(DESTDIR)/etc/samba/
cp debian/samba.pamd $(DESTDIR)/etc/pam.d/samba
install -m755 debian/samba-common.dhcp $(DESTDIR)/etc/dhcp3/dhclient-enter-hooks.d/samba
dh_movefiles --sourcedir=debian/samba/
# Install the Python modules
cp source/build/lib.*/samba/*.so $(DESTDIR)/usr/lib/python2.2/site-packages/
# Remove empty directories that will never be used.
rmdir $(DESTDIR)/sbin
dh_movefiles
# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: DH_OPTIONS=-i
binary-indep: build install
# Need this version of debhelper for DH_OPTIONS to work.
dh_testversion 1.1.17
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs -A docs/textdocs/DIAGNOSIS.txt debian/README.build docs/README* docs/Samba-HOWTO-Collection.pdf
dh_installdebconf
dh_installdocs -A debian/README.build
# dh_installexamples is not available in Debian Potato...
[ -x /usr/bin/dh_installexamples ] && dh_installexamples
[ -x /usr/bin/dh_installexamples ] && DH_OPTIONS= dh_installexamples -v -psamba-doc examples/*
# dh_installmenu
# dh_installemacsen
# dh_installpam
@ -212,10 +224,14 @@ binary-indep: build install
# dh_installmanpages
# dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
# Get rid of those pesky .cvsignore files to make lintian happy
find debian/ -name .cvsignore -exec rm -f {} \;
dh_installdeb
# dh_perl
dh_gencontrol
@ -226,30 +242,41 @@ binary-indep: build install
# Pass -a to all debhelper commands in this target to reduce clutter.
binary-arch: DH_OPTIONS=-a
binary-arch: build install
# Need this version of debhelper for DH_OPTIONS to work.
dh_testversion 1.1.17
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs -A docs/textdocs/DIAGNOSIS.txt debian/README.build docs/README* docs/Samba-HOWTO-Collection.pdf
dh_installdebconf
dh_installdocs -A debian/README.build
# dh_installexamples is not available in Debian Potato...
[ -x /usr/bin/dh_installexamples ] && dh_installexamples
[ -x /usr/bin/dh_installexamples ] && DH_OPTIONS= dh_installexamples -v -ppython2.2-samba source/python/examples/*
# dh_installmenu
# dh_installlogrotate is not available in Debian Potato...
if [ -x /usr/bin/dh_installlogrotate ]; then dh_installlogrotate; else mkdir debian/samba/etc/logrotate.d; cp debian/samba.logrotate debian/samba/etc/logrotate.d/samba; fi
if [ -x /usr/bin/dh_installlogrotate ]; then \
dh_installlogrotate; \
else \
mkdir -p debian/samba/etc/logrotate.d; \
cp debian/samba.logrotate debian/samba/etc/logrotate.d/samba; \
mkdir -p debian/winbind/etc/logrotate.d; \
cp debian/winbind.logrotate debian/winbind/etc/logrotate.d/winbind; \
fi
# dh_installemacsen
# dh_installpam
dh_installinit
dh_installcron
DH_OPTIONS= dh_installinit -psamba -n
DH_OPTIONS= dh_installinit -pwinbind
dh_installcron
# dh_installmanpages
# dh_installinfo
dh_undocumented
dh_installchangelogs
cp debian/winbind.lintian debian/winbind/usr/share/lintian/overrides/winbind
# dh_undocumented
dh_installchangelogs -Nlibpam-smbpass
DH_OPTIONS= dh_installchangelogs -plibpam-smbpass source/pam_smbpass/CHANGELOG
dh_strip
dh_link
dh_compress
dh_fixperms
# Why this is executable, I have NO idea...
chmod a-x debian/libsmbclient-dev/usr/include/libsmbclient.h
# You may want to make some executables suid here.
# The smbmnt and smbumount binaries should be setuid-root. This
# has security implications because these programs haven't had
@ -259,8 +286,13 @@ binary-arch: build install
chmod u+s debian/smbfs/usr/bin/smbumount
# Set some reasonable default perms for the samba logdir.
chmod 0750 $(DESTDIR)/var/log/samba/
chown root.adm $(DESTDIR)/var/log/samba/
chmod 0750 debian/samba/var/log/samba/
chown root.adm debian/samba/var/log/samba/
# Get rid of those pesky .cvsignore files to make lintian happy
# (maybe we only need the "find ... -exec rm -f {} ;" we have
# in the binary-indep target?) peloy.-
find debian/ -name .cvsignore -exec rm -f {} \;
dh_installdeb
# dh_makeshlibs

View File

@ -1,194 +0,0 @@
#!/usr/bin/make -f
# Made with the iad of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Also some stuff taken from debmake scripts, by Cristopt Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
BVARS = BASEDIR=/usr \
LIBDIR=/etc/samba \
SMB_PASSWD_FILE=/etc/samba/smbpasswd \
SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb \
LOCKDIR=/var/samba \
SWATDIR=/usr/share/samba/swat
DESTDIR=`pwd`/debian/tmp
SWATDIR=`pwd`/debian/swat
SAMBABOOK=`pwd`/debian/swat
IVARS = BASEDIR=$(DESTDIR)/usr \
BINDIR=$(DESTDIR)/usr/bin \
SBINDIR=$(DESTDIR)/usr/sbin \
MANDIR=$(DESTDIR)/usr/share/man \
LIBDIR=$(DESTDIR)/etc/samba \
VARDIR=$(DESTDIR)/var/samba \
SWATDIR=$(SWATDIR)/usr/share/samba/swat \
SAMBABOOK=$(SAMBABOOK)/usr/share/samba/swat/using_samba
build: build-stamp
build-stamp:
dh_testdir
# Compile the Samba package first
[ -f source/Makefile ] || (cd source && ./configure --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp)
$(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html
# Now compile the old smbfs package
$(MAKE) -C source/smbfs-2.0.x
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Clean first the Samba package
# -$(MAKE) -C source realclean
-$(MAKE) -C source distclean
# -$(MAKE) -C source clean
rm -f source/bin/{rpctorture,smbtorture,debug2html}
# Now clean the old smbfs-2.0.x package
-$(MAKE) -C source/smbfs-2.0.x clean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
$(MAKE) -C source install $(IVARS)
# Install other stuff not installed by "make install"
install -m 0755 source/script/mksmbpasswd.sh $(DESTDIR)/usr/sbin/mksmbpasswd
install -m 0755 source/bin/smbtorture $(DESTDIR)/usr/bin/
install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/
# Create the symlink that will allow us to do "mount -t smbfs ...".
# Create also a symlink that will allow "mount -t smb ..." to
# work too. The symlink is created in $(DESTDIR)/sbin/ but
# will be moved by dh_movefiles to the smbfs package later on.
ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smbfs
ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smb
# To avoid duplication of a large number of files, the swat package
# does not contain the "Using Samba" book nor the HTML docs.
# Instead, these are provided by the samba-doc package and
# are accessed through symlinks provided in the swat package.
# Here we create the symlink for the book, and the symlinks
# for the HTML files are created by the script installswat.sh.
ln -s /usr/share/doc/samba-doc/htmldocs/using_samba $(SAMBABOOK)/usr/share/samba/swat/using_samba
# Install man pages for files without man pages in the upstream dist.
install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8
install -m 0644 debian/addtosmbpass.8 $(DESTDIR)/usr/share/man/man8/addtosmbpass.8
install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8
# Delete unwanted stuff leftover from "make install"
# smbrun is not longer needed by smbd, so delete its man page
rm $(DESTDIR)/usr/share/man/man1/smbrun.1
# The smbwrapper package is not being generated anymore, so we must
# delete the related man pages.
rm $(DESTDIR)/usr/share/man/man1/smbsh.1
# We need to rename the SMB mount utilities so they don't have the same
# names as the files in the smbfs package.
mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.2.x
mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.2.x
mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.2.x.8
mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.2.x.8
# These files are not part of the main samba package, move to where they
# belong...
#mv $(DESTDIR)/usr/bin/smbwrapper.so debian/smbwrapper/usr/share/samba/
# The smbmnt, smbmount-2.2.x and smbumount-2.2.x binaries must
# be setuid-root.
chmod u+s $(DESTDIR)/usr/bin/smbmnt $(DESTDIR)/usr/bin/smbmount-2.2.x $(DESTDIR)/usr/bin/smbumount-2.2.x
# Install samba-common's conffiles
cp debian/smb.conf $(DESTDIR)/etc/samba/
cp debian/samba.pamd $(DESTDIR)/etc/pam.d/samba
# OK, now it's time to install the smbfs-2.0.2 files
$(MAKE) -C source/smbfs-2.0.x install $(IVARS)
# Rename the old smbfs utilities to more convenient names
mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.0.x
mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.0.x
mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.0.x.8
mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.0.x.8
# Now install the smbmount and smbumount wrappers and its man pages
install debian/smbmount.sh $(DESTDIR)/usr/bin/smbmount
install debian/smbumount.sh $(DESTDIR)/usr/bin/smbumount
install -m 0644 debian/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount.8
install -m 0644 debian/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount.8
# Install some docs. that go in "unusual" places
cp README-smbmount debian/smbfs/usr/share/doc/smbfs/2.2.x/
cp source/smbfs-2.0.x/{FAQ,README,smbfs-2.0.2.lsm,Changes} debian/smbfs/usr/share/doc/smbfs/2.0.x/
dh_movefiles
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# dh_testversion
dh_testdir -i
dh_testroot -i
dh_installdocs -i -A docs/textdocs/DIAGNOSIS.txt
dh_installexamples -i
# dh_installmenu -i
# dh_installemacsen -i
# dh_installinit -i
# dh_installcron -i
# dh_installmanpages -i
dh_undocumented
dh_installchangelogs -i
dh_compress -i
# dh_suidregister -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_installdocs -a -A docs/textdocs/DIAGNOSIS.txt -A debian/README.linux
dh_installexamples -a
# dh_installmenu -a
# dh_installemacsen -a
dh_installinit -a
dh_installcron -a
# dh_installmanpages -a
dh_undocumented
dh_installchangelogs -a
dh_strip -a
dh_compress -a
dh_suidregister -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
# dh_makeshlibs -a
dh_md5sums -a
dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary

View File

@ -1,172 +0,0 @@
#!/usr/bin/make -f
# Made with the iad of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Also some stuff taken from debmake scripts, by Cristopt Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
BVARS = BASEDIR=/usr \
LIBDIR=/etc/samba \
SMB_PASSWD_FILE=/etc/samba/smbpasswd \
SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb \
LOCKDIR=/var/samba \
SWATDIR=/usr/share/samba/swat
DESTDIR=`pwd`/debian/tmp
SWATDIR=`pwd`/debian/swat
IVARS = BASEDIR=$(DESTDIR)/usr \
BINDIR=$(DESTDIR)/usr/bin \
SBINDIR=$(DESTDIR)/usr/sbin \
MANDIR=$(DESTDIR)/usr/share/man \
LIBDIR=$(DESTDIR)/etc/samba \
VARDIR=$(DESTDIR)/var/samba \
SWATDIR=$(SWATDIR)/usr/share/samba/swat
build: build-stamp
build-stamp:
dh_testdir
# Compile the Samba package first
[ -f source/Makefile ] || (cd source && ./configure --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-smbwrapper)
$(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html
# Now compile the old smbfs package
$(MAKE) -C source/smbfs-2.0.x
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Clean first the Samba package
# -$(MAKE) -C source realclean
-$(MAKE) -C source distclean
# -$(MAKE) -C source clean
rm -f source/bin/{rpctorture,smbtorture,debug2html}
# Now clean the old smbfs-2.0.x package
-$(MAKE) -C source/smbfs-2.0.x clean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp.
$(MAKE) -C source install $(IVARS)
# Install other stuff not installed by "make install"
install -m 0755 source/script/mksmbpasswd.sh $(DESTDIR)/usr/sbin/mksmbpasswd
install -m 0755 source/bin/smbtorture $(DESTDIR)/usr/bin/
install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/
install -m 0755 source/smbadduser $(DESTDIR)/usr/sbin/
# Install man pages for files without man pages in the upstream dist.
install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8
install -m 0644 debian/addtosmbpass.8 $(DESTDIR)/usr/share/man/man8/addtosmbpass.8
install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8
# Delete unwanted stuff leftover from "make install"
# smbrun is not longer needed by smbd, so delete its man page
rm $(DESTDIR)/usr/share/man/man1/smbrun.1
# We need to rename the SMB mount utilities so they don't have the same
# names as the files in the smbfs package.
mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.2.x
mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.2.x
mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.2.x.8
mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.2.x.8
# These files are not part of the main samba package, move to where they
# belong...
mv $(DESTDIR)/usr/bin/smbwrapper.so debian/smbwrapper/usr/share/samba/
# The smbmnt, smbmount-2.2.x and smbumount-2.2.x binaries must
# be setuid-root.
chmod u+s $(DESTDIR)/usr/bin/smbmnt $(DESTDIR)/usr/bin/smbmount-2.2.x $(DESTDIR)/usr/bin/smbumount-2.2.x
# Install samba-common's conffiles
cp debian/smb.conf $(DESTDIR)/etc/samba/
# OK, now it's time to install the smbfs-2.0.2 files
$(MAKE) -C source/smbfs-2.0.x install $(IVARS)
# Rename the old smbfs utilities to more convenient names
mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.0.x
mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.0.x
mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.0.x.8
mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.0.x.8
# Now install the smbmount and smbumount wrappers
install debian/smbmount.sh $(DESTDIR)/usr/bin/smbmount
install debian/smbumount.sh $(DESTDIR)/usr/bin/smbumount
# Install some docs. that go in "unusual" places
cp README-smbmount debian/smbfs/usr/share/doc/smbfs/2.2.x/
cp source/smbfs-2.0.x/{FAQ,README,smbfs-2.0.2.lsm,Changes} debian/smbfs/usr/share/doc/smbfs/2.0.x/
dh_movefiles
touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
# dh_testversion
dh_testdir -i
dh_testroot -i
dh_installdocs -i -A docs/textdocs/DIAGNOSIS.txt
dh_installexamples -i
# dh_installmenu -i
# dh_installemacsen -i
# dh_installinit -i
# dh_installcron -i
# dh_installmanpages -i
dh_undocumented
dh_installchangelogs -i
dh_compress -i
# dh_suidregister -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_installdocs -a -A docs/textdocs/DIAGNOSIS.txt
dh_installexamples -a
# dh_installmenu -a
# dh_installemacsen -a
dh_installinit -a
dh_installcron -a
# dh_installmanpages -a
dh_undocumented
dh_installchangelogs -a
dh_strip -a
dh_compress -a
dh_suidregister -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
# dh_makeshlibs -a
dh_md5sums -a
dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary

View File

@ -1,2 +1,3 @@
/etc/samba/smb.conf
/etc/pam.d/samba
/etc/samba/gdbcommands
/etc/dhcp3/dhclient-enter-hooks.d/samba

View File

@ -0,0 +1,155 @@
#/bin/sh -e
# Source debconf library.
. /usr/share/debconf/confmodule
# Function for grabbing a parameter from an smb.conf file
smbconf_retr() {
if [ -z "$1" ]; then
return
fi
if [ -n "$2" ]; then
local FILE="$2"
fi
if [ -z "$FILE" ]; then
return
fi
sed -n -e"
s/^[[:space:]]*\[global\]/\[global\]/i
/^\[global\]/,/^[[:space:]]*\[/ {
s/^[[:space:]]*$1[[:space:]]*=[[:space:]]*//pi
}" $FILE \
| tail -1
}
FILE=/etc/samba/smb.conf
db_title "Samba Server"
# We ask the question IFF the config contains complex options that could
# cause us to break the config.
if [ -f "$FILE" ] && grep -v dhcp.conf $FILE \
| grep -qEi '\\$|^[[:space:]]*include[[:space:]]*='
then
db_input high samba-common/do_debconf || true
db_go
else
db_set samba-common/do_debconf true
fi
# If user doesn't want to use debconf to configure Samba the leave...
db_get samba-common/do_debconf || true
if [ "${RET}" = "false" ]; then
exit 0
fi
# User wants to use debconf, let's continue...
# Adjust priority of the question about the workgroup name depending
# on whether a workgroup name has already being specified.
db_get samba-common/workgroup || true
if [ "${RET}" ]; then
WGPRIORITY=medium
else
WGPRIORITY=high
fi
# Preload any values from the existing smb.conf file
if [ -f $FILE ]; then
WORKGROUP=`smbconf_retr workgroup`
if [ "$WORKGROUP" ]; then
db_set samba-common/workgroup "$WORKGROUP"
fi
ENCRYPT=`smbconf_retr "encrypt passwords"`
if [ "$ENCRYPT" ]; then
ENCRYPT=`echo $ENCRYPT | tr '[A-Z]' '[a-z]'`
if [ "$ENCRYPT" = "yes" ]; then
ENCRYPT=true
elif [ "$ENCRYPT" = "no" ]; then
ENCRYPT=false
fi
db_set samba-common/encrypt_passwords "$ENCRYPT"
fi
CHARSET=`smbconf_retr "character set"`
CODEPAGE=`smbconf_retr "client code page"`
DISPLAYCHARSET=`smbconf_retr "display charset"`
UNIXCHARSET=`smbconf_retr "unix charset"`
DOSCHARSET=`smbconf_retr "dos charset"`
# If we're upgrading from an old version and there's no
# 'passdb backend' setting, add one.
if [ "$1" = "configure" -a -n "$2" ] \
&& dpkg --compare-versions "$2" lt 2.99.cvs.20020713-2 \
&& ! grep -q -i '^[[:space:]]*passdb backend[[:space:]]*=' $FILE
then
TMPFILE=/etc/samba/smb.conf.dpkg-tmp
sed -e'
s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
s/^\([[:space:]]*\)encrypt passwords/\1encrypt passwords/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ {
/^[[:space:]]*encrypt passwords[[:space:]]*=/a \
passdb backend = smbpasswd guest
}' < $FILE > ${TMPFILE}
chmod a+r ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
fi
# Get workgroup name
db_input $WGPRIORITY samba-common/workgroup || true
db_go
# Use encrypted passwords?
db_input medium samba-common/encrypt_passwords || true
db_go
# Handle migrating character sets
if [ -n "$CHARSET" -a -z "$DISPLAYCHARSET" -a -z "$UNIXCHARSET" ]
then
DISPLAYCHARSET=`echo $CHARSET | sed -e's/iso-/ISO/i'`
db_set samba-common/character_set "$DISPLAYCHARSET"
# FIXME: should eventually be low.
db_input medium samba-common/character_set || true
db_go
fi
if [ -n "$CODEPAGE" -a -z "$DOSCHARSET" ]
then
DOSCHARSET=CP`echo $CODEPAGE | sed -e's/[[:alpha:]]*//g'`
db_set samba-common/codepage "$DOSCHARSET"
# FIXME: should eventually be low.
db_input medium samba-common/codepage || true
db_go
fi
DHCPPRIORITY=medium
#if [ "$DEBCONF_RECONFIGURE" = 1 ] && [ -f /sbin/dhclient3 ]
if [ -f /sbin/dhclient3 ]
then
DHCPPRIORITY=high
# TODO: see if we can detect that dhcp3-client is *going* to be installed,
# even if it isn't yet.
#elif dpkg-query -W --showformat='${Status}\n' dhcp3-client | grep ???
# unknown ok not-installed ?
# DHCPPRIORITY=high
fi
if [ ! -f $FILE ] || grep -q -i 'wins server' $FILE
then
# check the values before and after; unset the 'applied' flag
# if they don't match.
db_get samba-common/dhcp || true
OLDDHCP="$RET"
db_input $DHCPPRIORITY samba-common/dhcp || true
db_go
db_get samba-common/dhcp || true
if [ "$OLDDHCP" != "$RET" ]; then
db_fset samba-common/dhcp applied false
fi
fi

View File

@ -0,0 +1,29 @@
#!/bin/sh
# No need to continue if we're called with an unsupported option
if [ "$reason" != BOUND ] && [ "$reason" != RENEW ] \
&& [ "$reason" != REBIND ] && [ "$reason" != REBOOT ] \
&& [ "$reason" != EXPIRE ] && [ "$reason" != FAIL ]
then
exit 0
fi
umask 022
if [ -z "$new_netbios_name_servers" ] || [ "$reason" = FAIL ] \
|| [ "$reason" = EXPIRE ]
then
# FIXME: add sed magic to only remove wins servers
# associated with this interface
echo -n > /etc/samba/dhcp.conf
elif [ "$new_netbios_name_servers" != "old_netbios_name_servers" ]
then
for server in $new_netbios_name_servers
do
serverlist="$serverlist $interface:$server"
done
# FIXME: add sed magic to only update wins servers
# associated with this interface
echo " wins server =$serverlist" > /etc/samba/dhcp.conf
fi

View File

@ -0,0 +1,2 @@
etc/samba
etc/dhcp3/dhclient-enter-hooks.d

View File

@ -1,7 +1,15 @@
etc/samba/
etc/dhcp3/
etc/pam.d/
usr/bin/net
usr/bin/nmblookup
usr/bin/smbpasswd
etc/pam.d/
usr/bin/testparm
usr/share/man/man1/nmblookup.1
usr/share/man/man1/testparm.1
usr/share/man/man5/lmhosts.5
usr/share/man/man5/smb.conf.5
usr/share/man/man7/samba.7
usr/share/man/man8/net.8
usr/share/man/man8/smbpasswd.8
usr/share/samba/codepages/
usr/share/samba/

View File

@ -0,0 +1,141 @@
#!/bin/sh
#
# $Id: samba-common.postinst,v 1.1.6.1 2003/06/01 04:30:10 peloy Exp $
#
set -e
# Do debconf stuff here
. /usr/share/debconf/confmodule
# We need a default smb.conf file. If one doesn't exist we put in place
# one that has some basic defaults.
if [ ! -e /etc/samba/smb.conf ]; then
cp -a /usr/share/samba/smb.conf /etc/samba/
fi
# Static tempfile location, dpkg-style
TMPFILE=/etc/samba/smb.conf.dpkg-tmp
# ------------------------- Debconf questions start ---------------------
# Is the user configuring with debconf, or he/she prefers swat/manual
# config?
db_get samba-common/do_debconf || true
if [ "${RET}" = "true" ]; then
# Get workgroup name
db_get samba-common/workgroup || true
WORKGROUP="${RET}"
# Oh my GOD, this is ugly. Why would anyone put these
# characters in a workgroup name? Why, Lord, why???
WORKGROUP=`echo $WORKGROUP | \
sed -e's/\\\\/\\\\\\\\/g
s#/#\\\\/#g
s/&/\\\&/g
s/\\\$/\\\\\\\$/g'`
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ \
s/^\([[:space:]]*\)workgroup[[:space:]]*=.*/\1workgroup = ${WORKGROUP}/i" \
< /etc/samba/smb.conf >${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
# Encrypt passwords?
db_get samba-common/encrypt_passwords || true
ENCRYPT_PASSWORDS="${RET}"
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ \
s/^\([[:space:]]*\)encrypt passwords[[:space:]]*=.*/\1encrypt passwords = ${ENCRYPT_PASSWORDS}/i" \
< /etc/samba/smb.conf >${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
# Install DHCP support
db_get samba-common/dhcp && DHCPVAL="$RET"
db_fget samba-common/dhcp applied || true
if [ "$DHCPVAL" = true ] && [ "$RET" != true ] && \
! grep -q dhcp.conf /etc/samba/smb.conf
then
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ {
/wins server[[:space:]]*=/a \\
\\
# If we receive WINS server info from DHCP, override the options above. \\
include = /etc/samba/dhcp.conf
}" < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
elif [ "$RET" != true ] && grep -q dhcp.conf /etc/samba/smb.conf
then
:
# FIXME: here we /delete/ the lines?
fi
# Once we get here, the config has been applied, whatever
# it is.
if [ "$RET" != true ]; then
db_fset samba-common/dhcp applied true
fi
# Update charset settings?
if ! grep -q "^[[:space:]]*unix charset[[:space:]]*=" /etc/samba/smb.conf
then
db_get samba-common/character_set || true
DISPLAYCHARSET="${RET}"
if [ -n "$DISPLAYCHARSET" ]
then
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
s/^\([[:space:]]*\)character set/\1character set/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ {
/^[[:space:]]*character set[[:space:]]*=/c \\
display charset = $DISPLAYCHARSET\\
unix charset = $DISPLAYCHARSET
}" < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
fi
if grep -qi "^[[:space:]]*passdb backend[[:space:]]*=.*unixsam" /etc/samba/smb.conf
then
sed -e 's/^\([[:space:]]*\)passdb backend/\1passdb backend/i
/^[[:space:]]*passdb backend/ {
s/unixsam/guest/i
}' < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
if ! grep -q "^[[:space:]]*dos charset[[:space:]]*=" /etc/samba/smb.conf
then
db_get samba-common/codepage || true
DOSCHARSET="${RET}"
if [ -n "$DOSCHARSET" ]
then
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
s/^\([[:space:]]*\)client code page/\1client code page/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ {
/^[[:space:]]*client code page[[:space:]]*=/c \\
dos charset = $DOSCHARSET
}" < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
fi
if dpkg --compare-versions "$2" lt 2.999+3.0.alpha20-4 \
&& ! grep -q "^[[:space:]]*panic action[[:space:]]*=" /etc/samba/smb.conf
then
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
/^[[:space:]]*\[global\]/a \\
\\
# Do something sensible when Samba crashes: mail the admin a backtrace\\
panic action = /usr/share/samba/panic-action %d" < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
fi
chmod a+r /etc/samba/smb.conf
# ------------------------- Debconf questions end ---------------------
db_stop
#DEBHELPER#

View File

@ -1,6 +1,11 @@
#!/bin/sh
#
# $Id: samba-common.postrm,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
if [ "$1" = purge ]; then
# Remove any files left in /etc/samba/
rm -Rf /etc/samba/
fi
#DEBHELPER#

View File

@ -0,0 +1,68 @@
Template: samba-common/character_set
Type: string
_Description: Character Set for Unix filesystem
You currently have a "character set" configured in your smb.conf. In
Samba 3.0, this option is replaced by two new options, "unix charset" and
"display charset". Please specify the character set you wish to use for
these new options, which control how Samba interprets filenames on the
file system and how smbclient will interpret these names when you connect
to a file server.
.
If you leave this option blank, your smb.conf will not be changed.
Template: samba-common/codepage
Type: string
_Description: Character Set for DOS clients
You currently have a "client code page" set in your smb.conf. In Samba
3.0, this option is replaced by the option "dos charset". Please specify
the character set you wish to use for this new option. In most cases, the
default chosen for you will be sufficient. Note that this option is not
needed to support Windows clients, it is only for DOS clients. If you
leave this option blank, your smb.conf will not be changed.
Template: samba-common/dhcp
Type: boolean
Default: false
_Description: Modify smb.conf to use WINS settings from DHCP?
If your computer gets IP address information from a DHCP server on the
network, the DHCP server may also provide information about WINS servers
("NetBIOS name servers") present on the network. This requires a
change to your smb.conf file so that DHCP-provided WINS settings will
automatically be read from /etc/samba/dhcp.conf.
.
You must have the dhcp3-client package installed to take advantage of this
feature.
Template: samba-common/do_debconf
Type: boolean
Default: true
_Description: Configure smb.conf through debconf?
The rest of the configuration of Samba deals with questions that affect
parameters in /etc/samba/smb.conf, which is the file used to configure the
Samba programs (nmbd and smbd.) Your current smb.conf contains an
'include' line or an option that spans multiple lines, which could confuse
debconf and require you to edit your smb.conf by hand to get it working
again.
.
If you don't use debconf to configure smb.conf, you will have to handle
any configuration changes yourself, and will not be able to take
advantage of periodic configuration enhancements. Therefore, use of
debconf is recommended if possible.
Template: samba-common/workgroup
Type: string
_Description: Workgroup/Domain Name?
This controls what workgroup your server will appear to be in when queried
by clients. Note that this parameter also controls the Domain name used
with the security=domain setting.
Template: samba-common/encrypt_passwords
Type: boolean
Default: true
_Description: Use password encryption?
Recent Windows clients communicate with SMB servers using encrypted
passwords. If you want to use clear text passwords you will need to change
a parameter in your Windows registry. It is recommended that you use
encrypted passwords. If you do, make sure you have a valid
/etc/samba/smbpasswd file and that you set passwords in there for each
user using the smbpasswd command.

View File

@ -1,3 +1,2 @@
examples/
debian/wins2dns.awk
source/script/smbadduser
source/smbadduser

View File

@ -0,0 +1,93 @@
#/bin/sh -e
#
# $Id: samba.config,v 1.1.6.1 2003/06/01 04:30:10 peloy Exp $
#
# Source debconf library.
. /usr/share/debconf/confmodule
# Function for grabbing a parameter from an smb.conf file
smbconf_retr() {
if [ -z "$1" ]; then
return
fi
if [ -n "$2" ]; then
local FILE="$2"
fi
if [ -z "$FILE" ]; then
return
fi
sed -n -e"
s/^[[:space:]]*\[global\]/\[global\]/i
/^\[global\]/,/^[[:space:]]*\[/ {
s/^[[:space:]]*$1[[:space:]]*=[[:space:]]*//pi
}" $FILE \
| tail -1
}
FILE=/etc/samba/smb.conf
db_title "Samba Server"
# Babysit users who don't read README.Debian
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "2.2"
then
db_input medium samba/log_files_moved || true
db_go
fi
db_input medium samba/run_mode || true
db_go
# Offer to move the password database for existing users
if [ "$1" = "configure" -a -n "$2" -a -e /etc/samba/smbpasswd \
-a ! -e /var/lib/samba/passdb.tdb ] \
&& dpkg --compare-versions "$2" lt 2.99.cvs.20020713-2
then
FILE=/etc/samba/smb.conf
PASSDB=""
if [ -f "$FILE" ]; then
PASSDB=`smbconf_retr "passdb backend"`
fi
TDBPRIORITY=medium
if echo "$PASSDB" | grep -q ldapsam; then
TDBPRIORITY=low
fi
db_get samba-common/do_debconf || true
if [ "${RET}" = "false" ]; then
TDBPRIORITY=low
fi
db_input "$TDBPRIORITY" samba/tdbsam || true
fi
# We vary the priority of the next question depending on whether
# the password database already exists...
if [ -e /etc/samba/smbpasswd -o -e /var/lib/samba/passdb.tdb ]; then
PRIORITY="low"
else
# If 'encrypt passwords' is true in smb.conf, and smbpasswd
# does not exist, default to yes here.
FILE=/etc/samba/smb.conf
if [ -f "$FILE" ]; then
ENCRYPT=`smbconf_retr "encrypt passwords"`
if [ "$ENCRYPT" ]; then
ENCRYPT=`echo $ENCRYPT | tr '[A-Z]' '[a-z]'`
if [ "$ENCRYPT" = "yes" ]; then
ENCRYPT=true
fi
if [ "$ENCRYPT" = "no" ]; then
ENCRYPT=false
fi
fi
db_set samba/generate_smbpasswd "$ENCRYPT"
fi
PRIORITY="medium"
fi
db_input $PRIORITY samba/generate_smbpasswd || true
db_go

View File

@ -1,11 +1,6 @@
sbin
usr/bin
usr/sbin
var/log/samba
var/state/samba
etc/samba
etc/pam.d
usr/share
usr/share/samba
lib/security
usr/lib/cups/backend
var/lib/samba
var/run/samba
var/cache/samba

View File

@ -1,3 +1,5 @@
README
Roadmap
WHATSNEW.txt
docs/htmldocs/diagnosis.html
docs/README.ldap

View File

@ -0,0 +1,16 @@
usr/bin/testprns
usr/bin/smbstatus
usr/bin/smbcontrol
usr/bin/tdbbackup
usr/bin/pdbedit
usr/sbin/smbd
usr/sbin/nmbd
usr/sbin/mksmbpasswd
usr/share/man/man1/smbcontrol.1
usr/share/man/man1/smbstatus.1
usr/share/man/man1/testprns.1
usr/share/man/man5/smbpasswd.5
usr/share/man/man8/nmbd.8
usr/share/man/man8/pdbedit.8
usr/share/man/man8/smbd.8
usr/share/man/man8/mksmbpasswd.8

View File

@ -2,42 +2,21 @@
#
# Start/stops the Samba daemons (nmbd and smbd).
#
# $Id: samba.init,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DEBIAN_CONFIG=/etc/samba/debian_config
# Defaults
RUN_MODE="daemons"
NMBDPID=/var/state/samba/nmbd.pid
SMBDPID=/var/state/samba/smbd.pid
# Reads config file (will override defaults above)
[ -r /etc/default/samba ] && . /etc/default/samba
NMBDPID=/var/run/samba/nmbd.pid
SMBDPID=/var/run/samba/smbd.pid
# clear conflicting settings from the environment
unset TMPDIR
# Sanity check: see if Samba has been configured on this system.
if [ ! -f $DEBIAN_CONFIG ]; then
echo "The file $DEBIAN_CONFIG does not exist! There is something wrong"
echo "with the installation of Samba on this system. Please re-install"
echo "Samba. I can't continue!!!"
exit 1
fi
# Read current Samba configuration
. $DEBIAN_CONFIG
# the Samba daemons.
# If Samba is running from inetd then there is nothing to do
if [ "$run_mode" = "from_inetd" ]; then
# Commented out to close bug #26884 (startup message is rather long). I
# have yet to think how to let the user know that if he/she is running
# Samba from inetd, he can't just "/etc/init.d/samba stop" to stop
# the Samba daemons.
# echo "Warning: Samba is not running as daemons. Daemons not restarted/stopped."
# echo "Daemons will start automatically by inetd (if you wanted to start Samba)."
# echo "If you want to stop Samba, get the PID's of all nmbd and smbd processes"
# echo "and send them a SIGTERM signal but keep in mind that inetd could restart them."
exit 0
fi
# See if the daemons are there
test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0
@ -48,21 +27,42 @@ case "$1" in
echo -n " nmbd"
start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D
echo -n " smbd"
start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D
if [ "$RUN_MODE" != "inetd" ]; then
echo -n " smbd"
start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D
fi
echo "."
;;
stop)
echo -n "Stopping Samba daemons:"
echo -n "Stopping Samba daemons: "
echo -n " nmbd"
start-stop-daemon --stop --quiet --pidfile $NMBDPID
# Wait a little and remove stale PID file
sleep 1
if [ -f $NMBDPID ] && ! ps h `cat $NMBDPID` > /dev/null
then
# Stale PID file (nmbd was succesfully stopped),
# remove it (should be removed by nmbd itself IMHO.)
rm -f $NMBDPID
fi
echo -n "nmbd"
echo -n " smbd"
start-stop-daemon --stop --quiet --pidfile $SMBDPID
if [ "$RUN_MODE" != "inetd" ]; then
start-stop-daemon --stop --quiet --pidfile $SMBDPID
# Wait a little and remove stale PID file
sleep 1
if [ -f $SMBDPID ] && ! ps h `cat $SMBDPID` > /dev/null
then
# Stale PID file (nmbd was succesfully stopped),
# remove it (should be removed by smbd itself IMHO.)
rm -f $SMBDPID
fi
echo -n " smbd"
fi
echo "."
;;
reload)
echo -n "Reloading /etc/samba/smb.conf (smbd only)"
@ -71,19 +71,9 @@ case "$1" in
echo "."
;;
restart|force-reload)
echo -n "Restarting Samba daemons:"
echo -n " nmbd"
start-stop-daemon --stop --quiet --pidfile $NMBDPID
sleep 2
start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D
echo -n " smbd"
start-stop-daemon --stop --quiet --pidfile $SMBDPID
sleep 2
start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D
echo "."
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}"

View File

@ -3,7 +3,7 @@
missingok
rotate 7
postrotate
killall -q -HUP smbd || true
invoke-rc.d --quiet samba reload > /dev/null
endscript
compress
notifempty
@ -14,7 +14,7 @@
missingok
rotate 7
postrotate
killall -q -HUP nmbd || true
[ -f /var/run/samba/nmbd.pid ] && kill -HUP `cat /var/run/samba/nmbd.pid`
endscript
compress
notifempty

View File

@ -1,12 +1,8 @@
#!/bin/sh
#!/bin/sh -e
#
# Post-installation script for the Samba package for Debian GNU/Linux
#
# Written by Eloy A. Paris <peloy@debian.org> for the Debian project.
#
# The prerm script (run before the postinst) disables Samba in /etc/inetd.conf
# and stops both nmbd and smbd. So, when this script is run we
# know that neither nmbd nor smbd can start.
# $Id: samba.postinst,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
case "$1" in
@ -24,184 +20,204 @@ case "$1" in
;;
esac
# Take care of the /usr/doc/ to /usr/shar/doc/ migration.
if [ -d /usr/doc -a ! -e /usr/doc/samba -a -d /usr/share/doc/samba ]; then
ln -sf ../share/doc/samba /usr/doc/samba
fi
# Handle debconf
. /usr/share/debconf/confmodule
# Starting with Samba 2.0.7-4 the location of the WINS database, the browse
INITCONFFILE=/etc/default/samba
# We generate several files during the postinst, and we don't want
# them to be readable only by root.
umask 022
# Generate configuration file if it does not exist, using default values.
[ -r "${INITCONFFILE}" ] || {
echo Generating ${INITCONFFILE}... >&2
cat >${INITCONFFILE} <<'EOFMAGICNUMBER1234'
# Defaults for samba initscript
# sourced by /etc/init.d/samba
# installed at /etc/default/samba by the maintainer scripts
#
#
# This is a POSIX shell fragment
#
# How should Samba (smbd) run? Possible values are "daemons"
# or "inetd".
RUN_MODE=""
EOFMAGICNUMBER1234
}
# --- Begin of FHS migration code ---
# Starting with Samba 2.2.3-4 the WINS database, the browse
# database and other important run-time files are stored in
# /var/state/samba/ rather than in /var/samba/. The following
# code takes care of moving the files in the old directory to
# the new directory.
# FHS-compliant directories. The following code takes care of
# moving the files in the old directories (/var/samba/ and
# /var/state/samba) to the new FHS-compliant directories.
if [ -d /var/samba/ ]; then
mv /var/samba/* /var/state/samba/
mv /var/samba/* /var/lib/samba/ 2>/dev/null || true
rmdir /var/samba/
fi
# Define some constants...
DEBIAN_CONFIG=/etc/samba/debian_config
CONFIG_VERSION=1
# Default for anything we don't know about (see next two 'for' loops)
# is /var/lib/samba -- guaranteed not to accidentally tromp on any
# files the admin thought were safe.
if [ -d /var/state/samba ]; then
mv /var/state/samba/* /var/lib/samba/ 2>/dev/null || true
rmdir /var/state/samba/
# Now some variables...
samba_configured=no
if [ -f $DEBIAN_CONFIG ]; then
. $DEBIAN_CONFIG
if [ "$config_version" -ge "$CONFIG_VERSION" ]; then
samba_configured=yes
fi
# It's not FHS, and it's probably our fault this is here,
# so delete it if we can.
rmdir /var/state/ 2> /dev/null || true
fi
# If Samba is configured we don't want to pester the user with
# configuration questions, just tell him that he can reconfigure
# Samba at any time by running /usr/sbin/sambaconfig.
if [ "$samba_configured" = "no" ]; then
# Samba is not configured, go and ask the user the information needed
# to configure it, and configure it!
# All these files are now placed in their respective FHS-compliant
# directories. Separate out the individual files accordingly.
for F in browse.dat printing.tdb winbindd_cache.tdb
do
if [ -e /var/lib/samba/"$F" ]; then
mv /var/lib/samba/"$F" /var/cache/samba/
fi
done
# Create Debian specific configuration file
echo "config_version=$CONFIG_VERSION" > $DEBIAN_CONFIG
for F in brlock.tdb connections.tdb locking.tdb messages.tdb nmbd.pid \
sessionid.tdb smbd.pid unexpected.tdb
do
if [ -e /var/lib/samba/"$F" ]; then
mv /var/lib/samba/"$F" /var/run/samba/
fi
done
# We always run /etc/init.d/samba, even if we run Samba from inetd.
# This script file takes care of handling the conflict of running
# from inetd or as daemons.
update-rc.d samba defaults >/dev/null
# Beginning with Samba 2.2.5-1, we also move the domain secrets file
# to a more suitable location, since no one really edits this by hand.
if [ -e /etc/samba/secrets.tdb -a ! -e /var/lib/samba/secrets.tdb ]
then
mv /etc/samba/secrets.tdb /var/lib/samba/
fi
# We want to add these entries to inetd.conf commented out. Otherwise
# UDP traffic could make inetd to start nmbd or smbd right during
# the configuration stage.
update-inetd --add "#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd"
update-inetd --add "#<off># netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd -a"
# If upgrading from a previous 2.999 snapshot, move the passdb.tdb
# database into /var/lib.
echo ""
echo Samba Configuration
echo -------------------
echo "The Samba server may be run either as a daemon at startup, or it may be"
echo "run from the inetd meta-daemon upon request. If run as a daemon, the"
echo "server will always be ready, so starting sessions will be faster. If run"
echo "from the inetd meta-daemon some memory will be saved and utilities such"
echo "as the tcpd TCP-wrapper may be used for extra security. If you don't"
echo "know what to do, running from inetd is a safe choice."
echo ""
echo "Run Samba as daemons or from inetd?"
echo -n "Press 'D' to run as daemons or 'I' to run from inetd: [I] "
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.999+3.0.alpha23-5 \
&& [ -e /etc/samba/passdb.tdb -a ! -e /var/lib/samba/passdb.tdb ]
then
mv /etc/samba/passdb.tdb /var/lib/samba/
fi
read mode
test -n "$mode" || mode="I"
# --- End of FHS migration code ---
case "$mode" in
[Dd]*)
echo "Samba will run as daemons. Run sambaconfig to reconfigure"
update-inetd --disable netbios-ssn
update-inetd --disable netbios-ns
echo "run_mode=as_daemons" >> $DEBIAN_CONFIG
;;
# If upgrading from a previous 2.999 snapshot, clear the broken
# registry.tdb file.
if [ -n "$2" ] && dpkg --compare-versions "$2" gt 2.99.cvs.20020713-1 \
&& dpkg --compare-versions "$2" lt 2.999+3.0cvs20020805-1
then
rm -f /var/lib/samba/registry.tdb
fi
*)
echo "Samba will run from inetd. Run sambaconfig to reconfigure"
update-inetd --enable netbios-ssn
update-inetd --enable netbios-ns
echo "run_mode=from_inetd" >> $DEBIAN_CONFIG
;;
esac
# ------------------------- Debconf questions start ---------------------
if [ ! -f /etc/samba/smbpasswd ]; then
echo ""
echo "If you are going to use encrypted passwords you need to have a"
echo "separate password file for this (the format is different from "
echo "/etc/passwd). Right now you don't have an /etc/samba/smbpasswd file."
echo "Do you want to generate this new file from your existing"
echo -n "/etc/passwd file? [y/N] "
# Run Samba as daemons or from inetd?
db_get samba/run_mode || true
RUN_MODE="${RET}"
read yn
test -n "$yn" || yn="N"
TMPFILE=/etc/default/samba.dpkg-tmp
sed -e "s/^[[:space:]]*RUN_MODE[[:space:]]*=.*/RUN_MODE=\"${RUN_MODE}\"/" \
< ${INITCONFFILE} >${TMPFILE}
chmod a+r ${TMPFILE}
mv -f ${TMPFILE} ${INITCONFFILE}
if [ $yn = y -o $yn = Y ]; then
cat /etc/passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd
echo ""
echo "/etc/samba/smbpasswd now has the same user names as /etc/passwd. However,"
echo "you need to run smbpasswd manually to set the password for each user."
echo ""
echo "smbpasswd_created=yes" >> $DEBIAN_CONFIG
else
echo "smbpasswd_created=no" >> $DEBIAN_CONFIG
# Generate a smbpasswd file?
db_get samba/generate_smbpasswd || true
GENERATE_SMBPASSWD="${RET}"
db_get samba/tdbsam || true
PDB_MIGRATE="${RET}"
# Done with debconf now.
db_stop
umask 066
# FIXME: disable if ldapsam support is enabled?
# FIXME: we don't want to pass these through the smbpasswd backend,
# some of the faking can cause us problems!
if [ "${GENERATE_SMBPASSWD}" = "true" -a ! -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]; then
getent passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd
pdbedit -i smbpasswd -e tdbsam
rm /etc/samba/smbpasswd
fi
umask 022
if [ -n "$2" -a -e /etc/samba/smbpasswd \
-a ! -e /var/lib/samba/passdb.tdb -a "$PDB_MIGRATE" = "true" ] \
&& dpkg --compare-versions "$2" lt 2.99.cvs.20020713-2
then
umask 066
pdbedit -i smbpasswd -e tdbsam
rm /etc/samba/smbpasswd
umask 022
# The database has been moved, now make sure we can still find it.
PASSDB=`sed -n -e"s/^[[:space:]]*\[global\]/\[global\]/i
/^\[global\]/,/^[[:space:]]*\[/ \
s/^[[:space:]]*passdb backend[[:space:]]*=[[:space:]]*//pi" \
< /etc/samba/smb.conf \
| tail -1`
if echo "$PASSDB" | egrep -q "(^|[[:space:]])smbpasswd"; then
if ! echo "$PASSDB" | egrep -q "(^|[[:space:]])tdbsam"; then
PASSDB=`echo $PASSDB | sed -e's/\(^\|[[:space:]]\)smbpasswd/\1tdbsam/'`
fi
fi
echo ""
# Start Samba: nothing wrong will happen if Samba is running from inetd
# and /etc/init.d/samba is run. However, to simplify things, we
# do not run /etc/init.d/samba if we're running from inetd.
if [ $mode = d -o $mode = D ]; then
echo -n "Samba will run as daemons - start Samba now? [Y/n] "
read yn
test -n "$yn" || yn="Y"
case "$yn" in
[Nn]*)
echo "Not started; to start later, do: /etc/init.d/samba start"
echo -n "Press [ENTER] "
read line
;;
*)
/etc/init.d/samba start
;;
esac
else
echo "Since you are running Samba from inetd, the daemons will start"
echo "automatically by inetd when there is traffic on the NetBIOS"
echo "ports."
echo -n "Press [ENTER] "
read line
if ! echo "$PASSDB" | egrep -q "(^|[[:space:]])tdbsam"; then
PASSDB="tdbsam $PASSDB"
fi
else # if (samba_configured) ...
# We are here because Samba was already configured...
TMPFILE=/etc/samba/smb.conf.dpkg-tmp
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ \
s/^\([[:space:]]*\)passdb backend[[:space:]]*=.*/\1passdb backend = ${PASSDB}/i" \
< /etc/samba/smb.conf >${TMPFILE}
chmod a+r ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi
# At this point the NetBIOS daemons are disabled in /etc/inetd.conf.
# This is a consequence of what we did in the prerm. If Samba was
# configured to run from inetd we need to enable the entries in
# /etc/inetd.conf.
# ------------------------- Debconf questions end ---------------------
# Read current Samba configuration
. $DEBIAN_CONFIG
# Handle removal of nmbd from inetd.conf, which is no longer a supported
# configuration.
if dpkg --compare-versions "$2" lt 2.999+3.0.alpha20-4; then
update-inetd --remove netbios-ns
fi
if [ "$run_mode" = "from_inetd" ]; then
update-inetd --enable netbios-ssn
update-inetd --enable netbios-ns
fi
# We always run /etc/init.d/samba, even if we run Samba from inetd.
# The init.d script takes care of handling the conflict of running
# from inetd or as daemons.
update-rc.d samba defaults 20 19 > /dev/null
echo ""
echo "Samba was already installed and configured so I skipped the "
echo "configuration questions. You can run the script /usr/sbin/sambaconfig"
echo "at any time to reconfigure Samba. See sambaconfig(8) for more"
echo "details. I will not even ask you if you want to restart Samba,"
echo "I will just do it!"
echo ""
# We want to add these entries to inetd.conf commented out. Otherwise
# UDP traffic could make inetd to start nmbd or smbd right during
# the configuration stage.
if [ -z "$2" ]; then
update-inetd --add "#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd"
fi
/etc/init.d/samba start
fi # if (samba_configured) ...
if [ "$RUN_MODE" = "daemons" ]; then
update-inetd --disable netbios-ssn
else
update-inetd --enable netbios-ssn
fi
if test "$1" = configure && dpkg --compare-versions "$2" lt 2.0.0final-2 && [ -f /etc/samba/smbpasswd ]; then
# Start Samba: we don't want to call /etc/init.d/samba if we are
# running from inetd because a nasty help message would be printed out.
cat << EOF
*** IMPORTANT ***
The format of the smbpasswd file (which is used only if you are using
encrypted passwords) is different in Samba 2.0.0 and above. I will
convert it to the new format.
EOF
mv /etc/samba/smbpasswd /etc/samba/smbpasswd.old
cat /etc/samba/smbpasswd.old | /usr/bin/convert_smbpasswd \
> /etc/samba/smbpasswd 2> /dev/null
# Run the init script if this is a first-time install, or if it's an
# upgrade and Samba was running before, _and_ we're not running from inetd.
if [ -z "$2" -o ! -f /tmp/samba-was-not-running ]; then
# Check the script is executable before running it.
[ -x /etc/init.d/samba ] && /etc/init.d/samba start
fi
# This check is a safety net: the /etc/samba/smbpasswd file must have
@ -215,4 +231,18 @@ if [ -f /var/backups/smbpasswd.bak ]; then
chmod 600 /var/backups/smbpasswd.bak
fi
# Delete old /etc/samba/debian_config file, which is not used anymore
# now that we are using debconf.
rm -f /etc/samba/debian_config
# Move old log files to the new location of Samba's log files
mv -f /var/log/nmb* /var/log/samba/ 2> /dev/null || true
mv -f /var/log/smb* /var/log/samba/ 2> /dev/null || true
# Do this last, so we don't accidentally start the daemons if something
# else in the script fails above.
rm -f /tmp/samba-was-not-running
#DEBHELPER#
exit 0

View File

@ -1,26 +1,28 @@
#!/bin/sh
#!/bin/sh -e
#
# $Id: samba.postrm,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
if [ "$1" = purge ]; then
update-rc.d samba remove >/dev/null
# Remove WINS.DAT, BROWSE.DAT and lock information file
rm -Rf /var/samba/
# Remove any files in the old and obsolete /var/lock/samba directory
rm -Rf /var/lock/samba/
# Remove files left in /etc/samba/
rm -Rf /etc/samba/debian_config
rm -Rf /etc/samba/MACHINE.SID
# Remove Samba's state files, both volatile and non-volatile
rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
# Remove log files
rm -f /var/log/[ns]mb*
rm -Rf /var/log/samba/
# Remove init.d configuration file
echo Removing configuration file /etc/default/samba... >&2
rm -f /etc/default/samba
# Remove NetBIOS entries from /etc/inetd.conf
update-inetd --remove netbios-ssn
update-inetd --remove netbios-ns
update-rc.d samba remove >/dev/null
else
# Not purging, do not remove NetBIOS entries from /etc/inetd.conf
update-inetd --disable netbios-ssn
update-inetd --disable netbios-ns
fi
#DEBHELPER#

View File

@ -1,47 +0,0 @@
#!/bin/sh
#
# The purpose of the preinst script for the samba package is to help
# the migration of the conffiles smb.conf and smbpasswd from their
# old location (/etc/) to their new location (/etc/samba/).
#
# Thanks to Ben Pfaff <pfaffben@pilot.msu.edu> for sharing on debian-devel
# his ideas about how to move conffiles to new locations.
#
# First see if a smb.conf file currently exists.
test -f /etc/smb.conf || exit 0
# Now see if a smb.conf file exists in the new location.
test -e /etc/samba/smb.conf && exit 0
#
# Move smb.conf conffile from its old location (/etc/) to its new one
# (/etc/samba).
#
# If conffile exists in old location AND conffile does not exist on new
# location then...
#
if [ -f /etc/smb.conf -a ! -e /etc/samba/smb.conf ]; then
# The new location for the conffile should not exist yet, so we create the
# dir.
mkdir -p /etc/samba
# Finally, move the conffile to its new location.
mv /etc/smb.conf /etc/samba/smb.conf
fi
#
# Move smbpasswd conffile from its old location (/etc/) to its new one
# (/etc/samba).
#
# If conffile exists in old location AND conffile does not exist on new
# location then...
#
if [ -f /etc/smbpasswd -a ! -e /etc/samba/smbpasswd ]; then
# The new location for the conffile should not exist yet, so we create the
# dir.
mkdir -p /etc/samba
# Finally, move the conffile to its new location.
mv /etc/smbpasswd /etc/samba/smbpasswd
fi

View File

@ -1,74 +1,29 @@
#!/bin/sh
#
# Pre-removal script for the Samba package for Debian GNU/Linux.
#
# Written by Eloy A. Paris for the Debian project.
#
#!/bin/sh -e
DEBIAN_CONFIG=/etc/samba/debian_config
# Clean up any such stale file.
rm -f /tmp/samba-was-not-running
NMBDPID=/var/state/samba/nmbd.pid
SMBDPID=/var/state/samba/smbd.pid
# The most important thing the prerm script must do is to stop the Samba
# daemons (nmbd and smbd). Note that this can be tricky since Samba
# can be running from the inetd meta-daemon or as daemons (it's a
# user choice).
# Before we stop Samba we need to know how it is running (from inetd
# or as daemons). We could source in the debian_config file but it
# is safer to grep /etc/inetd.conf.
if grep -q '^netbios-ns' /etc/inetd.conf; then
# Samba is running from inetd. We need to disable the Samba daemons
# in /etc/inetd.conf before we stop the daemons. Otherwise traffic
# in the NetBIOS ports will make inetd start them again.
#
# Note: user preferences regarding the mode he/she wants Samba to
# be run (inetd or daemons) will be lost next. In the postinst
# we depend on the information present in the debian_config
# file to restore everything back to the way it was.
update-inetd --disable netbios-ssn
update-inetd --disable netbios-ns
# Now it is safe to stop the daemons...
# I have just recalled that old versions of nmbd and smbd did not store
# their PID's in /var/samba/state/ (or whatever directory
# was used for this purpose in configure), so I can't use
# --pidfile in start-stop-daemon to stop nmbd or smbd. I
# will handle this by testing first whether the PID file exists.
if [ -f $NMBDPID ]; then
start-stop-daemon --stop --oknodo --user root --name nmbd --quiet --pidfile $NMBDPID
else
start-stop-daemon --stop --oknodo --user root --name nmbd --quiet
# The smbd pid file is missing, or points to a dead process
if [ ! -f /var/run/samba/smbd.pid ] || \
! ps h `cat /var/run/samba/smbd.pid` > /dev/null
then
# The nmbd pid file is missing, or points to a dead process
if [ -f /var/run/samba/nmbd.pid ] || \
! ps h `cat /var/run/samba/nmbd.pid` > /dev/null
then
# let the postinst know not to start samba.
[ "$1" = "upgrade" ] && touch /tmp/samba-was-not-running
fi
# nmbd must be dead by now, now it's smbd's turn
if [ -f $SMBDPID ]; then
start-stop-daemon --stop --oknodo --user root --name smbd --quiet --pidfile $SMBDPID
else
start-stop-daemon --stop --oknodo --user root --name smbd --quiet
fi
elif [ -x /etc/init.d/samba ]; then # Old Samba packages didn't have a
# /etc/init.d/samba so we better
# check first.
# Samba is running as daemons. No problem here, just stop Samba...
/etc/init.d/samba stop
fi
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/samba ]; then
rm -f /usr/doc/samba
# We call the init script to stop Samba, even if it only affects nmbd.
[ -x /etc/init.d/samba ] && /etc/init.d/samba stop
if [ "$1" = upgrade -a -n "$2" ] && dpkg --compare-versions "$2" lt 2.99 \
&& [ -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]
then
pdbedit -i tdbsam -e smbpasswd
rm -f /var/lib/samba/passdb.tdb
fi
# Make sure there are no nmbd or smbd daemons running (security check)
# (as you see this code is commented out - so far I haven't had the need
# to do this sanity check - peloy, Aug. 23, 1998)
#ps -ax | grep nmbd
#if [ $? ... ]; then
# killall -9 nmbd
#fi
#ps -ax | grep smbd
#if [ $? ... ]; then
# killall -9 smbd
#fi
#DEBHELPER#

View File

@ -0,0 +1,50 @@
Template: samba/generate_smbpasswd
Type: boolean
Default: false
_Description: Create samba password database, /var/lib/samba/passdb.tdb?
To be compatible with the defaults in most versions of Windows, Samba must
be configured to use encrypted passwords. This requires user passwords to
be stored in a file separate from /etc/passwd. This file can be created
automatically, but the passwords must be added manually (by you or the
user) by running smbpasswd, and you must arrange to keep it up-to-date in
the future. If you do not create it, you will have to reconfigure samba
(and probably your client machines) to use plaintext passwords. See
/usr/share/doc/samba-doc/htmldocs/ENCRYPTION.html from the samba-doc
package for more details.
Template: samba/log_files_moved
Type: note
_Description: Samba's log files have moved.
Starting with the first packages of Samba 2.2 for Debian the log files for
both Samba daemons (nmbd and smbd) are now stored in /var/log/samba/. The
names of the files are log.nmbd and log.smbd, for nmbd and smbd
respectively.
.
The old log files that were in /var/log/ will be moved to the new location
for you.
Template: samba/nmbd_from_inetd
Type: note
_Description: Running nmbd from inetd is no longer supported
Your system was previously configured to start nmbd and smbd from inetd.
As of version 2.999+3.0.alpha20-4, nmbd will no longer be started from
inetd. If you have modified your /etc/init.d/samba startup script, you
may need to adjust it by hand now so that nmbd will start.
Template: samba/run_mode
Type: select
_Choices: daemons, inetd
Default: daemons
_Description: How do you want to run Samba?
The Samba daemon smbd can run as a normal daemon or from inetd. Running as
a daemon is the recommended approach.
Template: samba/tdbsam
Type: boolean
Default: false
_Description: Move /etc/samba/smbpasswd to /var/lib/samba/passdb.tdb?
Samba 3.0 introduces a newer, more complete SAM database interface which
supersedes the /etc/samba/smbpasswd file. Would you like your existing
smbpasswd file to be migrated to /var/lib/samba/passdb.tdb for you? If you
plan to use another pdb backend (e.g., LDAP) instead, you should answer
'no' here.

View File

@ -1,130 +0,0 @@
#!/bin/sh
#
# Written by Eloy A. Paris <peloy@debian.org> for Debian GNU/Linux.
#
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
DEBIAN_CONFIG=/etc/samba/debian_config
NMBDPID=/var/state/samba/nmbd.pid
SMBDPID=/var/state/samba/smbd.pid
if [ ! -f $DEBIAN_CONFIG ]; then
echo "The file $DEBIAN_CONFIG does not exist! There is something wrong"
echo "with the installation of Samba on this system. Please re-install"
echo "Samba."
exit 1
fi
# Read current Samba configuration
. $DEBIAN_CONFIG
reload=1
while [ $# -gt 0 ]
do
case "$1" in
--run-from-inetd)
run_from_inetd=1
shift
;;
--run-as-daemons)
run_from_inetd=0
shift
;;
--no-reload)
reload=0
shift
;;
*)
echo "Usage: $0 [--run-from-inetd|--run-as-daemons] [no-reload]" >&2
exit 1
;;
esac
done
# Make sure there are no Samba daemons (nmbd or smbd) running
#
if [ "$run_mode" = "from_inetd" ]; then
# Samba is running from inetd - need to disable inetd before
# killing the daemons.
update-inetd --disable netbios-ssn
update-inetd --disable netbios-ns
start-stop-daemon --stop --oknodo --user root --name nmbd --quiet --pidfile $NMBDPID
start-stop-daemon --stop --oknodo --user root --name smbd --quiet --pidfile $SMBDPID
else
# Samba is running as daemons
/etc/init.d/samba stop
fi
if [ "x$run_from_inetd" = "x" ]
then
echo "Run Samba as daemons or from inetd?"
echo -n "Press 'D' for to run as daemons or 'I' to run from inetd: [I] "
read mode
test -n "$mode" || mode="I"
case "$mode" in
[Dd]*)
run_from_inetd=0
;;
*)
run_from_inetd=1
;;
esac
fi
if [ "$run_from_inetd" = 1 ]; then
echo "Samba will run from inetd. Run sambaconfig to reconfigure."
echo ""
update-inetd --enable netbios-ssn
update-inetd --enable netbios-ns
run_mode="from_inetd"
else
echo "Samba will run as daemons. Run sambaconfig to reconfigure."
echo ""
update-inetd --disable netbios-ssn
update-inetd --disable netbios-ns
run_mode="as_daemons"
fi
# Rebuild Debian configuration file (only thing that could have
# changed so far is the variable called "run_mode".
# Start the Samba daemons (take care of whether the user used the --no-reload
# option and how Samba is running: from inetd or as daemons)
echo "config_version=$config_version" > $DEBIAN_CONFIG
echo "run_mode=$run_mode" >> $DEBIAN_CONFIG
echo "smbpasswd_created=$smbpasswd_created" >> $DEBIAN_CONFIG
if [ "$reload" = 0 ]; then
echo "Samba will not start (--no-reload parameter provided). Please note"
echo "that if you configured Samba to run from inetd, the Samba daemons"
echo "will start automatically when there is traffic in the NetBIOS ports"
elif [ "$run_from_inetd" = 1 ]; then
echo "The --no-reload parameter was not provided so I assume you want"
echo "to have the Samba daemons started. Since you are running from inetd"
echo "the Samba daemosn will start automatically when there is traffic"
echo "in the NetBIOS ports."
else
echo -n "The --no-reload parameter was not provided, start Samba now? [Y/n] "
read yn
test -n "$yn" || yn="Y"
case "$yn" in
[Nn]*)
echo "Not started; to start later, do: /etc/init.d/samba start"
echo -n "Press [ENTER] "
read line
;;
*)
/etc/init.d/samba start
;;
esac
fi

View File

@ -1,40 +0,0 @@
.TH SAMBACONFIG 8 06-Apr-1998
.SH NAME
sambaconfig \- configure Samba for Debian systems
.SH SYNOPSIS
sambaconfig [--run-from-inetd|--run-as-daemons] [--no-reload]
.SH DESCRIPTION
.B sambaconfig
is used to simplify the configuration of samba(8) for use on Debian
systems.
.PP
You may run this program to (re)configure samba for your Debian system
at any time.
.PP
Normally
.B sambaconfig
will ask if you want to reload the Samba daemons after making changes to its
configuration. The --no-reload option will avoid this question. Note
that if Samba is running from inetd and --no-reload is not supplied no
questions is asked because Samba will start automatically from inetd
when there is traffic on the NetBIOS ports.
.SH FILES
.TP
/etc/inetd.conf
If the lines that start the NetBIOS daemons nmbd and smbd are
commented out then Samba will start as daemons from /etc/init.d/start
.TP
/etc/init.d/samba
Script that will start/stop/restart Samba when running as daemons
.TP
/etc/samba/smbpasswd
Encrypted passwords file for the Samba daemons
.TP
/etc/samba/debian_config
Debian specific configuration information, it holds the mode in which
Samba is running (from inetd or as daemons).
.SH SEE ALSO
samba(7), nmbd(8), smbd(8)
.SH AUTHOR
Eloy A. Paris <peloy@debian.org> (man page based on sendmailconfig's man page
by Robert Leslie <rob@mars.org>)

View File

@ -1,7 +1,17 @@
#!/bin/sh -e
#
# $Id: patch-source,v 1.2.4.1 2003/06/01 04:30:13 peloy Exp $
#
for patch in debian/patches/*.patch; do
echo '->'`basename $patch`:
patch -p1 < $patch
done
cat debian/changelog | perl -pi -e '($version) = <STDIN> =~/\((.*)\)/; \
s/\".*\"/\"$version for Debian\"/' source/include/version.h
# Regenerate configure only if it is older than configure.in
[ source/configure -ot source/configure.in ] && (cd source && sh ./autogen.sh)
exit 0

View File

@ -1,7 +1,17 @@
#!/bin/sh -e
#
# $Id: unpatch-source,v 1.2.4.1 2003/06/01 04:30:13 peloy Exp $
#
for patch in debian/patches/*.patch; do
# We want to reverse the patches in the opposite order we applied
# them, hence the 'ls|sort -r'.
for patch in `ls debian/patches/*.patch | sort -r`; do
patch -p1 -R < $patch
done
perl -pi -e's/-.* for Debian//' source/include/version.h
# Regenerate configure only if it is older than configure.in
[ source/configure -ot source/configure.in ] && (cd source && autoheader && autoconf)
exit 0

View File

@ -1,119 +1,195 @@
;
; /etc/samba/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
; every parameter.
;
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
# $Id: smb.conf,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic
# errors.
#
#======================= Global Settings =======================
[global]
printing = bsd
printcap name = /etc/printcap
load printers = yes
guest account = nobody
invalid users = root
; "security = user" is always a good idea. This will require a Unix account
; in this server for every user accessing the server.
security = user
; Change this for the workgroup your Samba server will part of
workgroup = WORKGROUP
# Change this for the workgroup/NT-domain name your Samba server will part of
workgroup = DEBIAN_FANS
# server string is the equivalent of the NT Description field
server string = %h server (Samba %v)
; If you want Samba to log though syslog only then set the following
; parameter to 'yes'. Please note that logging through syslog in
; Samba is still experimental.
syslog only = no
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
; load printers = yes
; We want Samba to log a minimum amount of information to syslog. Everything
; should go to /var/log/{smb,nmb} instead. If you want to log through
; syslog you should set the following parameter to something higher.
syslog = 0;
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
; This socket options really speed up Samba under Linux, according to my
; own tests.
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
# cups printing. See also the cupsaddsmb(8) manpage
; printing = cups
; printcap name = cups
; Passwords are encrypted by default. This way the latest Windows 95 and NT
; clients can connect to the Samba server with no problems.
encrypt passwords = yes
; guest account = nobody
invalid users = root
; It's always a good idea to use a WINS server. If you want this server
; to be the WINS server for your network change the following parameter
; to "yes". Otherwise leave it as "no" and specify your WINS server
; below (note: only one Samba server can be the WINS server).
; Read BROWSING.txt for more details.
wins support = no
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
; If this server is not the WINS server then specify who is it and uncomment
; next line.
; wins server = 172.16.0.10
# Put a capping on the size of the log files (in Kb).
max log size = 1000
; Please read BROWSING.txt and set the next four parameters according
; to your network setup. There is no valid default so they are commented
; out.
; os level = 0
; domain master = no
; local master = no
; preferred master = no
# If you want Samba to log though syslog only then set the following
# parameter to 'yes'. Please note that logging through syslog in
# Samba is still experimental.
; syslog only = no
; What naming service and in what order should we use to resolve host names
; to IP addresses
name resolve order = lmhosts host wins bcast
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smb,nmb} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0
; This will prevent nmbd to search for NetBIOS names through DNS.
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# security_level.txt for details.
; security = user
# You may wish to use password encryption. Please read ENCRYPTION.html,
# Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
# option unless you have read those documents
encrypt passwords = no
# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam guest
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
# --- Browser Control Options ---
# Please _read_ BROWSING.txt and set the next four parameters according
# to your network setup. The defaults are specified below (commented
# out.) It's important that you read BROWSING.txt so you don't break
# browsing in your network!
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = yes
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 20
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = auto
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = auto
# --- End of Browser Control Options ---
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
; Name mangling options
# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast
preserve case = yes
short preserve case = yes
# Name mangling options
; preserve case = yes
; short preserve case = yes
; This boolean parameter controlls whether Samba attempts to sync. the Unix
; password with the SMB password when the encrypted SMB password in the
; /etc/samba/smbpasswd file is changed.
unix password sync = false
# This boolean parameter controlls whether Samba attempts to sync. the Unix
# password with the SMB password when the encrypted SMB password in the
# /etc/samba/smbpasswd file is changed.
; unix password sync = false
; For Unix password sync. to work on a Debian GNU/Linux system, the following
; parameters must be set (thanks to Augustin Luton
; <aluton@hybrigenics.fr> for sending the correct chat script for
; the passwd program in Debian Potato).
# For Unix password sync. to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
; The following parameter is useful only if you have the linpopup package
; installed. The samba maintainer and the linpopup maintainer are
; working to ease installation and configuration of linpopup and samba.
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; The default maximum log file size is 5 MBytes. That's too big so this
; next parameter sets it to 1 MByte. Currently, Samba rotates log
; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.
; A better solution would be to have Samba rotate the log file upon
; reception of a signal, but for now on, we have to live with this.
max log size = 1000
obey pam restrictions = yes
# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; winbind uid = 10000-20000
; winbind gid = 10000-20000
; template shell = /bin/bash
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
; By default, the home directories are exported read only. Change next
; parameter to "no" if you want to be able to write to them.
read only = yes
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no
; File creation mask is set to 0700 for security reasons. If you want to
; create files with group=rw permissions, set next parameter to 0775.
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0700
; Directory creation mask is set to 0700 for security reasons. If you want to
; create dirs. with group=rw permissions, set next parameter to 0775.
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
[printers]
comment = All Printers
browseable = no
@ -123,25 +199,25 @@
writable = no
create mode = 0700
; A sample share for sharing your CD-ROM with others.
# A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
;
; The next two parameters show how to auto-mount a CD-ROM when the
; cdrom share is accesed. For this to work /etc/fstab must contain
; an entry like this:
;
; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
;
; The CD-ROM gets unmounted automatically after the connection to the
;
; If you don't want to use auto-mounting/unmounting make sure the CD
; is mounted on /cdrom
;
# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom

View File

@ -2,8 +2,11 @@ usr/bin/smbclient
usr/bin/smbtar
usr/bin/rpcclient
usr/bin/smbspool
usr/bin/smbtree
usr/bin/smbcacls
usr/share/man/man1/smbclient.1
usr/share/man/man1/smbtar.1
usr/share/man/man1/rpcclient.1
usr/share/man/man8/smbspool.8
usr/share/man/man1/smbcacls.1
usr/lib/cups/backend/smb

View File

@ -1,5 +0,0 @@
usr/bin/smbmnt
usr/bin/smbmount-2.2.x
usr/bin/smbumount-2.2.x
usr/bin/smbmount-2.0.x
usr/bin/smbumount-2.0.x

View File

@ -0,0 +1,12 @@
#/bin/sh -e
#
# $Id: swat.config,v 1.1.2.1 2003/06/01 04:30:10 peloy Exp $
#
# Source debconf library.
. /usr/share/debconf/confmodule
db_title "Samba Web Administration Tool (SWAT)"
db_input medium swat/smb_conf_warn || true
db_go

View File

@ -1,4 +1,7 @@
#!/bin/sh
#
# $Id: swat.postinst,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@ -18,6 +21,4 @@ esac
update-inetd --group OTHER --add \
'#<off># swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat'
if [ -d /usr/doc -a ! -e /usr/doc/swat -a -d /usr/share/doc/swat ]; then
ln -sf ../share/doc/swat /usr/doc/swat
fi
#DEBHELPER#

View File

@ -1,9 +1,11 @@
#!/bin/sh
#
# $Id: swat.postrm,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
#
case "$1" in
purge)
update-inetd --remove '/usr/sbin/swat$'
exit 0
;;
remove)
;;
@ -15,5 +17,7 @@ case "$1" in
;;
esac
#DEBHELPER#
exit 0

View File

@ -0,0 +1,6 @@
Template: swat/smb_conf_warn
Type: note
_Description: Your smb.conf will be re-written!
SWAT will rewrite your smb.conf file. It will rearrange the entries and
delete all comments, include= and copy= options. If you have a carefully
crafted smb.conf then back it up or don't use SWAT!

View File

@ -0,0 +1,2 @@
/etc/init.d/winbind
/etc/logrotate.d/winbind

View File

@ -0,0 +1 @@
usr/share/lintian/overrides

View File

@ -0,0 +1,7 @@
usr/sbin/winbindd
usr/bin/wbinfo
usr/share/man/man1/wbinfo.1
usr/share/man/man8/winbindd.8
lib/security/pam_winbind.so
lib/libnss_winbind.so.2
lib/libnss_wins.so.2

View File

@ -0,0 +1,49 @@
#!/bin/sh
#
# Start/stops the winbindd daemon.
#
# $Id: winbind.init,v 1.1.6.1 2003/06/01 04:30:10 peloy Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/winbindd
# clear conflicting settings from the environment
unset TMPDIR
# See if the daemon is there
test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting the Winbind daemon: winbindd"
start-stop-daemon --start --quiet --exec $DAEMON
echo "."
;;
stop)
echo -n "Stopping the Winbind daemon: winbindd"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
echo "."
;;
restart|force-reload)
echo -n "Restarting the Winbind daemon: winbindd"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
sleep 2
start-stop-daemon --start --quiet --exec $DAEMON
echo "."
;;
*)
echo "Usage: /etc/init.d/winbind {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,6 @@
winbind: ldconfig-symlink-missing-for-shlib lib/libnss_winbind.so lib/libnss_winbind.so.2 libnss_winbind.so
winbind: ldconfig-symlink-missing-for-shlib lib/libnss_wins.so lib/libnss_wins.so.2 libnss_wins.so
winbind: no-shlibs-control-file lib/libnss_winbind.so.2
winbind: no-shlibs-control-file lib/libnss_wins.so.2
winbind: postinst-must-call-ldconfig lib/libnss_wins.so.2
winbind: postrm-should-call-ldconfig lib/libnss_wins.so.2

View File

@ -0,0 +1,10 @@
/var/log/samba/log.winbindd {
weekly
missingok
rotate 7
postrotate
[ -f /var/run/samba/winbindd.pid ] && kill -HUP `cat /var/run/samba/winbindd.pid`
endscript
compress
notifempty
}