# $Id: smeserver-openvpn-bridge.spec,v 1.5 2009/03/03 16:02:16 slords Exp $ # Authority: vip-ire # Name: Daniel Berteaud Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for bridge mode %define name smeserver-openvpn-bridge Name: %{name} %define version 2.0 %define release 11 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Remote access Source: %{name}-%{version}.tar.gz Patch0: smeserver-openvpn-bridge-2.0-remove_dup_migrate.patch Patch1: smeserver-openvpn-bridge-2.0-pull.patch Patch2: smeserver-openvpn-bridge-2.0-config_required.patch Patch3: smeserver-openvpn-bridge-2.0-config_cleanup.patch Patch4: smeserver-openvpn-bridge-2.0-add_rule.patch Patch5: smeserver-openvpn-bridge-2.0-locale1.patch #Patch6: smeserver-openvpn-bridge-2.0-openvpn_db.patch Patch7: smeserver-openvpn-bridge-2.0-check_certs.patch Patch8: smeserver-openvpn-bridge-2.0-check_bridge.patch Patch9: smeserver-openvpn-bridge-2.0-configure_crl_url.patch Patch10: smeserver-openvpn-bridge-2.0-check_certs.patch2 Patch11: smeserver-openvpn-bridge-2.0-create_openvpn_db.patch Patch12: smeserver-openvpn-bridge-2.0-local_fr_1.patch Patch13: smeserver-openvpn-bridge-2.0-fixtranslation.patch Patch14: smeserver-openvpn-bridge-2.0-removedups.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-base Requires: openvpn Requires: perl(Net::OpenVPN::Manage) Obsoletes: smeserver-openvpn-bridge-fws Obsoletes: smeserver-openvpn-bridge.fws %description This package contains all the needed scripts and templates to have a full working openvpn server running in bridge mode. The panel of the server manager has a certificate manager so you won't have to generate them manually %changelog * Tue Mar 03 2009 Shad L. Lords [2.0-11] - Remove duplicate translations that break pootle * Tue Mar 03 2009 Shad L. Lords [2.0-10] - Rename locale/en to locale/en-us to pootle works * Tue Mar 03 2009 Daniel B. [2.0-9] - Apply locale patch fr 1 - Add e-smith-devtools as a dependencie * Thu Jan 29 2009 Daniel B. [2.0-8] - Fix an error with the creation of the db * Wed Jan 28 2009 Daniel B. [2.0-7] - Cleanly create openvpn-bridge db * Fri Jan 16 2009 Daniel B. [2.0-6] - Just warn if openvpn db is missing - Fix certificates check - Warn if bridge service isn't enabled - Configure the CRL update URL * Mon Jan 12 2009 Daniel B. [2.0-5] - localization patch * Mon Dec 22 2008 Daniel B. [2.0-4] - Add validate_common_name routine * Wed Dec 19 2008 Daniel B. [2.0-3] - Added option configRequired (accept only certificate listed in the rules section) - Clean config templates * Tue Dec 16 2008 Daniel B. [2.0-2] - Add missing pull directive in client config * Fri Dec 12 2008 Daniel B. [2.0-1] - Remove useless migrate fragment (now handled by the bridge package) * Thu Dec 04 2008 Daniel B. [2.0-0] - The bridge stuff is now in a separated rpm - Restarting the service doesn't cut the InternalInterface as the bridge isn't restarted - Correct (truely this time) the bug with dhcpd looping - Panel re-writen in FormMagick (much more simple now) - Removed the certificate manager, now handled by phpki - Real-time clients info using Net::OpenVPN::Manage - Routes to local networks are pushed to clients * Tue Feb 06 2007 Daniel Berteaud - [1.1-1] - Bugs fixes (repported by Stephan Braunstein) - corrections in the en language * Tue Feb 06 2007 Daniel Berteaud - [1.1-0] - panel enhancement - little correction in the local file * Fri Dec 11 2006 Daniel Berteaud - [1.0-3] - correction of permissions on startup and shutdown scripts - little correction in the local file * Fri Dec 08 2006 Daniel Berteaud - [1.0-2] - Added missing directory keys/bridge * Fri Dec 06 2006 Daniel Berteaud - [1.0-1] - Removed useless parameters from the panel (tap, br and localInf) - Added a stop script (k20openvpn-bridge) - panel renamed to openvpn-bridge for futur compatibility %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 #%patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %build perl createlinks %{__mkdir_p} root/etc/openvpn/bridge/ccd %{__mkdir_p} root/etc/openvpn/bridge/priv %{__mkdir_p} root/etc/openvpn/bridge/pub %{__mkdir_p} root/var/log/openvpn-bridge %install /bin/rm -rf $RPM_BUILD_ROOT (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ --file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ --dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ --file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ > %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist %defattr(-,root,root) %clean rm -rf $RPM_BUILD_ROOT %post %preun if [ $1 -eq 0 ] ; then /sbin/e-smith/db configuration setprop openvpn-bridge status disabled sv d /service/openvpn-bridge fi true