JHT ===> Getting ready for relase of 1.9.16p11 RedHat RPMS
authorSamba Release Account <samba-bugs@samba.org>
Tue, 4 Feb 1997 12:06:15 +0000 (12:06 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Tue, 4 Feb 1997 12:06:15 +0000 (12:06 +0000)
(This used to be commit a64064cf3086ff5cfba66145539abfaa36c9e323)

examples/redhat/samba-1.9.16p11.spec [moved from examples/redhat/samba-1.9.16p10.spec with 81% similarity]
examples/redhat/samba.log [new file with mode: 0644]

similarity index 81%
rename from examples/redhat/samba-1.9.16p10.spec
rename to examples/redhat/samba-1.9.16p11.spec
index 6ac46d585a0e400cc5bbcea706d93ac389dcb384..7ced0a658fe8844da8e813c4b0b0e198c44357c3 100644 (file)
@@ -1,10 +1,10 @@
 Summary: SMB client and server
 Name: samba
-Version: 1.9.16p10
-Release: 1
+Version: 1.9.16p11
+Release: 2
 Copyright: GPL
 Group: Networking
-Source: ftp://samba.anu.edu.au/pub/samba/samba-1.9.16p10.tar.gz
+Source: ftp://samba.anu.edu.au/pub/samba/samba-1.9.16p11.tar.gz
 Patch: samba-make.patch
 Patch2: samba-axp.patch
 Packager: John H Terpstra [Samba-Team] <jht@aquasoft.com.au>
@@ -44,17 +44,23 @@ 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
+mkdir -p /var/lock/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
+install -m 644 -o 0 -g 0 examples/redhat/samba.log /etc/logrotate.d/samba
 
 %post
 /sbin/pamconfig --add --service=samba --password=none --sesslist=none
 
+if [ ! -f /var/log/samba ]; then
+       touch /var/log/samba
+       chmod 600 /var/log/samba
+fi
+
 %postun
 if [ "$1" = 0 ] ; then
   /sbin/pamconfig --remove --service=samba --password=none --sesslist=none
@@ -77,15 +83,17 @@ fi
 /usr/bin/smbpasswd
 /usr/bin/smbtar
 %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
+%config /etc/smb.conf.sampl
+%config /etc/rc.d/init.d/smb
+%config /etc/rc.d/rc3.d/S91smb
+%config /etc/rc.d/rc0.d/K35smb
+%config /etc/rc.d/rc1.d/K35smb
+%config /etc/rc.d/rc6.d/K35smb
+%config /etc/logrotate.d/samba
 /usr/man/man1/smbstatus.1
 /usr/man/man1/smbclient.1
 /usr/man/man1/smbrun.1
+/usr/man/man1/smbtar.1
 /usr/man/man1/testparm.1
 /usr/man/man1/testprns.1
 /usr/man/man5/smb.conf.5
diff --git a/examples/redhat/samba.log b/examples/redhat/samba.log
new file mode 100644 (file)
index 0000000..2837b45
--- /dev/null
@@ -0,0 +1,17 @@
+/var/log/samba {
+    postrotate
+       /usr/bin/killall -HUP smbd
+    endrotate
+}
+
+/var/log/samba.nmb {
+    postrotate
+       /usr/bin/killall -HUP nmbd
+    endrotate
+}
+
+/var/log/samba.smb {
+    postrotate
+       /usr/bin/killall -HUP smbd
+    endrotate
+}