summaryrefslogtreecommitdiff
blob: b15c384d1f79a52f41f9ab4077b0458655254a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--- a/vncstorepw/lim_accept.c
+++ b/vncstorepw/lim_accept.c
@@ -6,6 +6,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <errno.h>
+#include <unistd.h>
 
 /* rename accept something else while we do the includes: */
 #define accept __accept_5_Moos
--- a/vncstorepw/unwrap.c
+++ b/vncstorepw/unwrap.c
@@ -21,6 +21,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 
 int db = 0;
--- a/vncstorepw/vncauth.c
+++ b/vncstorepw/vncauth.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/stat.h>
 #include "d3des.h"
 #if 0
--- a/vncstorepw/vncstorepw.c
+++ b/vncstorepw/vncstorepw.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 extern int rfbEncryptAndStorePasswd(char *, char*);
 
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,11 @@
 
 # N.B. ?= is gnu make specific.  Some of the subdir Makefiles are too. 
 #
-PREFIX  ?= /usr/local
-ROOT    ?=
+PREFIX   = /usr
+ROOT     = $(DESTDIR)
 BIN      = bin
 LIB      = lib/ssvnc
 MAN      = man
-MANDIR  ?= $(MAN)
+MANDIR   = share/$(MAN)
 APPS    ?= share/applications
 BINNAME ?= ssvncviewer
@@ -66,7 +66,6 @@
 
 install: all
 	mkdir -p $(ROOT)$(PREFIX)/$(BIN) $(ROOT)$(PREFIX)/$(LIB) $(ROOT)$(PREFIX)/$(MANDIR)/man1
-	strip $(VIEWER)
 	cp -p $(VIEWER) $(ROOT)$(PREFIX)/$(LIB)
 	cp -p $(VNCSPW) $(ROOT)$(PREFIX)/$(LIB)
 	cp -p $(UNWRAP) $(ROOT)$(PREFIX)/$(LIB)
--- a/vncstorepw/Makefile
+++ b/vncstorepw/Makefile
@@ -14,7 +14,6 @@
 
 $(CMD): vncauth.o vncstorepw.o d3des.o
 	PATH=$$PATH:$(EPATH) $(CC) -o $(CMD) vncstorepw.o vncauth.o d3des.o
-	PATH=$$PATH:$(EPATH) strip $(CMD)
 	@ls -l $(CMD)
 
 $(UNWRAP): unwrap.c
@@ -41,7 +40,6 @@
 	else \
 		PATH=$$PATH:$(EPATH) $(CC) -o $(ULTDSM) $(CPP_SSL) ultravnc_dsm_helper.c $(LD_SSL) -lcrypto; \
 	fi
-	PATH=$$PATH:$(EPATH) strip $(ULTDSM)
 	@ls -l $(ULTDSM)
 
 test: $(CMD)