forked from pool/proftpd
Accepting request 184568 from home:elvigia:branches:network
- Improve systemd service file - use upstream tmpfiles.d file. related to [bnc#811793] - Use /run instead of /var/run OBS-URL: https://build.opensuse.org/request/show/184568 OBS-URL: https://build.opensuse.org/package/show/network/proftpd?expand=0&rev=22
This commit is contained in:
parent
cb83a4212a
commit
00e5e979f6
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 01:12:53 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Improve systemd service file
|
||||||
|
- use upstream tmpfiles.d file. related to [bnc#811793]
|
||||||
|
- Use /run instead of /var/run
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 1 20:35:19 UTC 2013 - chris@computersalat.de
|
Wed May 1 20:35:19 UTC 2013 - chris@computersalat.de
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
d /var/run/proftpd 0755 root root ~ -
|
|
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=ProFTPd FTP server
|
Description=ProFTPd FTP server
|
||||||
After=network.target remote-fs.target
|
After=systemd-user-sessions.service network.target nss-lookup.target local-fs.target remote-fs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/proftpd --nodaemon
|
ExecStart=/usr/sbin/proftpd --nodaemon
|
||||||
|
11
proftpd.spec
11
proftpd.spec
@ -30,7 +30,6 @@ Source1: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.gz.a
|
|||||||
Source11: %{name}.init
|
Source11: %{name}.init
|
||||||
Source12: %{name}.passwd
|
Source12: %{name}.passwd
|
||||||
Source13: %{name}.service
|
Source13: %{name}.service
|
||||||
Source14: %{name}.conf.tmpfile
|
|
||||||
Source15: %{name}.keyring
|
Source15: %{name}.keyring
|
||||||
#PATCH-FIX-openSUSE: pam, logrotate, xinet
|
#PATCH-FIX-openSUSE: pam, logrotate, xinet
|
||||||
Patch100: %{name}-dist.patch
|
Patch100: %{name}-dist.patch
|
||||||
@ -151,7 +150,11 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
--bindir=%{_sbindir} \
|
--bindir=%{_sbindir} \
|
||||||
--libexecdir=%{_libdir}/%{name} \
|
--libexecdir=%{_libdir}/%{name} \
|
||||||
--sysconfdir=%{_sysconfdir}/%{name} \
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
--localstatedir=/run/%{name} \
|
||||||
|
%else
|
||||||
--localstatedir=%{_localstatedir}/run/%{name} \
|
--localstatedir=%{_localstatedir}/run/%{name} \
|
||||||
|
%endif
|
||||||
--enable-sendfile \
|
--enable-sendfile \
|
||||||
--enable-ctrls \
|
--enable-ctrls \
|
||||||
--enable-dso \
|
--enable-dso \
|
||||||
@ -189,7 +192,7 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
%if 0%{?has_systemd}
|
%if 0%{?has_systemd}
|
||||||
%{__install} -D -m 0644 %{S:13} %{buildroot}%{_unitdir}/%{name}.service
|
%{__install} -D -m 0644 %{S:13} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
# systemd need to create a tmp dir: /var/run/proftpd
|
# systemd need to create a tmp dir: /var/run/proftpd
|
||||||
%{__install} -D -m 0644 %{S:14} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
install -D -m 0644 contrib/dist/rpm/proftpd-tmpfs.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/proftpd.conf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
@ -271,7 +274,9 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/%{name}/dhparams.pem
|
%config(noreplace) %{_sysconfdir}/%{name}/dhparams.pem
|
||||||
%{_sysconfdir}/init.d/%{name}
|
%{_sysconfdir}/init.d/%{name}
|
||||||
%dir %attr(0750,ftp,ftp) %{_localstatedir}/log/%{name}
|
%dir %attr(0750,ftp,ftp) %{_localstatedir}/log/%{name}
|
||||||
|
%if ! 0%{?has_systemd}
|
||||||
%ghost %{_localstatedir}/run/%{name}
|
%ghost %{_localstatedir}/run/%{name}
|
||||||
|
%endif
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
%dir %attr(0755,root,root) %{_libdir}/%{name}/
|
%dir %attr(0755,root,root) %{_libdir}/%{name}/
|
||||||
@ -283,7 +288,7 @@ fi
|
|||||||
%exclude %{_libdir}/%{name}/mod_sql_sqlite.so
|
%exclude %{_libdir}/%{name}/mod_sql_sqlite.so
|
||||||
%if 0%{?has_systemd}
|
%if 0%{?has_systemd}
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
%config %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
%{_prefix}/lib/tmpfiles.d/proftpd.conf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
Loading…
Reference in New Issue
Block a user