|
|
@ -62,13 +62,12 @@ install -D -m 755 %{_builddir}/%{name}-%{version}/contrib/tunnels.conf %{buildro |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/certificates/ %{buildroot}%{_datadir}/i2pd/certificates |
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/certificates/ %{buildroot}%{_datadir}/i2pd/certificates |
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/tunnels.d/ %{buildroot}%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/tunnels.d/ %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d |
|
|
|
install -D -m 644 %{_builddir}/%{name}-%{version}/contrib/rpm/i2pd.service %{buildroot}%{_unitdir}/i2pd.service |
|
|
|
install -D -m 644 %{_builddir}/%{name}-%{version}/contrib/rpm/i2pd.service %{buildroot}%{_unitdir}/i2pd.service |
|
|
|
install -d -m 700 %{buildroot}%{_sharedstatedir}/i2pd |
|
|
|
install -d -m 700 %{buildroot}%{_sharedstatedir}/i2pd |
|
|
|
install -d -m 700 %{buildroot}%{_localstatedir}/log/i2pd |
|
|
|
install -d -m 700 %{buildroot}%{_localstatedir}/log/i2pd |
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates |
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates |
|
|
|
ln -s %{_sysconfdir}/i2pd/tunnels.conf.d %{buildroot}%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
ln -s %{_datadir}/i2pd/tunnels.conf.d %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre |
|
|
|
%pre |
|
|
@ -94,8 +93,8 @@ getent passwd i2pd >/dev/null || \ |
|
|
|
%doc LICENSE README.md |
|
|
|
%doc LICENSE README.md |
|
|
|
%{_sbindir}/i2pd |
|
|
|
%{_sbindir}/i2pd |
|
|
|
%{_datadir}/i2pd/certificates |
|
|
|
%{_datadir}/i2pd/certificates |
|
|
|
%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/* |
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/* |
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/tunnels.conf.d/* |
|
|
|
/%{_unitdir}/i2pd.service |
|
|
|
/%{_unitdir}/i2pd.service |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd |
|
|
|