summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-01-18 22:01:18 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-01-18 22:01:18 +0000
commit528f34f7c10a489f8c8f0c74c461f59d6a4d6af2 (patch)
treedb7d9360f1cdcb0e2d55b764db414be08aed47fe /net-fs
parent*** empty log message *** (diff)
downloadhistorical-528f34f7c10a489f8c8f0c74c461f59d6a4d6af2.tar.gz
historical-528f34f7c10a489f8c8f0c74c461f59d6a4d6af2.tar.bz2
historical-528f34f7c10a489f8c8f0c74c461f59d6a4d6af2.zip
samba client upgrade
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/samba/samba-2.0.7-r4.ebuild (renamed from net-fs/samba/samba-2.0.7-r3.ebuild)32
1 files changed, 29 insertions, 3 deletions
diff --git a/net-fs/samba/samba-2.0.7-r3.ebuild b/net-fs/samba/samba-2.0.7-r4.ebuild
index b2ea2c638751..0b6f17c81a59 100644
--- a/net-fs/samba/samba-2.0.7-r3.ebuild
+++ b/net-fs/samba/samba-2.0.7-r4.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-2.0.7-r3.ebuild,v 1.2 2001/01/10 07:04:53 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-2.0.7-r4.ebuild,v 1.1 2001/01/18 22:01:18 drobbins Exp $
P=samba-2.0.7
A=${P}.tar.gz
@@ -61,11 +61,25 @@ src_install() {
cd ${S}
cp -a examples ${D}/usr/doc/${PF}
cp examples/smb.conf.default ${D}/etc/smb/smb.conf.example
+
+ #touch ${D}/etc/smb/smb.conf to create a dummy file so that people installing samba
+ #just to mount smb shares don't get annoying warnings all the time
+
+ touch ${D}/etc/smb/smb.conf
+
exeinto /etc/rc.d/init.d
doexe ${FILESDIR}/samba ${FILESDIR}/svc-samba
diropts -m0700
dodir /etc/smb/private
+ #now, we move smbmount from /usr/sbin to /sbin, and rename it to mount.smbfs
+ #this allows it to work perfectly with the standard Linux mount command
+ # :)
+
+ dodir /sbin
+ mv ${D}/usr/bin/smbmount ${D}/sbin/mount.smbfs
+
+
#supervise support
local x
for x in smbd nmbd
@@ -80,12 +94,24 @@ src_install() {
}
pkg_postinst() {
- echo "Samba installed. To configure samba to start on boot, type:"
+ echo "Samba installed. To configure samba (the server) to start on boot, type:"
echo
echo "# rc-update add svc-samba [ for high-availability supervised Samba -- recommended ]"
echo "# rc-update add samba [ for normal non-supervised Samba ]"
echo
- echo "Also, please note that you must configure /etc/smb/smb.conf before Samba will work properly."
+ echo "Also, please note that you must configure /etc/smb/smb.conf before Samba (the server) will "
+ echo "work properly. Mounting smb shares and the smbclient program should work immediately,"
+ echo "without any tweaking required."
+ echo
+ echo "To mount SMB shares, type something like this. You'll need kernel SMB support to do this:"
+ echo "# mount -t smbfs -o username=drobbins,password=foo,ip=192.168.1.1 //mybox/drobbins /mnt/foo"
+ echo
+ echo "An empty file exists at /etc/smb/smb.conf at this moment, so that mounting smb shares won't"
+ echo "produce an annoying warning message."
+ echo
+ echo "Another note. If you want to allow normal users to mount smb shares, type the following as"
+ echo "root:"
+ echo "# chmod u+s /usr/bin/smbmnt"
}