summaryrefslogtreecommitdiff
path: root/packaging/Fedora/samba.spec.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Fedora/samba.spec.tmpl')
-rw-r--r--packaging/Fedora/samba.spec.tmpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/Fedora/samba.spec.tmpl b/packaging/Fedora/samba.spec.tmpl
index ba9b2768e6..b2bfffff74 100644
--- a/packaging/Fedora/samba.spec.tmpl
+++ b/packaging/Fedora/samba.spec.tmpl
@@ -125,7 +125,10 @@ CFLAGS="$RPM_OPT_FLAGS" ./configure \
--enable-cups=yes
make showlayout
make proto
-make %{?_smp_mflags} all modules nsswitch/libnss_wins.so debug2html
+make %{?_smp_mflags} all modules nsswitch/libnss_wins.so
+
+## build the cifs fs mount helper
+gcc -o mount.cifs $RPM_OPT_FLAGS -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE client/mount.cifs
%install
@@ -153,6 +156,7 @@ install -m755 %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}
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,8 +208,6 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1*
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*
%clean
@@ -311,6 +313,7 @@ fi
%defattr(-,root,root)
/sbin/mount.smb
/sbin/mount.smbfs
+/sbin/mount.cifs
%{_libdir}/samba/lowcase.dat
%{_libdir}/samba/upcase.dat
%{_libdir}/samba/valid.dat