From a3f253c076e29340dcc74361d11a17798e1da9dcc85852eae738512a830b77cd Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Tue, 21 Feb 2012 11:09:27 +0000 Subject: [PATCH] add forgotten vsftpd.service OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=35 --- vsftpd.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vsftpd.spec b/vsftpd.spec index 996ac44..54323e8 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: vsftpd BuildRequires: openssl-devel BuildRequires: pam-devel @@ -99,7 +98,7 @@ install -D -m 644 %SOURCE5 $RPM_BUILD_ROOT/%_datadir/omc/svcinfo.d/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ install -m 644 %{S:6} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name} %if 0%{?suse_version} > 1140 -install -D -m 0644 %SOURCE7 %{buildroot}/%{name}.service +install -D -m 0644 %SOURCE7 %{buildroot}/%{_unitdir}/%{name}.service %endif %pre @@ -132,7 +131,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -/lib/systemd/system/vsftpd.service +%if 0%{?suse_version} > 1140 +%{_unitdir}/%{name}.service +%endif /usr/sbin/%name /usr/sbin/rc%name %config /etc/init.d/%name