summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-03-15 10:15:01 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-03-15 10:15:01 +0100
commitce4b17332732cf7e080e052fc0911897819129eb (patch)
treed105bc362d6681f3ff8e2ca160dce812e437e5a0
parentef88720018e78a668f94c70644c2a3f8a4f529bf (diff)
Fix version detection and package files.
-rw-r--r--samba4.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/samba4.spec b/samba4.spec
index 726cc41..0485bd2 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -52,7 +52,7 @@ Source5: pam_winbind.conf
Source6: samba.pamd
Source7: samba.conf.tmp
-%if 0%{?rhel} < 7
+%if 0%{?rhel} == 6
Source100: nmb.init
Source101: smb.init
Source102: winbind.init
@@ -424,7 +424,7 @@ install -m 0644 packaging/systemd/nmb.service %{buildroot}%{_unitdir}/nmb.servic
install -m 0644 packaging/systemd/smb.service %{buildroot}%{_unitdir}/smb.service
install -m 0644 packaging/systemd/winbind.service %{buildroot}%{_unitdir}/winbind.service
-%if 0%{?rhel} < 7
+%if 0%{?rhel} == 6
install -d -m 0755 %{buildroot}%{_initrddir}
install -m 0644 %{SOURCE100} %{buildroot}%{_initrddir}/nmb
install -m 0644 %{SOURCE101} %{buildroot}%{_initrddir}/smb
@@ -545,6 +545,10 @@ rm -rf %{buildroot}
%dir %{_sysconfdir}/openldap/schema
%{_sysconfdir}/openldap/schema/samba.schema
%{_sysconfdir}/tmpfiles.d/samba.conf
+%if 0%{?rhel} == 6
+%{_initrddir}/nmb
+%{_initrddir}/smb
+%endif
%files libs
%defattr(-,root,root)
@@ -743,6 +747,9 @@ rm -rf %{buildroot}
#%{_mandir}/man8/winbindd.8*
#%{_mandir}/man8/idmap_*.8*
#%{_datadir}/locale/*/LC_MESSAGES/pam_winbind.mo
+%if 0%{?rhel} == 6
+%{_initrddir}/winbind
+%endif
%files winbind-krb5-locator
%defattr(-,root,root)