- Add socket service for vsftpd to avoid the need for xinetd here.
OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=62
This commit is contained in:
committed by
Git OBS Bridge
parent
66115111e4
commit
9c280be826
@@ -43,7 +43,9 @@ Source4: README.SUSE
|
||||
Source5: %name.xml
|
||||
Source6: %name.firewall
|
||||
Source7: vsftpd.service
|
||||
Source8: vsftpd@.service
|
||||
Source9: %name.keyring
|
||||
Source10: vsftpd.socket
|
||||
Source1000: https://security.appspot.com/downloads/%{name}-%{version}.tar.gz.asc
|
||||
Patch1: vsftpd-2.0.4-lib64.diff
|
||||
Patch3: vsftpd-2.0.4-xinetd.diff
|
||||
@@ -135,6 +137,8 @@ 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}/%{_unitdir}/%{name}.service
|
||||
install -D -m 0644 %SOURCE8 %{buildroot}/%{_unitdir}/%{name}@.service
|
||||
install -D -m 0644 %SOURCE10 %{buildroot}/%{_unitdir}/%{name}.socket
|
||||
%endif
|
||||
|
||||
%pre
|
||||
@@ -175,6 +179,8 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%if 0%{?suse_version} > 1140
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_unitdir}/%{name}.socket
|
||||
%{_unitdir}/%{name}@.service
|
||||
%endif
|
||||
/usr/sbin/%name
|
||||
/usr/sbin/rc%name
|
||||
|
Reference in New Issue
Block a user