]>
Commit | Line | Data |
---|---|---|
7176b21c | 1 | RELEASE=4.2 |
42e49257 | 2 | |
0fbbbb73 | 3 | PACKAGE=novnc-pve |
d0878349 | 4 | PKGREL=8 |
0fbbbb73 | 5 | |
42e49257 DM |
6 | NOVNCDIR=novnc |
7 | NOVNCSRC=${NOVNCDIR}.tgz | |
74991400 | 8 | NOVNCVER=0.5 |
42e49257 DM |
9 | |
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
904d5108 | 11 | GITVERSION:=$(shell cat .git/refs/heads/master) |
42e49257 | 12 | |
0fbbbb73 DM |
13 | DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb |
14 | ||
42e49257 DM |
15 | all: deb |
16 | ||
17 | .PHONY: dinstall | |
18 | dinstall: deb | |
19 | dpkg -i ${DEB} | |
20 | ||
21 | .PHONY: deb | |
c3a2bb4f WB |
22 | deb: ${DEB} |
23 | ${DEB}: ${TARSRC} | |
42e49257 DM |
24 | rm -rf ${NOVNCDIR} |
25 | tar xf ${NOVNCSRC} | |
904d5108 | 26 | cp -a debian ${NOVNCDIR}/debian |
a7e88cd9 | 27 | cp ${NOVNCDIR}/include/ui.js ${NOVNCDIR}/pveui.js |
f8d9a6f3 | 28 | cp ${NOVNCDIR}/vnc.html ${NOVNCDIR}/index.html.tpl |
904d5108 DM |
29 | # fix file permissions |
30 | chmod 0644 ${NOVNCDIR}/include/jsunzip.js | |
31 | echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE | |
42e49257 | 32 | cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us |
12de86f0 | 33 | lintian ${DEB} |
42e49257 DM |
34 | |
35 | .PHONY: download | |
36 | download: | |
37 | rm -rf ${NOVNCDIR} | |
38 | git clone git://github.com/kanaka/noVNC ${NOVNCDIR} | |
e4211f69 | 39 | cd ${NOVNCDIR}; git checkout -b local a0e7ab43dca0ce11a713694ee4cf530bd3b17c5a |
42e49257 DM |
40 | tar czf ${NOVNCSRC} ${NOVNCDIR} |
41 | ||
323d6cac DM |
42 | .PHONY: upload |
43 | upload: ${DEB} | |
a42cfd15 | 44 | tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload |
323d6cac DM |
45 | |
46 | .PHONY: distclean | |
47 | distclean: clean | |
48 | ||
42e49257 DM |
49 | .PHONY: clean |
50 | clean: | |
0fbbbb73 | 51 | rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc |