summaryrefslogtreecommitdiffstats
path: root/packaging/SuSE/6.0/samba-2.0.0.dif
blob: ae22bcde41e31d0a6fd1cebf9e00039be35a0805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
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