mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
Merge pull request #1067 from l-n-s/rpm_updates
Update rpm spec and systemd unit
This commit is contained in:
commit
5363c063d1
@ -1,16 +1,27 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=I2P router
|
Description=I2P Router written in C++
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=i2pd
|
User=i2pd
|
||||||
Group=i2pd
|
Group=i2pd
|
||||||
|
RuntimeDirectory=i2pd
|
||||||
|
RuntimeDirectoryMode=0700
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/i2pd --service
|
ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --pidfile=/var/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
|
||||||
PIDFile=/var/lib/i2pd/i2pd.pid
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
PIDFile=/var/run/i2pd/i2pd.pid
|
||||||
PrivateTmp=true
|
### Uncomment, if auto restart needed
|
||||||
|
#Restart=on-failure
|
||||||
|
|
||||||
|
### Use SIGINT for graceful stop daemon.
|
||||||
|
# i2pd stops accepting new tunnels and waits ~10 min while old ones do not die.
|
||||||
|
KillSignal=SIGINT
|
||||||
|
TimeoutStopSec=10m
|
||||||
|
|
||||||
|
# If you have problems with hunging i2pd, you can try enable this
|
||||||
|
#LimitNOFILE=4096
|
||||||
|
PrivateDevices=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ Name: i2pd
|
|||||||
Version: 2.17.0
|
Version: 2.17.0
|
||||||
Release: %{build_timestamp}git%{?dist}
|
Release: %{build_timestamp}git%{?dist}
|
||||||
Summary: I2P router written in C++
|
Summary: I2P router written in C++
|
||||||
|
Obsoletes: %{name}-systemd
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/PurpleI2P/i2pd
|
URL: https://github.com/PurpleI2P/i2pd
|
||||||
@ -23,25 +24,12 @@ BuildRequires: openssl-devel
|
|||||||
BuildRequires: miniupnpc-devel
|
BuildRequires: miniupnpc-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
%description
|
|
||||||
C++ implementation of I2P.
|
|
||||||
|
|
||||||
|
|
||||||
%package systemd
|
|
||||||
Summary: Files to run I2P router under systemd
|
|
||||||
Requires: i2pd
|
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
Requires(pre): %{_sbindir}/useradd %{_sbindir}/groupadd
|
Requires(pre): %{_sbindir}/useradd %{_sbindir}/groupadd
|
||||||
Obsoletes: %{name}-daemon
|
|
||||||
|
|
||||||
|
%description
|
||||||
%description systemd
|
|
||||||
C++ implementation of I2P.
|
C++ implementation of I2P.
|
||||||
|
|
||||||
This package contains systemd unit file to run i2pd as a system service
|
|
||||||
using dedicated user's permissions.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -68,114 +56,73 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
chrpath -d i2pd
|
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 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
|
||||||
|
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/%{name}/certificates
|
||||||
|
|
||||||
|
|
||||||
%pre systemd
|
%pre
|
||||||
getent group i2pd >/dev/null || %{_sbindir}/groupadd -r i2pd
|
getent group i2pd >/dev/null || %{_sbindir}/groupadd -r i2pd
|
||||||
getent passwd i2pd >/dev/null || \
|
getent passwd i2pd >/dev/null || \
|
||||||
%{_sbindir}/useradd -r -g i2pd -s %{_sbindir}/nologin \
|
%{_sbindir}/useradd -r -g i2pd -s %{_sbindir}/nologin \
|
||||||
-d %{_sharedstatedir}/i2pd -c 'I2P Service' i2pd
|
-d %{_sharedstatedir}/i2pd -c 'I2P Service' i2pd
|
||||||
|
|
||||||
|
|
||||||
%post systemd
|
%post
|
||||||
%systemd_post i2pd.service
|
%systemd_post i2pd.service
|
||||||
|
|
||||||
|
|
||||||
%preun systemd
|
%preun
|
||||||
%systemd_preun i2pd.service
|
%systemd_preun i2pd.service
|
||||||
|
|
||||||
|
|
||||||
%postun systemd
|
%postun
|
||||||
%systemd_postun_with_restart i2pd.service
|
%systemd_postun_with_restart i2pd.service
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE README.md
|
%doc LICENSE README.md
|
||||||
%_bindir/i2pd
|
%{_sbindir}/i2pd
|
||||||
|
%{_datadir}/i2pd/certificates
|
||||||
|
%config(noreplace) %{_sysconfdir}/i2pd/*
|
||||||
%files systemd
|
/%{_unitdir}/i2pd.service
|
||||||
/%_unitdir/i2pd.service
|
%dir %attr(0700,i2pd,i2pd) %{_localstatedir}/log/i2pd
|
||||||
%dir %attr(0700,i2pd,i2pd) %_sharedstatedir/i2pd
|
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd
|
||||||
|
%{_sharedstatedir}/i2pd/certificates
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 30 2018 l-n-s <supervillain@riseup.net> - 2.17.0-1
|
||||||
|
- Added certificates and default configuration files
|
||||||
|
- Merge i2pd with i2pd-systemd package
|
||||||
|
- Fixed package changelogs to comply with guidelines
|
||||||
|
|
||||||
* Mon Dec 04 2017 orignal <i2porignal@yandex.ru> - 2.17.0
|
* Mon Dec 04 2017 orignal <i2porignal@yandex.ru> - 2.17.0
|
||||||
- Added reseed through HTTP and SOCKS proxy
|
- update to 2.17.0
|
||||||
- Added show status of client services through web console
|
|
||||||
- Added change log level through web connsole
|
|
||||||
- Added transient keys for tunnels
|
|
||||||
- Added i2p.streaming.initialAckDelay parameter
|
|
||||||
- Added CRYPTO_TYPE for SAM destination
|
|
||||||
- Added signature and crypto type for newkeys BOB command
|
|
||||||
- Changed - correct publication of ECIES destinations
|
|
||||||
- Changed - disable RSA signatures completely
|
|
||||||
- Fixed CVE-2017-17066
|
|
||||||
- Fixed possible buffer overflow for RSA-4096
|
|
||||||
- Fixed shutdown from web console for Windows
|
|
||||||
- Fixed web console page layout
|
|
||||||
|
|
||||||
* Mon Nov 13 2017 orignal <i2porignal@yandex.ru> - 2.16.0
|
* Mon Nov 13 2017 orignal <i2porignal@yandex.ru> - 2.16.0
|
||||||
- Added https and "Connect" method for HTTP proxy
|
- update to 2.16.0
|
||||||
- Added outproxy for HTTP proxy
|
|
||||||
- Added initial support of ECIES crypto
|
|
||||||
- Added NTCP soft and hard descriptors limits
|
|
||||||
- Added support full timestamps in logs
|
|
||||||
- Changed faster implmentation of GOST R 34.11 hash
|
|
||||||
- Changed reject routers with RSA signtures
|
|
||||||
- Changed reload config and shudown from Windows GUI
|
|
||||||
- Changed update tunnels address(destination) without restart
|
|
||||||
- Fixed BOB crashes if destination is not set
|
|
||||||
- Fixed correct SAM tunnel name
|
|
||||||
- Fixed QT GUI issues
|
|
||||||
|
|
||||||
* Thu Aug 17 2017 orignal <i2porignal@yandex.ru> - 2.15.0
|
* Thu Aug 17 2017 orignal <i2porignal@yandex.ru> - 2.15.0
|
||||||
- Added QT GUI
|
- update to 2.15.0
|
||||||
- Added ability add and remove I2P tunnels without restart
|
|
||||||
- Added ability to disable SOCKS outproxy option
|
|
||||||
- Changed strip-out Accept-* hedaers in HTTP proxy
|
|
||||||
- Changed peer test if nat=false
|
|
||||||
- Changed separate output of NTCP and SSU sessions in Transports tab
|
|
||||||
- Fixed handle lines with comments in hosts.txt file for address book
|
|
||||||
- Fixed run router with empty netdb for testnet
|
|
||||||
- Fixed skip expired introducers by iexp
|
|
||||||
|
|
||||||
* Thu Jun 01 2017 orignal <i2porignal@yandex.ru> - 2.14.0
|
* Thu Jun 01 2017 orignal <i2porignal@yandex.ru> - 2.14.0
|
||||||
- Added transit traffic bandwidth limitation
|
- update to 2.14.0
|
||||||
- Added NTCP connections through HTTP and SOCKS proxies
|
|
||||||
- Added ability to disable address helper for HTTP proxy
|
|
||||||
- Changed reseed servers list
|
|
||||||
|
|
||||||
* Thu Apr 06 2017 orignal <i2porignal@yandex.ru> - 2.13.0
|
* Thu Apr 06 2017 orignal <i2porignal@yandex.ru> - 2.13.0
|
||||||
- Added persist local destination's tags
|
- update to 2.13.0
|
||||||
- Added GOST signature types 9 and 10
|
|
||||||
- Added exploratory tunnels configuration
|
|
||||||
- Changed reseed servers list
|
|
||||||
- Changed inactive NTCP sockets get closed faster
|
|
||||||
- Changed some EdDSA speed up
|
|
||||||
- Fixed multiple acceptors for SAM
|
|
||||||
- Fixed follow on data after STREAM CREATE for SAM
|
|
||||||
- Fixed memory leaks
|
|
||||||
|
|
||||||
* Tue Feb 14 2017 orignal <i2porignal@yandex.ru> - 2.12.0
|
* Tue Feb 14 2017 orignal <i2porignal@yandex.ru> - 2.12.0
|
||||||
- Additional HTTP and SOCKS proxy tunnels
|
- update to 2.12.0
|
||||||
- Reseed from ZIP archive
|
|
||||||
- 'X' bandwidth code
|
|
||||||
- Reduced memory and file descriptors usage
|
|
||||||
|
|
||||||
* Mon Dec 19 2016 orignal <i2porignal@yandex.ru> - 2.11.0
|
* Mon Dec 19 2016 orignal <i2porignal@yandex.ru> - 2.11.0
|
||||||
- Full support of zero-hops tunnels
|
- update to 2.11.0
|
||||||
- Tunnel configuration for HTTP and SOCKS proxy
|
|
||||||
- Websockets support
|
|
||||||
- Multiple acceptors for SAM destination
|
|
||||||
- Routing path for UDP tunnels
|
|
||||||
- Reseed through a floodfill
|
|
||||||
- Use AVX instructions for DHT and HMAC if applicable
|
|
||||||
- Fixed UPnP discovery bug, producing excessive CPU usage
|
|
||||||
- Handle multiple lookups of the same LeaseSet correctly
|
|
||||||
|
|
||||||
* Thu Oct 20 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 2.10.0-3
|
* Thu Oct 20 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 2.10.0-3
|
||||||
- add support C7
|
- add support C7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user