mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
merge from 2.2
(This used to be commit 473a89cde2e60c359cb435c714dc98974489a118)
This commit is contained in:
parent
8cb4e23ffc
commit
c8bc0fa4a7
42
packaging/Debian/README
Normal file
42
packaging/Debian/README
Normal file
@ -0,0 +1,42 @@
|
||||
Building Samba Packages for Debian GNU/Linux
|
||||
--------------------------------------------
|
||||
|
||||
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:
|
||||
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>]
|
||||
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
|
||||
- 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
|
||||
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
|
||||
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
|
||||
|
397
packaging/Debian/debian/README.build
Normal file
397
packaging/Debian/debian/README.build
Normal file
@ -0,0 +1,397 @@
|
||||
From: Steve Langasek <vorlon@netexpress.net>
|
||||
To: "Eloy A. Paris" <eloy.paris@usa.net>
|
||||
Date: Thu, 23 Aug 2001 21:20:05 -0500 (CDT)
|
||||
Subject: Re: autobuilder failure on arm for samba-2.2.1a-3
|
||||
In-Reply-To: <20010823100906.A1092@antenas>
|
||||
Message-ID: <Pine.LNX.4.30.0108231744090.11071-100000@tennyson.netexpress.net>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: TEXT/PLAIN; charset=US-ASCII
|
||||
|
||||
On Thu, 23 Aug 2001, Eloy A. Paris wrote:
|
||||
|
||||
> On Wed, Aug 22, 2001 at 03:01:01PM -0500, Steve Langasek wrote:
|
||||
|
||||
> > Hmm. Maybe the thing to do is to focus on getting config.cache (not log,
|
||||
> > cache) support into the package. Issues like this are frequent enough with
|
||||
> > Samba, and the configure tests add enough time to the build process, that I
|
||||
> > think there'd be much benefit in being able to step past a lot of these.
|
||||
|
||||
> Uhhmmm... I don't know, I guess I don't like much the idea of
|
||||
> maintaining a config.cache. It looks like extra work plus a
|
||||
> compilation process that is "synthetic" or atificial. What happens if
|
||||
> the Samba Team adds a new test, or modifies the configure script, will
|
||||
> the config.cache pick those up?
|
||||
|
||||
> In any case, you are the expert, so if you think that's the way to go,
|
||||
> and the burden far exceeds the problems we have right now I say let's
|
||||
> go for it. I am not well versed on autoconf and the configure process,
|
||||
> that's all...
|
||||
|
||||
Well, I'll attach my work to the bottom of this message and let you judge it
|
||||
for yourself.
|
||||
|
||||
The config.cache I'm trying to generate here is not equivalent to what
|
||||
a configure script outputs. The only values I'm including are those which 1)
|
||||
are no-brainers on any glibc-based platform, 2) are questions we need to force
|
||||
a particular value for regardless of the kernel being built against, or 3) are
|
||||
questions about specific bizarre features of proprietary Unices that we'll
|
||||
always get an answer of 'no' to.
|
||||
|
||||
I've removed all of the config.cache variables related to headers, or to
|
||||
checks for particular libraries; I think it's pretty safe to assert that glibc
|
||||
provides basic C functions like select(), setenv(), and waitpid() on all our
|
||||
build targets, but I think it's less safe to assert that they'll always be
|
||||
provided by particular header files.
|
||||
|
||||
So the config.cache won't automatically be updated with answers to new
|
||||
configure tests, but it also doesn't need to in order to be useful. There's
|
||||
really only a handful of variables in there that we /need/ in order to
|
||||
guarantee correctly-built packages, and if you want to leave out everything
|
||||
else, that's perfectly ok too. Everything from the fifth stanza on down is
|
||||
just a build-time speed-up for some of the slower architectures. Well, it
|
||||
also has the fringe benefit that the packages will FAIL to build if someone
|
||||
tries rebuilding for a really bizarre (non-Linux, non-glibc) architecture. I
|
||||
see that as a plus :), you may disagree, but in any case my next trick would
|
||||
be to add a global variable developers can set to bypass the provided
|
||||
config.cache.
|
||||
|
||||
|
||||
It is a little artificial, but the whole point of .debs is to be able to build
|
||||
binaries in a controlled environment. Right now, we don't really have control
|
||||
over what happens in the autobuilders. We have even /less/ control over what
|
||||
happens in a stable release: it's been two weeks now since I built binaries
|
||||
for bug #94380, and they haven't been uploaded to security.d.o yet. I'm
|
||||
guessing they won't be uploaded until Wichert is back from vacation, either --
|
||||
which is fine, but it would be nice if we didn't have to worry about
|
||||
mis-builds by the security team, or about putting the security team to extra
|
||||
trouble after the fact to get packages fixed.
|
||||
|
||||
With a pre-loaded config.cache, we can ensure that bugs of this kind don't
|
||||
happen in woody. We can take the arm autobuilder problem into our own hands,
|
||||
and not have to worry about quirkiness in the build environment. We can even
|
||||
close bug #109773, since we no longer have to worry about detecting the
|
||||
setuid() routines.
|
||||
|
||||
|
||||
So to me, it definitely seems worth it. But you're the maintainer, and I
|
||||
won't ask you to put anything in the package that you're not comfortable with.
|
||||
|
||||
|
||||
> By the way, I think I remember someone was able to build 2.2.x succesfully on
|
||||
> the ARM. If this is the case, could it be that there's something weird
|
||||
> with Phillip's setup?
|
||||
|
||||
It could be. There are arm packages for 2.2.1a-1, so at /some/ point the
|
||||
autobuilder was able to pass the locking test.
|
||||
|
||||
|
||||
> P.S. How did you know about the ARM build problems? I don't see any
|
||||
> bugs about this...
|
||||
|
||||
<http://ftp-master.debian.org/testing/>, follow the links for samba... The
|
||||
exact reference for the arm autobuilder is at
|
||||
<http://buildd.armlinux.org/~buildd/build.php?pkg=samba&ver=2.2.1a-4&arch=arm>.
|
||||
|
||||
Regards,
|
||||
Steve Langasek
|
||||
postmodern programmer
|
||||
|
||||
|
||||
diff -uNrw samba-2.2.1a-bak/debian/changelog samba-2.2.1a/debian/changelog
|
||||
--- samba-2.2.1a-bak/debian/changelog Thu Aug 23 10:27:54 2001
|
||||
+++ samba-2.2.1a/debian/changelog Thu Aug 23 10:28:08 2001
|
||||
@@ -1,3 +1,12 @@
|
||||
+samba (2.2.1a-4.1) unstable; urgency=low
|
||||
+
|
||||
+ * Fix up the build system to avoid needing to run configure as root to
|
||||
+ answer questions we already know the answers to.
|
||||
+ * In the process, make surprising progress towards being able to
|
||||
+ cross-compile the samba packages.
|
||||
+
|
||||
+ -- Steve Langasek <vorlon@debian.org> Wed, 22 Aug 2001 23:35:00 -0500
|
||||
+
|
||||
samba (2.2.1a-4) unstable; urgency=low
|
||||
|
||||
* Fixed typo in smbmount's mount page.
|
||||
diff -uNrw samba-2.2.1a-bak/debian/config.cache samba-2.2.1a/debian/config.cache
|
||||
--- samba-2.2.1a-bak/debian/config.cache Wed Dec 31 18:00:00 1969
|
||||
+++ samba-2.2.1a/debian/config.cache Thu Aug 23 10:28:08 2001
|
||||
@@ -0,0 +1,231 @@
|
||||
+#
|
||||
+# 22 August 2001 Steve Langasek <vorlon@debian.org>
|
||||
+#
|
||||
+# This file is a shell script that caches the results of configure
|
||||
+# tests run on this system so they can be shared between configure
|
||||
+# scripts and configure runs. It is not useful on other systems.
|
||||
+# If it contains results you don't want to keep, you may remove or edit it.
|
||||
+#
|
||||
+# By default, configure uses ./config.cache as the cache file,
|
||||
+# creating it if it does not exist already. You can give configure
|
||||
+# the --cache-file=FILE option to use a different cache file; that is
|
||||
+# what configure does when it calls configure scripts in
|
||||
+# subdirectories, so they share the cache.
|
||||
+# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
+# config.status only pays attention to the cache file if you give it the
|
||||
+# --recheck option to rerun configure.
|
||||
+#
|
||||
+#
|
||||
+# This config.cache file contains a list of acceptable autoconf
|
||||
+# values which can be used in compiling Samba for Debian woody/sid.
|
||||
+#
|
||||
+# Autoconf sorts options alphabetically in its output. This file
|
||||
+# groups options logically.
|
||||
+
|
||||
+
|
||||
+# Load any architecture-specific settings
|
||||
+if [ -n "$DEB_HOST_GNU_TYPE" \
|
||||
+ -a -f ../debian/config.cache.${DEB_HOST_GNU_TYPE} ]; then
|
||||
+ . ../debian/config.cache.${DEB_HOST_GNU_TYPE}
|
||||
+fi
|
||||
+
|
||||
+
|
||||
+# This is at the top because it's most in need of regular tweaking.
|
||||
+# These are options which are supported on 2.4 kernels, but not on 2.2
|
||||
+# kernels.
|
||||
+
|
||||
+samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no}
|
||||
+samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no}
|
||||
+samba_cv_HAVE_KERNEL_SHARE_MODES=${samba_cv_HAVE_KERNEL_SHARE_MODES=no}
|
||||
+
|
||||
+
|
||||
+# These are present in 2.2 kernels, but not in 2.0...
|
||||
+
|
||||
+samba_cv_have_setresuid=${samba_cv_have_setresuid=yes}
|
||||
+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)
|
||||
+
|
||||
+ac_cv_c_const=${ac_cv_c_const=yes}
|
||||
+ac_cv_c_inline=${ac_cv_c_inline=inline}
|
||||
+samba_cv_volatile=${samba_cv_volatile=yes}
|
||||
+ac_cv_dirent_d_off=${ac_cv_dirent_d_off=yes}
|
||||
+ac_cv_func_bzero=${ac_cv_func_bzero=yes}
|
||||
+ac_cv_func_chmod=${ac_cv_func_chmod=yes}
|
||||
+ac_cv_func_chown=${ac_cv_func_chown=yes}
|
||||
+ac_cv_func_chroot=${ac_cv_func_chroot=yes}
|
||||
+ac_cv_func_connect=${ac_cv_func_connect=yes}
|
||||
+ac_cv_func_dup2=${ac_cv_func_dup2=yes}
|
||||
+ac_cv_func_execl=${ac_cv_func_execl=yes}
|
||||
+ac_cv_func_fchmod=${ac_cv_func_fchmod=yes}
|
||||
+ac_cv_func_fchown=${ac_cv_func_fchown=yes}
|
||||
+ac_cv_func_fstat=${ac_cv_func_fstat=yes}
|
||||
+ac_cv_func_fsync=${ac_cv_func_fsync=yes}
|
||||
+ac_cv_func_ftruncate=${ac_cv_func_ftruncate=yes}
|
||||
+ac_cv_func_getcwd=${ac_cv_func_getcwd=yes}
|
||||
+ac_cv_func_getgrent=${ac_cv_func_getgrent=yes}
|
||||
+ac_cv_func_getgrnam=${ac_cv_func_getgrnam=yes}
|
||||
+ac_cv_func_getspnam=${ac_cv_func_getspnam=yes}
|
||||
+ac_cv_func_glob=${ac_cv_func_glob=yes}
|
||||
+ac_cv_func_grantpt=${ac_cv_func_grantpt=yes}
|
||||
+ac_cv_func_initgroups=${ac_cv_func_initgroups=yes}
|
||||
+ac_cv_func_llseek=${ac_cv_func_llseek=yes}
|
||||
+ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes}
|
||||
+ac_cv_func_memmove=${ac_cv_func_memmove=yes}
|
||||
+ac_cv_func_memset=${ac_cv_func_memset=yes}
|
||||
+ac_cv_func_mktime=${ac_cv_func_mktime=yes}
|
||||
+ac_cv_func_pipe=${ac_cv_func_pipe=yes}
|
||||
+ac_cv_func_poll=${ac_cv_func_poll=yes}
|
||||
+ac_cv_func_pread=${ac_cv_func_pread=yes}
|
||||
+ac_cv_func_pwrite=${ac_cv_func_pwrite=yes}
|
||||
+ac_cv_func_rand=${ac_cv_func_rand=yes}
|
||||
+ac_cv_func_random=${ac_cv_func_random=yes}
|
||||
+ac_cv_func_readlink=${ac_cv_func_readlink=yes}
|
||||
+ac_cv_func_rename=${ac_cv_func_rename=yes}
|
||||
+ac_cv_func_select=${ac_cv_func_select=yes}
|
||||
+ac_cv_func_setenv=${ac_cv_func_setenv=yes}
|
||||
+ac_cv_func_setgroups=${ac_cv_func_setgroups=yes}
|
||||
+ac_cv_func_setsid=${ac_cv_func_setsid=yes}
|
||||
+ac_cv_func_sigaction=${ac_cv_func_sigaction=yes}
|
||||
+ac_cv_func_sigblock=${ac_cv_func_sigblock=yes}
|
||||
+ac_cv_func_sigprocmask=${ac_cv_func_sigprocmask=yes}
|
||||
+ac_cv_func_snprintf=${ac_cv_func_snprintf=yes}
|
||||
+ac_cv_func_srand=${ac_cv_func_srand=yes}
|
||||
+ac_cv_func_srandom=${ac_cv_func_srandom=yes}
|
||||
+ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes}
|
||||
+ac_cv_func_strchr=${ac_cv_func_strchr=yes}
|
||||
+ac_cv_func_strdup=${ac_cv_func_strdup=yes}
|
||||
+ac_cv_func_strerror=${ac_cv_func_strerror=yes}
|
||||
+ac_cv_func_strftime=${ac_cv_func_strftime=yes}
|
||||
+ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes}
|
||||
+ac_cv_func_strtoul=${ac_cv_func_strtoul=yes}
|
||||
+ac_cv_func_symlink=${ac_cv_func_symlink=yes}
|
||||
+ac_cv_func_usleep=${ac_cv_func_usleep=yes}
|
||||
+ac_cv_func_utime=${ac_cv_func_utime=yes}
|
||||
+ac_cv_func_utimes=${ac_cv_func_utimes=yes}
|
||||
+ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf=yes}
|
||||
+ac_cv_func_waitpid=${ac_cv_func_waitpid=yes}
|
||||
+ac_cv_type_ino_t=${ac_cv_type_ino_t=yes}
|
||||
+ac_cv_type_mode_t=${ac_cv_type_mode_t=yes}
|
||||
+ac_cv_type_pid_t=${ac_cv_type_pid_t=yes}
|
||||
+ac_cv_type_size_t=${ac_cv_type_size_t=yes}
|
||||
+ac_cv_type_uid_t=${ac_cv_type_uid_t=yes}
|
||||
+samba_cv_socklen_t=${samba_cv_socklen_t=yes}
|
||||
+
|
||||
+# Yes, we know Linux supports fcntl locking. Just ignore
|
||||
+# any errors caused by building on an NFS mount.
|
||||
+samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes}
|
||||
+
|
||||
+
|
||||
+# smbwrapper doesn't work because the glibc maintainers don't want
|
||||
+# 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}
|
||||
+ac_cv_func__close=${ac_cv_func__close=no}
|
||||
+ac_cv_func___closedir=${ac_cv_func___closedir=no}
|
||||
+ac_cv_func__closedir=${ac_cv_func__closedir=no}
|
||||
+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}
|
||||
+ac_cv_func__fcntl=${ac_cv_func__fcntl=no}
|
||||
+ac_cv_func___fork=${ac_cv_func___fork=no}
|
||||
+ac_cv_func__fork=${ac_cv_func__fork=no}
|
||||
+ac_cv_func___fstat=${ac_cv_func___fstat=no}
|
||||
+ac_cv_func__fstat=${ac_cv_func__fstat=no}
|
||||
+ac_cv_func___fstat64=${ac_cv_func___fstat64=no}
|
||||
+ac_cv_func__fstat64=${ac_cv_func__fstat64=no}
|
||||
+ac_cv_func___fxstat=${ac_cv_func___fxstat=no}
|
||||
+ac_cv_func___getcwd=${ac_cv_func___getcwd=no}
|
||||
+ac_cv_func__getcwd=${ac_cv_func__getcwd=no}
|
||||
+ac_cv_func___getdents=${ac_cv_func___getdents=no}
|
||||
+ac_cv_func__getdents=${ac_cv_func__getdents=no}
|
||||
+ac_cv_func___llseek=${ac_cv_func___llseek=no}
|
||||
+ac_cv_func___sys_llseek=${ac_cv_func___sys_llseek=no}
|
||||
+ac_cv_func__llseek=${ac_cv_func__llseek=no}
|
||||
+ac_cv_func___lseek=${ac_cv_func___lseek=no}
|
||||
+ac_cv_func__lseek=${ac_cv_func__lseek=no}
|
||||
+ac_cv_func___lstat=${ac_cv_func___lstat=no}
|
||||
+ac_cv_func__lstat=${ac_cv_func__lstat=no}
|
||||
+ac_cv_func___lstat64=${ac_cv_func___lstat64=no}
|
||||
+ac_cv_func__lstat64=${ac_cv_func__lstat64=no}
|
||||
+ac_cv_func___lxstat=${ac_cv_func___lxstat=no}
|
||||
+ac_cv_func___open=${ac_cv_func___open=no}
|
||||
+ac_cv_func__open=${ac_cv_func__open=no}
|
||||
+ac_cv_func___open64=${ac_cv_func___open64=no}
|
||||
+ac_cv_func__open64=${ac_cv_func__open64=no}
|
||||
+ac_cv_func___opendir=${ac_cv_func___opendir=no}
|
||||
+ac_cv_func__opendir=${ac_cv_func__opendir=no}
|
||||
+ac_cv_func___pread=${ac_cv_func___pread=no}
|
||||
+ac_cv_func__pread=${ac_cv_func__pread=no}
|
||||
+ac_cv_func___pread64=${ac_cv_func___pread64=no}
|
||||
+ac_cv_func__pread64=${ac_cv_func__pread64=no}
|
||||
+ac_cv_func___pwrite=${ac_cv_func___pwrite=no}
|
||||
+ac_cv_func__pwrite=${ac_cv_func__pwrite=no}
|
||||
+ac_cv_func___pwrite64=${ac_cv_func___pwrite64=no}
|
||||
+ac_cv_func__pwrite64=${ac_cv_func__pwrite64=no}
|
||||
+ac_cv_func___read=${ac_cv_func___read=no}
|
||||
+ac_cv_func__read=${ac_cv_func__read=no}
|
||||
+ac_cv_func___readdir=${ac_cv_func___readdir=no}
|
||||
+ac_cv_func__readdir=${ac_cv_func__readdir=no}
|
||||
+ac_cv_func___readdir64=${ac_cv_func___readdir64=no}
|
||||
+ac_cv_func__readdir64=${ac_cv_func__readdir64=no}
|
||||
+ac_cv_func___seekdir=${ac_cv_func___seekdir=no}
|
||||
+ac_cv_func__seekdir=${ac_cv_func__seekdir=no}
|
||||
+ac_cv_func___stat=${ac_cv_func___stat=no}
|
||||
+ac_cv_func__stat=${ac_cv_func__stat=no}
|
||||
+ac_cv_func___stat64=${ac_cv_func___stat64=no}
|
||||
+ac_cv_func__stat64=${ac_cv_func__stat64=no}
|
||||
+ac_cv_func___telldir=${ac_cv_func___telldir=no}
|
||||
+ac_cv_func__telldir=${ac_cv_func__telldir=no}
|
||||
+ac_cv_func___write=${ac_cv_func___write=no}
|
||||
+ac_cv_func__write=${ac_cv_func__write=no}
|
||||
+ac_cv_func___xstat=${ac_cv_func___xstat=no}
|
||||
+
|
||||
+
|
||||
+
|
||||
+# Miscellaneous stuff that isn't, and shouldn't be, available
|
||||
+# in Debian. Those interested in building debs for other systems may
|
||||
+# need to remove some of these defines.
|
||||
+
|
||||
+ac_cv_func_bigcrypt=${ac_cv_func_bigcrypt=no}
|
||||
+ac_cv_func_crypt16=${ac_cv_func_crypt16=no}
|
||||
+ac_cv_func_getauthuid=${ac_cv_func_getauthuid=no}
|
||||
+ac_cv_func_getprpwnam=${ac_cv_func_getprpwnam=no}
|
||||
+ac_cv_func_getpwanam=${ac_cv_func_getpwanam=no}
|
||||
+ac_cv_func_putprpwnam=${ac_cv_func_putprpwnam=no}
|
||||
+ac_cv_func_rdchk=${ac_cv_func_rdchk=no}
|
||||
+ac_cv_func_set_auth_parameters=${ac_cv_func_set_auth_parameters=no}
|
||||
+ac_cv_func_setgidx=${ac_cv_func_setgidx=no}
|
||||
+ac_cv_func_setluid=${ac_cv_func_setluid=no}
|
||||
+ac_cv_func_setpriv=${ac_cv_func_setpriv=no}
|
||||
+ac_cv_func_setuidx=${ac_cv_func_setuidx=no}
|
||||
+ac_cv_lib_sec_bigcrypt=${ac_cv_lib_sec_bigcrypt=no}
|
||||
+ac_cv_lib_sec_getprpwnam=${ac_cv_lib_sec_getprpwnam=no}
|
||||
+ac_cv_lib_sec_getspnam=${ac_cv_lib_sec_getspnam=no}
|
||||
+ac_cv_lib_sec_putprpwnam=${ac_cv_lib_sec_putprpwnam=no}
|
||||
+ac_cv_lib_sec_set_auth_parameters=${ac_cv_lib_sec_set_auth_parameters=no}
|
||||
+ac_cv_lib_security_bigcrypt=${ac_cv_lib_security_bigcrypt=no}
|
||||
+ac_cv_lib_security_getprpwnam=${ac_cv_lib_security_getprpwnam=no}
|
||||
+ac_cv_lib_security_getspnam=${ac_cv_lib_security_getspnam=no}
|
||||
+ac_cv_lib_security_putprpwnam=${ac_cv_lib_security_putprpwnam=no}
|
||||
+ac_cv_lib_security_set_auth_parameters=${ac_cv_lib_security_set_auth_parameters=no}
|
||||
diff -uNrw samba-2.2.1a-bak/debian/config.cache.alpha-linux samba-2.2.1a/debian/config.cache.alpha-linux
|
||||
--- samba-2.2.1a-bak/debian/config.cache.alpha-linux Wed Dec 31 18:00:00 1969
|
||||
+++ samba-2.2.1a/debian/config.cache.alpha-linux Thu Aug 23 10:28:08 2001
|
||||
@@ -0,0 +1,12 @@
|
||||
+# 22 Aug 2001 Steve Langasek <vorlon@debian.org>
|
||||
+
|
||||
+# This file contains autoconf settings specific to the alpha-linux
|
||||
+# platform that should be preloaded when building for this architecture.
|
||||
+
|
||||
+
|
||||
+# Linux 2.2 on Alpha doesn't have a functional setresgid() call, but
|
||||
+# Linux 2.4 does. Ensure that packages compiled for woody remain
|
||||
+# compatible with 2.2 kernels, even if the build machine is running 2.4.
|
||||
+samba_cv_have_setresgid=${samba_cv_have_setresgid=no}
|
||||
+samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no}
|
||||
+samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes}
|
||||
diff -uNrw samba-2.2.1a-bak/debian/rules samba-2.2.1a/debian/rules
|
||||
--- samba-2.2.1a-bak/debian/rules Thu Aug 23 10:27:54 2001
|
||||
+++ samba-2.2.1a/debian/rules Thu Aug 23 10:28:08 2001
|
||||
@@ -15,6 +15,14 @@
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS
|
||||
|
||||
+# Set the host and build architectures for use with config.cache loading,
|
||||
+# cross-building, etc.
|
||||
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
+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
|
||||
@@ -48,8 +56,11 @@
|
||||
# ./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 --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass)
|
||||
+ [ -f source/Makefile ] || (cd source && ./configure --host=$(DEB_HOST_GNU_TYPE)-gnu --build=$(DEB_BUILD_GNU_TYPE)-gnu --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass)
|
||||
|
||||
touch configure-stamp
|
||||
|
71
packaging/Debian/debian/README.debian
Normal file
71
packaging/Debian/debian/README.debian
Normal file
@ -0,0 +1,71 @@
|
||||
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
|
||||
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).
|
||||
|
||||
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.
|
||||
|
||||
As of Samba 2.2.2-11, 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.
|
||||
smbclient: A LanManager like simple client for Unix.
|
||||
swat: Samba Web Administration Tool
|
||||
samba-doc: Samba documentation.
|
||||
smbfs: Mount and umount commands for the smbfs (works with 2.2.x and
|
||||
above kernels, not with 2.0.x kernels.)
|
||||
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.
|
||||
|
||||
|
||||
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
|
||||
does not exist any more. The reason is that starting with Samba 2.0.6-1, that
|
||||
code does not even compile, and the upstream author (Andrew Tridgell)
|
||||
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
|
||||
----------------------
|
||||
|
||||
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
|
||||
is a Windows NT server. This feature is supposed to be stable although I
|
||||
haven't tried it myself. Read the documentation in the samba-doc package
|
||||
for help on how to do this (hint: "security = domain" in the smb.conf
|
||||
file).
|
||||
|
||||
Samba 2.2 has also experimental support for Primary Domain
|
||||
Controller. This means that a Samba server can act now as a PDC. There
|
||||
are no special flags needed to compile Samba with NT domain PDC
|
||||
support. Please read the NTDOM PDC FAQ at www.samba.org (Documentation
|
||||
section).
|
||||
|
||||
Please note that NT domain PDC support is far from complete and is still
|
||||
experimental.
|
||||
|
||||
Eloy A. Paris <peloy@debian.org>
|
||||
Steve Langasek <vorlon@debian.org>
|
||||
January 14, 2002
|
10
packaging/Debian/debian/TODO
Normal file
10
packaging/Debian/debian/TODO
Normal file
@ -0,0 +1,10 @@
|
||||
In no particular order:
|
||||
|
||||
- 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)
|
1559
packaging/Debian/debian/changelog
Normal file
1559
packaging/Debian/debian/changelog
Normal file
File diff suppressed because it is too large
Load Diff
231
packaging/Debian/debian/config.cache
Normal file
231
packaging/Debian/debian/config.cache
Normal file
@ -0,0 +1,231 @@
|
||||
#
|
||||
# 22 August 2001 Steve Langasek <vorlon@debian.org>
|
||||
#
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
# scripts and configure runs. It is not useful on other systems.
|
||||
# If it contains results you don't want to keep, you may remove or edit it.
|
||||
#
|
||||
# By default, configure uses ./config.cache as the cache file,
|
||||
# creating it if it does not exist already. You can give configure
|
||||
# the --cache-file=FILE option to use a different cache file; that is
|
||||
# what configure does when it calls configure scripts in
|
||||
# subdirectories, so they share the cache.
|
||||
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
# config.status only pays attention to the cache file if you give it the
|
||||
# --recheck option to rerun configure.
|
||||
#
|
||||
#
|
||||
# This config.cache file contains a list of acceptable autoconf
|
||||
# values which can be used in compiling Samba for Debian woody/sid.
|
||||
#
|
||||
# Autoconf sorts options alphabetically in its output. This file
|
||||
# groups options logically.
|
||||
|
||||
|
||||
# Load any architecture-specific settings
|
||||
if [ -n "$DEB_HOST_GNU_TYPE" \
|
||||
-a -f ../debian/config.cache.${DEB_HOST_GNU_TYPE} ]; then
|
||||
. ../debian/config.cache.${DEB_HOST_GNU_TYPE}
|
||||
fi
|
||||
|
||||
|
||||
# This is at the top because it's most in need of regular tweaking.
|
||||
# These are options which are supported on 2.4 kernels, but not on 2.2
|
||||
# kernels.
|
||||
|
||||
samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no}
|
||||
samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no}
|
||||
samba_cv_HAVE_KERNEL_SHARE_MODES=${samba_cv_HAVE_KERNEL_SHARE_MODES=no}
|
||||
|
||||
|
||||
# These are present in 2.2 kernels, but not in 2.0...
|
||||
|
||||
samba_cv_have_setresuid=${samba_cv_have_setresuid=yes}
|
||||
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)
|
||||
|
||||
ac_cv_c_const=${ac_cv_c_const=yes}
|
||||
ac_cv_c_inline=${ac_cv_c_inline=inline}
|
||||
samba_cv_volatile=${samba_cv_volatile=yes}
|
||||
ac_cv_dirent_d_off=${ac_cv_dirent_d_off=yes}
|
||||
ac_cv_func_bzero=${ac_cv_func_bzero=yes}
|
||||
ac_cv_func_chmod=${ac_cv_func_chmod=yes}
|
||||
ac_cv_func_chown=${ac_cv_func_chown=yes}
|
||||
ac_cv_func_chroot=${ac_cv_func_chroot=yes}
|
||||
ac_cv_func_connect=${ac_cv_func_connect=yes}
|
||||
ac_cv_func_dup2=${ac_cv_func_dup2=yes}
|
||||
ac_cv_func_execl=${ac_cv_func_execl=yes}
|
||||
ac_cv_func_fchmod=${ac_cv_func_fchmod=yes}
|
||||
ac_cv_func_fchown=${ac_cv_func_fchown=yes}
|
||||
ac_cv_func_fstat=${ac_cv_func_fstat=yes}
|
||||
ac_cv_func_fsync=${ac_cv_func_fsync=yes}
|
||||
ac_cv_func_ftruncate=${ac_cv_func_ftruncate=yes}
|
||||
ac_cv_func_getcwd=${ac_cv_func_getcwd=yes}
|
||||
ac_cv_func_getgrent=${ac_cv_func_getgrent=yes}
|
||||
ac_cv_func_getgrnam=${ac_cv_func_getgrnam=yes}
|
||||
ac_cv_func_getspnam=${ac_cv_func_getspnam=yes}
|
||||
ac_cv_func_glob=${ac_cv_func_glob=yes}
|
||||
ac_cv_func_grantpt=${ac_cv_func_grantpt=yes}
|
||||
ac_cv_func_initgroups=${ac_cv_func_initgroups=yes}
|
||||
ac_cv_func_llseek=${ac_cv_func_llseek=yes}
|
||||
ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes}
|
||||
ac_cv_func_memmove=${ac_cv_func_memmove=yes}
|
||||
ac_cv_func_memset=${ac_cv_func_memset=yes}
|
||||
ac_cv_func_mktime=${ac_cv_func_mktime=yes}
|
||||
ac_cv_func_pipe=${ac_cv_func_pipe=yes}
|
||||
ac_cv_func_poll=${ac_cv_func_poll=yes}
|
||||
ac_cv_func_pread=${ac_cv_func_pread=yes}
|
||||
ac_cv_func_pwrite=${ac_cv_func_pwrite=yes}
|
||||
ac_cv_func_rand=${ac_cv_func_rand=yes}
|
||||
ac_cv_func_random=${ac_cv_func_random=yes}
|
||||
ac_cv_func_readlink=${ac_cv_func_readlink=yes}
|
||||
ac_cv_func_rename=${ac_cv_func_rename=yes}
|
||||
ac_cv_func_select=${ac_cv_func_select=yes}
|
||||
ac_cv_func_setenv=${ac_cv_func_setenv=yes}
|
||||
ac_cv_func_setgroups=${ac_cv_func_setgroups=yes}
|
||||
ac_cv_func_setsid=${ac_cv_func_setsid=yes}
|
||||
ac_cv_func_sigaction=${ac_cv_func_sigaction=yes}
|
||||
ac_cv_func_sigblock=${ac_cv_func_sigblock=yes}
|
||||
ac_cv_func_sigprocmask=${ac_cv_func_sigprocmask=yes}
|
||||
ac_cv_func_snprintf=${ac_cv_func_snprintf=yes}
|
||||
ac_cv_func_srand=${ac_cv_func_srand=yes}
|
||||
ac_cv_func_srandom=${ac_cv_func_srandom=yes}
|
||||
ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes}
|
||||
ac_cv_func_strchr=${ac_cv_func_strchr=yes}
|
||||
ac_cv_func_strdup=${ac_cv_func_strdup=yes}
|
||||
ac_cv_func_strerror=${ac_cv_func_strerror=yes}
|
||||
ac_cv_func_strftime=${ac_cv_func_strftime=yes}
|
||||
ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes}
|
||||
ac_cv_func_strtoul=${ac_cv_func_strtoul=yes}
|
||||
ac_cv_func_symlink=${ac_cv_func_symlink=yes}
|
||||
ac_cv_func_usleep=${ac_cv_func_usleep=yes}
|
||||
ac_cv_func_utime=${ac_cv_func_utime=yes}
|
||||
ac_cv_func_utimes=${ac_cv_func_utimes=yes}
|
||||
ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf=yes}
|
||||
ac_cv_func_waitpid=${ac_cv_func_waitpid=yes}
|
||||
ac_cv_type_ino_t=${ac_cv_type_ino_t=yes}
|
||||
ac_cv_type_mode_t=${ac_cv_type_mode_t=yes}
|
||||
ac_cv_type_pid_t=${ac_cv_type_pid_t=yes}
|
||||
ac_cv_type_size_t=${ac_cv_type_size_t=yes}
|
||||
ac_cv_type_uid_t=${ac_cv_type_uid_t=yes}
|
||||
samba_cv_socklen_t=${samba_cv_socklen_t=yes}
|
||||
|
||||
# Yes, we know Linux supports fcntl locking. Just ignore
|
||||
# any errors caused by building on an NFS mount.
|
||||
samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes}
|
||||
|
||||
|
||||
# smbwrapper doesn't work because the glibc maintainers don't want
|
||||
# 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}
|
||||
ac_cv_func__close=${ac_cv_func__close=no}
|
||||
ac_cv_func___closedir=${ac_cv_func___closedir=no}
|
||||
ac_cv_func__closedir=${ac_cv_func__closedir=no}
|
||||
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}
|
||||
ac_cv_func__fcntl=${ac_cv_func__fcntl=no}
|
||||
ac_cv_func___fork=${ac_cv_func___fork=no}
|
||||
ac_cv_func__fork=${ac_cv_func__fork=no}
|
||||
ac_cv_func___fstat=${ac_cv_func___fstat=no}
|
||||
ac_cv_func__fstat=${ac_cv_func__fstat=no}
|
||||
ac_cv_func___fstat64=${ac_cv_func___fstat64=no}
|
||||
ac_cv_func__fstat64=${ac_cv_func__fstat64=no}
|
||||
ac_cv_func___fxstat=${ac_cv_func___fxstat=no}
|
||||
ac_cv_func___getcwd=${ac_cv_func___getcwd=no}
|
||||
ac_cv_func__getcwd=${ac_cv_func__getcwd=no}
|
||||
ac_cv_func___getdents=${ac_cv_func___getdents=no}
|
||||
ac_cv_func__getdents=${ac_cv_func__getdents=no}
|
||||
ac_cv_func___llseek=${ac_cv_func___llseek=no}
|
||||
ac_cv_func___sys_llseek=${ac_cv_func___sys_llseek=no}
|
||||
ac_cv_func__llseek=${ac_cv_func__llseek=no}
|
||||
ac_cv_func___lseek=${ac_cv_func___lseek=no}
|
||||
ac_cv_func__lseek=${ac_cv_func__lseek=no}
|
||||
ac_cv_func___lstat=${ac_cv_func___lstat=no}
|
||||
ac_cv_func__lstat=${ac_cv_func__lstat=no}
|
||||
ac_cv_func___lstat64=${ac_cv_func___lstat64=no}
|
||||
ac_cv_func__lstat64=${ac_cv_func__lstat64=no}
|
||||
ac_cv_func___lxstat=${ac_cv_func___lxstat=no}
|
||||
ac_cv_func___open=${ac_cv_func___open=no}
|
||||
ac_cv_func__open=${ac_cv_func__open=no}
|
||||
ac_cv_func___open64=${ac_cv_func___open64=no}
|
||||
ac_cv_func__open64=${ac_cv_func__open64=no}
|
||||
ac_cv_func___opendir=${ac_cv_func___opendir=no}
|
||||
ac_cv_func__opendir=${ac_cv_func__opendir=no}
|
||||
ac_cv_func___pread=${ac_cv_func___pread=no}
|
||||
ac_cv_func__pread=${ac_cv_func__pread=no}
|
||||
ac_cv_func___pread64=${ac_cv_func___pread64=no}
|
||||
ac_cv_func__pread64=${ac_cv_func__pread64=no}
|
||||
ac_cv_func___pwrite=${ac_cv_func___pwrite=no}
|
||||
ac_cv_func__pwrite=${ac_cv_func__pwrite=no}
|
||||
ac_cv_func___pwrite64=${ac_cv_func___pwrite64=no}
|
||||
ac_cv_func__pwrite64=${ac_cv_func__pwrite64=no}
|
||||
ac_cv_func___read=${ac_cv_func___read=no}
|
||||
ac_cv_func__read=${ac_cv_func__read=no}
|
||||
ac_cv_func___readdir=${ac_cv_func___readdir=no}
|
||||
ac_cv_func__readdir=${ac_cv_func__readdir=no}
|
||||
ac_cv_func___readdir64=${ac_cv_func___readdir64=no}
|
||||
ac_cv_func__readdir64=${ac_cv_func__readdir64=no}
|
||||
ac_cv_func___seekdir=${ac_cv_func___seekdir=no}
|
||||
ac_cv_func__seekdir=${ac_cv_func__seekdir=no}
|
||||
ac_cv_func___stat=${ac_cv_func___stat=no}
|
||||
ac_cv_func__stat=${ac_cv_func__stat=no}
|
||||
ac_cv_func___stat64=${ac_cv_func___stat64=no}
|
||||
ac_cv_func__stat64=${ac_cv_func__stat64=no}
|
||||
ac_cv_func___telldir=${ac_cv_func___telldir=no}
|
||||
ac_cv_func__telldir=${ac_cv_func__telldir=no}
|
||||
ac_cv_func___write=${ac_cv_func___write=no}
|
||||
ac_cv_func__write=${ac_cv_func__write=no}
|
||||
ac_cv_func___xstat=${ac_cv_func___xstat=no}
|
||||
|
||||
|
||||
|
||||
# Miscellaneous stuff that isn't, and shouldn't be, available
|
||||
# in Debian. Those interested in building debs for other systems may
|
||||
# need to remove some of these defines.
|
||||
|
||||
ac_cv_func_bigcrypt=${ac_cv_func_bigcrypt=no}
|
||||
ac_cv_func_crypt16=${ac_cv_func_crypt16=no}
|
||||
ac_cv_func_getauthuid=${ac_cv_func_getauthuid=no}
|
||||
ac_cv_func_getprpwnam=${ac_cv_func_getprpwnam=no}
|
||||
ac_cv_func_getpwanam=${ac_cv_func_getpwanam=no}
|
||||
ac_cv_func_putprpwnam=${ac_cv_func_putprpwnam=no}
|
||||
ac_cv_func_rdchk=${ac_cv_func_rdchk=no}
|
||||
ac_cv_func_set_auth_parameters=${ac_cv_func_set_auth_parameters=no}
|
||||
ac_cv_func_setgidx=${ac_cv_func_setgidx=no}
|
||||
ac_cv_func_setluid=${ac_cv_func_setluid=no}
|
||||
ac_cv_func_setpriv=${ac_cv_func_setpriv=no}
|
||||
ac_cv_func_setuidx=${ac_cv_func_setuidx=no}
|
||||
ac_cv_lib_sec_bigcrypt=${ac_cv_lib_sec_bigcrypt=no}
|
||||
ac_cv_lib_sec_getprpwnam=${ac_cv_lib_sec_getprpwnam=no}
|
||||
ac_cv_lib_sec_getspnam=${ac_cv_lib_sec_getspnam=no}
|
||||
ac_cv_lib_sec_putprpwnam=${ac_cv_lib_sec_putprpwnam=no}
|
||||
ac_cv_lib_sec_set_auth_parameters=${ac_cv_lib_sec_set_auth_parameters=no}
|
||||
ac_cv_lib_security_bigcrypt=${ac_cv_lib_security_bigcrypt=no}
|
||||
ac_cv_lib_security_getprpwnam=${ac_cv_lib_security_getprpwnam=no}
|
||||
ac_cv_lib_security_getspnam=${ac_cv_lib_security_getspnam=no}
|
||||
ac_cv_lib_security_putprpwnam=${ac_cv_lib_security_putprpwnam=no}
|
||||
ac_cv_lib_security_set_auth_parameters=${ac_cv_lib_security_set_auth_parameters=no}
|
12
packaging/Debian/debian/config.cache.alpha-linux
Normal file
12
packaging/Debian/debian/config.cache.alpha-linux
Normal file
@ -0,0 +1,12 @@
|
||||
# 22 Aug 2001 Steve Langasek <vorlon@debian.org>
|
||||
|
||||
# This file contains autoconf settings specific to the alpha-linux
|
||||
# platform that should be preloaded when building for this architecture.
|
||||
|
||||
|
||||
# Linux 2.2 on Alpha doesn't have a functional setresgid() call, but
|
||||
# Linux 2.4 does. Ensure that packages compiled for woody remain
|
||||
# compatible with 2.2 kernels, even if the build machine is running 2.4.
|
||||
samba_cv_have_setresgid=${samba_cv_have_setresgid=no}
|
||||
samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no}
|
||||
samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes}
|
13
packaging/Debian/debian/config.cache.sparc-linux
Normal file
13
packaging/Debian/debian/config.cache.sparc-linux
Normal file
@ -0,0 +1,13 @@
|
||||
# 24 Spe 2001 Steve Langasek <vorlon@debian.org>
|
||||
|
||||
# This file contains autoconf settings specific to the sparc-linux
|
||||
# platform that should be preloaded when building for this architecture.
|
||||
|
||||
|
||||
# Linux 2.2 on Sparc doesn't have setresgid() or setresuid(), but
|
||||
# Linux 2.4 does. Ensure that packages compiled for woody remain
|
||||
# compatible with 2.2 kernels, even if the build machine is running 2.4.
|
||||
samba_cv_have_setresuid=${samba_cv_have_setresuid=no}
|
||||
samba_cv_have_setresgid=${samba_cv_have_setresgid=no}
|
||||
samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no}
|
||||
samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes}
|
151
packaging/Debian/debian/control
Normal file
151
packaging/Debian/debian/control
Normal file
@ -0,0 +1,151 @@
|
||||
Source: samba
|
||||
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
|
||||
Standards-Version: 3.1.1
|
||||
|
||||
Package: samba
|
||||
Architecture: any
|
||||
Depends: 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.
|
||||
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.2.1a-3, 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.
|
||||
smbfs - Mount and umount commands for the smbfs (kernels 2.0.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
|
||||
|
||||
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.
|
||||
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}
|
||||
Replaces: samba (<= 2.2.2-5)
|
||||
Provides: samba-client
|
||||
Suggests: smbfs
|
||||
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 some client components of the Samba suite. In
|
||||
particular it includes the command line utilities smbclient, smbtar,
|
||||
and smbspool. If you want to mount shares exported from Microsoft
|
||||
Windows machines or a Samba server you must install the smbfs package.
|
||||
|
||||
Package: swat
|
||||
Architecture: any
|
||||
Depends: samba (= ${Source-Version}), ${shlibs:Depends}
|
||||
Recommends: samba-doc
|
||||
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 of the Samba server.
|
||||
|
||||
Package: samba-doc
|
||||
Section: 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}
|
||||
Suggests: smbclient
|
||||
Replaces: smbfsx
|
||||
Conflicts: smbfsx, suidmanager (<< 0.50)
|
||||
Description: mount and umount commands for the smbfs (for kernels >= than 2.2.x)
|
||||
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.
|
||||
.
|
||||
If you want to use command-line utilities like smbclient, smbtar
|
||||
and/or smbspool 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.
|
||||
|
||||
Package: libpam-smbpass
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
Suggests: samba
|
||||
Description: pluggable authentication module for SMB password database
|
||||
This is a stackable PAM module that allows a system administrator to easily
|
||||
migrate to using encrypted passwords for Samba and to keep smb passwords in
|
||||
sync with unix passwords. Unlike other solutions, it does this without
|
||||
requiring users to change their existing passwords or login to Samba using
|
||||
cleartext passwords.
|
||||
|
||||
Package: libsmbclient
|
||||
Section: libs
|
||||
Priority: extra
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
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.
|
||||
.
|
||||
This package contains the libsmbclient shared library.
|
||||
|
||||
Package: libsmbclient-dev
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Architecture: any
|
||||
Depends: libsmbclient (= ${Source-Version}), ${shlibs:Depends}
|
||||
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
|
||||
and Unix servers running Samba.
|
||||
.
|
||||
This package contains the libsmbclient static libraries and headers
|
||||
needed to build applications that use SMB services.
|
111
packaging/Debian/debian/control.smbwrapper
Normal file
111
packaging/Debian/debian/control.smbwrapper
Normal file
@ -0,0 +1,111 @@
|
||||
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.
|
36
packaging/Debian/debian/copyright
Normal file
36
packaging/Debian/debian/copyright
Normal file
@ -0,0 +1,36 @@
|
||||
This is the Debian Linux prepackaged version of the Samba SMB
|
||||
(LAN-Manager) server. Samba was written by Andrew Tridgell
|
||||
<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).
|
||||
|
||||
Copyright:
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 dated June, 1991.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA
|
||||
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
1
packaging/Debian/debian/libpam-smbpass.files
Normal file
1
packaging/Debian/debian/libpam-smbpass.files
Normal file
@ -0,0 +1 @@
|
||||
lib/security/pam_smbpass.so
|
2
packaging/Debian/debian/libsmbclient-dev.files
Normal file
2
packaging/Debian/debian/libsmbclient-dev.files
Normal file
@ -0,0 +1,2 @@
|
||||
usr/lib/libsmbclient.a
|
||||
usr/include/libsmbclient.h
|
2
packaging/Debian/debian/libsmbclient.files
Normal file
2
packaging/Debian/debian/libsmbclient.files
Normal file
@ -0,0 +1,2 @@
|
||||
usr/lib/libsmbclient.so.0.1
|
||||
usr/lib/libsmbclient.so.0
|
10
packaging/Debian/debian/libsmbclient.postinst
Normal file
10
packaging/Debian/debian/libsmbclient.postinst
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# postinst script for libsmbclient
|
||||
#
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
1
packaging/Debian/debian/libsmbclient.shlibs
Normal file
1
packaging/Debian/debian/libsmbclient.shlibs
Normal file
@ -0,0 +1 @@
|
||||
libsmbclient 0.1 libsmbclient (>= 2.2.2-11)
|
28
packaging/Debian/debian/mksmbpasswd.8
Normal file
28
packaging/Debian/debian/mksmbpasswd.8
Normal file
@ -0,0 +1,28 @@
|
||||
.TH MKSMBPASSWD 8 12-Apr-1998
|
||||
.SH NAME
|
||||
mksmbpasswd \- formats a /etc/passwd entry for a smbpasswd file
|
||||
.SH SYNOPSIS
|
||||
mksmbpasswd cat /etc/passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd
|
||||
.SH DESCRIPTION
|
||||
.B mksmbpasswd
|
||||
should be used only once, the first time Samba is installed. The idea
|
||||
is to ease accounts creation by transferring all user accounts from
|
||||
/etc/passwd to /etc/samba/smbpasswd.
|
||||
.PP
|
||||
Please note that passwords are not transferred automatically from
|
||||
/etc/passwd to the new /etc/samba/smbpasswd file. After running
|
||||
.B mksmbpasswd
|
||||
all accounts are disabled so the system administrator must run
|
||||
smbpasswd for each account that needs to be enable.
|
||||
.SH FILES
|
||||
.TP
|
||||
/etc/passwd
|
||||
System wide accounts file
|
||||
.TP
|
||||
/etc/samba/smbpasswd
|
||||
Encrypted passwords file for the Samba 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>)
|
5
packaging/Debian/debian/mksmbpasswd.awk
Normal file
5
packaging/Debian/debian/mksmbpasswd.awk
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/awk -f
|
||||
BEGIN {FS=":"
|
||||
printf("#\n# SMB password file.\n#\n")
|
||||
}
|
||||
{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:%s\n", $1, $3, $5) }
|
49
packaging/Debian/debian/patches/Makefile.patch
Normal file
49
packaging/Debian/debian/patches/Makefile.patch
Normal file
@ -0,0 +1,49 @@
|
||||
--- 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:
|
6044
packaging/Debian/debian/patches/configure.patch
Normal file
6044
packaging/Debian/debian/patches/configure.patch
Normal file
File diff suppressed because it is too large
Load Diff
78
packaging/Debian/debian/patches/loadparm.patch
Normal file
78
packaging/Debian/debian/patches/loadparm.patch
Normal file
@ -0,0 +1,78 @@
|
||||
--- 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);
|
199
packaging/Debian/debian/patches/samba.patch
Normal file
199
packaging/Debian/debian/patches/samba.patch
Normal file
@ -0,0 +1,199 @@
|
||||
--- samba-2.2.2.cvs20020120.orig/source/client/smbmount.c
|
||||
+++ samba-2.2.2.cvs20020120/source/client/smbmount.c
|
||||
@@ -719,7 +719,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));
|
||||
}
|
||||
if ((lp=strchr(username,'/'))) {
|
||||
*lp = 0;
|
||||
@@ -729,7 +729,7 @@
|
||||
!strcmp(opts, "password")) {
|
||||
pstrcpy(password,opteq+1);
|
||||
got_pass = True;
|
||||
- memset(opteq+1,'X',strlen(password));
|
||||
+ memset(opteq+1,'\0',strlen(password));
|
||||
} else if(!strcmp(opts, "credentials")) {
|
||||
pstrcpy(credentials,opteq+1);
|
||||
} else if(!strcmp(opts, "netbiosname")) {
|
||||
@@ -822,7 +822,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));
|
||||
}
|
||||
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 @@
|
||||
chmod $INSTALLPERMS $BINDIR/$p2
|
||||
|
||||
# this is a special case, mount needs this in a specific location
|
||||
- if [ $p2 = smbmount ]; then
|
||||
- ln -sf $BINDIR/$p2 /sbin/mount.smbfs
|
||||
- fi
|
||||
+# Commented out for the Debian Samba package. We take care of this
|
||||
+# important symlink in debian/rules. (peloy@debian.org)
|
||||
+# if [ $p2 = smbmount ]; then
|
||||
+# ln -sf $BINDIR/$p2 /sbin/mount.smbfs
|
||||
+# fi
|
||||
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
|
||||
|
||||
# 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 @@
|
||||
static struct cli_state cli;
|
||||
extern struct in_addr loopback_ip;
|
||||
|
||||
+ loopback_ip.s_addr = htonl((127 << 24) + 1);
|
||||
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[] = {
|
||||
+ { '"', """ },
|
||||
+ { '&', "&" },
|
||||
+ { '<', "<" },
|
||||
+ { '>', ">" },
|
||||
+ { '\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;
|
22
packaging/Debian/debian/patches/smbadduser.patch
Normal file
22
packaging/Debian/debian/patches/smbadduser.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- samba-2.2.2.cvs20020120.orig/source/script/smbadduser
|
||||
+++ samba-2.2.2.cvs20020120/source/script/smbadduser
|
||||
@@ -2,13 +2,14 @@
|
||||
#
|
||||
# smbadduser - Written by Mike Zakharoff
|
||||
#
|
||||
+# Customized for Debian by Eloy A. Paris <peloy@debian.org>
|
||||
+#
|
||||
unalias *
|
||||
-set path = ($path /usr/local/samba/bin)
|
||||
+# No need to set a path in Debian
|
||||
+#set path = ($path /usr/local/samba/bin)
|
||||
|
||||
-set smbpasswd = /usr/local/samba/private/smbpasswd
|
||||
-#set smbpasswd = /etc/samba.d/smbpasswd
|
||||
-set user_map = /usr/local/samba/lib/users.map
|
||||
-#set user_map = /etc/samba.d/smbusers
|
||||
+set smbpasswd = /etc/samba/smbpasswd
|
||||
+set user_map = /etc/samba/users.map
|
||||
#
|
||||
# Set to site specific passwd command
|
||||
#
|
11
packaging/Debian/debian/patches/smbclient-pager.patch
Normal file
11
packaging/Debian/debian/patches/smbclient-pager.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- samba-2.2.2.cvs20020120.orig/source/include/local.h
|
||||
+++ samba-2.2.2.cvs20020120/source/include/local.h
|
||||
@@ -105,7 +105,7 @@
|
||||
/* the default pager to use for the client "more" command. Users can
|
||||
override this with the PAGER environment variable */
|
||||
#ifndef PAGER
|
||||
-#define PAGER "more"
|
||||
+#define PAGER "/usr/bin/pager"
|
||||
#endif
|
||||
|
||||
/* the size of the uid cache used to reduce valid user checks */
|
17
packaging/Debian/debian/patches/smbclient-xfer-speed.patch
Normal file
17
packaging/Debian/debian/patches/smbclient-xfer-speed.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- 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;
|
274
packaging/Debian/debian/rules
Executable file
274
packaging/Debian/debian/rules
Executable file
@ -0,0 +1,274 @@
|
||||
#!/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
|
||||
# modification were made by Steve Langasek <vorlon@netexpress.net>.
|
||||
#
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatability version to use.
|
||||
export DH_COMPAT=2
|
||||
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS
|
||||
|
||||
# Set the host and build architectures for use with config.cache loading,
|
||||
# cross-building, etc.
|
||||
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
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
|
||||
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/state/samba \
|
||||
INCLUDEDIR=$(DESTDIR)/usr/include \
|
||||
SWATDIR=$(SWATDIR)/usr/share/samba/swat \
|
||||
SAMBABOOK=$(SAMBABOOK)/usr/share/samba/swat/using_samba \
|
||||
CODEPAGEDIR=$(DESTDIR)/usr/share/samba/codepages
|
||||
|
||||
patch: patch-stamp
|
||||
patch-stamp:
|
||||
dh_testdir
|
||||
if [ ! -f patch-stamp ]; then debian/scripts/patch-source; fi
|
||||
touch patch-stamp
|
||||
|
||||
unpatch:
|
||||
dh_testdir
|
||||
if [ -f patch-stamp ]; then 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) \
|
||||
--with-fhs \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-privatedir=/etc/samba \
|
||||
--with-lockdir=/var/state/samba \
|
||||
--localstatedir=/var \
|
||||
--with-netatalk \
|
||||
--with-smbmount \
|
||||
--with-pam \
|
||||
--with-syslog \
|
||||
--with-sambabook \
|
||||
--with-utmp \
|
||||
--with-readline \
|
||||
--with-pam_smbpass \
|
||||
--with-libsmbclient)
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
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
|
||||
|
||||
touch build-stamp
|
||||
|
||||
clean: unpatch
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Clean first the Samba package
|
||||
# -$(MAKE) -C source realclean
|
||||
# -$(MAKE) -C source clean
|
||||
-$(MAKE) -C source 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
|
||||
|
||||
dh_clean
|
||||
|
||||
install: DH_OPTIONS=
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# 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
|
||||
# 'make install' - do it manually.
|
||||
$(MAKE) -C source installclientlib $(IVARS)
|
||||
|
||||
# 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/
|
||||
|
||||
# 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
|
||||
ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smb.8
|
||||
ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smbfs.8
|
||||
|
||||
# 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
|
||||
|
||||
# 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 ../../../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"
|
||||
|
||||
# The smbwrapper package is not being generated anymore, so we must
|
||||
# delete the related man pages.
|
||||
rm $(DESTDIR)/usr/share/man/man1/smbsh.1
|
||||
|
||||
# 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/samba.pamd $(DESTDIR)/etc/pam.d/samba
|
||||
|
||||
dh_movefiles --sourcedir=debian/samba/
|
||||
|
||||
# Remove empty directories that will never be used.
|
||||
rmdir $(DESTDIR)/sbin
|
||||
|
||||
# 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_installexamples is not available in Debian Potato...
|
||||
[ -x /usr/bin/dh_installexamples ] && dh_installexamples
|
||||
# dh_installmenu
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installmanpages
|
||||
# dh_installinfo
|
||||
# dh_undocumented
|
||||
dh_installchangelogs
|
||||
dh_link
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
# dh_perl
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
# 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_installexamples is not available in Debian Potato...
|
||||
[ -x /usr/bin/dh_installexamples ] && dh_installexamples
|
||||
# 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
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
dh_installinit
|
||||
dh_installcron
|
||||
# dh_installmanpages
|
||||
# dh_installinfo
|
||||
dh_undocumented
|
||||
dh_installchangelogs
|
||||
dh_strip
|
||||
dh_link
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
|
||||
# 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
|
||||
# a thorough security audit. smbmount _does not_ have to have
|
||||
# the setuid bit set. In fact, it is a security hole.
|
||||
chmod u+s debian/smbfs/usr/bin/smbmnt
|
||||
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/
|
||||
|
||||
dh_installdeb
|
||||
# dh_makeshlibs
|
||||
# dh_perl
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
194
packaging/Debian/debian/rules.old
Normal file
194
packaging/Debian/debian/rules.old
Normal file
@ -0,0 +1,194 @@
|
||||
#!/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
|
172
packaging/Debian/debian/rules.smbwrapper
Normal file
172
packaging/Debian/debian/rules.smbwrapper
Normal file
@ -0,0 +1,172 @@
|
||||
#!/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
|
2
packaging/Debian/debian/samba-common.conffiles
Normal file
2
packaging/Debian/debian/samba-common.conffiles
Normal file
@ -0,0 +1,2 @@
|
||||
/etc/samba/smb.conf
|
||||
/etc/pam.d/samba
|
7
packaging/Debian/debian/samba-common.files
Normal file
7
packaging/Debian/debian/samba-common.files
Normal file
@ -0,0 +1,7 @@
|
||||
etc/samba/
|
||||
usr/bin/nmblookup
|
||||
usr/bin/smbpasswd
|
||||
etc/pam.d/
|
||||
usr/share/man/man1/nmblookup.1
|
||||
usr/share/man/man8/smbpasswd.8
|
||||
usr/share/samba/codepages/
|
6
packaging/Debian/debian/samba-common.postrm
Normal file
6
packaging/Debian/debian/samba-common.postrm
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" = purge ]; then
|
||||
# Remove any files left in /etc/samba/
|
||||
rm -Rf /etc/samba/
|
||||
fi
|
9
packaging/Debian/debian/samba-doc.docs
Normal file
9
packaging/Debian/debian/samba-doc.docs
Normal file
@ -0,0 +1,9 @@
|
||||
README
|
||||
docs/Samba-HOWTO-Collection.pdf
|
||||
docs/THANKS
|
||||
docs/announce
|
||||
docs/history
|
||||
docs/textdocs/
|
||||
docs/faq/
|
||||
docs/htmldocs/
|
||||
docs/Registry/
|
3
packaging/Debian/debian/samba-doc.examples
Normal file
3
packaging/Debian/debian/samba-doc.examples
Normal file
@ -0,0 +1,3 @@
|
||||
examples/
|
||||
debian/wins2dns.awk
|
||||
source/script/smbadduser
|
3
packaging/Debian/debian/samba.conffiles
Normal file
3
packaging/Debian/debian/samba.conffiles
Normal file
@ -0,0 +1,3 @@
|
||||
/etc/cron.daily/samba
|
||||
/etc/init.d/samba
|
||||
/etc/logrotate.d/samba
|
16
packaging/Debian/debian/samba.cron.daily
Normal file
16
packaging/Debian/debian/samba.cron.daily
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# cron script to save a backup copy of /etc/samba/smbpasswd in /var/backups.
|
||||
#
|
||||
# Written by Eloy A. Paris <peloy@debian.org> for the Debian project.
|
||||
#
|
||||
|
||||
BAK=/var/backups
|
||||
|
||||
umask 022
|
||||
if cd $BAK; then
|
||||
# Make sure /etc/samba/smbpasswd exists
|
||||
if [ -f /etc/samba/smbpasswd ]; then
|
||||
cmp -s smbpasswd.bak /etc/samba/smbpasswd || cp -p /etc/samba/smbpasswd smbpasswd.bak
|
||||
fi
|
||||
fi
|
11
packaging/Debian/debian/samba.dirs
Normal file
11
packaging/Debian/debian/samba.dirs
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
3
packaging/Debian/debian/samba.docs
Normal file
3
packaging/Debian/debian/samba.docs
Normal file
@ -0,0 +1,3 @@
|
||||
README
|
||||
Roadmap
|
||||
WHATSNEW.txt
|
94
packaging/Debian/debian/samba.init
Normal file
94
packaging/Debian/debian/samba.init
Normal file
@ -0,0 +1,94 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start/stops the Samba daemons (nmbd and smbd).
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DEBIAN_CONFIG=/etc/samba/debian_config
|
||||
|
||||
NMBDPID=/var/state/samba/nmbd.pid
|
||||
SMBDPID=/var/state/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
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting Samba daemons:"
|
||||
|
||||
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
|
||||
|
||||
echo "."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping Samba daemons:"
|
||||
|
||||
echo -n " nmbd"
|
||||
start-stop-daemon --stop --quiet --pidfile $NMBDPID
|
||||
|
||||
echo -n " smbd"
|
||||
start-stop-daemon --stop --quiet --pidfile $SMBDPID
|
||||
|
||||
echo "."
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reloading /etc/samba/smb.conf (smbd only)"
|
||||
start-stop-daemon --stop --signal HUP --pidfile $SMBDPID
|
||||
|
||||
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 "."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
21
packaging/Debian/debian/samba.logrotate
Normal file
21
packaging/Debian/debian/samba.logrotate
Normal file
@ -0,0 +1,21 @@
|
||||
/var/log/samba/log.smbd {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
postrotate
|
||||
killall -q -HUP smbd || true
|
||||
endscript
|
||||
compress
|
||||
notifempty
|
||||
}
|
||||
|
||||
/var/log/samba/log.nmbd {
|
||||
weekly
|
||||
missingok
|
||||
rotate 7
|
||||
postrotate
|
||||
killall -q -HUP nmbd || true
|
||||
endscript
|
||||
compress
|
||||
notifempty
|
||||
}
|
5
packaging/Debian/debian/samba.pamd
Normal file
5
packaging/Debian/debian/samba.pamd
Normal file
@ -0,0 +1,5 @@
|
||||
auth required pam_unix.so nullok
|
||||
account required pam_unix.so
|
||||
session required pam_unix.so
|
||||
password required pam_unix.so
|
||||
|
218
packaging/Debian/debian/samba.postinst
Normal file
218
packaging/Debian/debian/samba.postinst
Normal file
@ -0,0 +1,218 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# continue below
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
exit 0
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 0
|
||||
;;
|
||||
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
|
||||
|
||||
# Starting with Samba 2.0.7-4 the location of 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.
|
||||
if [ -d /var/samba/ ]; then
|
||||
mv /var/samba/* /var/state/samba/
|
||||
rmdir /var/samba/
|
||||
fi
|
||||
|
||||
# Define some constants...
|
||||
DEBIAN_CONFIG=/etc/samba/debian_config
|
||||
CONFIG_VERSION=1
|
||||
|
||||
# Now some variables...
|
||||
samba_configured=no
|
||||
|
||||
|
||||
if [ -f $DEBIAN_CONFIG ]; then
|
||||
. $DEBIAN_CONFIG
|
||||
if [ "$config_version" -ge "$CONFIG_VERSION" ]; then
|
||||
samba_configured=yes
|
||||
fi
|
||||
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!
|
||||
|
||||
# Create Debian specific configuration file
|
||||
echo "config_version=$CONFIG_VERSION" > $DEBIAN_CONFIG
|
||||
|
||||
# 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
|
||||
|
||||
# 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"
|
||||
|
||||
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] "
|
||||
|
||||
read mode
|
||||
test -n "$mode" || mode="I"
|
||||
|
||||
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
|
||||
;;
|
||||
|
||||
*)
|
||||
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
|
||||
|
||||
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] "
|
||||
|
||||
read yn
|
||||
test -n "$yn" || yn="N"
|
||||
|
||||
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
|
||||
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
|
||||
fi
|
||||
else # if (samba_configured) ...
|
||||
# We are here because Samba was already configured...
|
||||
|
||||
# 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.
|
||||
|
||||
# Read current Samba configuration
|
||||
. $DEBIAN_CONFIG
|
||||
|
||||
if [ "$run_mode" = "from_inetd" ]; then
|
||||
update-inetd --enable netbios-ssn
|
||||
update-inetd --enable netbios-ns
|
||||
fi
|
||||
|
||||
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 ""
|
||||
|
||||
/etc/init.d/samba start
|
||||
fi # if (samba_configured) ...
|
||||
|
||||
if test "$1" = configure && dpkg --compare-versions "$2" lt 2.0.0final-2 && [ -f /etc/samba/smbpasswd ]; then
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
# This check is a safety net: the /etc/samba/smbpasswd file must have
|
||||
# permissions 600.
|
||||
if [ -f /etc/samba/smbpasswd ]; then
|
||||
chmod 600 /etc/samba/smbpasswd
|
||||
fi
|
||||
|
||||
# Do the same check for /var/backup/smbpasswd.bak, just in case.
|
||||
if [ -f /var/backups/smbpasswd.bak ]; then
|
||||
chmod 600 /var/backups/smbpasswd.bak
|
||||
fi
|
||||
|
||||
exit 0
|
26
packaging/Debian/debian/samba.postrm
Normal file
26
packaging/Debian/debian/samba.postrm
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
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 log files
|
||||
rm -f /var/log/[ns]mb*
|
||||
|
||||
# Remove NetBIOS entries from /etc/inetd.conf
|
||||
update-inetd --remove netbios-ssn
|
||||
update-inetd --remove netbios-ns
|
||||
else
|
||||
# Not purging, do not remove NetBIOS entries from /etc/inetd.conf
|
||||
update-inetd --disable netbios-ssn
|
||||
update-inetd --disable netbios-ns
|
||||
fi
|
47
packaging/Debian/debian/samba.preinst
Normal file
47
packaging/Debian/debian/samba.preinst
Normal file
@ -0,0 +1,47 @@
|
||||
#!/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
|
74
packaging/Debian/debian/samba.prerm
Normal file
74
packaging/Debian/debian/samba.prerm
Normal file
@ -0,0 +1,74 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Pre-removal script for the Samba package for Debian GNU/Linux.
|
||||
#
|
||||
# Written by Eloy A. Paris for the Debian project.
|
||||
#
|
||||
|
||||
DEBIAN_CONFIG=/etc/samba/debian_config
|
||||
|
||||
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
|
||||
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
|
||||
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
|
130
packaging/Debian/debian/sambaconfig
Normal file
130
packaging/Debian/debian/sambaconfig
Normal file
@ -0,0 +1,130 @@
|
||||
#!/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
|
40
packaging/Debian/debian/sambaconfig.8
Normal file
40
packaging/Debian/debian/sambaconfig.8
Normal file
@ -0,0 +1,40 @@
|
||||
.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>)
|
7
packaging/Debian/debian/scripts/patch-source
Executable file
7
packaging/Debian/debian/scripts/patch-source
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
for patch in debian/patches/*.patch; do
|
||||
patch -p1 < $patch
|
||||
done
|
||||
|
||||
exit 0
|
7
packaging/Debian/debian/scripts/unpatch-source
Executable file
7
packaging/Debian/debian/scripts/unpatch-source
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
for patch in debian/patches/*.patch; do
|
||||
patch -p1 -R < $patch
|
||||
done
|
||||
|
||||
exit 0
|
147
packaging/Debian/debian/smb.conf
Normal file
147
packaging/Debian/debian/smb.conf
Normal file
@ -0,0 +1,147 @@
|
||||
;
|
||||
; /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.
|
||||
;
|
||||
|
||||
[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
|
||||
|
||||
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
|
||||
|
||||
; 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;
|
||||
|
||||
; 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
|
||||
|
||||
; 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
|
||||
|
||||
; 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
|
||||
|
||||
; If this server is not the WINS server then specify who is it and uncomment
|
||||
; next line.
|
||||
; wins server = 172.16.0.10
|
||||
|
||||
; 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
|
||||
|
||||
; What naming service and in what order should we use to resolve host names
|
||||
; to IP addresses
|
||||
name resolve order = lmhosts host wins bcast
|
||||
|
||||
; This will prevent nmbd to search for NetBIOS names through DNS.
|
||||
dns proxy = no
|
||||
|
||||
; 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
|
||||
|
||||
; 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.
|
||||
; 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
|
||||
|
||||
[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
|
||||
|
||||
; 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 mask = 0700
|
||||
|
||||
[printers]
|
||||
comment = All Printers
|
||||
browseable = no
|
||||
path = /tmp
|
||||
printable = yes
|
||||
public = no
|
||||
writable = no
|
||||
create mode = 0700
|
||||
|
||||
; 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
|
||||
;
|
||||
; preexec = /bin/mount /cdrom
|
||||
; postexec = /bin/umount /cdrom
|
||||
|
9
packaging/Debian/debian/smbclient.files
Normal file
9
packaging/Debian/debian/smbclient.files
Normal file
@ -0,0 +1,9 @@
|
||||
usr/bin/smbclient
|
||||
usr/bin/smbtar
|
||||
usr/bin/rpcclient
|
||||
usr/bin/smbspool
|
||||
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/lib/cups/backend/smb
|
10
packaging/Debian/debian/smbfs.files
Normal file
10
packaging/Debian/debian/smbfs.files
Normal file
@ -0,0 +1,10 @@
|
||||
sbin/mount.smbfs
|
||||
sbin/mount.smb
|
||||
usr/bin/smbmount
|
||||
usr/bin/smbumount
|
||||
usr/bin/smbmnt
|
||||
usr/share/man/man8/smbmount.8
|
||||
usr/share/man/man8/smbumount.8
|
||||
usr/share/man/man8/smbmnt.8
|
||||
usr/share/man/man8/mount.smb.8
|
||||
usr/share/man/man8/mount.smbfs.8
|
5
packaging/Debian/debian/smbfs.suid
Normal file
5
packaging/Debian/debian/smbfs.suid
Normal file
@ -0,0 +1,5 @@
|
||||
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
|
2
packaging/Debian/debian/smbwrapper.dirs
Normal file
2
packaging/Debian/debian/smbwrapper.dirs
Normal file
@ -0,0 +1,2 @@
|
||||
usr/bin
|
||||
usr/share/samba
|
2
packaging/Debian/debian/smbwrapper.docs
Normal file
2
packaging/Debian/debian/smbwrapper.docs
Normal file
@ -0,0 +1,2 @@
|
||||
source/smbwrapper/README
|
||||
source/smbwrapper/PORTING
|
1
packaging/Debian/debian/smbwrapper.files
Normal file
1
packaging/Debian/debian/smbwrapper.files
Normal file
@ -0,0 +1 @@
|
||||
usr/bin/smbsh
|
2
packaging/Debian/debian/swat.dirs
Normal file
2
packaging/Debian/debian/swat.dirs
Normal file
@ -0,0 +1,2 @@
|
||||
usr/sbin
|
||||
usr/share/samba/swat
|
1
packaging/Debian/debian/swat.docs
Normal file
1
packaging/Debian/debian/swat.docs
Normal file
@ -0,0 +1 @@
|
||||
swat/README
|
2
packaging/Debian/debian/swat.files
Normal file
2
packaging/Debian/debian/swat.files
Normal file
@ -0,0 +1,2 @@
|
||||
usr/sbin/swat
|
||||
usr/share/man/man8/swat.8
|
23
packaging/Debian/debian/swat.postinst
Normal file
23
packaging/Debian/debian/swat.postinst
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "$0: Unknown action \"$1\""
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Set up swat, turned off by default.
|
||||
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
|
19
packaging/Debian/debian/swat.postrm
Normal file
19
packaging/Debian/debian/swat.postrm
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
update-inetd --remove '/usr/sbin/swat$'
|
||||
exit 0
|
||||
;;
|
||||
remove)
|
||||
;;
|
||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
*)
|
||||
echo "$0: unknown action \"$1\""
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
38
packaging/Debian/debian/wins2dns.awk
Normal file
38
packaging/Debian/debian/wins2dns.awk
Normal file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/awk -f
|
||||
#
|
||||
# Date: Wed, 26 Aug 1998 10:37:39 -0600 (MDT)
|
||||
# From: Jason Gunthorpe <jgg@deltatee.com>
|
||||
# To: samba@packages.debian.org
|
||||
# Subject: Nifty samba script
|
||||
#
|
||||
# Here is a really nifty script I just wrote for samba, it takes the wins
|
||||
# database in /var/samba/wins and writes out two dns files for it. In this
|
||||
# way network wide wins clients can get into the dns for use by unix
|
||||
# machines.
|
||||
#
|
||||
# Perhaps this could be included in /usr/doc/examples or somesuch.
|
||||
#
|
||||
|
||||
BEGIN {
|
||||
FS="#|\"";
|
||||
FORWARD="/tmp/wins.hosts"
|
||||
REVERSE="/tmp/wins.rev"
|
||||
DOMAIN="ven.ra.rockwell.com"
|
||||
}
|
||||
$3 == "00" {
|
||||
split($4,a," " );
|
||||
split(a[2],b,".");
|
||||
while (sub(" ","-",$2));
|
||||
$2=tolower($2);
|
||||
if (b[1] == "255")
|
||||
next;
|
||||
if (length($2) >= 8)
|
||||
print $2"\ta\t"a[2] > FORWARD
|
||||
else
|
||||
print $2"\t\ta\t"a[2] > FORWARD
|
||||
print b[4]"."b[3]"\t\tptr\t"$2"."DOMAIN"." > REVERSE
|
||||
}
|
||||
END {
|
||||
system("echo killall -HUP named");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user