|
|
|
@ -68,9 +68,15 @@ make %{?_smp_mflags}
@@ -68,9 +68,15 @@ make %{?_smp_mflags}
|
|
|
|
|
%install |
|
|
|
|
cd build |
|
|
|
|
chrpath -d i2pd |
|
|
|
|
install -D -m 755 i2pd %{buildroot}%{_bindir}/i2pd |
|
|
|
|
install -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd |
|
|
|
|
install -D -m 755 %{_builddir}/%{name}-%{version}/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf |
|
|
|
|
install -D -m 755 %{_builddir}/%{name}-%{version}/contrib/tunnels.conf %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf |
|
|
|
|
install -d -m 755 %{buildroot}/%{_datadir}/i2pd |
|
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/certificates/ %{buildroot}%{_datadir}/i2pd/certificates |
|
|
|
|
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}/%{_localstatedir}/log/i2pd |
|
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/%{name}/certificates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre systemd |
|
|
|
@ -94,12 +100,16 @@ getent passwd i2pd >/dev/null || \
@@ -94,12 +100,16 @@ getent passwd i2pd >/dev/null || \
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%doc LICENSE README.md |
|
|
|
|
%_bindir/i2pd |
|
|
|
|
%{_sbindir}/i2pd |
|
|
|
|
%{_datadir}/i2pd/certificates |
|
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files systemd |
|
|
|
|
/%_unitdir/i2pd.service |
|
|
|
|
%dir %attr(0700,i2pd,i2pd) %_sharedstatedir/i2pd |
|
|
|
|
/%{_unitdir}/i2pd.service |
|
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd |
|
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd |
|
|
|
|
%{_sharedstatedir}/i2pd/certificates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|