2016-08-03 11:55:17 +02:00
RELEASE = 4.2
2014-06-13 07:29:42 +02:00
2014-06-13 09:20:55 +02:00
PACKAGE = novnc-pve
2016-08-08 12:22:40 +02:00
PKGREL = 8
2014-06-13 09:20:55 +02:00
2014-06-13 07:29:42 +02:00
NOVNCDIR = novnc
NOVNCSRC = ${ NOVNCDIR } .tgz
2015-06-25 18:31:57 +02:00
NOVNCVER = 0.5
2014-06-13 07:29:42 +02:00
ARCH := $( shell dpkg-architecture -qDEB_BUILD_ARCH)
2014-06-13 09:29:23 +02:00
GITVERSION := $( shell cat .git/refs/heads/master)
2014-06-13 07:29:42 +02:00
2014-06-13 09:20:55 +02:00
DEB = ${ PACKAGE } _${ NOVNCVER } -${ PKGREL } _${ ARCH } .deb
2014-06-13 07:29:42 +02:00
all : deb
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }
.PHONY : deb
deb ${DEB} : ${TARSRC }
rm -rf ${ NOVNCDIR }
tar xf ${ NOVNCSRC }
2014-06-13 09:29:23 +02:00
cp -a debian ${ NOVNCDIR } /debian
2015-06-25 03:25:18 +02:00
cp ${ NOVNCDIR } /include/ui.js ${ NOVNCDIR } /pveui.js
2014-06-13 09:29:23 +02:00
# fix file permissions
chmod 0644 ${ NOVNCDIR } /include/jsunzip.js
echo " git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${ GITVERSION } " > ${ NOVNCDIR } /debian/SOURCE
2014-06-13 07:29:42 +02:00
cd ${ NOVNCDIR } ; dpkg-buildpackage -b -uc -us
2014-08-01 06:43:30 +02:00
lintian ${ DEB }
2014-06-13 07:29:42 +02:00
.PHONY : download
download :
rm -rf ${ NOVNCDIR }
git clone git://github.com/kanaka/noVNC ${ NOVNCDIR }
2015-09-24 12:33:56 +02:00
cd ${ NOVNCDIR } ; git checkout -b local a0e7ab43dca0ce11a713694ee4cf530bd3b17c5a
2014-06-13 07:29:42 +02:00
tar czf ${ NOVNCSRC } ${ NOVNCDIR }
2014-06-13 09:38:05 +02:00
.PHONY : upload
upload : ${DEB }
2016-08-03 11:56:30 +02:00
tar cf - ${ DEB } | ssh repoman@repo.proxmox.com upload
2014-06-13 09:38:05 +02:00
.PHONY : distclean
distclean : clean
2014-06-13 07:29:42 +02:00
.PHONY : clean
clean :
2014-06-13 09:20:55 +02:00
rm -rf *~ debian/*~ *_${ ARCH } .deb *_all.deb *.changes *.dsc novnc