openvpn/openvpn.spec

269 lines
9.7 KiB
RPMSpec

Name: openvpn
Version: 2.6.10
Release: 1mamba
Summary: A full-featured SSL VPN solution which can accomodate a wide range of configurations
Group: Network/Security
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://openvpn.net/
Source: http://swupdate.openvpn.org/community/releases/openvpn-%{version}.tar.gz
Source1: openvpn@.service
Source2: openvpn-tmpfiles.d
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcap-ng-devel
BuildRequires: liblz4-devel
BuildRequires: liblzo-devel
BuildRequires: libnl-devel
BuildRequires: libnsl-devel
BuildRequires: libopenssl-devel
BuildRequires: libpam-devel
BuildRequires: libsystemd-devel
## AUTOBUILDREQ-END
BuildRequires: easy-rsa2
Requires: openssl
%description
OpenVPN is a full-featured SSL VPN solution which can accomodate a wide range of configurations, including remote access, site-to-site VPNs, WiFi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls.
OpenVPN implements OSI layer 2 or 3 secure network extension using the industry standard SSL/TLS protocol, supports flexible client authentication methods based on certificates, smart cards, and/or 2-factor authentication, and allows user or group-specific access control policies using firewall rules applied to the VPN virtual interface.
OpenVPN is not a web application proxy and does not operate through a web browser.
%debug_package
%prep
%setup -q
%build
%configure \
--enable-systemd \
SYSTEMD_UNIT_DIR=%{_unitdir} \
TMPFILES_DIR=%{_tmpfilesdir}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
#install -m0755 -D distro/rpm/openvpn.init.d.rhel %{buildroot}%{_initrddir}/openvpn
install -d %{buildroot}%{_sysconfdir}/openvpn
cp -a %{_datadir}/easy-rsa %{buildroot}%{_sysconfdir}/openvpn/
sed -i "s|KEY_NAME=.*|KEY_NAME=\"openvpn\"|" %{buildroot}%{_sysconfdir}/openvpn/easy-rsa/vars
for s in sample-config-files sample-scripts; do
cp -a sample/$s %{buildroot}%{_docdir}/openvpn/
done
# Legacy service script openvpn@
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/openvpn@.service
#install -D -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/openvpn.conf
cat >> %{buildroot}%{_tmpfilesdir}/openvpn.conf << _EOF
d /run/openvpn 0710 root root -
_EOF
install -d -m0755 %{buildroot}%{_sysconfdir}/openvpn/{client,server}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
if [ $1 -ge 1 ]; then
%tmpfiles_create openvpn.conf
fi
:
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/openvpn
%dir %{_sysconfdir}/openvpn/client
%dir %{_sysconfdir}/openvpn/server
%dir %{_sysconfdir}/openvpn/easy-rsa
%{_sysconfdir}/openvpn/easy-rsa/*
%config(noreplace) %{_sysconfdir}/openvpn/easy-rsa/vars
%{_sbindir}/openvpn
%{_includedir}/openvpn-*.h
%{_tmpfilesdir}/openvpn.conf
%dir %{_libdir}/openvpn
%dir %{_libdir}/openvpn/plugins
%{_libdir}/openvpn/plugins/openvpn-plugin-auth-pam.so
%{_libdir}/openvpn/plugins/openvpn-plugin-down-root.so
%{_unitdir}/openvpn@.service
%{_unitdir}/openvpn-client@.service
%{_unitdir}/openvpn-server@.service
%dir %{_datadir}/doc/openvpn
%{_datadir}/doc/openvpn/*
%{_mandir}/man5/openvpn-examples.5*
%{_mandir}/man8/openvpn.8*
%doc AUTHORS COPYING
#ChangeLog README
%changelog
* Sat Mar 23 2024 Automatic Build System <autodist@openmamba.org> 2.6.10-1mamba
- automatic version update by autodist
* Fri Feb 16 2024 Automatic Build System <autodist@openmamba.org> 2.6.9-1mamba
- automatic version update by autodist
* Mon Dec 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.8-3mamba
- %_tmpfilesdir/openvpn.conf: fix legacy support for /run/openvpn
* Sat Dec 02 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.8-2mamba
- rebuilt with --enable-systemd
* Fri Nov 17 2023 Automatic Build System <autodist@mambasoft.it> 2.6.8-1mamba
- automatic version update by autodist
* Fri Nov 10 2023 Automatic Build System <autodist@mambasoft.it> 2.6.7-1mamba
- automatic version update by autodist
* Wed Aug 16 2023 Automatic Build System <autodist@mambasoft.it> 2.6.6-1mamba
- automatic version update by autodist
* Wed Jun 14 2023 Automatic Build System <autodist@mambasoft.it> 2.6.5-1mamba
- automatic version update by autodist
* Fri May 12 2023 Automatic Build System <autodist@mambasoft.it> 2.6.4-1mamba
- automatic version update by autodist
* Fri Apr 14 2023 Automatic Build System <autodist@mambasoft.it> 2.6.3-1mamba
- automatic version update by autodist
* Sat Mar 25 2023 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
- automatic version update by autodist
* Thu Mar 09 2023 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
- automatic version update by autodist
* Thu Jan 26 2023 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
- automatic version update by autodist
* Thu Nov 03 2022 Automatic Build System <autodist@mambasoft.it> 2.5.8-1mamba
- automatic version update by autodist
* Wed Jun 01 2022 Automatic Build System <autodist@mambasoft.it> 2.5.7-1mamba
- automatic version update by autodist
* Thu Mar 17 2022 Automatic Build System <autodist@mambasoft.it> 2.5.6-1mamba
- automatic version update by autodist
* Thu Dec 16 2021 Automatic Build System <autodist@mambasoft.it> 2.5.5-1mamba
- automatic version update by autodist
* Thu Oct 14 2021 Automatic Build System <autodist@mambasoft.it> 2.5.4-1mamba
- automatic version update by autodist
* Fri Jun 18 2021 Automatic Build System <autodist@mambasoft.it> 2.5.3-1mamba
- automatic version update by autodist
* Wed Apr 21 2021 Automatic Build System <autodist@mambasoft.it> 2.5.2-1mamba
- automatic version update by autodist
* Thu Feb 25 2021 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
- automatic version update by autodist
* Fri Oct 30 2020 Automatic Build System <autodist@mambasoft.it> 2.5.0-1mamba
- automatic version update by autodist
* Sat Apr 18 2020 Automatic Build System <autodist@mambasoft.it> 2.4.9-1mamba
- automatic version update by autodist
* Sun Nov 03 2019 Automatic Build System <autodist@mambasoft.it> 2.4.8-1mamba
- automatic version update by autodist
* Thu Feb 21 2019 Automatic Build System <autodist@mambasoft.it> 2.4.7-1mamba
- automatic version update by autodist
* Fri Apr 27 2018 Automatic Build System <autodist@mambasoft.it> 2.4.6-1mamba
- automatic version update by autodist
* Mon Mar 05 2018 Automatic Build System <autodist@mambasoft.it> 2.4.5-1mamba
- automatic version update by autodist
* Thu Sep 28 2017 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
- automatic version update by autodist
* Mon Aug 07 2017 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
- automatic version update by autodist
* Sat Mar 25 2017 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
* Sat Dec 31 2016 Automatic Build System <autodist@mambasoft.it> 2.4.0-1mamba
- automatic version update by autodist
* Thu Dec 08 2016 Automatic Build System <autodist@mambasoft.it> 2.3.14-1mamba
- automatic version update by autodist
* Thu Dec 01 2016 Automatic Build System <autodist@mambasoft.it> 2.3.13-1mamba
- automatic version update by autodist
* Sat Aug 27 2016 Automatic Build System <autodist@mambasoft.it> 2.3.12-1mamba
- automatic version update by autodist
* Thu May 26 2016 Automatic Build System <autodist@mambasoft.it> 2.3.11-1mamba
- automatic version update by autodist
* Sun Mar 20 2016 Automatic Build System <autodist@mambasoft.it> 2.3.10-1mamba
- automatic version update by autodist
* Sat Dec 26 2015 Automatic Build System <autodist@mambasoft.it> 2.3.9-1mamba
- automatic version update by autodist
* Wed Sep 23 2015 Automatic Build System <autodist@mambasoft.it> 2.3.8-1mamba
- automatic version update by autodist
* Wed Dec 03 2014 Automatic Build System <autodist@mambasoft.it> 2.3.6-1mamba
- automatic version update by autodist
* Sun Nov 02 2014 Automatic Build System <autodist@mambasoft.it> 2.3.5-1mamba
- automatic version update by autodist
* Fri May 16 2014 Automatic Build System <autodist@mambasoft.it> 2.3.4-1mamba
- automatic version update by autodist
* Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.3-4mamba
- switch to /run
* Wed Apr 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.3-3mamba
- switch to systemd service (use systemctl enable openvpn@myvpnconf)
* Tue Apr 29 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.3-2mamba
- reintegrate easy-rsa installed under /etc/openvpn
- install sample-config-files and sample-scripts under %{_docdir}/openvpn
- require openssl (for easy-rsa)
* Fri Apr 11 2014 Automatic Build System <autodist@mambasoft.it> 2.3.3-1mamba
- automatic version update by autodist
* Wed Jun 12 2013 Automatic Build System <autodist@mambasoft.it> 2.3.2-1mamba
- automatic version update by autodist
* Sun Mar 31 2013 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
- automatic version update by autodist
* Tue Feb 05 2013 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
- automatic version update by autodist
* Wed Jun 06 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.2.0-1mamba
- update to 2.2.2
- added missing easy-rsa
* Wed Nov 10 2010 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
- automatic update by autodist
* Wed Aug 25 2010 Automatic Build System <autodist@mambasoft.it> 2.1.2-1mamba
- automatic update by autodist
* Sun Dec 13 2009 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic update by autodist
* Fri Feb 29 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-2mamba
- added initscript and configuration directory
* Wed Mar 28 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-1mamba
- package created by autospec