/[smecontribs]/rpms/softethervpn/contribs10/softethervpn.spec
ViewVC logotype

Contents of /rpms/softethervpn/contribs10/softethervpn.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Jan 20 15:47:43 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: softethervpn-4_34_9744-3_el7_sme, HEAD
Changes since 1.1: +15 -8 lines
* Sat Jan 16 2021 Brian Read <brianr@bjsystems.co.uk> %{majorversion}.%{minorversion}.%{buildversion}-3.sme
- Import to SME10 tree [SME: 11326]
- Copy systemd service file

1 %define majorversion 4
2 %define minorversion 34
3 %define buildversion 9744
4 %define dateversion 2020.03.20
5 %define buildrelease beta
6 %define version %{majorversion}.%{minorversion}.%{buildversion}
7 %define release 3
8
9 Name: softethervpn
10 Version: %{majorversion}.%{minorversion}.%{buildversion}
11 Release: %{release}%{dist}
12 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 Patch0: softethervpn-pr202-merge5.01.9672.patch
19
20
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 %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
44 %ifarch i386 i686
45 #cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_32bit.mak Makefile
46 %else
47 #cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_64bit.mak Makefile
48 %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 install -m 755 -d $RPM_BUILD_ROOT/usr/lib/systemd/system
57 pwd
58 ls -lR
59 install -m 755 centos/SOURCES/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver
60 install -m 755 centos/SOURCES/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge
61 install -m 755 centos/SOURCES/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient
62 install -m 755 centos/SOURCES/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd
63 #install -m 755 centos/SOURCES/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver
64 install -m 755 systemd/softether-vpnserver.service $RPM_BUILD_ROOT/usr/lib/systemd/system/vpnserver.service
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(-,root,root,-)
71 %{_usr}/bin/vpnserver
72 %{_usr}/bin/vpnbridge
73 %{_usr}/bin/vpnclient
74 %{_usr}/bin/vpncmd
75 %{_usr}/lib/systemd/system/vpnserver.service
76 %{_usr}/vpnserver/hamcore.se2
77 %{_usr}/vpnserver/vpnserver
78 %{_usr}/vpnbridge/hamcore.se2
79 %{_usr}/vpnbridge/vpnbridge
80 %{_usr}/vpnclient/hamcore.se2
81 %{_usr}/vpnclient/vpnclient
82 %{_usr}/vpncmd/hamcore.se2
83 %{_usr}/vpncmd/vpncmd
84 %{_usr}/vpnserver/
85 %{_usr}/vpnbridge/
86 %{_usr}/vpnclient/
87 %{_usr}/vpncmd/
88 #%{_initddir}/vpnserver
89 %doc AUTHORS.TXT BUILD_UNIX.TXT BUILD_WINDOWS.TXT ChangeLog ChangeLog.txt LICENSE LICENSE.TXT README README.TXT THIRD_PARTY.TXT WARNING.TXT
90
91 %post
92 #/sbin/chkconfig --add vpnserver
93
94 #%postun
95 #if [ "$1" -ge "1" ]; then
96 # /sbin/service vpnserver condrestart >/dev/null 2>&1 || :
97 #fi
98
99 %preun
100 #if [ $1 -eq 0 ]; then
101 # /sbin/service vpnserver stop >/dev/null 2>&1
102 # /sbin/chkconfig --del vpnserver
103 #fi
104
105 %changelog
106 * Sat Jan 16 2021 Brian Read <brianr@bjsystems.co.uk> %{majorversion}.%{minorversion}.%{buildversion}-3.sme
107 - Import to SME10 tree [SME: 11326]
108 - Copy systemd service file
109
110 * Sat Mar 28 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.34.9744-2.sme
111 - add PR202 for ListenIP parameter in order to bind softethernet only on one IP
112 this will allow to keep https on internal interface for server-gateway mode
113 this has been merged to 5.01.9672
114
115 * Fri Mar 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.34.9744-1.sme
116 - initial release SME 9
117
118 * Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1
119 - Update upstream to 4.19.9582-beta
120
121 * Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9577-1
122 - Update upstream to 4.19.9577
123
124 * Wed Jan 29 2014 Dexter Ang <thepoch@gmail.com> - 4.04.9412-2
125 - Made initscript more Fedora/RH-like.
126 - initscript currently using killall. Need to fix this.
127
128 * Tue Jan 21 2014 Dexter Ang <thepoch@gmail.com>
129 - Initial release
130

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed