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

Diff of /rpms/softethervpn/contribs10/softethervpn.spec

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

Revision 1.1 by brianr, Sat Jan 16 07:43:47 2021 UTC Revision 1.2 by brianr, Wed Jan 20 15:47:43 2021 UTC
# Line 4  Line 4 
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 2  %define release 3
8    
9  Name:           softethervpn  Name:           softethervpn
10  Version:        %{majorversion}.%{minorversion}.%{buildversion}  Version:        %{majorversion}.%{minorversion}.%{buildversion}
# Line 53  rm -rf $RPM_BUILD_ROOT Line 53  rm -rf $RPM_BUILD_ROOT
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 -d $RPM_BUILD_ROOT/usr/lib/systemd/system
57  pwd  pwd
58  ls -lR  ls -lR
59  install -m 755 centos/SOURCES/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver  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  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  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  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  #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  %clean
67  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 70  rm -rf $RPM_BUILD_ROOT Line 72  rm -rf $RPM_BUILD_ROOT
72  %{_usr}/bin/vpnbridge  %{_usr}/bin/vpnbridge
73  %{_usr}/bin/vpnclient  %{_usr}/bin/vpnclient
74  %{_usr}/bin/vpncmd  %{_usr}/bin/vpncmd
75    %{_usr}/lib/systemd/system/vpnserver.service
76  %{_usr}/vpnserver/hamcore.se2  %{_usr}/vpnserver/hamcore.se2
77  %{_usr}/vpnserver/vpnserver  %{_usr}/vpnserver/vpnserver
78  %{_usr}/vpnbridge/hamcore.se2  %{_usr}/vpnbridge/hamcore.se2
# Line 82  rm -rf $RPM_BUILD_ROOT Line 85  rm -rf $RPM_BUILD_ROOT
85  %{_usr}/vpnbridge/  %{_usr}/vpnbridge/
86  %{_usr}/vpnclient/  %{_usr}/vpnclient/
87  %{_usr}/vpncmd/  %{_usr}/vpncmd/
88  %{_initddir}/vpnserver  #%{_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  %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  %post
92  /sbin/chkconfig --add vpnserver  #/sbin/chkconfig --add vpnserver
93    
94  #%postun  #%postun
95  #if [ "$1" -ge "1" ]; then  #if [ "$1" -ge "1" ]; then
# Line 94  rm -rf $RPM_BUILD_ROOT Line 97  rm -rf $RPM_BUILD_ROOT
97  #fi  #fi
98    
99  %preun  %preun
100  if [ $1 -eq 0 ]; then  #if [ $1 -eq 0 ]; then
101          /sbin/service vpnserver stop >/dev/null 2>&1  #       /sbin/service vpnserver stop >/dev/null 2>&1
102          /sbin/chkconfig --del vpnserver  #       /sbin/chkconfig --del vpnserver
103  fi  #fi
104    
105  %changelog  %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  * 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  - 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    this will allow to keep https on internal interface for server-gateway mode


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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