📄 samba2.spec.tmpl
字号:
Summary: Samba SMB client and serverName: sambaVersion: PVERSIONRelease: PRELEASECopyright: GNU GPL version 2Group: NetworkingSource: ftp://samba.org/pub/samba/samba-PVERSION.tar.gzPatch: makefile-path.patchPatch1: smbw.patchRequires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2Prereq: chkconfig fileutilsBuildRoot: /var/tmp/samba%package debugtoolsVersion: PVERSIONRelease: PRELEASEGroup: NetworkingSummary: Programs to debug Samba and to test SMB client integrity%package -n smbfsVersion: PVERSIONRelease: PRELEASEGroup: Utilities/FileSummary: Programs to mount SMB shares.%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.NOTE: TurboLinux uses PAM which has integrated supportfor Shadow passwords. Do NOT recompile with the SHADOW_PWD optionenabled. PHT TurboLinux has built in support for quotas in PAM.%description -n smbfsThis package includes the tools necessary to mount filesystems fromSMB servers.%description debugtoolsThis package contains programs that can be used to crash test any SMBserver. Please use it with care. If you do not need it then do NOTinstall.%changelog* Fri Oct 29 1999 Kelley Spoon <kspoon@turbolinux.com>- get rid of the rc?.d directories- -j flags for make command to (hopefully) speed up on SMP systems- discoverd that John had already made the changes I was going to do...- Wait! He forgot to move the man pages into /usr/share! Cool... I get to do something substantial.* Sun Oct 16 1999 John H Terspstra <jht@turbolinux.com>- changed mount.smb to link to smbmount- removed smbwrappers as it is broken with glibc-2.1.x* Sun May 09 1999 John H Terpstra <jht@samba.org>- Added smbtorture et al.* Wed Mar 10 1999 Scott Stone <sstone@turbolinux.com>- This package now builds smbfs stuff- Added xinetd autosetup in the post install section- (todo: add remove of xinetd stuff in postuninstall section)* Sun Feb 28 1999 Jeremy Allison <jra@samba.org> - Removed smbrun binary and tidied up some loose ends* Sun Oct 25 1998 John H Terpstra <jht@samba.org> - Added modifier to /config specifier so that smb.conf, lmhosts and smbusers never get lost* Sat Oct 24 1998 John H Terpstra <jht@samba.org> - removed README.smbsh file from docs area* Mon Oct 05 1998 John H Terpstra <jht@samba.org> - Added rpcclient to binaries list - Added smbwrapper stuff* Fri Aug 21 1998 John H Terpstra <jht@samba.org> - Updated for Samba version 2.0 building* Tue Jul 07 1998 Erik Troan <ewt@redhat.com> - updated postun triggerscript to check $0 - clear /etc/codepages from %preun instead of %postun* Sat Jul 04 1998 John H Terpstra <jht@samba.org> - fixed codepage preservation during update via -Uvh* Mon Jun 08 1998 Erik Troan <ewt@redhat.com> - made the %postun script a tad less agressive; no reason to remove the logs or lock file - the %postun and %preun should only exectute if this is the final removal - migrated %triggerpostun from Red Hat's samba package to work around packaging problems in some Red Hat samba releases* Sun Apr 26 1998 John H Terpstra <jht@samba.org> - Tidy up for early alpha releases - added findsmb from SGI packaging* Thu Apr 09 1998 John H Terpstra <jht@samba.org> - Updated spec file - Included new codepage.936* Sat Mar 20 1998 John H Terpstra <jht@samba.org> - Added swat facility* Sat Jan 24 1998 John H Terpstra <jht@samba.org> - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com> - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb - Compounded make line - Updated smb.init restart mechanism - Use compound mkdir -p line instead of individual calls to mkdir - Fixed smb.conf file path for log files - Fixed smb.conf file path for incoming smb print spool directory - Added a number of options to smb.conf file - Added smbadduser command (missed from all previous RPMs) - Doooh! - Added smbuser file and smb.conf file updates for username map%prep%setup%patch -p1%patch1 -p1%buildcd sourceNUMCPU=`grep processor /proc/cpuinfo | wc -l`# CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper --with-automount --with-quotas --with-smbmount --with-pamCFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-smbmount --with-pammake -j${NUMCPU} all smbtorture rpctorture smbfilter debug2html # smbwrapper %installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/sbinmkdir -p $RPM_BUILD_ROOT/etc/codepages/srcmkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.dmkdir -p $RPM_BUILD_ROOT/home/sambamkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include}mkdir -p $RPM_BUILD_ROOT/usr/share/man/{man1,man5,man7,man8}mkdir -p $RPM_BUILD_ROOT/var/lock/sambamkdir -p $RPM_BUILD_ROOT/var/log/sambamkdir -p $RPM_BUILD_ROOT/var/spool/samba# Install standard binary files# At a later date add smbsh and smbwrapper.so back into line belowfor i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ make_smbcodepage make_printerdef rpcclientdoinstall -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bindonefor i in addtosmbpass mksmbpasswd.sh smbtardoinstall -m755 source/script/$i $RPM_BUILD_ROOT/usr/bindone# Install secure binary filesfor i in smbd nmbd swat smbmount smbumount smbmnt debug2html rpctorture smbtorture smbfilterdoinstall -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbindone# Now link smbmount to mount.smb ln $RPM_BUILD_ROOT/usr/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb# Install level 1 man pages# At a later date add back to line below: smbsh.1for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1doinstall -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man1done# Install codepage source filesfor i in 437 737 850 852 861 866 932 936 949 950doinstall -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/srcdone# Install SWAT helper filesfor i in swat/help/*.html docs/htmldocs/*.htmldoinstall -m644 $i $RPM_BUILD_ROOT/usr/share/swat/helpdonefor i in swat/images/*.gifdoinstall -m644 $i $RPM_BUILD_ROOT/usr/share/swat/imagesdonefor i in swat/include/*.htmldoinstall -m644 $i $RPM_BUILD_ROOT/usr/share/swat/includedone# Install the miscellanyinstall -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -