]> git.proxmox.com Git - vncterm.git/blobdiff - Makefile
also detect empty first parameter of escape codes
[vncterm.git] / Makefile
index 9891075818e818a7b6bbbccbb752724b0444eacd..d185103508433bc155c0167ff9836c66628aa145 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,16 @@
-RELEASE=3.0
+RELEASE=4.0
 
 PACKAGE=vncterm
 # Note: also change version in debian/control and debian/changelog
-VERSION=1.1
-PACKAGERELEASE=4
+VERSION=1.3
+PACKAGERELEASE=1
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 CDATE:=$(shell date +%F)
 
-VNCVER=0.9.7
-VNCDIR=LibVNCServer-${VNCVER}
-VNCSRC=${VNCDIR}.tar.gz
+VNCVER=0.9.11
+VNCREL=LibVNCServer-${VNCVER}
+VNCDIR=libvncserver-${VNCREL}
+VNCSRC=${VNCREL}.tar.gz
 VNCLIB=${VNCDIR}/libvncserver/.libs/libvncserver.a
 
 TIGERVNCSRC=tigervnc-1.1.0.tgz
@@ -23,7 +24,8 @@ KEYSTORE=/home/dietmar/pve2-proxdev/proxmox-dev/comodo-for-java.keystore
 all: vncterm
 
 glyphs.h: genfont
-       ./genfont > glyphs.h
+       ./genfont > glyphs.h.tmp
+       mv glyphs.h.tmp glyphs.h
 
 genfont: genfont.c
        gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz
@@ -34,11 +36,11 @@ ${VNCLIB} vnc: ${VNCSRC}
        tar xf ${VNCSRC}
        ln -s ../vncpatches ${VNCDIR}/patches
        cd ${VNCDIR}; quilt push -a
-       cd ${VNCDIR}; ./configure; 
+       cd ${VNCDIR}; ./autogen.sh --without-ssl --without-websockets --without-tightvnc-filetransfer;
        cd ${VNCDIR}; make
 
 vncterm: vncterm.c glyphs.h ${VNCLIB}
-       gcc -O2 -g -o $@ vncterm.c -Wall -D_GNU_SOURCE -I ${VNCDIR} ${VNCLIB} -lnsl -lpthread -lz -ljpeg -lutil -lgnutls
+       gcc -O2 -g -o $@ vncterm.c -Wall -Wno-deprecated-declarations -D_GNU_SOURCE -I ${VNCDIR} ${VNCLIB} -lnsl -lpthread -lz -ljpeg -lutil -lgnutls -lpng
 
 jar: tigervnc.org
        if test ! -f /usr/share/icedtea-web/plugin.jar; then echo "please install package icedtea-netx-common"; exit 1; fi
@@ -47,7 +49,7 @@ jar: tigervnc.org
        ln -s ../tigerpatches tigervnc/patches
        cd tigervnc; quilt push -a
        cd tigervnc/java/src/com/tigervnc/vncviewer; make clean; make
-       jarsigner -keystore ${KEYSTORE} -signedjar VncViewer.jar  tigervnc/java/src/com/tigervnc/vncviewer/VncViewer.jar "proxmox server solutions gmbh's comodo ca limited id"
+       jarsigner -keystore ${KEYSTORE} -signedjar VncViewer.jar  tigervnc/java/src/com/tigervnc/vncviewer/VncViewer.jar "dc475d72-124a-11e4-a53f-005056c00008"
 
 # this is for version 1.2
 #      ln -s ../newtigerpatches tigervnc/patches
@@ -81,7 +83,8 @@ vncterm.1: vncterm.pod
        pod2man -n $< -s 1 -r ${VERSION} <$< >$@
 
 .PHONY: deb
-${DEB} deb:
+deb: $(DEB)
+${DEB}:
        make clean
        rm -rf dest
        mkdir dest
@@ -93,26 +96,20 @@ ${DEB} deb:
        install -m 0644 copyright dest/usr/share/doc/${PACKAGE}
        install -m 0644 vncterm.1 dest/usr/share/man/man1
        install -m 0644 debian/changelog.Debian dest/usr/share/doc/${PACKAGE}
-       gzip --best dest/usr/share/man/*/*
-       gzip --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
-       dpkg-deb --build dest
+       gzip -n --best dest/usr/share/man/*/*
+       gzip -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
+       fakeroot dpkg-deb --build dest
        mv dest.deb ${DEB}
        rm -rf dest
        lintian ${DEB}  
 
 .PHONY: upload
 upload: ${DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean:
-       rm -rf vncterm vncterm.1 vncterm_*.deb tigervnc *~ ${VNCDIR} vncterm-*.tar.gz
+       rm -rf vncterm vncterm.1 vncterm_*.deb tigervnc *~ ${VNCDIR} vncterm-*.tar.gz glyph.h.tmp
 
 .PHONY: distclean
 distclean: clean
@@ -126,4 +123,4 @@ ${SNAP} dist: distclean
 
 .PHONY: uploaddist
 uploaddist: ${SNAP}
-       scp ${SNAP} pve.proxmox.com:/home/ftp/sources/
\ No newline at end of file
+       scp ${SNAP} pve.proxmox.com:/home/ftp/sources/