summaryrefslogtreecommitdiff
path: root/examples/redhat
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-01-02 23:27:52 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-01-02 23:27:52 +0000
commitec696ace9abd2ccd242d8fc84771595ebd1340cf (patch)
tree9e1cb2873eb9460c948ca3652c227d6614b43ee5 /examples/redhat
parent4bf19abcad1dde50a930a7d8feab1a6808a954ed (diff)
downloadsamba-ec696ace9abd2ccd242d8fc84771595ebd1340cf.tar.gz
samba-ec696ace9abd2ccd242d8fc84771595ebd1340cf.tar.bz2
samba-ec696ace9abd2ccd242d8fc84771595ebd1340cf.zip
spec files needed for redhat rpm building
(This used to be commit 3ad345fa605c2b7d346cc3fab37175fb69eff846)
Diffstat (limited to 'examples/redhat')
-rw-r--r--examples/redhat/samba-1.9.16p9.spec94
-rw-r--r--examples/redhat/samba-make.patch135
-rw-r--r--examples/redhat/smb.conf109
-rwxr-xr-xexamples/redhat/smb.init32
4 files changed, 370 insertions, 0 deletions
diff --git a/examples/redhat/samba-1.9.16p9.spec b/examples/redhat/samba-1.9.16p9.spec
new file mode 100644
index 0000000000..29ad0e5286
--- /dev/null
+++ b/examples/redhat/samba-1.9.16p9.spec
@@ -0,0 +1,94 @@
+Summary: SMB client and server
+Name: samba
+Version: 1.9.16p9
+Release: 2
+Copyright: GPL
+Group: Networking
+Source: ftp://samba.anu.edu.au/pub/samba/samba-1.9.16p9.tar.gz
+Patch: samba-make.patch
+Packager: John H Terpstra [Samba-Team] <jht@aquasoft.com.au>
+Requires: pamconfig
+
+%description
+Samba provides an SMB server which can be used to provide network
+services to SMB (sometimes called "Lan Manager") clients, including
+various versions of MS Windows, OS/2, and other Linux machines.
+Samba also provides some SMB clients, which complement the built-in
+SMB filesystem in Linux.
+
+Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need
+NetBEUI (Microsoft Raw NetBIOS frame) protocol.
+
+%prep
+%setup
+%patch -p1
+
+%ifarch axp
+%patch2 -p1
+%endif
+
+%build
+cd source
+make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+
+%install
+cd source
+make install
+cd ..
+install -m644 examples/simple/smb.conf /etc/smb.conf.sampl
+install -m644 examples/redhat/smb.conf /etc/smb.conf
+install -m755 examples/redhat/smb.init /etc/rc.d/init.d/smb
+ln -sf ../init.d/smb /etc/rc.d/rc3.d/S91smb
+ln -sf ../init.d/smb /etc/rc.d/rc0.d/K35smb
+ln -sf ../init.d/smb /etc/rc.d/rc6.d/K35smb
+ln -sf ../init.d/smb /etc/rc.d/rc1.d/K35smb
+mkdir -p /home/samba
+mkdir -p /var/log/samba
+chown root.nobody /home/samba
+chmod 775 /home/samba
+
+strip /usr/sbin/smbd /usr/bin/smbclient /usr/sbin/nmbd /usr/bin/testparm \
+ /usr/bin/testprns /usr/bin/smbrun /usr/bin/smbstatus \
+ /usr/bin/nmblookup /usr/bin/smbpasswd
+
+%post
+/sbin/pamconfig --add --service=samba --password=none --sesslist=none
+
+%postun
+if [ "$1" = 0 ] ; then
+ /sbin/pamconfig --remove --service=samba --password=none --sesslist=none
+fi
+
+%files
+%doc docs/*.txt docs/INSTALL.sambatar docs/MIRRORS docs/PROJECTS
+%doc docs/README.DCEDFS docs/README.jis docs/README.sambatar
+%doc docs/SMBTAR.notes docs/THANKS docs/announce docs/history
+%doc docs/samba.faq docs/samba.lsm docs/wfw_slip.htm
+%doc examples
+/usr/sbin/smbd
+/usr/bin/smbclient
+/usr/sbin/nmbd
+/usr/bin/testparm
+/usr/bin/testprns
+/usr/bin/smbrun
+/usr/bin/smbstatus
+/usr/bin/nmblookup
+/usr/bin/smbpasswd
+%config /etc/smb.conf
+/etc/smb.conf.sampl
+/etc/rc.d/init.d/smb
+/etc/rc.d/rc3.d/S91smb
+/etc/rc.d/rc0.d/K35smb
+/etc/rc.d/rc1.d/K35smb
+/etc/rc.d/rc6.d/K35smb
+/usr/man/man1/smbstatus.1
+/usr/man/man1/smbclient.1
+/usr/man/man1/smbrun.1
+/usr/man/man1/testparm.1
+/usr/man/man1/testprns.1
+/usr/man/man5/smb.conf.5
+/usr/man/man7/samba.7
+/usr/man/man8/smbd.8
+/usr/man/man8/nmbd.8
+%dir /home/samba
+%dir /var/lock/samba
diff --git a/examples/redhat/samba-make.patch b/examples/redhat/samba-make.patch
new file mode 100644
index 0000000000..c34990f62c
--- /dev/null
+++ b/examples/redhat/samba-make.patch
@@ -0,0 +1,135 @@
+*** samba-1.9.16p9/source/Makefile.orig Thu Jan 2 15:46:46 1997
+--- samba-1.9.16p9/source/Makefile Thu Jan 2 15:59:09 1997
+***************
+*** 5,20 ****
+
+ # The base manpages directory to put the man pages in
+ # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
+! MANDIR = /usr/local/man
+
+ # The directories to put things in. If you use multiple
+ # architectures or share the samba binaries across NFS then
+ # you will probably want to change this layout.
+! BASEDIR = /usr/local/samba
+! BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/bin
+! LIBDIR = $(BASEDIR)/lib
+! VARDIR = $(BASEDIR)/var
+
+ # The permissions to give the executables
+ INSTALLPERMS = 0755
+--- 5,20 ----
+
+ # The base manpages directory to put the man pages in
+ # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
+! MANDIR = /usr/man
+
+ # The directories to put things in. If you use multiple
+ # architectures or share the samba binaries across NFS then
+ # you will probably want to change this layout.
+! BASEDIR = /
+! BINDIR = $(BASEDIR)usr/bin
+! SBINDIR = $(BASEDIR)usr/sbin
+! LIBDIR = /etc
+! VARDIR = /var
+
+ # The permissions to give the executables
+ INSTALLPERMS = 0755
+***************
+*** 23,35 ****
+ # add -DSYSLOG for syslog support
+ # RPM_OPT_FLAGS is needed when building an RPM distribution package
+ # for RedHat Linux.
+! # FLAGS1 = $(RPM_OPT_FLAGS)
+ FLAGS1 = -O
+ LIBS1 =
+
+ # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
+ # use cc, instead you will have to use gcc.
+! # CC = gcc
+
+ # This may help with some versions of make
+ SHELL = /bin/sh
+--- 23,35 ----
+ # add -DSYSLOG for syslog support
+ # RPM_OPT_FLAGS is needed when building an RPM distribution package
+ # for RedHat Linux.
+! FLAGS1 = $(RPM_OPT_FLAGS)
+ FLAGS1 = -O
+ LIBS1 =
+
+ # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
+ # use cc, instead you will have to use gcc.
+! CC = gcc
+
+ # This may help with some versions of make
+ SHELL = /bin/sh
+***************
+*** 42,54 ****
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log.smb
+! NMBLOGFILE = $(VARDIR)/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/locks
+
+ # set this to the default group you want your machine to appear in
+ # for browsing. This can also be set in nmbd (see nmbd(8))
+--- 42,54 ----
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log/log.smb
+! NMBLOGFILE = $(VARDIR)/log/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/lock/samba
+
+ # set this to the default group you want your machine to appear in
+ # for browsing. This can also be set in nmbd (see nmbd(8))
+***************
+*** 71,78 ****
+
+ # This is for PAM authentication. RedHat Linux uses PAM.
+ # If you use PAM, then uncomment the following lines:
+! # PAM_FLAGS = -DUSE_PAM -DNO_CRYPT
+! # PAM_LIBS = -ldl -lpam
+
+ # This is for AFS authentication. If you use AFS then set AFS_BASE
+ # according to your system layout, and uncomment the other lines as well.
+--- 71,78 ----
+
+ # This is for PAM authentication. RedHat Linux uses PAM.
+ # If you use PAM, then uncomment the following lines:
+! PAM_FLAGS = -DUSE_PAM -DNO_CRYPT
+! PAM_LIBS = -ldl -lpam
+
+ # This is for AFS authentication. If you use AFS then set AFS_BASE
+ # according to your system layout, and uncomment the other lines as well.
+***************
+*** 178,185 ****
+
+ # Use this for Linux without shadow passwords
+ # contributed by Andrew.Tridgell@anu.edu.au
+! # FLAGSM = -DLINUX
+! # LIBSM =
+
+ # Use this for Linux with shadow passwords and quota
+ # contributed by xeno@mix.hive.no
+--- 178,187 ----
+
+ # Use this for Linux without shadow passwords
+ # contributed by Andrew.Tridgell@anu.edu.au
+! # AXPROC defines DEC Alpha Processor
+! # FLAGSM = -DLINUX -DAXPROC
+! FLAGSM = -DLINUX
+! LIBSM =
+
+ # Use this for Linux with shadow passwords and quota
+ # contributed by xeno@mix.hive.no
diff --git a/examples/redhat/smb.conf b/examples/redhat/smb.conf
new file mode 100644
index 0000000000..e6b268cd00
--- /dev/null
+++ b/examples/redhat/smb.conf
@@ -0,0 +1,109 @@
+
+; The global setting for a RedHat default install
+; Make sure and restart the server after making changes to this file, ex:
+; /etc/rc.d/init.d/smb stop
+; /etc/rc.d/init.d/smb start
+
+[global]
+ workgroup = WORKGROUP
+ printing = bsd
+ printcap name = /etc/printcap
+ load printers = yes
+; Uncomment this if you want a guest account
+; guest account = pcguest
+ log file = /var/log/samba-log.%m
+ lock directory = /var/lock/samba
+ share modes = yes
+
+[homes]
+ comment = Home Directories
+ browseable = no
+ read only = no
+ create mode = 0750
+
+[printers]
+ comment = All Printers
+ browseable = no
+ printable = yes
+ public = no
+ writable = no
+ create mode = 0700
+
+;[tmp]
+; comment = Temporary file space
+; path = /tmp
+; read only = no
+; public = yes
+
+; A publicly accessible directory, but read only, except for people in
+; the staff group
+[public]
+ comment = Public Stuff
+ path = /home/samba
+ public = yes
+ writable = yes
+ printable = no
+ write list = @staff
+
+; Other examples.
+;
+; A private printer, usable only by fred. Spool data will be placed in fred's
+; home directory. Note that fred must have write access to the spool directory,
+; wherever it is.
+;[fredsprn]
+; comment = Fred's Printer
+; valid users = fred
+; path = /homes/fred
+; printer = freds_printer
+; public = no
+; writable = no
+; printable = yes
+;
+; A private directory, usable only by fred. Note that fred requires write
+; access to the directory.
+;[fredsdir]
+; comment = Fred's Service
+; path = /usr/somewhere/private
+; valid users = fred
+; public = no
+; writable = yes
+; printable = no
+;
+; a service which has a different directory for each machine that connects
+; this allows you to tailor configurations to incoming machines. You could
+; also use the %u option to tailor it by user name.
+; The %m gets replaced with the machine name that is connecting.
+;[pchome]
+; comment = PC Directories
+; path = /usr/pc/%m
+; public = no
+; writeable = yes
+;
+;
+; A publicly accessible directory, read/write to all users. Note that all files
+; created in the directory by users will be owned by the default user, so
+; any user with access can delete any other user's files. Obviously this
+; directory must be writable by the default user. Another user could of course
+; be specified, in which case all files would be owned by that user instead.
+;[public]
+; path = /usr/somewhere/else/public
+; public = yes
+; only guest = yes
+; writable = yes
+; printable = no
+;
+;
+; The following two entries demonstrate how to share a directory so that two
+; users can place files there that will be owned by the specific users. In this
+; setup, the directory should be writable by both users and should have the
+; sticky bit set on it to prevent abuse. Obviously this could be extended to
+; as many users as required.
+;[myshare]
+; comment = Mary's and Fred's stuff
+; path = /usr/somewhere/shared
+; valid users = mary fred
+; public = no
+; writable = yes
+; printable = no
+; create mask = 0765
+
diff --git a/examples/redhat/smb.init b/examples/redhat/smb.init
new file mode 100755
index 0000000000..ab047e55b4
--- /dev/null
+++ b/examples/redhat/smb.init
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Starting SMB services: "
+ daemon smbd -D
+ daemon nmbd -D
+ echo
+ touch /var/lock/subsys/smb
+ ;;
+ stop)
+ echo -n "Shutting down SMB services: "
+ killproc smbd
+ killproc nmbd
+ rm -f /var/lock/subsys/smb
+ echo ""
+ ;;
+ *)
+ echo "Usage: smb {start|stop}"
+ exit 1
+esac
+