]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
wireguard-tools: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Apr 2024 13:50:08 +0000 (13:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:32 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/wireguard-tools [new file with mode: 0644]
lfs/wireguard-tools [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/wireguard-tools b/config/rootfiles/common/wireguard-tools
new file mode 100644 (file)
index 0000000..f21db9a
--- /dev/null
@@ -0,0 +1,3 @@
+usr/bin/wg
+#usr/share/bash-completion/completions/wg
+#usr/share/man/man8/wg.8
diff --git a/lfs/wireguard-tools b/lfs/wireguard-tools
new file mode 100644 (file)
index 0000000..31fc575
--- /dev/null
@@ -0,0 +1,79 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2024  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.0.20210914
+
+THISAPP    = wireguard-tools-$(VER)
+DL_FILE    = $(THISAPP).tar.xz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+# Disable wg-quick
+export WITH_WGQUICK = no
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 020f4a61597dafc6663e9ee5659f9401416692f5dc8e23afe8d59054bffd32c92814ff2e1f99d6ffe558fdfcf756afc1838e4d425847f892ad4b627a077fe614
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP)/src && make $(MAKETUNING)
+       cd $(DIR_APP)/src && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 8da90d61d446927e9b35768c038f4ab68c17fa50..a1040e85c853aec6ad53ae0b0a70b4a0bc113a5d 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1507,6 +1507,7 @@ build_system() {
        lfsmake2 libnetfilter_cttimeout
        lfsmake2 iptables
        lfsmake2 iproute2
+       lfsmake2 wireguard-tools
        lfsmake2 screen
        lfsmake2 elfutils
        lfsmake2 libconfig