Accepting request 226497 from network
fix for fix for bnc#844183 (forwarded request 226496 from computersalat) OBS-URL: https://build.opensuse.org/request/show/226497 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/proftpd?expand=0&rev=17
This commit is contained in:
commit
6549e123a8
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 17 18:38:53 UTC 2014 - chris@computersalat.de
|
||||
|
||||
- fix for bnc#844183
|
||||
* proftpd fails to start due to missing /run/proftpd
|
||||
- add own tmpfiles.d file
|
||||
* proftpd.tmpfile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 3 20:48:44 UTC 2013 - chris@computersalat.de
|
||||
|
||||
|
24
proftpd.spec
24
proftpd.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package proftpd
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -30,6 +30,7 @@ Source1: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.gz.a
|
||||
Source11: %{name}.init
|
||||
Source12: %{name}.passwd
|
||||
Source13: %{name}.service
|
||||
Source14: %{name}.tmpfile
|
||||
Source15: %{name}.keyring
|
||||
#PATCH-FIX-openSUSE: pam, logrotate, xinet
|
||||
Patch100: %{name}-dist.patch
|
||||
@ -194,8 +195,8 @@ export CXXFLAGS="$CFLAGS"
|
||||
|
||||
%if 0%{?has_systemd}
|
||||
%{__install} -D -m 0644 %{S:13} %{buildroot}%{_unitdir}/%{name}.service
|
||||
# systemd need to create a tmp dir: /var/run/proftpd
|
||||
install -D -m 0644 contrib/dist/rpm/proftpd-tmpfs.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/proftpd.conf
|
||||
# systemd need to create a tmp dir: /run/proftpd
|
||||
%{__install} -D -m 0644 %{S:14} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
%endif
|
||||
|
||||
%find_lang %{name}
|
||||
@ -219,14 +220,13 @@ install -D -m 0644 contrib/dist/rpm/proftpd-tmpfs.conf %{buildroot}%{_prefix}/li
|
||||
%post
|
||||
# on `rpm -ivh` PARAM is 1
|
||||
# on `rpm -Uvh` PARAM is 2
|
||||
#if [ "$1" = "1" ]; then
|
||||
# #%{__sed} -i "s,\(.*disable.*=\ \)no,\1yes," %{_sysconfdir}/xinetd.d/%{name}
|
||||
# %{__sed} -i -e "s/@HOST@/$(hostname -s)/" %{_sysconfdir}/%{name}/%{name}.conf
|
||||
#fi
|
||||
%{fillup_and_insserv -f proftpd}
|
||||
|
||||
%if 0%{?has_systemd}
|
||||
%service_add_post %{name}.service
|
||||
|
||||
%{__install} -d /run/%{name}
|
||||
%else
|
||||
%{fillup_and_insserv -f proftpd}
|
||||
%{__install} -d %{_localstatedir}/run/%{name}
|
||||
%endif
|
||||
|
||||
%postun
|
||||
@ -277,9 +277,6 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/dhparams.pem
|
||||
%{_sysconfdir}/init.d/%{name}
|
||||
%dir %attr(0750,ftp,ftp) %{_localstatedir}/log/%{name}
|
||||
%if ! 0%{?has_systemd}
|
||||
%ghost %{_localstatedir}/run/%{name}
|
||||
%endif
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/man?/*
|
||||
%dir %attr(0755,root,root) %{_libdir}/%{name}/
|
||||
@ -291,7 +288,8 @@ fi
|
||||
%exclude %{_libdir}/%{name}/mod_sql_sqlite.so
|
||||
%if 0%{?has_systemd}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_prefix}/lib/tmpfiles.d/proftpd.conf
|
||||
%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
%ghost %dir /run/%{name}
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
|
2
proftpd.tmpfile
Normal file
2
proftpd.tmpfile
Normal file
@ -0,0 +1,2 @@
|
||||
# proFTPD needs a DIR
|
||||
d /run/proftpd 0755 root root -
|
Loading…
x
Reference in New Issue
Block a user