Merge remote-tracking branch 'origin/master' into next

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2024-03-31 13:36:08 +02:00
38 changed files with 421 additions and 66 deletions

View File

@@ -4,7 +4,7 @@
IPFire is a hardened, versatile, state-of-the-art Open Source firewall based on IPFire is a hardened, versatile, state-of-the-art Open Source firewall based on
Linux. Its ease of use, high performance in any scenario and extensibility make Linux. Its ease of use, high performance in any scenario and extensibility make
it usable for everyone. For a full list of features have a look [here](https://www.ipfire.org/features). it usable for everyone. For a full list of features have a look [here](https://www.ipfire.org/about).
This repository contains the source code of IPFire 2.x which is used to build This repository contains the source code of IPFire 2.x which is used to build
the whole distribution from scratch, since IPFire is not based on any other the whole distribution from scratch, since IPFire is not based on any other
@@ -16,13 +16,13 @@ Just head over to https://www.ipfire.org/download
# How do I use this software? # How do I use this software?
We have a long and detailed wiki located [here](https://wiki.ipfire.org/) which We have a long and detailed documentation located [here](https://ipfire.org/docs) which
should answers most of your questions. should answer most of your questions.
# But I have some questions left. Where can I get support? # But I have some questions left. Where can I get support?
You can ask your question at our community located [here](https://community.ipfire.org/). You can ask your question at our community located [here](https://community.ipfire.org/).
A complete list of our support channels can be found [here](https://www.ipfire.org/support). A complete list of our support channels can be found [here](https://www.ipfire.org/help).
# How can I contribute? # How can I contribute?

View File

@@ -30,7 +30,7 @@ require "${General::swroot}/network-functions.pl";
require "${General::swroot}/suricata/ruleset-sources"; require "${General::swroot}/suricata/ruleset-sources";
# Load perl module to deal with Archives. # Load perl module to deal with Archives.
use Archive::Tar; use Archive::Peek::Libarchive;
# Load perl module to deal with files and path. # Load perl module to deal with files and path.
use File::Basename; use File::Basename;
@@ -515,9 +515,6 @@ sub downloadruleset ($) {
sub extractruleset ($) { sub extractruleset ($) {
my ($provider) = @_; my ($provider) = @_;
# Disable chown functionality when uncompressing files.
$Archive::Tar::CHOWN = "0";
# Get full path and downloaded rulesfile for the given provider. # Get full path and downloaded rulesfile for the given provider.
my $tarball = &_get_dl_rulesfile($provider); my $tarball = &_get_dl_rulesfile($provider);
@@ -547,13 +544,11 @@ sub extractruleset ($) {
} elsif ( $type eq "archive") { } elsif ( $type eq "archive") {
# Initialize the tar module. # Initialize the tar module.
my $tar = Archive::Tar->new($tarball); my $tar = Archive::Peek::Libarchive->new(filename => $tarball);
# Get the filelist inside the tarball. # Loop through the archive
my @packed_files = $tar->list_files; $tar->iterate( sub {
my ($packed_file, $content) = @_;
# Loop through the filelist.
foreach my $packed_file (@packed_files) {
my $destination; my $destination;
# Splitt the packed file into chunks. # Splitt the packed file into chunks.
@@ -572,13 +567,13 @@ sub extractruleset ($) {
# Handle rules files. # Handle rules files.
} elsif ($file =~ m/\.rules$/) { } elsif ($file =~ m/\.rules$/) {
# Skip rule files which are not located in the rules directory or archive root. # Skip rule files which are not located in the rules directory or archive root.
next unless(($packed_file =~ /^rules\//) || ($packed_file =~ /^$provider-rules\//) || ($packed_file !~ /\//)); return unless(($packed_file =~ /^rules\//) || ($packed_file =~ /^$provider-rules\//) || ($packed_file !~ /\//));
# Skip deleted.rules. # Skip deleted.rules.
# #
# Mostly they have been taken out for correctness or performance reasons and therfore # Mostly they have been taken out for correctness or performance reasons and therfore
# it is not a great idea to enable any of them. # it is not a great idea to enable any of them.
next if($file =~ m/deleted.rules$/); return if($file =~ m/deleted.rules$/);
my $rulesfilename; my $rulesfilename;
@@ -615,39 +610,24 @@ sub extractruleset ($) {
$destination = "$tmp_rules_directory/$rulesfilename"; $destination = "$tmp_rules_directory/$rulesfilename";
} else { } else {
# Skip all other files. # Skip all other files.
next; return;
} }
# Check if the destination file exists. # Check if the destination file exists.
unless(-e "$destination") { unless(-e "$destination") {
# Extract the file to the temporary directory. # Open filehandle to write the content to a new file.
$tar->extract_file("$packed_file", "$destination"); open(FILE, ">", "$destination") or die "Could not open $destination. $!\n";
} else { } else {
# Generate temporary file name, located in the temporary rules directory and a suffix of ".tmp". # Open filehandle to append the content to the existing file.
my $tmp = File::Temp->new( SUFFIX => ".tmp", DIR => "$tmp_rules_directory", UNLINK => 0 ); open(FILE, ">>", "$destination") or die "Could not open $destination. $!\n";
my $tmpfile = $tmp->filename();
# Extract the file to the new temporary file name.
$tar->extract_file("$packed_file", "$tmpfile");
# Open the the existing file.
open(DESTFILE, ">>", "$destination") or die "Could not open $destination. $!\n";
open(TMPFILE, "<", "$tmpfile") or die "Could not open $tmpfile. $!\n";
# Loop through the content of the temporary file.
while (<TMPFILE>) {
# Append the content line by line to the destination file.
print DESTFILE "$_";
}
# Close the file handles.
close(TMPFILE);
close(DESTFILE);
# Remove the temporary file.
unlink("$tmpfile");
} }
}
# Write the extracted file content to the filehandle.
print FILE "$content" if ($content);
# Close the file handle.
close(FILE);
});
} }
} }

View File

@@ -0,0 +1,8 @@
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/Archive
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/Archive/Peek
usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/Archive/Peek/Libarchive.pm
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Archive/Peek
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Archive/Peek/Libarchive
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Archive/Peek/Libarchive/.packlist
usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Archive/Peek/Libarchive/Libarchive.so
#usr/share/man/man3/Archive::Peek::Libarchive.3

View File

@@ -0,0 +1,6 @@
#usr/lib/perl5/site_perl/5.36.0/Capture
#usr/lib/perl5/site_perl/5.36.0/Capture/Tiny.pm
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Capture
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Capture/Tiny
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Capture/Tiny/.packlist
#usr/share/man/man3/Capture::Tiny.3

View File

@@ -0,0 +1,6 @@
#usr/lib/perl5/site_perl/5.36.0/Config
#usr/lib/perl5/site_perl/5.36.0/Config/AutoConf.pm
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Config
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Config/AutoConf
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Config/AutoConf/.packlist
#usr/share/man/man3/Config::AutoConf.3

View File

@@ -0,0 +1,6 @@
#usr/lib/perl5/site_perl/5.36.0/Object
usr/lib/perl5/site_perl/5.36.0/Object/Tiny.pm
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Object
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Object/Tiny
#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Object/Tiny/.packlist
#usr/share/man/man3/Object::Tiny.3

View File

@@ -8,6 +8,6 @@
#usr/lib/libprotobuf-c.a #usr/lib/libprotobuf-c.a
#usr/lib/libprotobuf-c.la #usr/lib/libprotobuf-c.la
#usr/lib/libprotobuf-c.so #usr/lib/libprotobuf-c.so
#usr/lib/libprotobuf-c.so.1 usr/lib/libprotobuf-c.so.1
#usr/lib/libprotobuf-c.so.1.0.0 usr/lib/libprotobuf-c.so.1.0.0
#usr/lib/pkgconfig/libprotobuf-c.pc #usr/lib/pkgconfig/libprotobuf-c.pc

View File

@@ -41,18 +41,17 @@ usr/bin/xzmore
#usr/lib/liblzma.la #usr/lib/liblzma.la
#usr/lib/liblzma.so #usr/lib/liblzma.so
usr/lib/liblzma.so.5 usr/lib/liblzma.so.5
usr/lib/liblzma.so.5.6.1 usr/lib/liblzma.so.5.4.5
#usr/lib/pkgconfig/liblzma.pc #usr/lib/pkgconfig/liblzma.pc
#usr/share/doc/xz #usr/share/doc/xz
#usr/share/doc/xz/AUTHORS #usr/share/doc/xz/AUTHORS
#usr/share/doc/xz/COPYING #usr/share/doc/xz/COPYING
#usr/share/doc/xz/COPYING.0BSD
#usr/share/doc/xz/COPYING.GPLv2 #usr/share/doc/xz/COPYING.GPLv2
#usr/share/doc/xz/NEWS #usr/share/doc/xz/NEWS
#usr/share/doc/xz/README #usr/share/doc/xz/README
#usr/share/doc/xz/THANKS #usr/share/doc/xz/THANKS
#usr/share/doc/xz/TODO
#usr/share/doc/xz/api #usr/share/doc/xz/api
#usr/share/doc/xz/api/COPYING.CC-BY-SA-4.0
#usr/share/doc/xz/api/annotated.html #usr/share/doc/xz/api/annotated.html
#usr/share/doc/xz/api/base_8h.html #usr/share/doc/xz/api/base_8h.html
#usr/share/doc/xz/api/bc_s.png #usr/share/doc/xz/api/bc_s.png
@@ -121,15 +120,16 @@ usr/lib/liblzma.so.5.6.1
#usr/share/doc/xz/api/tabs.css #usr/share/doc/xz/api/tabs.css
#usr/share/doc/xz/api/version_8h.html #usr/share/doc/xz/api/version_8h.html
#usr/share/doc/xz/api/vli_8h.html #usr/share/doc/xz/api/vli_8h.html
#usr/share/doc/xz/api/xz-logo.png
#usr/share/doc/xz/examples #usr/share/doc/xz/examples
#usr/share/doc/xz/examples/00_README.txt #usr/share/doc/xz/examples/00_README.txt
#usr/share/doc/xz/examples/01_compress_easy.c #usr/share/doc/xz/examples/01_compress_easy.c
#usr/share/doc/xz/examples/02_decompress.c #usr/share/doc/xz/examples/02_decompress.c
#usr/share/doc/xz/examples/03_compress_custom.c #usr/share/doc/xz/examples/03_compress_custom.c
#usr/share/doc/xz/examples/04_compress_easy_mt.c #usr/share/doc/xz/examples/04_compress_easy_mt.c
#usr/share/doc/xz/examples/11_file_info.c
#usr/share/doc/xz/examples/Makefile #usr/share/doc/xz/examples/Makefile
#usr/share/doc/xz/examples_old
#usr/share/doc/xz/examples_old/xz_pipe_comp.c
#usr/share/doc/xz/examples_old/xz_pipe_decomp.c
#usr/share/doc/xz/faq.txt #usr/share/doc/xz/faq.txt
#usr/share/doc/xz/history.txt #usr/share/doc/xz/history.txt
#usr/share/doc/xz/lzma-file-format.txt #usr/share/doc/xz/lzma-file-format.txt
@@ -168,7 +168,6 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/de/man1/lzless.1 #usr/share/man/de/man1/lzless.1
#usr/share/man/de/man1/lzma.1 #usr/share/man/de/man1/lzma.1
#usr/share/man/de/man1/lzmadec.1 #usr/share/man/de/man1/lzmadec.1
#usr/share/man/de/man1/lzmainfo.1
#usr/share/man/de/man1/lzmore.1 #usr/share/man/de/man1/lzmore.1
#usr/share/man/de/man1/unlzma.1 #usr/share/man/de/man1/unlzma.1
#usr/share/man/de/man1/unxz.1 #usr/share/man/de/man1/unxz.1
@@ -185,16 +184,21 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/fr #usr/share/man/fr
#usr/share/man/fr/man1 #usr/share/man/fr/man1
#usr/share/man/fr/man1/lzcat.1 #usr/share/man/fr/man1/lzcat.1
#usr/share/man/fr/man1/lzcmp.1
#usr/share/man/fr/man1/lzdiff.1
#usr/share/man/fr/man1/lzless.1 #usr/share/man/fr/man1/lzless.1
#usr/share/man/fr/man1/lzma.1 #usr/share/man/fr/man1/lzma.1
#usr/share/man/fr/man1/lzmadec.1 #usr/share/man/fr/man1/lzmadec.1
#usr/share/man/fr/man1/lzmainfo.1 #usr/share/man/fr/man1/lzmore.1
#usr/share/man/fr/man1/unlzma.1 #usr/share/man/fr/man1/unlzma.1
#usr/share/man/fr/man1/unxz.1 #usr/share/man/fr/man1/unxz.1
#usr/share/man/fr/man1/xz.1 #usr/share/man/fr/man1/xz.1
#usr/share/man/fr/man1/xzcat.1 #usr/share/man/fr/man1/xzcat.1
#usr/share/man/fr/man1/xzcmp.1
#usr/share/man/fr/man1/xzdec.1 #usr/share/man/fr/man1/xzdec.1
#usr/share/man/fr/man1/xzdiff.1
#usr/share/man/fr/man1/xzless.1 #usr/share/man/fr/man1/xzless.1
#usr/share/man/fr/man1/xzmore.1
#usr/share/man/ko #usr/share/man/ko
#usr/share/man/ko/man1 #usr/share/man/ko/man1
#usr/share/man/ko/man1/lzcat.1 #usr/share/man/ko/man1/lzcat.1
@@ -206,7 +210,6 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/ko/man1/lzless.1 #usr/share/man/ko/man1/lzless.1
#usr/share/man/ko/man1/lzma.1 #usr/share/man/ko/man1/lzma.1
#usr/share/man/ko/man1/lzmadec.1 #usr/share/man/ko/man1/lzmadec.1
#usr/share/man/ko/man1/lzmainfo.1
#usr/share/man/ko/man1/lzmore.1 #usr/share/man/ko/man1/lzmore.1
#usr/share/man/ko/man1/unlzma.1 #usr/share/man/ko/man1/unlzma.1
#usr/share/man/ko/man1/unxz.1 #usr/share/man/ko/man1/unxz.1
@@ -246,16 +249,27 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/pt_BR #usr/share/man/pt_BR
#usr/share/man/pt_BR/man1 #usr/share/man/pt_BR/man1
#usr/share/man/pt_BR/man1/lzcat.1 #usr/share/man/pt_BR/man1/lzcat.1
#usr/share/man/pt_BR/man1/lzcmp.1
#usr/share/man/pt_BR/man1/lzdiff.1
#usr/share/man/pt_BR/man1/lzegrep.1
#usr/share/man/pt_BR/man1/lzfgrep.1
#usr/share/man/pt_BR/man1/lzgrep.1
#usr/share/man/pt_BR/man1/lzless.1 #usr/share/man/pt_BR/man1/lzless.1
#usr/share/man/pt_BR/man1/lzma.1 #usr/share/man/pt_BR/man1/lzma.1
#usr/share/man/pt_BR/man1/lzmadec.1 #usr/share/man/pt_BR/man1/lzmadec.1
#usr/share/man/pt_BR/man1/lzmainfo.1 #usr/share/man/pt_BR/man1/lzmore.1
#usr/share/man/pt_BR/man1/unlzma.1 #usr/share/man/pt_BR/man1/unlzma.1
#usr/share/man/pt_BR/man1/unxz.1 #usr/share/man/pt_BR/man1/unxz.1
#usr/share/man/pt_BR/man1/xz.1 #usr/share/man/pt_BR/man1/xz.1
#usr/share/man/pt_BR/man1/xzcat.1 #usr/share/man/pt_BR/man1/xzcat.1
#usr/share/man/pt_BR/man1/xzcmp.1
#usr/share/man/pt_BR/man1/xzdec.1 #usr/share/man/pt_BR/man1/xzdec.1
#usr/share/man/pt_BR/man1/xzdiff.1
#usr/share/man/pt_BR/man1/xzegrep.1
#usr/share/man/pt_BR/man1/xzfgrep.1
#usr/share/man/pt_BR/man1/xzgrep.1
#usr/share/man/pt_BR/man1/xzless.1 #usr/share/man/pt_BR/man1/xzless.1
#usr/share/man/pt_BR/man1/xzmore.1
#usr/share/man/ro #usr/share/man/ro
#usr/share/man/ro/man1 #usr/share/man/ro/man1
#usr/share/man/ro/man1/lzcat.1 #usr/share/man/ro/man1/lzcat.1
@@ -267,7 +281,6 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/ro/man1/lzless.1 #usr/share/man/ro/man1/lzless.1
#usr/share/man/ro/man1/lzma.1 #usr/share/man/ro/man1/lzma.1
#usr/share/man/ro/man1/lzmadec.1 #usr/share/man/ro/man1/lzmadec.1
#usr/share/man/ro/man1/lzmainfo.1
#usr/share/man/ro/man1/lzmore.1 #usr/share/man/ro/man1/lzmore.1
#usr/share/man/ro/man1/unlzma.1 #usr/share/man/ro/man1/unlzma.1
#usr/share/man/ro/man1/unxz.1 #usr/share/man/ro/man1/unxz.1
@@ -292,7 +305,6 @@ usr/lib/liblzma.so.5.6.1
#usr/share/man/uk/man1/lzless.1 #usr/share/man/uk/man1/lzless.1
#usr/share/man/uk/man1/lzma.1 #usr/share/man/uk/man1/lzma.1
#usr/share/man/uk/man1/lzmadec.1 #usr/share/man/uk/man1/lzmadec.1
#usr/share/man/uk/man1/lzmainfo.1
#usr/share/man/uk/man1/lzmore.1 #usr/share/man/uk/man1/lzmore.1
#usr/share/man/uk/man1/unlzma.1 #usr/share/man/uk/man1/unlzma.1
#usr/share/man/uk/man1/unxz.1 #usr/share/man/uk/man1/unxz.1

View File

@@ -0,0 +1 @@
../../../../common/aarch64/boost

View File

@@ -0,0 +1 @@
../../../../common/aarch64/grub

View File

@@ -0,0 +1 @@
../../../common/apache2

View File

@@ -0,0 +1 @@
../../../common/collectd

View File

@@ -50,6 +50,7 @@ srv/web/ipfire/cgi-bin/ids.cgi
srv/web/ipfire/cgi-bin/index.cgi srv/web/ipfire/cgi-bin/index.cgi
srv/web/ipfire/cgi-bin/ovpnmain.cgi srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/time.cgi srv/web/ipfire/cgi-bin/time.cgi
usr/lib/python3.10/lib-dynload/_lzma.cpython-310-xxxMACHINExxx-linux-gnu.so
usr/local/bin/update-ids-ruleset usr/local/bin/update-ids-ruleset
var/ipfire/backup/bin/backup.pl var/ipfire/backup/bin/backup.pl
var/ipfire/ids-functions.pl var/ipfire/ids-functions.pl

View File

@@ -0,0 +1 @@
../../../common/kmod

View File

@@ -0,0 +1 @@
../../../common/libarchive

View File

@@ -0,0 +1 @@
../../../common/libtiff

View File

@@ -0,0 +1 @@
../../../common/libxml2

View File

@@ -0,0 +1 @@
../../../common/perl-Archive-Peek-Libarchive

View File

@@ -0,0 +1 @@
../../../common/perl-Capture-Tiny

View File

@@ -0,0 +1 @@
../../../common/perl-Config-AutoConf

View File

@@ -0,0 +1 @@
../../../common/perl-Object-Tiny

View File

@@ -0,0 +1 @@
../../../../common/riscv64/boost

View File

@@ -0,0 +1 @@
../../../../common/riscv64/grub

View File

@@ -0,0 +1 @@
../../../../common/x86_64/boost

View File

@@ -0,0 +1 @@
../../../../common/x86_64/grub

View File

@@ -67,7 +67,8 @@ rm -rvf \
/var/ipfire/geoip-functions.pl \ /var/ipfire/geoip-functions.pl \
/var/ipfire/dhcpc/dhcpcd-hooks/00-linux \ /var/ipfire/dhcpc/dhcpcd-hooks/00-linux \
/var/ipfire/dhcpc/dhcpcd-hooks/02-dump \ /var/ipfire/dhcpc/dhcpcd-hooks/02-dump \
/var/lib/location/tmp* /var/lib/location/tmp* \
/usr/lib/liblzma.so.5.6.*
# update linker config # update linker config
ldconfig ldconfig
@@ -88,12 +89,15 @@ chmod -v 640 /etc/sudoers.d/*
# Start services # Start services
telinit u telinit u
/etc/init.d/sshd restart /etc/init.d/sshd restart
/etc/init.d/apache restart
/etc/init.d/suricata restart /etc/init.d/suricata restart
/etc/init.d/unbound restart /etc/init.d/unbound restart
/etc/init.d/ntp start /etc/init.d/ntp start
if [ -f /var/ipfire/proxy/enable ]; then if [ -f /var/ipfire/proxy/enable ]; then
/etc/init.d/squid start /etc/init.d/squid start
fi fi
/etc/init.d/collectd restart
## Modify ovpnconfig according to bug 13548 for no-pass entry for N2N client connections ## Modify ovpnconfig according to bug 13548 for no-pass entry for N2N client connections
# Check if ovpnconfig exists and is not empty # Check if ovpnconfig exists and is not empty
if [ -s /var/ipfire/ovpn/ovpnconfig ]; then if [ -s /var/ipfire/ovpn/ovpnconfig ]; then

View File

@@ -117,6 +117,7 @@ Hans Horsten,
Jakub Ratajczak, Jakub Ratajczak,
Jorrit de Jonge, Jorrit de Jonge,
Przemek Zdroik, Przemek Zdroik,
Rico Hoppe,
Roberto Peña, Roberto Peña,
Sebastien GISLAIN, Sebastien GISLAIN,
Alexander Rudolf Gruber, Alexander Rudolf Gruber,

View File

@@ -37,7 +37,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER_FILTERS) DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER_FILTERS)
TARGET = $(DIR_INFO)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)
PROG = foomatic PROG = foomatic
PAK_VER = 9 PAK_VER = 10
DEPS = cups ghostscript hplip DEPS = cups ghostscript hplip

View File

@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP) DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)
PROG = frr PROG = frr
PAK_VER = 8 PAK_VER = 9
DEPS = DEPS =

View File

@@ -0,0 +1,77 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 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 = 0.38
THISAPP = Archive-Peek-Libarchive-$(VER)
DL_FILE = ${THISAPP}.tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 142d54a6fe6b948129307ef7b0106905b2ddf858682d07a4f0815e6674f7fd425f462a800487949e18442884d6c743aeed049ebef7138fe0bfbbabac588dc3b3
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 zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && perl Makefile.PL
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

77
lfs/perl-Capture-Tiny Normal file
View File

@@ -0,0 +1,77 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 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 = 0.48
THISAPP = Capture-Tiny-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = e6de05459478131c5129dd5ffc84744e2d3440c2e31545ed101c2986b2bc970106f126286dea50350f4b5ea330ffac423693d755e29850883bdc215437bf7488
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 zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && perl Makefile.PL
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

77
lfs/perl-Config-AutoConf Normal file
View File

@@ -0,0 +1,77 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 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 = 0.320
THISAPP = Config-AutoConf-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 649ef56196a5984437f299f96b156f63560a247a35f0547145e3519648ba5fc86c057957570b45b696c2092a56deaf0595d9191b4fe389e0a0f183b79d6c500a
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 zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && perl Makefile.PL
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

77
lfs/perl-Object-Tiny Normal file
View File

@@ -0,0 +1,77 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2018 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.09
THISAPP = Object-Tiny-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 0383d8af24d8c0d76dfc3cb6a65c6422f631d5ca4f9e083cf1077cc220b7aa27852c23ad5535bbcab74c7f5e9d1cba8f0f5c4d8da48c07a300d3b9e995b69d5c
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 zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && perl Makefile.PL
cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP) DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)
PROG = sarg PROG = sarg
PAK_VER = 6 PAK_VER = 7
DEPS = DEPS =

View File

@@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP) DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)
PROG = tor PROG = tor
PAK_VER = 83 PAK_VER = 84
DEPS = libseccomp DEPS = libseccomp

4
lfs/xz
View File

@@ -24,7 +24,7 @@
include Config include Config
VER = 5.6.1 VER = 5.4.5
THISAPP = xz-$(VER) THISAPP = xz-$(VER)
DL_FILE = $(THISAPP).tar.xz DL_FILE = $(THISAPP).tar.xz
@@ -45,7 +45,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 3a1cf93d7223eb57e78eabe828a3d623acac5824ada299470e3126692ef89d1648293aef32468d70a5289611969d5299180c1b373dfbda002a49f3afc729d925 $(DL_FILE)_BLAKE2 = 08d9afebd927ea5d155515a4c9eedda4d1a249f2b1ab6ada11f50e5b7a3c90b389b32378ab1c0872c7f4627de8dff37149d85e49f7f4d30614add37320ec4f3e
install : $(TARGET) install : $(TARGET)

View File

@@ -1377,6 +1377,10 @@ buildipfire() {
lfsmake2 perl-Crypt-PasswdMD5 lfsmake2 perl-Crypt-PasswdMD5
lfsmake2 perl-Net-Telnet lfsmake2 perl-Net-Telnet
lfsmake2 perl-JSON lfsmake2 perl-JSON
lfsmake2 perl-Capture-Tiny
lfsmake2 perl-Config-AutoConf
lfsmake2 perl-Object-Tiny
lfsmake2 perl-Archive-Peek-Libarchive
lfsmake2 python3-inotify lfsmake2 python3-inotify
lfsmake2 python3-docutils lfsmake2 python3-docutils
lfsmake2 python3-daemon lfsmake2 python3-daemon

View File

@@ -22,7 +22,7 @@
. /etc/sysconfig/rc . /etc/sysconfig/rc
. ${rc_functions} . ${rc_functions}
DAEMONS="zebra bgpd ospfd staticd" DAEMONS="mgmtd zebra bgpd ospfd staticd"
case "${1}" in case "${1}" in
start) start)
@@ -51,8 +51,11 @@ case "${1}" in
;; ;;
reload) reload)
boot_mesg "Reloading FRRouting..." # Reload all daemons
reloadproc /usr/sbin/frr-reload for daemon in ${DAEMONS}; do
boot_mesg "Reloading FRRouting ${daemon}..."
reloadproc "/usr/sbin/${daemon}"
done
;; ;;
restart) restart)