public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH 2/2] perl-Encode-Locale: New package required as an observium-agent runtime dependency
Date: Thu, 18 Jun 2026 17:28:34 +0200	[thread overview]
Message-ID: <20260618152834.3585310-2-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20260618152834.3585310-1-adolf.belka@ipfire.org>

Fixes: Bug14017
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/packages/perl-Encode-Locale |  6 ++
 lfs/perl-Encode-Locale                       | 88 ++++++++++++++++++++
 make.sh                                      |  1 +
 3 files changed, 95 insertions(+)
 create mode 100644 config/rootfiles/packages/perl-Encode-Locale
 create mode 100644 lfs/perl-Encode-Locale

diff --git a/config/rootfiles/packages/perl-Encode-Locale b/config/rootfiles/packages/perl-Encode-Locale
new file mode 100644
index 000000000..d687f5ec7
--- /dev/null
+++ b/config/rootfiles/packages/perl-Encode-Locale
@@ -0,0 +1,6 @@
+#usr/lib/perl5/site_perl/5.36.0/Encode
+usr/lib/perl5/site_perl/5.36.0/Encode/Locale.pm
+#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Encode
+#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Encode/Locale
+#usr/lib/perl5/site_perl/5.36.0/xxxMACHINExxx-linux-thread-multi/auto/Encode/Locale/.packlist
+#usr/share/man/man3/Encode::Locale.3
diff --git a/lfs/perl-Encode-Locale b/lfs/perl-Encode-Locale
new file mode 100644
index 000000000..e89251853
--- /dev/null
+++ b/lfs/perl-Encode-Locale
@@ -0,0 +1,88 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2026-2026  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
+
+SUMMARY    = Perl extension to determine the locale encoding
+
+VER        = 1.05
+
+THISAPP    = Encode-Locale-$(VER)
+DL_FILE    = ${THISAPP}.tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = perl-Encode-Locale
+DEPS       =
+PAK_VER    = 1
+
+SERVICES   =
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = f66bac8ebf012e7673b344b3899bed755558b80833a68b009b6083aeadd9d69748a63bee4e5e3c20dffaf7f2551fd6c9c778273ae992752c426e081d35715dee
+
+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) && perl Makefile.PL
+	cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
+	cd $(DIR_APP) && make install
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)
diff --git a/make.sh b/make.sh
index cfcbb7635..b060bfbdf 100755
--- a/make.sh
+++ b/make.sh
@@ -1884,6 +1884,7 @@ build_system() {
 	lfsmake2 qemu
 	lfsmake2 nagios_nrpe
 	lfsmake2 nagios-plugins
+	lfsmake2 perl-Encode-Locale
 	lfsmake2 observium-agent
 	lfsmake2 ebtables
 	lfsmake2 faad2
-- 
2.54.0



      reply	other threads:[~2026-06-18 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18 15:28 [PATCH 1/2] observium-agent: Add perl-Encode-Locale as a run-time dependency Adolf Belka
2026-06-18 15:28 ` Adolf Belka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260618152834.3585310-2-adolf.belka@ipfire.org \
    --to=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox