1 |
terryfage |
1.26 |
%define release 20 |
2 |
jpp |
1.6 |
%define version 1.0 |
3 |
|
|
|
4 |
jpp |
1.1 |
Name: smeserver-wireguard |
5 |
jpp |
1.6 |
Version: %{version} |
6 |
|
|
Release: %{release}%{?dist} |
7 |
jpp |
1.1 |
Summary: wireguard SME Server configuration package |
8 |
|
|
|
9 |
|
|
Group: VPN |
10 |
|
|
License: GPL |
11 |
|
|
URL: https://wiki.koozali.org/Wireguard |
12 |
|
|
Source0: smeserver-wireguard-1.0.tgz |
13 |
jpp |
1.4 |
Patch0: smeserver-wireguard-1.0-bz11721-init.patch |
14 |
brianr |
1.18 |
Patch1: smeserver-wireguard-1.0-Fix-allowedips-in-quick-conf-contents.patch |
15 |
brianr |
1.19 |
Patch2: smeserver-wireguard-1.0-bz11771-Delete-previous-network-records-when-server-ip-updated-validate-server-ip.patch |
16 |
michel |
1.20 |
Patch3: smeserver-wireguard-1.0-bz11819_smanager-bz11742_info.patch |
17 |
michel |
1.21 |
Patch4: smeserver-wireguard-1.0-fix_typos.patch |
18 |
jpp |
1.22 |
Patch5: smeserver-wireguard-1.0-bz11771-more-network-check.patch |
19 |
jpp |
1.23 |
Patch6: smeserver-wireguard-1.0-locale-2022-11-11.patch |
20 |
jpp |
1.24 |
Patch7: smeserver-wireguard-1.0-bz12288.patch |
21 |
brianr |
1.25 |
Patch8: smeserver-wireguard-1.0-Alter-menu-category-for-new-arrangement.patch |
22 |
terryfage |
1.26 |
Patch9: smeserver-wireguard-1.0-locale-2024-09-06.patch |
23 |
jpp |
1.1 |
|
24 |
|
|
BuildRequires: e-smith-devtools |
25 |
|
|
Requires: wireguard-tools |
26 |
|
|
Requires: kmod-wireguard |
27 |
michel |
1.20 |
Requires: smeserver-release >= 10 |
28 |
jpp |
1.1 |
Requires: qrencode |
29 |
|
|
Requires: perl-Net-Netmask |
30 |
jpp |
1.9 |
Requires: e-smith-base >= 5.8.1-2 |
31 |
jpp |
1.13 |
Requires: e-smith-lib >= 2.6.0-15 |
32 |
jpp |
1.1 |
|
33 |
michel |
1.20 |
AutoReqProv: no |
34 |
|
|
|
35 |
jpp |
1.1 |
%description |
36 |
|
|
WireGuard is a novel VPN that runs inside the Linux Kernel and uses |
37 |
|
|
state-of-the-art cryptography (the "Noise" protocol). It aims to be |
38 |
|
|
faster, simpler, leaner, and more useful than IPSec, while avoiding |
39 |
|
|
the massive headache. It intends to be considerably more performant |
40 |
|
|
than OpenVPN. WireGuard is designed as a general purpose VPN for |
41 |
|
|
running on embedded interfaces and super computers alike, fit for |
42 |
|
|
many different circumstances. It runs over UDP. |
43 |
jpp |
1.3 |
This package provides the Koozali SME SERVER configuration for controlling WireGuard. |
44 |
jpp |
1.1 |
|
45 |
|
|
%prep |
46 |
|
|
%setup -q |
47 |
jpp |
1.4 |
%patch0 -p1 |
48 |
brianr |
1.18 |
%patch1 -p1 |
49 |
brianr |
1.19 |
%patch2 -p1 |
50 |
michel |
1.20 |
%patch3 -p1 |
51 |
michel |
1.21 |
%patch4 -p1 |
52 |
jpp |
1.22 |
%patch5 -p1 |
53 |
jpp |
1.23 |
%patch6 -p1 |
54 |
jpp |
1.24 |
%patch7 -p1 |
55 |
brianr |
1.25 |
%patch8 -p1 |
56 |
terryfage |
1.26 |
%patch9 -p1 |
57 |
jpp |
1.1 |
|
58 |
|
|
%build |
59 |
|
|
perl createlink |
60 |
|
|
|
61 |
|
|
|
62 |
|
|
%install |
63 |
|
|
rm -rf %{buildroot} |
64 |
|
|
(cd root; find . -depth -print | cpio -dump %{buildroot}) |
65 |
|
|
/sbin/e-smith/genfilelist %{buildroot} \ |
66 |
|
|
--ignoredir "/etc/wireguard" \ |
67 |
|
|
> %{name}-%{version}-filelist |
68 |
|
|
|
69 |
|
|
cat %{name}-%{version}-filelist |
70 |
|
|
|
71 |
|
|
%files -f %{name}-%{version}-filelist |
72 |
|
|
%defattr(-,root,root) |
73 |
|
|
#%doc COPYING |
74 |
|
|
|
75 |
brianr |
1.25 |
%post |
76 |
|
|
if (systemctl list-unit-files |grep smanager) then |
77 |
|
|
echo "Smanager restart in spec file" |
78 |
|
|
/sbin/e-smith/signal-event smanager-refresh; |
79 |
|
|
fi |
80 |
|
|
|
81 |
jpp |
1.1 |
|
82 |
michel |
1.20 |
%changelog |
83 |
terryfage |
1.26 |
* Fri Sep 06 2024 Terry Fage <terry@fage.id.au> 1.0-20.sme |
84 |
|
|
- apply locale 2024-09-06.patch |
85 |
|
|
|
86 |
brianr |
1.25 |
* Fri Mar 01 2024 Brian Read <brianr@koozali.org> 1.0-19.sme |
87 |
|
|
- Edit SM2 Menu entry to conform to new arrangements [SME: 12493] |
88 |
|
|
|
89 |
jpp |
1.24 |
* Mon Dec 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-18.sme |
90 |
|
|
- remove masquerade and forward directive on startup [SME: 12288] |
91 |
|
|
|
92 |
jpp |
1.23 |
* Fri Nov 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-17.sme |
93 |
|
|
- apply locale 2022-11-11 patch |
94 |
|
|
|
95 |
jpp |
1.22 |
* Sun May 29 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-16.sme |
96 |
|
|
- improve check and tidying for non local network type [SME: 11771] |
97 |
|
|
updated both legacy and new panel |
98 |
|
|
|
99 |
michel |
1.21 |
* Tue Apr 19 2022 Michel Begue <mab974@misouk.com> 1.0-15.sme |
100 |
|
|
- Fix typos in templates |
101 |
|
|
|
102 |
michel |
1.20 |
* Fri Apr 15 2022 Michel Begue <mab974@misouk.com> 1.0-14.sme |
103 |
|
|
- Integrate wireguard with smeserver-manager (manager2) [SME: 11819] |
104 |
|
|
- Accept spaces in 'info' attribute [SME: 11742] |
105 |
jpp |
1.1 |
|
106 |
brianr |
1.19 |
* Thu Nov 25 2021 Brian Read <brianr@bjsystems.co.uk> 1.0-13.sme |
107 |
|
|
- Delete old networkdb records when server ip updated [SME: 11771] |
108 |
|
|
- Validate Server Ip range to be private in SM panel |
109 |
|
|
|
110 |
brianr |
1.18 |
* Tue Nov 16 2021 Brian Read <brianr@bjsystems.co.uk> 1.0-12.sme |
111 |
|
|
- Fix-allowedips-in-quick-conf-contents [SME: 11756] |
112 |
|
|
|
113 |
jpp |
1.17 |
* Wed Nov 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-11.sme |
114 |
|
|
- fix tainted string from dns query [SME: 11721] |
115 |
|
|
|
116 |
jpp |
1.16 |
* Wed Nov 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-10.sme |
117 |
|
|
- fix wrong delete event [SME: 11721] |
118 |
|
|
fix ip not shown if server only |
119 |
|
|
improved config display |
120 |
|
|
|
121 |
jpp |
1.15 |
* Mon Nov 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-9.sme |
122 |
|
|
- fix migrate fragment [SME: 11721] |
123 |
|
|
|
124 |
jpp |
1.14 |
* Sun Oct 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-8.sme |
125 |
|
|
- set DNS if allowedips 0.0.0.0/0 [SME: 11721] |
126 |
|
|
allowedips displayed as it has been set. |
127 |
|
|
|
128 |
jpp |
1.12 |
* Wed Oct 27 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-7.sme |
129 |
jpp |
1.4 |
- fix wrong ip [SME: 11721] |
130 |
jpp |
1.5 |
- updated templates fragments |
131 |
jpp |
1.8 |
- fix panel link ; fix private/public key creation; fix preset path |
132 |
jpp |
1.9 |
- requires e-smith-base >= 5.8.1-2 |
133 |
jpp |
1.4 |
|
134 |
jpp |
1.2 |
* Tue Oct 26 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-1.sme |
135 |
|
|
- first release for Koozali SME Server |