📄 samba2.spec
字号:
Summary: Samba SMB client and serverName: sambaVersion: 2.0.6Release: 19991110Copyright: GNU GPL version 2Group: Server/NetworkSource: ftp://samba.org/pub/samba/samba-2.0.6.tar.gzPatch: makefile-path.patchPatch1: smbw.patchPackager: John H Terpstra [Samba-Team] <jht@samba.org>BuildRoot: /var/tmp/samba%DescriptionSamba provides an SMB server which can be used to providenetwork services to SMB (sometimes called "Lan Manager")clients, including various versions of MS Windows, OS/2,and other Linux machines. Samba also provides some SMBclients, which complement the built-in SMB filesystemin Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocolsand does NOT need NetBEUI (Microsoft Raw NetBIOS frame)protocol.Samba-2 features an almost working NT Domain Controlcapability and includes the new SWAT (Samba Web AdministrationTool) that allows samba's smb.conf file to be remotely managedusing your favourite web browser. For the time being this isbeing enabled on TCP port 901 via inetd.Please refer to the WHATSNEW.txt document for fixup information.This binary release includes encrypted password support.Please read the smb.conf file and ENCRYPTION.txt in thedocs directory for implementation details.%ChangeLog* Mon Nov 16 1998 John H Terpstra <jht@samba.org> - Ported to Caldera OpenLinux%Prep%setup%patch -p1%patch1 -p1%Buildcd source./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-pammake all%Install${mkDESTDIR}mkdir -p $DESTDIRmkdir -p $DESTDIR/etc/codepages/srcmkdir -p $DESTDIR/etc/{logrotate.d,pam.d}mkdir -p $DESTDIR/etc/rc.d/init.dmkdir -p $DESTDIR/home/sambamkdir -p $DESTDIR/usr/{bin,sbin}mkdir -p $DESTDIR/usr/share/swat/{images,help,include}mkdir -p $DESTDIR/usr/man/{man1,man5,man7,man8}mkdir -p $DESTDIR/var/lock/sambamkdir -p $DESTDIR/var/log/sambamkdir -p $DESTDIR/var/spool/samba# Install standard binary filesfor i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ make_smbcodepage make_printerdef rpcclientdoinstall -m755 -s source/bin/$i $DESTDIR/usr/bindonefor i in addtosmbpass mksmbpasswd.sh smbtar doinstall -m755 source/script/$i $DESTDIR/usr/bindone# Install secure binary filesfor i in smbd nmbd swatdoinstall -m755 -s source/bin/$i $DESTDIR/usr/sbindone# Install level 1 man pagesfor i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1doinstall -m644 docs/manpages/$i $DESTDIR/usr/man/man1done# Install codepage source filesfor i in 437 737 850 852 861 866 932 936 949 950doinstall -m644 source/codepages/codepage_def.$i $DESTDIR/etc/codepages/srcdone# Install SWAT helper filesfor i in swat/help/*.html docs/htmldocs/*.htmldoinstall -m644 $i $DESTDIR/usr/share/swat/helpdonefor i in swat/images/*.gifdoinstall -m644 $i $DESTDIR/usr/share/swat/imagesdonefor i in swat/include/*.htmldoinstall -m644 $i $DESTDIR/usr/share/swat/includedone# Install the miscellanyinstall -m644 swat/README $DESTDIR/usr/share/swatinstall -m644 docs/manpages/smb.conf.5 $DESTDIR/usr/man/man5install -m644 docs/manpages/lmhosts.5 $DESTDIR/usr/man/man5install -m644 docs/manpages/smbpasswd.5 $DESTDIR/usr/man/man5install -m644 docs/manpages/samba.7 $DESTDIR/usr/man/man7install -m644 docs/manpages/smbd.8 $DESTDIR/usr/man/man8install -m644 docs/manpages/nmbd.8 $DESTDIR/usr/man/man8install -m644 docs/manpages/swat.8 $DESTDIR/usr/man/man8install -m644 docs/manpages/smbpasswd.8 $DESTDIR/usr/man/man8install -m644 packaging/Caldera/OpenLinux/smb.conf $DESTDIR/etc/smb.confinstall -m644 packaging/Caldera/OpenLinux/smbusers $DESTDIR/etc/smbusersinstall -m755 packaging/Caldera/OpenLinux/smbprint $DESTDIR/usr/bininstall -m755 packaging/Caldera/OpenLinux/findsmb $DESTDIR/usr/bininstall -m755 packaging/Caldera/OpenLinux/smbadduser.perl $DESTDIR/usr/bin/smbadduserinstall -m755 packaging/Caldera/OpenLinux/smb.init $DESTDIR/etc/rc.d/init.d/smbln -s /etc/rc.d/init.d/smb $DESTDIR/usr/sbin/sambainstall -m644 packaging/Caldera/OpenLinux/samba.pamd $DESTDIR/etc/pam.d/sambainstall -m644 packaging/Caldera/OpenLinux/samba.log $DESTDIR/etc/logrotate.d/sambaecho 127.0.0.1 localhost > $DESTDIR/etc/lmhosts%{fixManPages}%Clean%{rmDESTDIR}%Postlisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6# Build codepage load filesfor i in 437 737 850 852 861 866 932 936 949 950do/usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$idone# Add swat entry to /etc/inetd.conf if neededlisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swatperl -pi -e '$s=1 if /^swat/; print "swat:ALL EXCEPT 127.0.0.2\n" if eof && ! $s' /etc/hosts.denykillall -1 inetd || :%PreUnif [ $1 = 0 ] ; then for n in /etc/codepages/*; do if [ $n != /etc/codepages/src ]; then rm -rf $n fi done # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! if [ -e /var/lock/samba/browse.dat ]; then rm -f /var/lock/samba/browse.dat fi if [ -e /var/lock/samba/wins.dat ]; then rm -f /var/lock/samba/wins.dat fifi%PostUnlisa --SysV-init remove samba $1lisa --inetd disable swat $1[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.denykillall -1 inetd || :# Only delete remnants of samba if this is the final deletion.if [ $1 != 0 ] ; then exit 0 if [ -e /etc/pam.d/samba ]; then rm -f /etc/pam.d/samba fi if [ -e /var/log/samba ]; then rm -rf /var/log/samba fi if [ -e /var/lock/samba ]; then rm -rf /var/lock/samba fifi%Files%defattr(-,root,root)%doc README COPYING Manifest Read-Manifest-Now%doc WHATSNEW.txt Roadmap%doc docs%doc swat/README%doc examples/usr/sbin/smbd/usr/sbin/nmbd/usr/sbin/swat%attr(0750,root,root) /usr/sbin/samba/usr/bin/addtosmbpass/usr/bin/mksmbpasswd.sh/usr/bin/smbclient/usr/bin/rpcclient/usr/bin/testparm/usr/bin/testprns/usr/bin/findsmb/usr/bin/smbstatus/usr/bin/nmblookup/usr/bin/make_smbcodepage/usr/bin/make_printerdef/usr/bin/smbpasswd/usr/bin/smbtar/usr/bin/smbprint/usr/bin/smbadduser/usr/share/swat/help/welcome.html/usr/share/swat/help/DOMAIN_MEMBER.html/usr/share/swat/help/lmhosts.5.html/usr/share/swat/help/make_smbcodepage.1.html/usr/share/swat/help/nmbd.8.html/usr/share/swat/help/nmblookup.1.html/usr/share/swat/help/samba.7.html/usr/share/swat/help/smb.conf.5.html/usr/share/swat/help/smbclient.1.html/usr/share/swat/help/smbd.8.html/usr/share/swat/help/smbpasswd.5.html/usr/share/swat/help/smbpasswd.8.html/usr/share/swat/help/smbrun.1.html/usr/share/swat/help/smbstatus.1.html/usr/share/swat/help/smbtar.1.html/usr/share/swat/help/swat.8.html/usr/share/swat/help/testparm.1.html/usr/share/swat/help/testprns.1.html/usr/share/swat/images/globals.gif/usr/share/swat/images/home.gif/usr/share/swat/images/passwd.gif/usr/share/swat/images/printers.gif/usr/share/swat/images/shares.gif/usr/share/swat/images/samba.gif/usr/share/swat/images/status.gif/usr/share/swat/images/viewconfig.gif/usr/share/swat/include/header.html/usr/share/swat/include/footer.html%config(noreplace) /etc/lmhosts%config(noreplace) /etc/smb.conf%config(noreplace) /etc/smbusers/etc/rc.d/init.d/smb/etc/logrotate.d/samba/etc/pam.d/samba/etc/codepages/src/codepage_def.437/etc/codepages/src/codepage_def.737/etc/codepages/src/codepage_def.850/etc/codepages/src/codepage_def.852/etc/codepages/src/codepage_def.861/etc/codepages/src/codepage_def.866/etc/codepages/src/codepage_def.932/etc/codepages/src/codepage_def.936/etc/codepages/src/codepage_def.949/etc/codepages/src/codepage_def.950/usr/man/man1/smbstatus.1*/usr/man/man1/smbclient.1*/usr/man/man1/make_smbcodepage.1*/usr/man/man1/smbrun.1*/usr/man/man1/smbtar.1*/usr/man/man1/testparm.1*/usr/man/man1/testprns.1*/usr/man/man1/nmblookup.1*/usr/man/man5/smb.conf.5*/usr/man/man5/lmhosts.5*/usr/man/man5/smbpasswd.5*/usr/man/man7/samba.7*/usr/man/man8/smbd.8*/usr/man/man8/nmbd.8*/usr/man/man8/smbpasswd.8*/usr/man/man8/swat.8*%attr(-,root,nobody) %dir /home/samba%dir /etc/codepages%dir /etc/codepages/src%dir /var/lock/samba%dir /var/log/samba%attr(1777,root,root) %dir /var/spool/samba
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -