]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
JSON-Parse: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Nov 2014 00:57:04 +0000 (01:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Mar 2015 15:39:08 +0000 (16:39 +0100)
config/rootfiles/common/JSON-Parse [new file with mode: 0644]
lfs/JSON-Parse [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/JSON-Parse b/config/rootfiles/common/JSON-Parse
new file mode 100644 (file)
index 0000000..42986ff
--- /dev/null
@@ -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 (file)
index 0000000..d35303e
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 857020468c1a11aa4506d6e3740ecb7245a6b976..97f6ed584fead682189852e89d40862537f4492f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -823,6 +823,7 @@ buildipfire() {
   ipfiremake libsodium
   ipfiremake json-c
   ipfiremake fastd
+  ipfiremake JSON-Parse
 }
 
 buildinstaller() {