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

Annotation of /rpms/softethervpn/contribs9/softethervpn.spec

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


Revision 1.2 - (hide annotations) (download)
Fri Mar 27 20:37:43 2020 UTC (4 years, 2 months ago) by jpp
Branch: MAIN
Changes since 1.1: +6 -5 lines
* Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1
- Update upstream to 4.19.9582-beta

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     %define release 1
8 jpp 1.1 Name: softethervpn
9     Version: %{majorversion}.%{minorversion}.%{buildversion}
10 jpp 1.2 Release: %{release}%{?dist}
11 jpp 1.1 Summary: An Open-Source Free Cross-platform Multi-protocol VPN Program
12    
13     Group: Applications/Internet
14     License: GPLv2
15     URL: http://www.softether.org/
16     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
17    
18     BuildRequires: ncurses-devel
19     BuildRequires: openssl-devel
20     BuildRequires: readline-devel
21    
22     Requires(post): chkconfig
23     Requires(postun): initscripts
24     Requires(preun): chkconfig
25     Requires(preun): initscripts
26    
27     %description
28     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.
29    
30     %prep
31     %setup -q -n v%{majorversion}.%{minorversion}-%{buildversion}
32    
33     %build
34     %ifarch i386 i686
35     cp $RPM_SOURCE_DIR/linux_32bit.mak Makefile
36     %else
37     cp $RPM_SOURCE_DIR/linux_64bit.mak Makefile
38     %endif
39     make
40    
41     %install
42     rm -rf $RPM_BUILD_ROOT
43     make install DESTDIR=$RPM_BUILD_ROOT
44     install -m 755 -d $RPM_BUILD_ROOT/usr/bin/
45     install -m 755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d
46     install -m 755 $RPM_SOURCE_DIR/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver
47     install -m 755 $RPM_SOURCE_DIR/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge
48     install -m 755 $RPM_SOURCE_DIR/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient
49     install -m 755 $RPM_SOURCE_DIR/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd
50     install -m 755 $RPM_SOURCE_DIR/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver
51    
52     %clean
53     rm -rf $RPM_BUILD_ROOT
54    
55     %files
56     %defattr(-,root,root,-)
57     %{_usr}/bin/vpnserver
58     %{_usr}/bin/vpnbridge
59     %{_usr}/bin/vpnclient
60     %{_usr}/bin/vpncmd
61     %{_usr}/vpnserver/hamcore.se2
62     %{_usr}/vpnserver/vpnserver
63     %{_usr}/vpnbridge/hamcore.se2
64     %{_usr}/vpnbridge/vpnbridge
65     %{_usr}/vpnclient/hamcore.se2
66     %{_usr}/vpnclient/vpnclient
67     %{_usr}/vpncmd/hamcore.se2
68     %{_usr}/vpncmd/vpncmd
69     %{_usr}/vpnserver/
70     %{_usr}/vpnbridge/
71     %{_usr}/vpnclient/
72     %{_usr}/vpncmd/
73     %{_initddir}/vpnserver
74     %doc AUTHORS.TXT BUILD_UNIX.TXT BUILD_WINDOWS.TXT ChangeLog ChangeLog.txt LICENSE LICENSE.TXT README README.TXT THIRD_PARTY.TXT WARNING.TXT
75    
76     %post
77     /sbin/chkconfig --add vpnserver
78    
79     #%postun
80     #if [ "$1" -ge "1" ]; then
81     # /sbin/service vpnserver condrestart >/dev/null 2>&1 || :
82     #fi
83    
84     %preun
85     if [ $1 -eq 0 ]; then
86     /sbin/service vpnserver stop >/dev/null 2>&1
87     /sbin/chkconfig --del vpnserver
88     fi
89    
90     %changelog
91     * Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9582-1
92     - Update upstream to 4.19.9582-beta
93    
94     * Wed Sep 30 2015 Jeff Tang <mrjefftang@gmail.com> - 4.19.9577-1
95     - Update upstream to 4.19.9577
96    
97     * Wed Jan 29 2014 Dexter Ang <thepoch@gmail.com> - 4.04.9412-2
98     - Made initscript more Fedora/RH-like.
99     - initscript currently using killall. Need to fix this.
100    
101     * Tue Jan 21 2014 Dexter Ang <thepoch@gmail.com>
102     - Initial release
103    

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