summaryrefslogtreecommitdiff
path: root/packaging/Fedora/samba.spec.tmpl
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-30 16:00:42 +0000
committerGerald Carter <jerry@samba.org>2004-01-30 16:00:42 +0000
commitbff6c1384950e97d723828cb0de579226abc7807 (patch)
treef80f21c927808a53bcaa9dfc5da39c5cdf30d622 /packaging/Fedora/samba.spec.tmpl
parent3141a266777dac9378c2bbbdf5ed591c220604ec (diff)
downloadsamba-bff6c1384950e97d723828cb0de579226abc7807.tar.gz
samba-bff6c1384950e97d723828cb0de579226abc7807.tar.bz2
samba-bff6c1384950e97d723828cb0de579226abc7807.zip
fixes for fedora packaging
(This used to be commit 1924dfb266525053b48a636818f32eae14730051)
Diffstat (limited to 'packaging/Fedora/samba.spec.tmpl')
-rw-r--r--packaging/Fedora/samba.spec.tmpl36
1 files changed, 21 insertions, 15 deletions
diff --git a/packaging/Fedora/samba.spec.tmpl b/packaging/Fedora/samba.spec.tmpl
index 475300e3a3..ae6f95c900 100644
--- a/packaging/Fedora/samba.spec.tmpl
+++ b/packaging/Fedora/samba.spec.tmpl
@@ -12,14 +12,15 @@ URL: http://www.samba.org/
Source: ftp://www.samba.org/pub/samba/%{name}-%{version}.tar.bz2
# Red Hat specific replacement-files
-Source1: samba.log
-Source2: samba.xinetd
-Source3: swat.desktop
-Source4: samba.sysconfig
-Source5: smb.init
-Source6: samba.pamd
-Source7: smbprint
-Source8: winbind.init
+Source1: samba.log
+Source2: samba.xinetd
+Source4: samba.sysconfig
+Source5: smb.init
+Source6: winbind.init
+Source7: samba.pamd
+Source8: smbprint
+Source9: smbusers
+Source10: smb.conf
# Don't depend on Net::LDAP
Source999: filter-requires-samba.sh
@@ -144,21 +145,26 @@ make DESTDIR=$RPM_BUILD_ROOT \
cd ..
# Install other stuff
-install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
+install -m644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
+install -m644 %{SOURCE8} $RPM_BUILD_ROOT/etc/samba/smbusers
+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 -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
-install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{_bindir}
-install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{initdir}/smb
-install -m755 packaging/RedHat/winbind.init $RPM_BUILD_ROOT%{initdir}/winbind
+
+install -m755 %{SOURCE5} $RPM_BUILD_ROOT%{initdir}/smb
+install -m755 %{SOURCE6} $RPM_BUILD_ROOT%{initdir}/winbind
ln -s ../..%{initdir}/smb $RPM_BUILD_ROOT%{_sbindir}/samba
-install -m644 packaging/RedHat/samba.pamd.stack $RPM_BUILD_ROOT/etc/pam.d/samba
-install -m644 $RPM_SOURCE_DIR/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
+ln -s ../..%{initdir}/winbind $RPM_BUILD_ROOT%{_sbindir}/winbind
+
ln -s ../usr/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
## Samba's Makefile is breaking this currently. Remove it and set our own
/bin/rm -f $RPM_BUILD_ROOT/sbin/mount.smbfs
ln -s ../usr/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
+
echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
+
# pam_smbpass
mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
mv source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass.so