diff options
Diffstat (limited to 'packaging/RedHat/samba2.spec.tmpl')
-rw-r--r-- | packaging/RedHat/samba2.spec.tmpl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 638df4f2cc..a3c603c12a 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -26,6 +26,7 @@ Samba 3.0 also introduces UNICODE support and kerberos/ldap integration as a member server in a Windows 2000 domain. Please refer to the WHATSNEW.txt document for fixup information. +docs directory for implementation details. %changelog * Mon Nov 18 2002 Gerald Carter <jerry@samba.org> @@ -46,6 +47,9 @@ autoconf EXTRA="-D_LARGEFILE64_SOURCE" %endif NUMCPU=`grep processor /proc/cpuinfo | wc -l` +if [ ! -f "configure" ]; then + ./autogen.sh +fi CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --prefix=%{prefix} \ --localstatedir=/var \ @@ -89,7 +93,7 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}/{lib,include} # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - rpcclient smbspool smbcacls smbcontrol wbinfo smbmnt net smbgroupedit \ + rpcclient smbspool smbcacls smbcontrol wbinfo smbmnt net \ smbcacls pdbedit tdbbackup smbtree do install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin @@ -101,7 +105,7 @@ do done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount debug2html winbindd wrepld +for i in smbd nmbd swat smbmount smbumount debug2html winbindd do install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done @@ -157,6 +161,7 @@ install -m 644 source/include/libsmbclient.h $RPM_BUILD_ROOT%{prefix}/include/ #done # Install the miscellany +install -m755 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat/README install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb install -m755 packaging/RedHat/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind @@ -169,6 +174,9 @@ install -m644 packaging/RedHat/samba.pamd.stack $RPM_BUILD_ROOT/etc/samba/samba. install -m644 packaging/RedHat/samba.xinetd $RPM_BUILD_ROOT/etc/samba/samba.xinetd echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts +# Remove "*.old" files +find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \; + %clean rm -rf $RPM_BUILD_ROOT @@ -369,7 +377,6 @@ fi %{prefix}/sbin/smbmount %{prefix}/sbin/smbumount %{prefix}/sbin/winbindd -%{prefix}/sbin/wrepld %{prefix}/sbin/samba %{prefix}/sbin/debug2html /sbin/mount.smbfs @@ -389,7 +396,6 @@ fi %{prefix}/bin/smbcontrol %{prefix}/bin/wbinfo %{prefix}/bin/net -%{prefix}/bin/smbgroupedit %{prefix}/bin/smbcacls %{prefix}/bin/pdbedit %{prefix}/bin/tdbbackup @@ -407,6 +413,7 @@ fi %{prefix}/share/swat/lang/*/images/* %{prefix}/share/swat/lang/*/include/*.html %{prefix}/share/swat/using_samba/* +%{prefix}/share/swat/README %config(noreplace) /etc/samba/lmhosts %config(noreplace) /etc/samba/smb.conf %config(noreplace) /etc/samba/smbusers |