1 |
jpp |
1.1 |
%define majorversion 4 |
2 |
jpp |
1.2 |
%define minorversion 34 |
3 |
|
|
%define buildversion 9744 |
4 |
|
|
%define dateversion 2020.03.20 |
5 |
jpp |
1.1 |
%define buildrelease beta |
6 |
jpp |
1.2 |
%define version %{majorversion}.%{minorversion}.%{buildversion} |
7 |
jpp |
1.4 |
%define release 2 |
8 |
jpp |
1.3 |
|
9 |
jpp |
1.1 |
Name: softethervpn |
10 |
|
|
Version: %{majorversion}.%{minorversion}.%{buildversion} |
11 |
jpp |
1.3 |
Release: %{release}%{dist} |
12 |
jpp |
1.1 |
Summary: An Open-Source Free Cross-platform Multi-protocol VPN Program |
13 |
|
|
|
14 |
|
|
Group: Applications/Internet |
15 |
|
|
License: GPLv2 |
16 |
|
|
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 |
18 |
jpp |
1.4 |
Patch0: softethervpn-pr202-merge5.01.9672.patch |
19 |
|
|
|
20 |
jpp |
1.1 |
|
21 |
|
|
BuildRequires: ncurses-devel |
22 |
|
|
BuildRequires: openssl-devel |
23 |
|
|
BuildRequires: readline-devel |
24 |
|
|
|
25 |
|
|
Requires(post): chkconfig |
26 |
|
|
Requires(postun): initscripts |
27 |
|
|
Requires(preun): chkconfig |
28 |
|
|
Requires(preun): initscripts |
29 |
|
|
|
30 |
|
|
%description |
31 |
|
|
SoftEther VPN is one of the world's most powerful and easy-to-use multi-protocol VPN software. It runs on Windows, Linux, Mac, FreeBSD, and Solaris. |
32 |
|
|
|
33 |
|
|
%prep |
34 |
|
|
%setup -q -n v%{majorversion}.%{minorversion}-%{buildversion} |
35 |
jpp |
1.4 |
%patch0 -p1 |
36 |
jpp |
1.1 |
|
37 |
jpp |
1.3 |
%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 |
jpp |
1.1 |
%build |
44 |
|
|
%ifarch i386 i686 |
45 |
jpp |
1.3 |
#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_32bit.mak Makefile |
46 |
jpp |
1.1 |
%else |
47 |
jpp |
1.3 |
#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_64bit.mak Makefile |
48 |
jpp |
1.1 |
%endif |
49 |
|
|
make |
50 |
|
|
|
51 |
|
|
%install |
52 |
|
|
rm -rf $RPM_BUILD_ROOT |
53 |
|
|
make install DESTDIR=$RPM_BUILD_ROOT |
54 |
|
|
install -m 755 -d $RPM_BUILD_ROOT/usr/bin/ |
55 |
|
|
install -m 755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
56 |
jpp |
1.3 |
pwd |
57 |
|
|
ls -lR |
58 |
|
|
install -m 755 centos/SOURCES/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver |
59 |
|
|
install -m 755 centos/SOURCES/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge |
60 |
|
|
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 |
jpp |
1.1 |
|
64 |
|
|
%clean |
65 |
|
|
rm -rf $RPM_BUILD_ROOT |
66 |
|
|
|
67 |
|
|
%files |
68 |
|
|
%defattr(-,root,root,-) |
69 |
|
|
%{_usr}/bin/vpnserver |
70 |
|
|
%{_usr}/bin/vpnbridge |
71 |
|
|
%{_usr}/bin/vpnclient |
72 |
|
|
%{_usr}/bin/vpncmd |
73 |
|
|
%{_usr}/vpnserver/hamcore.se2 |
74 |
|
|
%{_usr}/vpnserver/vpnserver |
75 |
|
|
%{_usr}/vpnbridge/hamcore.se2 |
76 |
|
|
%{_usr}/vpnbridge/vpnbridge |
77 |
|
|
%{_usr}/vpnclient/hamcore.se2 |
78 |
|
|
%{_usr}/vpnclient/vpnclient |
79 |
|
|
%{_usr}/vpncmd/hamcore.se2 |
80 |
|
|
%{_usr}/vpncmd/vpncmd |
81 |
|
|
%{_usr}/vpnserver/ |
82 |
|
|
%{_usr}/vpnbridge/ |
83 |
|
|
%{_usr}/vpnclient/ |
84 |
|
|
%{_usr}/vpncmd/ |
85 |
|
|
%{_initddir}/vpnserver |
86 |
|
|
%doc AUTHORS.TXT BUILD_UNIX.TXT BUILD_WINDOWS.TXT ChangeLog ChangeLog.txt LICENSE LICENSE.TXT README README.TXT THIRD_PARTY.TXT WARNING.TXT |
87 |
|
|
|
88 |
|
|
%post |
89 |
|
|
/sbin/chkconfig --add vpnserver |
90 |
|
|
|
91 |
|
|
#%postun |
92 |
|
|
#if [ "$1" -ge "1" ]; then |
93 |
|
|
# /sbin/service vpnserver condrestart >/dev/null 2>&1 || : |
94 |
|
|
#fi |
95 |
|
|
|
96 |
|
|
%preun |
97 |
|
|
if [ $1 -eq 0 ]; then |
98 |
|
|
/sbin/service vpnserver stop >/dev/null 2>&1 |
99 |
|
|
/sbin/chkconfig --del vpnserver |
100 |
|
|
fi |
101 |
|
|
|
102 |
|
|
%changelog |
103 |
jpp |
1.4 |
* 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 |
jpp |
1.3 |
* Fri Mar 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.34.9744-1.sme |
109 |
|
|
- initial release SME 9 |
110 |
|
|
|
111 |
jpp |
1.1 |
* Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1 |
112 |
|
|
- Update upstream to 4.19.9582-beta |
113 |
|
|
|
114 |
|
|
* Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9577-1 |
115 |
|
|
- Update upstream to 4.19.9577 |
116 |
|
|
|
117 |
|
|
* Wed Jan 29 2014 Dexter Ang <thepoch@gmail.com> - 4.04.9412-2 |
118 |
|
|
- Made initscript more Fedora/RH-like. |
119 |
|
|
- initscript currently using killall. Need to fix this. |
120 |
|
|
|
121 |
|
|
* Tue Jan 21 2014 Dexter Ang <thepoch@gmail.com> |
122 |
|
|
- Initial release |
123 |
|
|
|