From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4bLQZX2KJKz307R for ; Mon, 16 Jun 2025 10:04:04 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4bLQZS5l3xz2y59 for ; Mon, 16 Jun 2025 10:04:00 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4bLQZS12g7zTD; Mon, 16 Jun 2025 10:04:00 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1750068240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OEKhGcuTLhZBBf9xlRoNULK0SVtaoXl5achRkx+3JhQ=; b=DpX3+2uoWJXpprGdnWHQIPBI9CPM/tHt7Kz43biUCYPdybhvtQlEuxxhHNFUlvxbJG4dVO GOVJBjbIUUEYApBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1750068240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OEKhGcuTLhZBBf9xlRoNULK0SVtaoXl5achRkx+3JhQ=; b=BOpmLKsgNVjDcOK+BoEDVjcS2ygr7GpIz3VYbivDV2UocxlHvTnR7HuN7DJ4pf7HzMrTO7 5YRqkhgNByi6EkK6jzVPVBsqyNGXbVGOzj0AiwtVnRowdw5G6smVsO1UeGLjET5UX8cXeR hoxri8rEIWRzmU0YOT+QU+u2dqMkgmwigHAJ6qL5PH9DrV6oP5sBWRzJfy4cpRBYMLhtxB iThVpokdNkR5XH2qH6Pn3NMFI5eh09F4TGsjoDtdJKs8SSyQVONy+/+HOposbadyDmbOC2 iZ75K1rSRdn9skpOcLfW97csDrh7JZTjdo+Tyrd2KQAGU4xkaa1vCmHGD/C79g== Content-Type: text/plain; charset=us-ascii Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: Mime-Version: 1.0 Subject: Re: [PATCH] fort-validator: New package From: Michael Tremer In-Reply-To: <20250612162701.3735-1-stefan.schantl@ipfire.org> Date: Mon, 16 Jun 2025 11:03:59 +0100 Cc: development@lists.ipfire.org Content-Transfer-Encoding: quoted-printable Message-Id: <668F27CD-D75C-40B6-8840-7DD958629FE4@ipfire.org> References: <20250612162701.3735-1-stefan.schantl@ipfire.org> To: Stefan Schantl Thank you Stefan. I had to add a couple of fixes to the initscript and we needed to ship = the TAL files. = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3D5e5aeed7b0c9= 55ccaecaefed9e3f104ffad56136 = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dccc460565ffd= 5e36d6c494726bac8c91ffd98168 = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dd01b600c15cb= 1b0fb04049af88b193bd9fbdf9d4 = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Da005bdb87938= 029cfb768ccfdf9fc40a08ea68aa = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dd5a6101fbcb4= 46c41f15963971edab801ee059c0 = https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3De53ee1841872= 4ee1f442c94b9caacdeb5459524f So far I can confirm that the package is working. -Michael > On 12 Jun 2025, at 17:27, Stefan Schantl = wrote: >=20 > FORT Validator is an open source RPKI validator. It allows operators = to validate BGP routing information > against the RPKI repository for use in router configuration and = resolution. >=20 > This patch includes the LFS and rootfile to build the validator, > an initscript, required definitions for backup and an empty config = file > for user customization. >=20 > Fixes #13845. >=20 > Signed-off-by: Stefan Schantl > --- > config/backup/includes/fort-validator | 2 + > config/fort-validator/config.json | 2 + > config/rootfiles/packages/fort-validator | 8 ++ > lfs/fort-validator | 112 +++++++++++++++++++++++ > make.sh | 1 + > src/initscripts/packages/fort-validator | 55 +++++++++++ > 6 files changed, 180 insertions(+) > create mode 100644 config/backup/includes/fort-validator > create mode 100644 config/fort-validator/config.json > create mode 100644 config/rootfiles/packages/fort-validator > create mode 100644 lfs/fort-validator > create mode 100644 src/initscripts/packages/fort-validator >=20 > diff --git a/config/backup/includes/fort-validator = b/config/backup/includes/fort-validator > new file mode 100644 > index 000000000..92d1f6446 > --- /dev/null > +++ b/config/backup/includes/fort-validator > @@ -0,0 +1,2 @@ > +/etc/fort/config.json > +/var/lib/fort > diff --git a/config/fort-validator/config.json = b/config/fort-validator/config.json > new file mode 100644 > index 000000000..2c63c0851 > --- /dev/null > +++ b/config/fort-validator/config.json > @@ -0,0 +1,2 @@ > +{ > +} > diff --git a/config/rootfiles/packages/fort-validator = b/config/rootfiles/packages/fort-validator > new file mode 100644 > index 000000000..629aab345 > --- /dev/null > +++ b/config/rootfiles/packages/fort-validator > @@ -0,0 +1,8 @@ > +etc/fort > +etc/fort/config.json > +etc/fort/config.json.example > +etc/rc.d/init.d/fort-validator > +usr/bin/fort > +#usr/share/man/man8/fort.8 > +var/ipfire/backup/addons/includes/fort-validator > +var/lib/fort > diff --git a/lfs/fort-validator b/lfs/fort-validator > new file mode 100644 > index 000000000..cb8ba8972 > --- /dev/null > +++ b/lfs/fort-validator > @@ -0,0 +1,112 @@ > = +#########################################################################= ###### > +# = # > +# 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 > + > +SUMMARY =3D Fort RPKI validator > + > +VER =3D 1.6.6 > + > +THISAPP =3D FORT-validator-$(VER) > +DL_FILE =3D $(THISAPP).tar.gz > +DL_FROM =3D $(URL_IPFIRE) > +DIR_APP =3D $(DIR_SRC)/$(THISAPP) > +TARGET =3D $(DIR_INFO)/$(THISAPP) > +PROG =3D fort-validator > +PAK_VER =3D 1 > + > +DEPS =3D > + > +SERVICES =3D fort-validator > + > = +#########################################################################= ###### > +# Top-level Rules > = +#########################################################################= ###### > + > +objects =3D $(DL_FILE) > + > +$(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) > + > +$(DL_FILE)_BLAKE2 =3D = c62a0e41e2a2fea60383ae87ff92d9cd68945c459b0ccaa4d0a3fc6d8c0796cb0dc0fde730= 5023e4ddcf476b4043ac73d8213638a8f319862a3c39e3381f43da > + > +install : $(TARGET) > + > +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) > + > +download :$(patsubst %,$(DIR_DL)/%,$(objects)) > + > +b2 : $(subst %,%_BLAKE2,$(objects)) > + > +dist: > + @$(PAK) > + > = +#########################################################################= ###### > +# 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) && ./autogen.sh > + cd $(DIR_APP) && ./configure \ > + --prefix=3D/usr \ > + --sysconfdir=3D/etc > + > + cd $(DIR_APP) && make $(MAKETUNING) > + cd $(DIR_APP) && make install > + > + # Create directory layout > + mkdir -pv /etc/fort > + mkdir -pv /var/lib/fort > + > + # Install plain config file. > + cd $(DIR_APP) && install -m 0644 = $(DIR_SRC)/config/fort-validator/config.json \ > + /etc/fort/config.json > + > + # Install example config file. > + cd $(DIR_APP) && install -m 0644 $(DIR_APP)/examples/config.json \ > + /etc/fort/config.json.example > + > + # Install initscripts > + $(call INSTALL_INITSCRIPTS,$(SERVICES)) > + > + # Install backup definitions > + install -v -m 644 $(DIR_SRC)/config/backup/includes/fort-validator \ > + /var/ipfire/backup/addons/includes/fort-validator > + > + @rm -rf $(DIR_APP) > + @$(POSTBUILD) > diff --git a/make.sh b/make.sh > index 61921fee6..181692f70 100755 > --- a/make.sh > +++ b/make.sh > @@ -2085,6 +2085,7 @@ build_system() { > lfsmake2 btrfs-progs > lfsmake2 inotify-tools > lfsmake2 grub-btrfs > + lfsmake2 fort-validator >=20 > lfsmake2 linux > lfsmake2 rtl8812au > diff --git a/src/initscripts/packages/fort-validator = b/src/initscripts/packages/fort-validator > new file mode 100644 > index 000000000..e0c9ba29c > --- /dev/null > +++ b/src/initscripts/packages/fort-validator > @@ -0,0 +1,55 @@ > +#!/bin/sh > = +#########################################################################= ###### > +# = # > +# IPFire.org - A linux based firewall = # > +# Copyright (C) 2007-2025 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 = . # > +# = # > = +#########################################################################= ###### > + > +. /etc/sysconfig/rc > +. ${rc_functions} > + > +case "${1}" in > + start) > + boot_mesg "Starting fort RPKI validator..." > + loadproc /usr/bin/fort --log.output=3Dsyslog = --validation-log.output=3Dsyslog --configuration-file = /etc/fort/config.json > + ;; > + > + stop) > + boot_mesg "Stopping fort RPKI validator..." > + killproc /usr/bin/fort > + ;; > + > + reload) > + boot_mesg "Reloading fort RPKI validator..." > + reloadproc /usr/bin/fort > + ;; > + > + restart) > + ${0} stop > + sleep 1 > + ${0} start > + ;; > + > + status) > + statusproc /usr/bin/fort > + ;; > + > + *) > + echo "Usage: ${0} {start|stop|reload|restart|status}" > + exit 1 > + ;; > +esac > --=20 > 2.47.2 >=20 >=20