]>
Commit | Line | Data |
---|---|---|
e6d0212c | 1 | PACKAGE=vncterm |
4f21735d | 2 | # Note: also change version in debian/control and debian/changelog |
0870c4f8 DM |
3 | VERSION=1.4 |
4 | PACKAGERELEASE=1 | |
e6d0212c DM |
5 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
6 | CDATE:=$(shell date +%F) | |
7 | ||
536237ba FG |
8 | VNCVER=0.9.11 |
9 | VNCREL=LibVNCServer-${VNCVER} | |
10 | VNCDIR=libvncserver-${VNCREL} | |
11 | VNCSRC=${VNCREL}.tar.gz | |
e6d0212c DM |
12 | VNCLIB=${VNCDIR}/libvncserver/.libs/libvncserver.a |
13 | ||
14 | TIGERVNCSRC=tigervnc-1.1.0.tgz | |
336e20e1 | 15 | #TIGERVNCSRC=tigervnc-1.2.0.tgz |
e6d0212c DM |
16 | |
17 | DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb | |
18 | SNAP=${PACKAGE}-${VERSION}-${CDATE}.tar.gz | |
19 | ||
e0581694 | 20 | KEYSTORE=/home/dietmar/pve2-proxdev/proxmox-dev/comodo-for-java.keystore |
e6d0212c DM |
21 | |
22 | all: vncterm | |
23 | ||
24 | glyphs.h: genfont | |
d4dcc66e FG |
25 | ./genfont > glyphs.h.tmp |
26 | mv glyphs.h.tmp glyphs.h | |
e6d0212c DM |
27 | |
28 | genfont: genfont.c | |
29 | gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz | |
30 | ||
31 | .PHONY: vnc | |
32 | ${VNCLIB} vnc: ${VNCSRC} | |
33 | rm -rf ${VNCDIR} | |
34 | tar xf ${VNCSRC} | |
35 | ln -s ../vncpatches ${VNCDIR}/patches | |
36 | cd ${VNCDIR}; quilt push -a | |
536237ba | 37 | cd ${VNCDIR}; ./autogen.sh --without-ssl --without-websockets --without-tightvnc-filetransfer; |
e6d0212c DM |
38 | cd ${VNCDIR}; make |
39 | ||
40 | vncterm: vncterm.c glyphs.h ${VNCLIB} | |
536237ba | 41 | gcc -O2 -g -o $@ vncterm.c -Wall -Wno-deprecated-declarations -D_GNU_SOURCE -I ${VNCDIR} ${VNCLIB} -lnsl -lpthread -lz -ljpeg -lutil -lgnutls -lpng |
e6d0212c DM |
42 | |
43 | jar: tigervnc.org | |
085cabef | 44 | if test ! -f /usr/share/icedtea-web/plugin.jar; then echo "please install package icedtea-netx-common"; exit 1; fi |
e6d0212c DM |
45 | rm -rf tigervnc VncViewer.jar |
46 | rsync -av --exclude .svn --exclude .svnignore tigervnc.org/ tigervnc | |
47 | ln -s ../tigerpatches tigervnc/patches | |
48 | cd tigervnc; quilt push -a | |
49 | cd tigervnc/java/src/com/tigervnc/vncviewer; make clean; make | |
11089334 | 50 | jarsigner -keystore ${KEYSTORE} -signedjar VncViewer.jar tigervnc/java/src/com/tigervnc/vncviewer/VncViewer.jar "dc475d72-124a-11e4-a53f-005056c00008" |
e0581694 | 51 | |
336e20e1 DM |
52 | # this is for version 1.2 |
53 | # ln -s ../newtigerpatches tigervnc/patches | |
54 | # cd tigervnc/java;cmake -G "Unix Makefiles"; make | |
55 | # jarsigner -keystore ${KEYSTORE} -signedjar VncViewer.jar tigervnc/java/VncViewer.jar proxmox | |
e6d0212c DM |
56 | |
57 | tigervnc.org: ${TIGERVNCSRC} | |
58 | rm -rf tigervnc.org | |
59 | tar xf ${TIGERVNCSRC} | |
60 | ||
336e20e1 | 61 | download: |
e6d0212c DM |
62 | rm -rf tigervnc.org |
63 | svn co https://tigervnc.svn.sourceforge.net/svnroot/tigervnc/tags/1_1_0 tigervnc.org | |
64 | tar cf ${TIGERVNCSRC} tigervnc.org | |
65 | ||
66 | .PHONY: install | |
67 | install: vncterm vncterm.1 VncViewer.jar | |
68 | mkdir -p ${DESTDIR}/usr/share/doc/${PACKAGE} | |
69 | mkdir -p ${DESTDIR}/usr/share/man/man1 | |
70 | mkdir -p ${DESTDIR}/usr/bin | |
71 | install -s -m 0755 vncterm ${DESTDIR}/usr/bin | |
72 | mkdir -p ${DESTDIR}/usr/share/vncterm/ | |
73 | install -m 0644 VncViewer.jar ${DESTDIR}/usr/share/vncterm/ | |
74 | ||
75 | .PHONY: dinstall | |
76 | dinstall: ${DEB} | |
77 | dpkg -i ${DEB} | |
78 | ||
79 | vncterm.1: vncterm.pod | |
80 | rm -f $@ | |
81 | pod2man -n $< -s 1 -r ${VERSION} <$< >$@ | |
82 | ||
83 | .PHONY: deb | |
c5ce64cf WB |
84 | deb: $(DEB) |
85 | ${DEB}: | |
e6d0212c DM |
86 | make clean |
87 | rm -rf dest | |
88 | mkdir dest | |
89 | make DESTDIR=`pwd`/dest install | |
90 | install -d -m 0755 dest/DEBIAN | |
91 | install -m 0644 debian/control dest/DEBIAN | |
92 | echo "Architecture: ${ARCH}" >>dest/DEBIAN/control | |
93 | install -m 0644 debian/conffiles dest/DEBIAN | |
94 | install -m 0644 copyright dest/usr/share/doc/${PACKAGE} | |
95 | install -m 0644 vncterm.1 dest/usr/share/man/man1 | |
96 | install -m 0644 debian/changelog.Debian dest/usr/share/doc/${PACKAGE} | |
3c10a042 WB |
97 | gzip -n --best dest/usr/share/man/*/* |
98 | gzip -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian | |
1cdb39e5 | 99 | fakeroot dpkg-deb --build dest |
e6d0212c DM |
100 | mv dest.deb ${DEB} |
101 | rm -rf dest | |
102 | lintian ${DEB} | |
103 | ||
104 | .PHONY: upload | |
105 | upload: ${DEB} | |
0870c4f8 | 106 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg,pve --dist stretch |
e6d0212c DM |
107 | |
108 | .PHONY: clean | |
109 | clean: | |
07047182 | 110 | rm -rf vncterm vncterm.1 vncterm_*.deb genfont tigervnc *~ ${VNCDIR} vncterm-*.tar.gz glyph.h.tmp |
e6d0212c DM |
111 | |
112 | .PHONY: distclean | |
113 | distclean: clean | |
114 | rm -rf tigervnc.org | |
115 | ||
116 | .PHONY: dist | |
117 | ${SNAP} dist: distclean | |
118 | rm -rf ../${SNAP} | |
119 | cd ..; tar cvzf ${SNAP} --exclude .svn ${PACKAGE} | |
120 | mv ../${SNAP} ${SNAP} | |
121 | ||
122 | .PHONY: uploaddist | |
123 | uploaddist: ${SNAP} | |
c39031e8 | 124 | scp ${SNAP} pve.proxmox.com:/home/ftp/sources/ |