Move tmpfiles config to /usr
This commit is contained in:
parent
0d68e0f9cc
commit
ba0aa0615a
1 changed files with 4 additions and 3 deletions
|
|
@ -23,6 +23,7 @@ BuildRequires: boost-devel
|
|||
BuildRequires: zlib-devel
|
||||
BuildRequires: systemd
|
||||
BuildRequires: make
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
|
@ -73,8 +74,8 @@ done
|
|||
|
||||
# Create a home directory for the user.
|
||||
mkdir -p -m755 %{buildroot}/run/%{name}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
||||
cat <<EOF > %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
d /run/%{name} 0755 root %{name}
|
||||
EOF
|
||||
|
||||
|
|
@ -107,7 +108,7 @@ exit 0
|
|||
%{_datadir}/anyterm/
|
||||
%{_unitdir}/anyterm.service
|
||||
%ghost %attr(0755,%{name},%{name}) %dir /run/%{name}
|
||||
%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
||||
%{_tmpfilesdir}/%{name}.conf
|
||||
%doc LICENSE
|
||||
%{_sysusersdir}/anyterm.conf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue