|
|
@ -56,18 +56,18 @@ make %{?_smp_mflags} |
|
|
|
%install |
|
|
|
%install |
|
|
|
cd build |
|
|
|
cd build |
|
|
|
chrpath -d i2pd |
|
|
|
chrpath -d i2pd |
|
|
|
install -D -m 755 i2pd %{buildroot}%{_sbindir}/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/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 %{_builddir}/%{name}-%{version}/contrib/subscriptions.txt %{buildroot}%{_sysconfdir}/i2pd/subscriptions.txt |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd |
|
|
|
%{__install} -D -m 755 %{_builddir}/%{name}-%{version}/contrib/tunnels.conf %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf |
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/i2pd/tunnels.conf.d |
|
|
|
%{__install} -D -m 755 %{_builddir}/%{name}-%{version}/contrib/tunnels.d/README %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d/README |
|
|
|
%{__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 |
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/tunnels.d/ %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d |
|
|
|
%{__install} -D -m 644 %{_builddir}/%{name}-%{version}/debian/i2pd.1 %{buildroot}%{_mandir}/man1/i2pd.1 |
|
|
|
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 |
|
|
|
%{__install} -d -m 755 %{buildroot}%{_datadir}/%{name} |
|
|
|
|
|
|
|
%{__cp} -r %{_builddir}/%{name}-%{version}/contrib/certificates/ %{buildroot}%{_datadir}/%{name}/certificates |
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates |
|
|
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/i2pd/certificates |
|
|
|
ln -s %{_datadir}/i2pd/tunnels.conf.d %{buildroot}%{_sysconfdir}/i2pd/tunnels.conf.d |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre |
|
|
|
%pre |
|
|
@ -90,14 +90,14 @@ getent passwd i2pd >/dev/null || \ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%doc LICENSE README.md |
|
|
|
%doc LICENSE README.md contrib/i2pd.conf contrib/subscriptions.txt contrib/tunnels.conf contrib/tunnels.d |
|
|
|
%{_sbindir}/i2pd |
|
|
|
%{_sbindir}/i2pd |
|
|
|
%{_datadir}/i2pd/certificates |
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/* |
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/* |
|
|
|
%config(noreplace) %{_sysconfdir}/i2pd/tunnels.conf.d/* |
|
|
|
%{_unitdir}/i2pd.service |
|
|
|
/%{_unitdir}/i2pd.service |
|
|
|
%{_mandir}/man1/i2pd.1* |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd |
|
|
|
|
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd |
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd |
|
|
|
|
|
|
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd |
|
|
|
|
|
|
|
%{_datadir}/%{name}/certificates |
|
|
|
%{_sharedstatedir}/i2pd/certificates |
|
|
|
%{_sharedstatedir}/i2pd/certificates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|