diff options
Diffstat (limited to 'packaging/RedHat')
-rwxr-xr-x | packaging/RedHat/findsmb | 145 | ||||
-rw-r--r-- | packaging/RedHat/makerpms.sh.tmpl | 2 | ||||
-rw-r--r-- | packaging/RedHat/samba2.spec.tmpl | 123 |
3 files changed, 115 insertions, 155 deletions
diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb deleted file mode 100755 index 04bc608050..0000000000 --- a/packaging/RedHat/findsmb +++ /dev/null @@ -1,145 +0,0 @@ -#!/usr/bin/perl -# -# Prints info on all smb responding machines on a subnet. -# This script needs to be run on a machine without nmbd running and be -# run as root to get correct info from WIN95 clients. -# -# syntax: -# findsmb [subnet broadcast address] -# -# with no agrument it will list machines on the current subnet -# -# There will be a "+" in front of the workgroup name for machines that are -# local master browsers for that workgroup. There will be an "*" in front -# of the workgroup name for machines that are the domain master browser for -# that workgroup. -# - -$SAMBABIN = "/usr/bin"; - -for ($i = 0; $i < 2; $i++) { # test for -d option and broadcast address - $_ = shift; - if (m/-d|-D/) { - $DEBUG = 1; - } else { - if ($_) { - $BCAST = "-B $_"; - } - } -} - -sub ipsort # do numeric sort on last field of IP address -{ - @t1 = split(/\./,$a); - @t2 = split(/\./,$b); - @t1[3] <=> @t2[3]; -} - -# look for all machines that respond to a name lookup - -open(NMBLOOKUP,"$SAMBABIN/nmblookup $BCAST '*'|") || - die("Can't run nmblookup '*'.\n"); - -# get rid of all lines that are not a response IP address, -# strip everything but IP address and sort by last field in address - -@ipaddrs = sort ipsort grep(s/ \*<00>.*$//,<NMBLOOKUP>); - -# print header info - -print "\nIP ADDR NETBIOS NAME WORKGROUP/OS/VERSION $BCAST\n"; -print "---------------------------------------------------------------------\n"; - -foreach $ip (@ipaddrs) # loop through each IP address found -{ - $ip =~ s/\n//; # strip newline from IP address - -# find the netbios names registered by each machine - - open(NMBLOOKUP,"$SAMBABIN/nmblookup -r -A $ip|") || - die("Can't get nmb name list.\n"); - @nmblookup = <NMBLOOKUP>; - close NMBLOOKUP; - -# get the first <00> name - - @name = grep(/<00>/,@nmblookup); - $_ = @name[0]; - if ($_) { # we have a netbios name - if (/GROUP/) { # is it a group name - ($name, $aliases, $type, $length, @addresses) = - gethostbyaddr(pack('C4',split('\.',$ip)),2); - if (! $name) { # could not get name - $name = "unknown nis name"; - } - } else { -# The Netbios name can contain lot of characters also '<' '>' -# and spaces. The follwing cure inside name space but not -# names starting or ending with spaces - /(.{1,15})\s+<00>\s+/; - $name = $1; - } - -# do an smbclient command on the netbios name. - - open(SMB,"$SAMBABIN/smbclient -N -L $name -I $ip -U% |") || - die("Can't do smbclient command.\n"); - @smb = <SMB>; - close SMB; - - if ($DEBUG) { # if -d flag print results of nmblookup and smbclient - print "===============================================================\n"; - print @nmblookup; - print @smb; - } - -# look for the OS= string - - @info = grep(/OS=/,@smb); - $_ = @info[0]; - if ($_) { # we found response - s/Domain=|OS=|Server=|\n//g; # strip out descriptions to make line shorter - - } else { # no OS= string in response (WIN95 client) - -# for WIN95 clients get workgroup name from nmblookup response - @name = grep(/<00> - <GROUP>/,@nmblookup); - $_ = @name[0]; - if ($_) { -# Same as before for space and characters - /(.{1,15})\s+<00>\s+/; - $_ = "[$1]"; - } else { - $_ = "Unknown Workgroup"; - } - } - -# see if machine registered a local master browser name - if (grep(/<1d>/,@nmblookup)) { - $master = '+'; # indicate local master browser - if (grep(/<1b>/,@nmblookup)) { # how about domain master browser? - $master = '*'; # indicate domain master browser - } - } else { - $master = ' '; # not a browse master - } - -# line up info in 3 columns - - print "$ip".' 'x(16-length($ip))."$name".' 'x(14-length($name))."$master"."$_\n"; - - } else { # no netbios name found -# try getting the host name - ($name, $aliases, $type, $length, @addresses) = - gethostbyaddr(pack('C4',split('\.',$ip)),2); - if (! $name) { # could not get name - $name = "unknown nis name"; - } - if ($DEBUG) { # if -d flag print results of nmblookup - print "===============================================================\n"; - print @nmblookup; - } - print "$ip".' 'x(16-length($ip))."$name\n"; - } -} - diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 31e660d945..5aa9937077 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -69,7 +69,7 @@ if [ z$1 = z"devel" ]; then (cd ../../.. ; mv samba samba-${VERSION} ) fi -( cd ../../.. ; tar --exclude=CVS -cf - samba-${VERSION}/. | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 ) +( cd ../../.. ; tar --exclude=CVS -cf - samba-${VERSION} | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 ) cp -av samba.spec ${SPECDIR} cp -av samba-devel.spec ${SPECDIR} diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 5e4cca8477..4e38e66517 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -26,9 +26,114 @@ frame) protocol. Please refer to the WHATSNEW.txt document for fixup information. %changelog -* Mon Nov 18 2002 Gerald Carter <jerry@samba.org> - - removed change log entries since history - is being maintained in CVS +* Thu Jun 6 2002 Gerald Carter <jerry@samba.org> + - add separate winbindd init script + - build and install libsmbclient + +* Sun Jun 2 2002 Gerald Carter <jerry@samba.org> + - include audit and recycle VFS modules in /usr/lib/samba + +* Mon May 6 2002 Gerald Carter <jerry@samba.org> + - moved findsmb to a standard component in samba's + "make install". Removed from specfile. + +* Sun Oct 14 2001 Andrew Bartlett <abartlet@samba.org> + - Set SBINDIR for codepage/manpage install, cope with + broken Makefile + +* Mon Aug 1 2001 Tim Potter <tpot@samba.org> + - Install winbind daemon, client programs, nss and pam libraries + +* Sat Mar 31 2001 Andrew Bartlett <abartlet@pcug.org.au> + - Changed prefix/share/man for _mandir/share/man + - Changed this for a sed macro MANDIR_MACRO + - This allows us to build both RH7 (RPM4) + and older versions from same specfile. + - Made makerpms.sh use the rpm -ta command rather + than attempting to devine the correct location to + put the file. Also removes some /tmp symlink games. + - Allows build on RPM4 + - Increased PAM requirements to allow us to use + system-auth (this pam is in 6.x errata at least) + +* Tue Mar 27 2001 John H Terpstra <jht@samba.org> + - Fixed typos introduced by Sum Wun. + - Build for Red Hat 7.x + +* Sun Nov 12 2000 John H Terpstra <jht@samba.org> + - Updated for Samba-2.2 releases + - Added libnss_wins.so stuff + - Added compile-time options + +* Sat Nov 29 1999 Matthew Vanecek <mev0003@unt.edu> + - Added a Prefix and changed "/usr" to "%{prefix}" + +* Sat Nov 11 1999 Tridge <tridge@linuxcare.com> + - changed from mount.smb to mount.smbfs + +* Sat Oct 9 1999 Tridge <tridge@linuxcare.com> + - removed smbwrapper + - added smbmnt and smbmount + +* Sun Apr 25 1999 John H Terpstra <jht@samba.org> + - added smbsh.1 man page + +* Fri Mar 26 1999 Andrew Tridgell <tridge@samba.org> + - added --with-pam as pam is no longer used by default + +* Sat Jan 27 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 parameters to /config to ensure smb.conf, lmhosts, + and smbusers never gets over-written. + +* 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 smbuser file and smb.conf file updates for username map %prep %setup @@ -66,8 +171,8 @@ make -j${NUMCPU} debug2html make -j${NUMCPU} bin/smbspool ## Build VFS modules -#cd ../examples/VFS -#make +cd ../examples/VFS +make @@ -139,12 +244,12 @@ install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security # Install the VFS modules -#install -m755 examples/VFS/recycle.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs -#install -m755 examples/VFS/audit.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs -#install -m755 examples/VFS/netatalk.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m755 examples/VFS/recycle.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m755 examples/VFS/audit.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m755 examples/VFS/netatalk.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs # clean out VFS directory since it will get installed as documentation later -#(cd examples/VFS; make clean) +(cd examples/VFS; make clean) # libsmbclient install -m 755 source/bin/libsmbclient.so $RPM_BUILD_ROOT%{prefix}/lib/ |