diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..15279b36 --- /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 index 00000000..f163a12a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libjs-extjs (6.0.1-1) unstable; urgency=low + + * initial import + + -- Proxmox Support Team Wed, 25 Jan 2017 17:41:16 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..e0cbfdf5 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: libjs-extjs +Section: web +Priority: optional +Maintainer: Proxmox Support Team +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 index 00000000..2a6e77da --- /dev/null +++ b/debian/rules @@ -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 $@ +