diff options
author | Jeremy Allison <jra@samba.org> | 1999-01-14 19:44:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1999-01-14 19:44:21 +0000 |
commit | fc4eb8c9160ceab8895e46fd091db3ddcaa85cf4 (patch) | |
tree | c027017d1a0d6539dae3b76d89da9126e0e53c7d | |
parent | 2a086620807cc5e633b9c43cef87b1b7ee0d4c11 (diff) | |
download | samba-fc4eb8c9160ceab8895e46fd091db3ddcaa85cf4.tar.gz samba-fc4eb8c9160ceab8895e46fd091db3ddcaa85cf4.tar.xz samba-fc4eb8c9160ceab8895e46fd091db3ddcaa85cf4.zip |
Adding Volkers SuSE 6.0 pacakging files for 2.0.0.
Jermey.
-rw-r--r-- | packaging/SuSE/6.0/samba-2.0.0.dif | 162 | ||||
-rw-r--r-- | packaging/SuSE/6.0/samba.spec | 172 |
2 files changed, 334 insertions, 0 deletions
diff --git a/packaging/SuSE/6.0/samba-2.0.0.dif b/packaging/SuSE/6.0/samba-2.0.0.dif new file mode 100644 index 00000000000..ae22bcde41e --- /dev/null +++ b/packaging/SuSE/6.0/samba-2.0.0.dif @@ -0,0 +1,162 @@ +--- Makefile.Linux ++++ Makefile.Linux 1999/01/14 08:41:28 +@@ -0,0 +1,48 @@ ++# ++# ++# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux ++# ++# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany. ++# ++# Please send bug-fixes or comments to feedback@suse.de. ++# ++# Author: Florian La Roche <florian@suse.de> ++# Volker Lendecke <vl@suse.de> ++# ++# ++ ++doc=/usr/doc/packages/samba ++ ++compile: ++ (cd source ; \ ++ ./configure --prefix=/usr --libdir=/etc \ ++ --with-privatedir=/etc --localstatedir=/var/log \ ++ --with-swatdir=/usr/lib/samba/swat ) ++ make LOCKDIR=/var/lock/samba SBINDIR=/usr/sbin \ ++ CODEPAGEDIR=/usr/lib/samba/codepages -C source ++ ++install: ++ mkdir -p /usr/lib/samba ++ make install LOCKDIR=/var/lock/samba SBINDIR=/usr/sbin \ ++ CODEPAGEDIR=/usr/lib/samba/codepages -C source ++ mkdir -p $(doc) ++ cp -a docs/* $(doc) ++ rm -rf $(doc)/*.[0-9] ++ cp -R examples $(doc) ++ chmod 644 `find $(doc) -type f` ++ chmod 755 `find $(doc) -type d` ++ mkdir -p /usr/lib/samba/scripts ++ install -m 644 -o root -g root source/script/mksmbpasswd.sh \ ++ /usr/sbin/mksmbpasswd.sh ++ install -m 644 -o root -g root source/script/updatesmbpasswd.sh \ ++ /usr/sbin/updatesmbpasswd.sh ++ install -m 644 smb.conf /etc/smb.conf ++ install -m 644 lmhosts /etc/lmhosts ++ install -m 600 smbpasswd -o root -g root /etc/smbpasswd ++ install rc /sbin/init.d/smb ++ ln -sf ../smb /sbin/init.d/rc2.d/S20smb ++ ln -sf ../smb /sbin/init.d/rc2.d/K20smb ++ ln -sf ../smb /sbin/init.d/rc3.d/S20smb ++ ln -sf ../smb /sbin/init.d/rc3.d/K20smb ++ mkdir -p /var/adm/fillup-templates ++ cp rc.config.samba /var/adm/fillup-templates +--- lmhosts ++++ lmhosts 1999/01/14 08:41:28 +@@ -0,0 +1,8 @@ ++# This file provides the same function that the ++# lmhosts file does for Windows. ++# It provides another way to map netbios names to ip addresses. ++# See the section on 'name resolve order' in the manual page to ++# smb.conf for more information. ++ ++# Sample entry: ++# 192.168.1.1 samba +--- rc ++++ rc 1999/01/14 08:41:28 +@@ -0,0 +1,32 @@ ++#! /bin/sh ++# Copyright (c) 1996 StarDivision GmbH. All rights reserved. ++# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved. ++# ++# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de> ++# Florian La Roche, <florian@suse.de> ++# Volker Lendecke, <vl@suse.de> ++# ++ ++. /etc/rc.config ++ ++test "$START_SMB" = "yes" || exit 0 ++ ++case "$1" in ++ start) ++ echo -n "Starting SMB services." ++ /usr/sbin/nmbd -D ++ /usr/sbin/smbd -D ++ echo ++ ;; ++ stop) ++ echo -n "Shutting down SMB services." ++ killproc -TERM /usr/sbin/nmbd ++ killproc -TERM /usr/sbin/smbd ++ echo ++ ;; ++ *) ++ echo "Usage: $0 {start|stop}" ++ exit 1 ++esac ++ ++exit 0 +--- rc.config.samba ++++ rc.config.samba 1999/01/14 08:41:28 +@@ -0,0 +1,5 @@ ++# ++# start samba? ("yes" or "no") ++# Windows 95 / NT - File- and Printservices ++# ++START_SMB="no" +--- smb.conf ++++ smb.conf 1999/01/14 08:41:28 +@@ -0,0 +1,48 @@ ++[global] ++ workgroup = arbeitsgruppe ++ guest account = nobody ++ keep alive = 30 ++ os level = 2 ++ security = user ++ printing = bsd ++ printcap name = /etc/printcap ++ load printers = yes ++ ++; Please uncomment the following entry and replace the ++; ip number and netmask with the correct numbers for ++; your ethernet interface. ++; interfaces = 192.168.1.1/255.255.255.0 ++ ++; If you want Samba to act as a wins server, please set ++; 'wins support = yes' ++ wins support = no ++ ++; If you want Samba to use an existing wins server, ++; please uncomment the following line and replace ++; the dummy with the wins server's ip number. ++; wins server = 192.168.1.1 ++ ++[homes] ++ comment = Heimatverzeichnis ++ browseable = no ++ read only = no ++ create mode = 0750 ++ ++; The following share gives all users access to the Server's CD drive, ++; assuming it is mounted under /cd. To enable this share, please remove ++; the semicolons before the lines ++; ++; [cdrom] ++; comment = Linux CD-ROM ++; path = /cd ++; read only = yes ++; locking = no ++ ++[printers] ++ comment = All Printers ++ browseable = no ++ printable = yes ++ public = no ++ read only = yes ++ create mode = 0700 ++ directory = /tmp +--- smbpasswd ++++ smbpasswd 1999/01/14 08:41:28 +@@ -0,0 +1,3 @@ ++# Sample smbpasswd file. ++# To use this, set 'encrypt passwords = yes' in the [global]-section ++# of /etc/smb.conf diff --git a/packaging/SuSE/6.0/samba.spec b/packaging/SuSE/6.0/samba.spec new file mode 100644 index 00000000000..697f1b482c8 --- /dev/null +++ b/packaging/SuSE/6.0/samba.spec @@ -0,0 +1,172 @@ +# +# spec file for package samba (Version 1.9.18p10) +# +# Copyright (c) 1998 SuSE GmbH Nuernberg, Germany. +# +# please send bugfixes or comments to feedback@suse.de. +# + +# neededforbuild automake + +Vendor: SuSE GmbH, Nuernberg, Germany +Distribution: SuSE Linux 6.0 (i386) +Name: samba +Release: 17 +Copyright: 1992-95 Andrew Tridgell, Karl Auer, Jeremy Allison +Group: unsorted +Provides: samba smbfs + + +Autoreqprov: on +Packager: feedback@suse.de + +Version: 2.0.0 +Summary: Samba is a file server for Unix, similar to LanManager. +Source: samba-2.0.0.tar.gz +Source1: smbfs-2.0.2.tar.gz +Source2: smbfs-2.1.1.tgz +Patch: samba-2.0.0.dif +Patch1: smbfs-2.0.2.dif +Patch2: smbfs-2.1.0.dif +%prep +rm -rf smbfs-2.0.2 smbfs-2.1.0 +%setup -b1 -b2 +%patch +cd ../smbfs-2.0.2 +%patch -P 1 +cd ../smbfs-2.1.0 +%patch -P 2 +%build +case `/usr/share/automake/config.guess` in + i?86-pc-linux-gnu) + export EXTRA_LIBS="-lcrypt" + ;; + *) + export EXTRA_LIBS="" + ;; +esac +make -f Makefile.Linux compile +cd ../smbfs-2.0.2 +make -f Makefile.Linux compile +%install +make -f Makefile.Linux install +cd ../smbfs-2.0.2 +make -f Makefile.Linux install +ln -sf ../../sbin/init.d/smb /usr/sbin/rcsmb +Check +%post +echo "Updating etc/rc.config..." +if [ -x bin/fillup ] ; then + bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba +else + echo "ERROR: fillup not found. This should not happen. Please compare" + echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and" + echo "update by hand." +fi +if grep -q '^[#[:space:]]*swat' etc/inetd.conf ; then + echo /etc/inetd.conf is up to date +else + echo updating inetd.conf + cat >> etc/inetd.conf << EOF + +# swat is the Samba Web Administration Tool +# swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat +EOF +fi +if grep -q '^swat' etc/services ; then + echo /etc/services is up to date +else + echo updating services + cat >> etc/services << EOF +swat 901/tcp # swat is the Samba Web Administration Tool +EOF +fi +%files +%docdir /usr/doc/packages/samba +/usr/doc/packages/samba +%config /etc/smb.conf +%config /etc/lmhosts +%config /etc/smbpasswd +/usr/lib/samba +/sbin/init.d/rc2.d/K20smb +/sbin/init.d/rc2.d/S20smb +/sbin/init.d/rc3.d/K20smb +/sbin/init.d/rc3.d/S20smb +%config /sbin/init.d/smb +/usr/bin/smbclient +/usr/bin/testparm +/usr/bin/testprns +/usr/bin/smbrun +/usr/bin/smbstatus +/usr/bin/rpcclient +/usr/bin/smbpasswd +/usr/bin/make_smbcodepage +/usr/bin/nmblookup +/usr/bin/make_printerdef +/usr/bin/smbtar +/usr/bin/addtosmbpass +/usr/bin/convert_smbpasswd +/usr/bin/smbmount +/usr/bin/smbumount +%doc /usr/man/man5/lmhosts.5.gz +%doc /usr/man/man1/make_smbcodepage.1.gz +%doc /usr/man/man8/nmbd.8.gz +%doc /usr/man/man1/nmblookup.1.gz +%doc /usr/man/man7/samba.7.gz +%doc /usr/man/man5/smb.conf.5.gz +%doc /usr/man/man1/smbclient.1.gz +%doc /usr/man/man8/smbd.8.gz +%doc /usr/man/man8/smbmnt.8.gz +%doc /usr/man/man8/smbmount.8.gz +%doc /usr/man/man5/smbpasswd.5.gz +%doc /usr/man/man8/smbpasswd.8.gz +%doc /usr/man/man1/smbrun.1.gz +%doc /usr/man/man1/smbstatus.1.gz +%doc /usr/man/man1/smbtar.1.gz +%doc /usr/man/man8/smbumount.8.gz +%doc /usr/man/man8/swat.8.gz +%doc /usr/man/man1/testparm.1.gz +%doc /usr/man/man1/testprns.1.gz +/usr/sbin/nmbd +/usr/sbin/smbd +/usr/sbin/swat +/usr/sbin/mksmbpasswd.sh +/usr/sbin/updatesmbpasswd.sh +/usr/sbin/rcsmb +/var/adm/fillup-templates/rc.config.samba +%description +Samba is a suite of programs which work together to allow clients to +access Unix filespace and printers via the SMB protocol (Seerver Message +Block). +CAUTION: The samba daemons are started by the init script +/sbin/init.d/samba, not by inetd. The entries for /usr/sbin/smbd +and /usr/sbin/nmbd must be commented out in /etc/inetd.conf. +In practice, this means that you can redirect disks and printers to +Unix disks and printers from LAN Manager clients, Windows for +Workgroups 3.11 clients, Windows'95 clients, Windows NT clients +and OS/2 clients. There is +also a Unix client program supplied as part of the suite which allows +Unix users to use an ftp-like interface to access filespace and +printers on any other SMB server. +Samba includes the following programs (in summary): +* smbd, the SMB server. This handles actual connections from clients. +* nmbd, the Netbios name server, which helps clients locate servers. +* smbclient, the Unix-hosted client program. +* smbrun, a little 'glue' program to help the server run external +programs. +* testprns, a program to test server access to printers. +* testparm, a program to test the Samba configuration file for correctness. +* smb.conf, the Samba configuration file. +* smbprint, a sample script to allow a Unix host to use smbclient +to print to an SMB server. +The suite is supplied with full source and is GPLed. +This package expects its config file under /etc/smb.conf . +Documentation: /usr/doc/packages/samba + +Authors: +-------- + Andrew Tridgell <Andrew.Tridgell@anu.edu.au> + Karl Auer <Karl.Auer@anu.edu.au> + Jeremy Allison <jeremy@netcom.com> + + |