4 |
%define dateversion 2020.03.20 |
%define dateversion 2020.03.20 |
5 |
%define buildrelease beta |
%define buildrelease beta |
6 |
%define version %{majorversion}.%{minorversion}.%{buildversion} |
%define version %{majorversion}.%{minorversion}.%{buildversion} |
7 |
%define release 1 |
%define release 2 |
8 |
|
|
9 |
Name: softethervpn |
Name: softethervpn |
10 |
Version: %{majorversion}.%{minorversion}.%{buildversion} |
Version: %{majorversion}.%{minorversion}.%{buildversion} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{dist} |
12 |
Summary: An Open-Source Free Cross-platform Multi-protocol VPN Program |
Summary: An Open-Source Free Cross-platform Multi-protocol VPN Program |
13 |
|
|
14 |
Group: Applications/Internet |
Group: Applications/Internet |
15 |
License: GPLv2 |
License: GPLv2 |
16 |
URL: http://www.softether.org/ |
URL: http://www.softether.org/ |
17 |
Source0: http://www.softether-download.com/files/softether/v%{majorversion}.%{minorversion}-%{buildversion}-%{buildrelease}-%{dateversion}-tree/Source_Code/softether-src-v%{majorversion}.%{minorversion}-%{buildversion}-%{buildrelease}.tar.gz |
Source0: http://www.softether-download.com/files/softether/v%{majorversion}.%{minorversion}-%{buildversion}-%{buildrelease}-%{dateversion}-tree/Source_Code/softether-src-v%{majorversion}.%{minorversion}-%{buildversion}-%{buildrelease}.tar.gz |
18 |
|
Patch0: softethervpn-pr202-merge5.01.9672.patch |
19 |
|
|
20 |
|
|
21 |
BuildRequires: ncurses-devel |
BuildRequires: ncurses-devel |
22 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
32 |
|
|
33 |
%prep |
%prep |
34 |
%setup -q -n v%{majorversion}.%{minorversion}-%{buildversion} |
%setup -q -n v%{majorversion}.%{minorversion}-%{buildversion} |
35 |
|
%patch0 -p1 |
36 |
|
|
37 |
|
%ifarch i386 i686 |
38 |
|
cp centos/SOURCES/linux_32bit.mak Makefile |
39 |
|
%else |
40 |
|
cp centos/SOURCES/linux_64bit.mak Makefile |
41 |
|
%endif |
42 |
|
|
43 |
%build |
%build |
44 |
%ifarch i386 i686 |
%ifarch i386 i686 |
45 |
cp $RPM_SOURCE_DIR/linux_32bit.mak Makefile |
#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_32bit.mak Makefile |
46 |
%else |
%else |
47 |
cp $RPM_SOURCE_DIR/linux_64bit.mak Makefile |
#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_64bit.mak Makefile |
48 |
%endif |
%endif |
49 |
make |
make |
50 |
|
|
53 |
make install DESTDIR=$RPM_BUILD_ROOT |
make install DESTDIR=$RPM_BUILD_ROOT |
54 |
install -m 755 -d $RPM_BUILD_ROOT/usr/bin/ |
install -m 755 -d $RPM_BUILD_ROOT/usr/bin/ |
55 |
install -m 755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
install -m 755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
56 |
install -m 755 $RPM_SOURCE_DIR/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver |
pwd |
57 |
install -m 755 $RPM_SOURCE_DIR/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge |
ls -lR |
58 |
install -m 755 $RPM_SOURCE_DIR/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient |
install -m 755 centos/SOURCES/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver |
59 |
install -m 755 $RPM_SOURCE_DIR/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd |
install -m 755 centos/SOURCES/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge |
60 |
install -m 755 $RPM_SOURCE_DIR/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver |
install -m 755 centos/SOURCES/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient |
61 |
|
install -m 755 centos/SOURCES/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd |
62 |
|
install -m 755 centos/SOURCES/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver |
63 |
|
|
64 |
%clean |
%clean |
65 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
100 |
fi |
fi |
101 |
|
|
102 |
%changelog |
%changelog |
103 |
|
* Sat Mar 28 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.34.9744-2.sme |
104 |
|
- add PR202 for ListenIP parameter in order to bind softethernet only on one IP |
105 |
|
this will allow to keep https on internal interface for server-gateway mode |
106 |
|
this has been merged to 5.01.9672 |
107 |
|
|
108 |
|
* Fri Mar 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.34.9744-1.sme |
109 |
|
- initial release SME 9 |
110 |
|
|
111 |
* Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1 |
* Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1 |
112 |
- Update upstream to 4.19.9582-beta |
- Update upstream to 4.19.9582-beta |
113 |
|
|