]>
Commit | Line | Data |
---|---|---|
1 | RELEASE=3.2 | |
2 | ||
3 | PACKAGE=novnc-pve | |
4 | PKGREL=5 | |
5 | ||
6 | NOVNCDIR=novnc | |
7 | NOVNCSRC=${NOVNCDIR}.tgz | |
8 | NOVNCVER=0.4 | |
9 | ||
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
11 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
12 | ||
13 | DEB=${PACKAGE}_${NOVNCVER}-${PKGREL}_${ARCH}.deb | |
14 | ||
15 | all: deb | |
16 | ||
17 | .PHONY: dinstall | |
18 | dinstall: deb | |
19 | dpkg -i ${DEB} | |
20 | ||
21 | .PHONY: deb | |
22 | deb ${DEB}: ${TARSRC} | |
23 | rm -rf ${NOVNCDIR} | |
24 | tar xf ${NOVNCSRC} | |
25 | mv ${NOVNCDIR}/debian ${NOVNCDIR}/debian.org | |
26 | cp -a debian ${NOVNCDIR}/debian | |
27 | cp pveui.js ${NOVNCDIR} | |
28 | # fix file permissions | |
29 | chmod 0644 ${NOVNCDIR}/include/jsunzip.js | |
30 | echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE | |
31 | cd ${NOVNCDIR}; dpkg-buildpackage -b -uc -us | |
32 | lintian ${DEB} | |
33 | ||
34 | .PHONY: download | |
35 | download: | |
36 | rm -rf ${NOVNCDIR} | |
37 | git clone git://github.com/kanaka/noVNC ${NOVNCDIR} | |
38 | tar czf ${NOVNCSRC} ${NOVNCDIR} | |
39 | ||
40 | .PHONY: upload | |
41 | upload: ${DEB} | |
42 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
43 | mkdir -p /pve/${RELEASE}/extra | |
44 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
45 | rm -f /pve/${RELEASE}/extra/Packages* | |
46 | cp ${DEB} /pve/${RELEASE}/extra | |
47 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
48 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
49 | ||
50 | .PHONY: distclean | |
51 | distclean: clean | |
52 | ||
53 | .PHONY: clean | |
54 | clean: | |
55 | rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc |