From eb47427429e5518385344c2fa262948b0b0e659a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 14 Apr 2024 13:50:08 +0000 Subject: [PATCH] wireguard-tools: New package Signed-off-by: Michael Tremer --- config/rootfiles/common/wireguard-tools | 3 + lfs/wireguard-tools | 79 +++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 83 insertions(+) create mode 100644 config/rootfiles/common/wireguard-tools create mode 100644 lfs/wireguard-tools diff --git a/config/rootfiles/common/wireguard-tools b/config/rootfiles/common/wireguard-tools new file mode 100644 index 000000000..f21db9aae --- /dev/null +++ b/config/rootfiles/common/wireguard-tools @@ -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 index 000000000..31fc57553 --- /dev/null +++ b/lfs/wireguard-tools @@ -0,0 +1,79 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2024 IPFire Team # +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# 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 8da90d61d..a1040e85c 100755 --- 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 -- 2.39.5