summaryrefslogtreecommitdiff
blob: 43ce6ba4e24af2c79f0dd94c5f9e842b264ef922 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
diff -Nup -r atheme-0.2.2/backend/Makefile.in atheme-0.2.2.patched/backend/Makefile.in
--- atheme-0.2.2/backend/Makefile.in	2005-09-03 21:17:28.000000000 +0000
+++ atheme-0.2.2.patched/backend/Makefile.in	2005-09-04 04:15:55.000000000 +0000
@@ -6,6 +6,8 @@
 # $Id: makefile-DESTDIR-support.patch,v 1.1 2005/09/04 06:08:56 beu Exp $
 #
 
+DESTDIR := 
+
 CC		= @CC@
 RM		= @RM@
 MV		= @MV@
@@ -36,8 +38,8 @@ all: protocols
 build: all
 
 install: build
-	${INSTALL} -d ${PREFIX}/backend
-	${INSTALL} -m 755 *.so ${PREFIX}/backend
+	${INSTALL} -d $(DESTDIR)${PREFIX}/backend
+	${INSTALL} -m 755 *.so $(DESTDIR)${PREFIX}/backend
 
 protocols: $(OBJS)
 
diff -Nup -r atheme-0.2.2/contrib/Makefile.in atheme-0.2.2.patched/contrib/Makefile.in
--- atheme-0.2.2/contrib/Makefile.in	2005-09-03 21:17:29.000000000 +0000
+++ atheme-0.2.2.patched/contrib/Makefile.in	2005-09-04 04:15:55.000000000 +0000
@@ -6,6 +6,8 @@
 # $Id: makefile-DESTDIR-support.patch,v 1.1 2005/09/04 06:08:56 beu Exp $
 #
 
+DESTDIR := 
+
 CC		= @CC@
 RM		= @RM@
 MV		= @MV@
@@ -38,8 +40,8 @@ all: protocols
 build: all
 
 install: build
-	${INSTALL} -d ${PREFIX}/contrib
-	${INSTALL} -m 755 *.so ${PREFIX}/contrib
+	${INSTALL} -d $(DESTDIR)${PREFIX}/contrib
+	${INSTALL} -m 755 *.so $(DESTDIR)${PREFIX}/contrib
 
 protocols: $(OBJS)
 
diff -Nup -r atheme-0.2.2/modules/Makefile.in atheme-0.2.2.patched/modules/Makefile.in
--- atheme-0.2.2/modules/Makefile.in	2005-09-03 21:17:30.000000000 +0000
+++ atheme-0.2.2.patched/modules/Makefile.in	2005-09-04 04:15:55.000000000 +0000
@@ -6,6 +6,8 @@
 # $Id: makefile-DESTDIR-support.patch,v 1.1 2005/09/04 06:08:56 beu Exp $
 #
 
+DESTDIR := 
+
 CC		= @CC@
 RM		= @RM@
 MV		= @MV@
@@ -36,8 +38,8 @@ all: modules
 build: all
 
 install: build
-	${INSTALL} -d ${PREFIX}/modules
-	${INSTALL} -m 755 *.so ${PREFIX}/modules
+	${INSTALL} -d $(DESTDIR)${PREFIX}/modules
+	${INSTALL} -m 755 *.so $(DESTDIR)${PREFIX}/modules
 
 modules: $(OBJS)
 
diff -Nup -r atheme-0.2.2/protocol/Makefile.in atheme-0.2.2.patched/protocol/Makefile.in
--- atheme-0.2.2/protocol/Makefile.in	2005-09-03 21:17:29.000000000 +0000
+++ atheme-0.2.2.patched/protocol/Makefile.in	2005-09-04 04:15:55.000000000 +0000
@@ -6,6 +6,8 @@
 # $Id: makefile-DESTDIR-support.patch,v 1.1 2005/09/04 06:08:56 beu Exp $
 #
 
+DESTDIR := 
+
 CC		= @CC@
 RM		= @RM@
 MV		= @MV@
@@ -49,8 +51,8 @@ all: protocols
 build: all
 
 install: build
-	${INSTALL} -d ${PREFIX}/protocol
-	${INSTALL} -m 755 *.so ${PREFIX}/protocol
+	${INSTALL} -d $(DESTDIR)${PREFIX}/protocol
+	${INSTALL} -m 755 *.so $(DESTDIR)${PREFIX}/protocol
 
 protocols: $(OBJS)
 
diff -Nup -r atheme-0.2.2/src/Makefile.in atheme-0.2.2.patched/src/Makefile.in
--- atheme-0.2.2/src/Makefile.in	2005-09-03 21:17:29.000000000 +0000
+++ atheme-0.2.2.patched/src/Makefile.in	2005-09-04 04:15:55.000000000 +0000
@@ -6,6 +6,8 @@
 # $Id: makefile-DESTDIR-support.patch,v 1.1 2005/09/04 06:08:56 beu Exp $
 #
 
+DESTDIR := 
+
 CC		= @CC@
 RM		= @RM@
 MV		= @MV@
@@ -70,27 +72,27 @@ atheme: $(OBJS)
 	$(MV) version.c version.c.last
 
 install: build
-	$(INSTALL) -m 755 -d $(PREFIX)
-	$(INSTALL) -m 755 -d $(PREFIX)/bin
-	$(INSTALL) -m 755 -d $(PREFIX)/etc
-	$(INSTALL) -m 755 -d $(PREFIX)/var
-	$(INSTALL) -m 755 -c $(BIN) $(PREFIX)/bin
-	$(INSTALL) -m 640 -c ../dist/example.conf $(PREFIX)/etc
-	$(INSTALL) -m 640 -c ../dist/example-traditional.conf $(PREFIX)/etc
+	$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)
+	$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/bin
+	$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/etc
+	$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/var
+	$(INSTALL) -m 755 -c $(BIN) $(DESTDIR)$(PREFIX)/bin
+	$(INSTALL) -m 640 -c ../dist/example.conf $(DESTDIR)$(PREFIX)/etc
+	$(INSTALL) -m 640 -c ../dist/example-traditional.conf $(DESTDIR)$(PREFIX)/etc
 	if [ ! -r $(PREFIX)/etc/atheme.db ]; then \
-		$(INSTALL) -m 640 -c ../dist/atheme.db $(PREFIX)/etc ; \
+		$(INSTALL) -m 640 -c ../dist/atheme.db $(DESTDIR)$(PREFIX)/etc ; \
 	fi
 	if [ ! -r $(PREFIX)/etc/atheme.chk ]; then \
-		$(INSTALL) -m 640 -c ../dist/atheme.chk $(PREFIX)/etc ; \
+		$(INSTALL) -m 640 -c ../dist/atheme.chk $(DESTDIR)$(PREFIX)/etc ; \
 	fi
 	if [ -e $(PREFIX)/doc ]; then \
-		$(RM) -rf $(PREFIX)/doc ; \
+		$(RM) -rf $(DESTDIR)$(PREFIX)/doc ; \
 	fi
 	if [ -e $(PREFIX)/help ]; then \
-		$(RM) -rf $(PREFIX)/help ; \
+		$(RM) -rf $(DESTDIR)$(PREFIX)/help ; \
 	fi
-	$(CP) -R ../doc $(PREFIX)
-	$(CP) -R ../help $(PREFIX)
+	$(CP) -R ../doc $(DESTDIR)$(PREFIX)
+	$(CP) -R ../help $(DESTDIR)$(PREFIX)
 
 	@echo "----------------------------------------------------------------"
 	@echo ">>> Remember to cd to ${PREFIX} and edit your config file.";