[pve-devel] [PATCH 2/2] Add makefile targets for the ext js framework in version 5.1 (gpl)

Emmanuel Kasper e.kasper at proxmox.com
Mon Mar 30 13:47:17 CEST 2015


This commit only installs the required javascript / css files for ext js 5.1
in /usr/share/pve-manager/ext5, but does not use it by default, as we have to sort out
the upgrade issues between 4.0 and 5.1 before.

Signed-off-by: Emmanuel Kasper <e.kasper at proxmox.com>
---
 defines.mk          |  1 +
 www/Makefile        |  2 +-
 www/ext5/.gitignore |  1 +
 www/ext5/Makefile   | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 www/ext5/.gitignore
 create mode 100644 www/ext5/Makefile

diff --git a/defines.mk b/defines.mk
index b35a8e7..e1e9030 100644
--- a/defines.mk
+++ b/defines.mk
@@ -18,6 +18,7 @@ WWWROOTDIR=${WWWBASEDIR}/root
 WWWLOCALEDIR=${WWWBASEDIR}/locale
 WWWIMAGEDIR=${WWWBASEDIR}/images
 WWWEXT4DIR=${WWWBASEDIR}/ext4
+WWWEXT5DIR=${WWWBASEDIR}/ext5
 WWWTOUCHDIR=${WWWBASEDIR}/touch
 WWWCSSDIR=${WWWBASEDIR}/css
 WWWJSDIR=${WWWBASEDIR}/js
diff --git a/www/Makefile b/www/Makefile
index bdb4a80..6968357 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1,4 +1,4 @@
-SUBDIRS = images ext4 css manager bootstrap touch mobile
+SUBDIRS = images ext4 ext5 css manager bootstrap touch mobile
 
 all: ${SUBDIRS}
 
diff --git a/www/ext5/.gitignore b/www/ext5/.gitignore
new file mode 100644
index 0000000..a766041
--- /dev/null
+++ b/www/ext5/.gitignore
@@ -0,0 +1 @@
+extjs
diff --git a/www/ext5/Makefile b/www/ext5/Makefile
new file mode 100644
index 0000000..3c8fa8e
--- /dev/null
+++ b/www/ext5/Makefile
@@ -0,0 +1,34 @@
+include ../../defines.mk
+
+EXTJSDIR=ext-5.1.0
+EXTJSSRC=${EXTJSDIR}-gpl.zip
+
+EXTDATA=	\
+	extjs/build/ext-all.js	\
+	extjs/build/ext-all-debug.js	\
+	extjs/build/bootstrap.js
+
+${EXTDATA}: ${EXTJSSRC}
+	rm -rf ${EXTJSDIR} extjs
+	unzip -x ${EXTJSSRC}
+	mv ${EXTJSDIR} extjs
+	touch ${EXTDATA}
+
+all: ${EXTDATA}
+
+.PHONY: install 
+install: ${EXTDATA}
+	install -d ${WWWEXT5DIR}
+	install -m 0644 ${EXTDATA} ${WWWEXT5DIR}
+	cp -a extjs/build/packages ${WWWEXT5DIR}
+	install -d ${WWWEXT5DIR}/locale
+	cp -a extjs/build/packages/ext-locale/build/* ${WWWEXT5DIR}/locale/
+	chown -R www-data:www-data ${WWWEXT5DIR}
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
+clean:
+	rm -rf *~ ${EXTJSDIR} extjs
+
-- 
2.1.4





More information about the pve-devel mailing list