--- vnc-4_1-javasrc/java/makefile.orig 2014-06-25 23:54:24.877741320 +0400 +++ vnc-4_1-javasrc/java/makefile 2014-06-25 23:58:50.132761116 +0400 @@ -19,6 +19,8 @@ $(RM) vncviewer.jar install: - if [ -d $(INSTALL_DIR) ]; then \ - cp -pf index.vnc vncviewer.jar logo150x150.gif $(INSTALL_DIR); \ + if [ -n "$(DESTDIR)" ]; then \ + rm -rf "$(DESTDIR)/usr/share/vino/" ; \ + mkdir -p "$(DESTDIR)/usr/share/vino/" ; \ + install --mode=0555 vncviewer.jar vino-client.html "$(DESTDIR)/usr/share/vino/"; \ fi