[Samba] Patch: FC4 spec file
S Murthy Kambhampaty
smk_va at yahoo.com
Thu Oct 6 23:33:36 GMT 2005
The patch below modifies the spec file for FC4 RPM
builds as follows:
1.) Build binaries using the -lmcheck option; various
samba commands and smbd process crash badly without;
see, for example:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164353
2.) The Fedora project's samba RPMS install
mount.cifs; it would help to have samba.org's RPMS
do the same.
It would be nice to see these patched incorporated
into the next version.
Thanks,
Murthy
Patch again 3.0.20 spec file follows:
--- samba.spec 2005-09-27 01:15:16.223751176 -0400
+++ samba.spec.3.0.20-2_new 2005-09-27
01:15:49.973620416 -0400
@@ -4,7 +4,7 @@
Summary: The Samba SMB server.
Name: samba
Version: 3.0.20
-Release: 2
+Release: 2_new
License: GNU GPL Version 2
Group: System Environment/Daemons
URL: http://www.samba.org/
@@ -105,7 +105,7 @@
./autogen.sh
fi
-CFLAGS="$RPM_OPT_FLAGS" ./configure \
+CFLAGS="$RPM_OPT_FLAGS" LIBS="-lmcheck" ./configure \
--prefix=%{_prefix} \
--localstatedir=/var \
--sysconfdir=/etc \
@@ -127,6 +127,7 @@
make proto
make %{?_smp_mflags} all modules
nsswitch/libnss_wins.so debug2html
+( cd client ; gcc -lmcheck -o mount.cifs
$RPM_OPT_FLAGS -Wall -O -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE mount.cifs.c )
%install
rm -rf $RPM_BUILD_ROOT
@@ -153,6 +154,7 @@
install -m644 %{SOURCE7}
$RPM_BUILD_ROOT/etc/pam.d/samba
install -m644 %{SOURCE1}
$RPM_BUILD_ROOT/etc/logrotate.d/samba
install -m755 source/script/mksmbpasswd.sh
$RPM_BUILD_ROOT%{_bindir}
+install -m755 source/client/mount.cifs
$RPM_BUILD_ROOT/sbin/mount.cifs
install -m755 %{SOURCE5}
$RPM_BUILD_ROOT%{initdir}/smb
install -m755 %{SOURCE6}
$RPM_BUILD_ROOT%{initdir}/winbind
@@ -204,7 +206,6 @@
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbsh.1*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbget.1*
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/smbgetrc.5*
-rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/mount.cifs.8*
rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/umount.cifs.8*
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/testprns.1*
@@ -311,6 +312,7 @@
%defattr(-,root,root)
/sbin/mount.smb
/sbin/mount.smbfs
+/sbin/mount.cifs
%{_libdir}/samba/lowcase.dat
%{_libdir}/samba/upcase.dat
%{_libdir}/samba/valid.dat
@@ -324,6 +326,7 @@
%{_mandir}/man8/tdbdump.8*
%{_mandir}/man8/smbmnt.8*
%{_mandir}/man8/smbmount.8*
+%{_mandir}/man8/mount.cifs.8*
%{_mandir}/man8/smbumount.8*
%{_mandir}/man8/smbspool.8*
%{_bindir}/nmblookup
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the samba
mailing list