From a8edab9a24e551ccc9351b9bac873c0e2bb36af9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 25 Nov 2014 01:57:04 +0100 Subject: [PATCH] JSON-Parse: New package --- config/rootfiles/common/JSON-Parse | 11 +++++ lfs/JSON-Parse | 77 ++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 89 insertions(+) create mode 100644 config/rootfiles/common/JSON-Parse create mode 100644 lfs/JSON-Parse diff --git a/config/rootfiles/common/JSON-Parse b/config/rootfiles/common/JSON-Parse new file mode 100644 index 0000000000..42986ff02e --- /dev/null +++ b/config/rootfiles/common/JSON-Parse @@ -0,0 +1,11 @@ +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/JSON +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/JSON/Parse.pm +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/JSON/Parse.pod +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/JSON/Tokenize.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/JSON/Whitespace.pm +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/JSON +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/JSON/Parse +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/JSON/Parse/.packlist +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/JSON/Parse/Parse.bs +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/JSON/Parse/Parse.so +#usr/share/man/man3/JSON::Parse.3 diff --git a/lfs/JSON-Parse b/lfs/JSON-Parse new file mode 100644 index 0000000000..d35303ebb9 --- /dev/null +++ b/lfs/JSON-Parse @@ -0,0 +1,77 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# 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 = 0.30 + +THISAPP = JSON-Parse-$(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)_MD5 = 5b7848a694ef4041661c632dfe6f2a5b + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# 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 857020468c..97f6ed584f 100755 --- a/make.sh +++ b/make.sh @@ -823,6 +823,7 @@ buildipfire() { ipfiremake libsodium ipfiremake json-c ipfiremake fastd + ipfiremake JSON-Parse } buildinstaller() { -- 2.39.5