]> git.proxmox.com Git - extjs.git/commitdiff
add debian package files
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jan 2017 16:49:29 +0000 (17:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jan 2017 16:56:26 +0000 (17:56 +0100)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/rules [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..15279b3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,57 @@
+PACKAGE=libjs-extjs
+PKGVER=6.0.1
+PKGREL=1
+
+DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+
+# EXTJSDIR=ext-6.0.1
+# wget http://cdn.sencha.com/ext/gpl/ext-6.0.1-gpl.zip
+# unzip ext-6.0.1-gpl.zip
+
+EXTDATA=       \
+       extjs/build/ext-all.js  \
+       extjs/build/ext-all-debug.js    \
+       extjs/build/packages/charts/classic/charts.js   \
+       extjs/build/packages/charts/classic/charts-debug.js     \
+
+EXT_THEME=     \
+       extjs/build/classic/theme-crisp         \
+       extjs/build/packages/charts/classic/crisp       \
+
+DESTDIR=
+
+WWWEXT6DIR=${DESTDIR}/usr/share/javascript/extjs
+
+all: ${EXTDATA}
+
+.PHONY: deb
+deb ${DEB}:
+       rm -rf build
+       rsync -a * build
+       cp extjs/licenses/license.txt build/debian/copyright
+       cd build; dpkg-buildpackage -b -us -uc
+       lintian -X copyright-file ${DEB}
+
+.PHONY: install
+install: ${EXTDATA}
+       install -d ${WWWEXT6DIR}
+       install -m 0644 ${EXTDATA} ${WWWEXT6DIR}
+       cp -a extjs/build/classic/locale ${WWWEXT6DIR}
+       cp -a ${EXT_THEME} ${WWWEXT6DIR}
+       chown -R www-data:www-data ${WWWEXT6DIR}
+
+.PHONY: upload
+upload: ${DEB}
+       tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
+clean:
+       rm -rf ./build *.deb *.changes *.buildinfo
+       find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..f163a12
--- /dev/null
@@ -0,0 +1,5 @@
+libjs-extjs (6.0.1-1) unstable; urgency=low
+
+  * initial import
+
+ -- Proxmox Support Team <support@proxmox.com>  Wed, 25 Jan 2017 17:41:16 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..e0cbfdf
--- /dev/null
@@ -0,0 +1,14 @@
+Source: libjs-extjs
+Section: web
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.4
+Homepage: https://www.sencha.com/
+
+Package: libjs-extjs
+Architecture: all
+Depends: ${misc:Depends}
+Description: cross-browser JavaScript library
+ Ext JS is a cross-browser JavaScript library for building rich internet
+ applications.
diff --git a/debian/rules b/debian/rules
new file mode 100644 (file)
index 0000000..2a6e77d
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+
+%:
+       dh $@
+