]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
jquery: Add extra jquery package.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Oct 2013 14:46:15 +0000 (16:46 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Oct 2013 14:46:15 +0000 (16:46 +0200)
Because this is easier to keep up to date.

config/rootfiles/common/jquery [new file with mode: 0644]
lfs/jquery [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/jquery b/config/rootfiles/common/jquery
new file mode 100644 (file)
index 0000000..cb55288
--- /dev/null
@@ -0,0 +1 @@
+srv/web/ipfire/html/include/jquery.js
diff --git a/lfs/jquery b/lfs/jquery
new file mode 100644 (file)
index 0000000..7856ce0
--- /dev/null
@@ -0,0 +1,76 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2013  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.10.2
+
+THISAPP    = jquery-$(VER)
+DL_FILE    = $(THISAPP).min.js
+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 = 628072e7212db1e8cdacb22b21752cda
+
+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)
+
+       -mkdir -pv /srv/web/ipfire/html/include
+       install -v -m 644 $(DIR_DL)/$(DL_FILE) /srv/web/ipfire/html/include/jquery.js
+
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 9619ad33b562730b96b6c1ed38c88556f4705973..61308921c8e88cc78bc30517f7470b9fd7b787a6 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -493,6 +493,7 @@ buildipfire() {
   ipfiremake apache2
   ipfiremake php
   ipfiremake apache2                   PASS=C
+  ipfiremake jquery
   ipfiremake arping
   ipfiremake beep
   ipfiremake dvdrtools