]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
perl-JSON: Installation of new package required by samba
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 21 Apr 2022 07:51:46 +0000 (09:51 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 24 Apr 2022 14:20:43 +0000 (14:20 +0000)
- Installation of lfs and rootfile for perl-JSON - required by samba-4.16.0

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/rootfiles/packages/perl-JSON [new file with mode: 0644]
lfs/perl-JSON [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/perl-JSON b/config/rootfiles/packages/perl-JSON
new file mode 100644 (file)
index 0000000..e6c4dbb
--- /dev/null
@@ -0,0 +1,14 @@
+#usr/lib/perl5/site_perl/5.32.1/JSON
+usr/lib/perl5/site_perl/5.32.1/JSON.pm
+#usr/lib/perl5/site_perl/5.32.1/JSON/backportPP
+usr/lib/perl5/site_perl/5.32.1/JSON/backportPP.pm
+usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Boolean.pm
+usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Compat5005.pm
+usr/lib/perl5/site_perl/5.32.1/JSON/backportPP/Compat5006.pm
+#usr/lib/perl5/site_perl/5.32.1/xxxMACHINExxx-linux-thread-multi/auto/JSON
+#usr/lib/perl5/site_perl/5.32.1/xxxMACHINExxx-linux-thread-multi/auto/JSON/.packlist
+#usr/share/man/man3/JSON.3
+#usr/share/man/man3/JSON::backportPP.3
+#usr/share/man/man3/JSON::backportPP::Boolean.3
+#usr/share/man/man3/JSON::backportPP::Compat5005.3
+#usr/share/man/man3/JSON::backportPP::Compat5006.3
diff --git a/lfs/perl-JSON b/lfs/perl-JSON
new file mode 100644 (file)
index 0000000..796c1f0
--- /dev/null
@@ -0,0 +1,88 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2019  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    = JSON (JavaScript Object Notation) encoder/decoder
+
+VER        = 4.05
+
+THISAPP    = JSON-$(VER)
+DL_FILE    = ${THISAPP}.tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+PROG       = perl-JSON
+DEPS       =
+PAK_VER    = 1
+
+SERVICES   =
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 0ecf27b15a780833fe6cb12bece6eaa5a75de92a02f901014105d1435857867d86ccad94e2666195fc66ed41f45f8f91061a06b1e5e05f3a332803b46bb4b53e
+
+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 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)
diff --git a/make.sh b/make.sh
index bf2fce1683c193256fecb6835a5e63718520844a..5f9f16d0544f00b0c0a3053bc0072b5a8f43706a 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1417,6 +1417,7 @@ buildipfire() {
   lfsmake2 perl-XML-Parser
   lfsmake2 perl-Crypt-PasswdMD5
   lfsmake2 perl-Net-Telnet
+  lfsmake2 perl-JSON
   lfsmake2 python3-setuptools
   lfsmake2 python3-inotify
   lfsmake2 python3-docutils