yum groupinstall "Development Tools"
yum install openssl-devel lzo-devel
cd /tmp/
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/28/Everything/source/tree/Packages/t/tinc-1.0.33-2.fc28.src.rpm
rpm2cpio tinc-1.0.33-2.fc28.src.rpm | cpio -idmv
mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
wget https://www.tinc-vpn.org/packages/tinc-1.0.34.tar.gz -P ~/rpmbuild/SOURCES/
sed -i 's|1\.0\.33|1.0.34|g' tinc.spec
mv tinc.spec ~/rpmbuild/SPECS/
cd ~/rpmbuild/SPECS
rpmbuild -ba tinc.spec
/usr/lib/systemd/system/tinc@.service:
--- cut ---
[Unit]
Description=Tinc net %i
Documentation=info:tinc
Documentation=man:tinc(8) man:tinc.conf(5)
Documentation=http://tinc-vpn.org/docs/
PartOf=tinc.service
ReloadPropagatedFrom=tinc.service
[Service]
Type=simple
WorkingDirectory=/etc/tinc/%i
ExecStart=/usr/sbin/tincd --net=%i --no-detach --debug=3 --logfile=/var/log/tinc.%i.log
ExecReload=/usr/sbin/tincd -n %i -kHUP
KillMode=mixed
Restart=on-failure
RestartSec=5
TimeoutStopSec=5
[Install]
WantedBy=tinc.service
--- cut ---
Главная
- Просмотров: 2975