Browse Source

initial commit

master
Olaf Rempel 12 years ago
commit
c932c6f702
2 changed files with 185 additions and 0 deletions
  1. 185
    0
      Makefile
  2. BIN
      download/mod_rpaf-0.5.tar.gz

+ 185
- 0
Makefile View File

@@ -0,0 +1,185 @@
1
+## ############################################################################
2
+## common targets:
3
+## make apache2-fe (worker, mod_proxy, mod_rewrite)
4
+## make apache2-be (prefork, mod_rpaf, php4)
5
+
6
+DESTDIR=/opt/
7
+
8
+## ############################################################################
9
+
10
+WGET := /usr/bin/wget --passive-ftp -nd
11
+
12
+_SRCBASE=$(shell /bin/pwd)
13
+_DOWNLOADS=$(_SRCBASE)/download
14
+_SOURCES=$(_SRCBASE)/source
15
+
16
+## ############################################################################
17
+
18
+PACKAGE_APACHE2=$(_DOWNLOADS)/httpd-2.0.58.tar.bz2
19
+DOWNLOAD_APACHE2=http://apache.speedbone.de/httpd/httpd-2.0.58.tar.bz2
20
+SOURCE_APACHE2=$(_SOURCES)/httpd-2.0.58
21
+
22
+PACKAGE_RPAF=$(_DOWNLOADS)/mod_rpaf-0.5.tar.gz
23
+DOWNLOAD_RPAF=http://stderr.net/apache/rpaf/download/mod_rpaf-0.5.tar.gz
24
+SOURCE_RPAF=$(_SOURCES)/mod_rpaf-0.5
25
+
26
+PACKAGE_PHP4=$(_DOWNLOADS)/php-4.4.2.tar.bz2
27
+DOWNLOAD_PHP4=http://de3.php.net/get/php-4.4.2.tar.bz2/from/de.php.net/mirror
28
+SOURCE_PHP4=$(_SOURCES)/php-4.4.2
29
+
30
+PACKAGE_EACCELERATOR=$(_DOWNLOADS)/eaccelerator-0.9.4.tar.bz2
31
+DOWNLOAD_EACCELERATOR=http://surfnet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4.tar.bz2
32
+SOURCE_EACCELERATOR=$(_SOURCES)/eaccelerator-0.9.4
33
+
34
+## ############################################################################
35
+
36
+$(PACKAGE_APACHE2):
37
+	$(WGET) -P $(_DOWNLOADS) $(DOWNLOAD_APACHE2)
38
+
39
+$(SOURCE_APACHE2)/.unpacked: $(PACKAGE_APACHE2)
40
+	tar -C $(_SOURCES) -xjf $(PACKAGE_APACHE2)
41
+	touch $@
42
+
43
+$(PACKAGE_RPAF):
44
+	$(WGET) -P $(_DOWNLOADS) $(DOWNLOAD_RPAF) 
45
+
46
+$(SOURCE_RPAF)/.unpacked: $(PACKAGE_RPAF)
47
+	tar -C $(_SOURCES) -xzf $(PACKAGE_RPAF)
48
+	touch $@
49
+
50
+$(PACKAGE_PHP4):
51
+	$(WGET) -P $(_DOWNLOADS) $(DOWNLOAD_PHP4)
52
+
53
+$(SOURCE_PHP4)/.unpacked: $(PACKAGE_PHP4)
54
+	tar -C $(_SOURCES) -xjf $(PACKAGE_PHP4)
55
+	touch $@
56
+
57
+$(PACKAGE_EACCELERATOR):
58
+	$(WGET) -P $(_DOWNLOADS) $(DOWNLOAD_EACCELERATOR)
59
+
60
+$(SOURCE_EACCELERATOR)/.unpacked: $(PACKAGE_EACCELERATOR)
61
+	tar -C $(_SOURCES) -xjf $(PACKAGE_EACCELERATOR)
62
+	touch $@
63
+
64
+## ############################################################################
65
+
66
+_BUILD_APACHE2_FRONTEND=$(_SOURCES)/apache2-frontend
67
+
68
+apache2-fe: $(_BUILD_APACHE2_FRONTEND)/.installed
69
+
70
+$(_BUILD_APACHE2_FRONTEND)/.configured: $(SOURCE_APACHE2)/.unpacked
71
+	mkdir -p $(_BUILD_APACHE2_FRONTEND)
72
+	( cd $(_BUILD_APACHE2_FRONTEND); \
73
+	    $(SOURCE_APACHE2)/configure \
74
+	    	--prefix=$(DESTDIR)/apache2-frontend/ \
75
+		--with-mpm=worker \
76
+		--enable-proxy \
77
+		--enable-proxy-http \
78
+		--enable-rewrite \
79
+	);
80
+	touch $@
81
+
82
+$(_BUILD_APACHE2_FRONTEND)/.compiled: $(_BUILD_APACHE2_FRONTEND)/.configured
83
+	make -j2 -C $(_BUILD_APACHE2_FRONTEND) all
84
+	touch $@
85
+
86
+$(_BUILD_APACHE2_FRONTEND)/.installed: $(_BUILD_APACHE2_FRONTEND)/.compiled
87
+	make -C $(_BUILD_APACHE2_FRONTEND) install
88
+	touch $@
89
+
90
+apache2-fe-clean:
91
+	rm -rf $(_BUILD_APACHE2_FRONTEND)
92
+
93
+## ############################################################################
94
+
95
+_BUILD_APACHE2_BACKEND=$(_SOURCES)/apache2-backend
96
+_BUILD_APACHE2_BACKEND_PHP=$(_SOURCES)/apache2-backend-php
97
+
98
+apache2-be: $(_BUILD_APACHE2_BACKEND)/.installed \
99
+	    $(SOURCE_RPAF)/.installed \
100
+	    $(_BUILD_APACHE2_BACKEND_PHP)/.installed \
101
+	    $(SOURCE_EACCELERATOR)/.installed
102
+
103
+$(_BUILD_APACHE2_BACKEND)/.configured: $(SOURCE_APACHE2)/.unpacked
104
+	mkdir -p $(_BUILD_APACHE2_BACKEND)
105
+	( cd $(_BUILD_APACHE2_BACKEND); \
106
+	    $(SOURCE_APACHE2)/configure \
107
+	    	--prefix=$(DESTDIR)/apache2-backend/ \
108
+		--with-mpm=prefork \
109
+		--enable-so \
110
+	);
111
+	touch $@
112
+
113
+$(_BUILD_APACHE2_BACKEND)/.compiled: $(_BUILD_APACHE2_BACKEND)/.configured
114
+	make -j2 -C $(_BUILD_APACHE2_BACKEND) all
115
+	touch $@
116
+
117
+$(_BUILD_APACHE2_BACKEND)/.installed: $(_BUILD_APACHE2_BACKEND)/.compiled
118
+	make -C $(_BUILD_APACHE2_BACKEND) install
119
+	touch $@
120
+
121
+
122
+$(SOURCE_RPAF)/.compiled: $(SOURCE_RPAF)/.unpacked $(_BUILD_APACHE2_BACKEND)/.installed
123
+	make -C $(SOURCE_RPAF) APXS=$(DESTDIR)/apache2-backend/bin/apxs rpaf-2.0
124
+	touch $@
125
+
126
+$(SOURCE_RPAF)/.installed: $(SOURCE_RPAF)/.compiled
127
+	make -C $(SOURCE_RPAF) APXS=$(DESTDIR)/apache2-backend/bin/apxs install-2.0
128
+	touch $@
129
+
130
+
131
+$(_BUILD_APACHE2_BACKEND_PHP)/.configured: $(SOURCE_PHP4)/.unpacked $(_BUILD_APACHE2_BACKEND)/.installed
132
+	mkdir -p $(_BUILD_APACHE2_BACKEND_PHP)
133
+	( cd $(_BUILD_APACHE2_BACKEND_PHP); \
134
+	    $(SOURCE_PHP4)/configure \
135
+	    	--prefix=$(DESTDIR)/apache2-backend-php/ \
136
+		--with-apxs2=$(DESTDIR)/apache2-backend/bin/apxs \
137
+		--disable-cli \
138
+		--disable-cgi \
139
+		--with-layout=GNU \
140
+		--disable-rpath \
141
+		--disable-ipv6 \
142
+		--disable-static \
143
+		--enable-sockets \
144
+		--enable-inline-optimization \
145
+		--with-zlib \
146
+		--with-regex=system \
147
+		--with-gd \
148
+		--with-mysql=/usr \
149
+	);
150
+	touch $@
151
+
152
+$(_BUILD_APACHE2_BACKEND_PHP)/.compiled: $(_BUILD_APACHE2_BACKEND_PHP)/.configured
153
+	make -j2 -C $(_BUILD_APACHE2_BACKEND_PHP) all
154
+	touch $@
155
+
156
+$(_BUILD_APACHE2_BACKEND_PHP)/.installed: $(_BUILD_APACHE2_BACKEND_PHP)/.compiled
157
+	make -C $(_BUILD_APACHE2_BACKEND_PHP) install
158
+	touch $@
159
+
160
+
161
+$(SOURCE_EACCELERATOR)/.configured:  $(SOURCE_EACCELERATOR)/.unpacked $(_BUILD_APACHE2_BACKEND_PHP)/.installed
162
+	( cd $(SOURCE_EACCELERATOR); \
163
+	    $(DESTDIR)/apache2-backend-php/bin/phpize; \
164
+	    ./configure \
165
+	        --with-eaccelerator=shared \
166
+	        --with-php-config=$(DESTDIR)/apache2-backend-php/bin/php-config \
167
+	);
168
+	touch $@
169
+
170
+$(SOURCE_EACCELERATOR)/.compiled:  $(SOURCE_EACCELERATOR)/.configured
171
+	make -j2 -C $(SOURCE_EACCELERATOR) all
172
+	touch $@
173
+
174
+$(SOURCE_EACCELERATOR)/.installed:  $(SOURCE_EACCELERATOR)/.compiled
175
+	make -C $(SOURCE_EACCELERATOR) install
176
+	touch $@
177
+
178
+
179
+apache2-be-clean:
180
+	rm -rf $(_BUILD_APACHE2_BACKEND)
181
+	rm -rf $(SOURCE_RPAF)
182
+	rm -rf $(_BUILD_APACHE2_BACKEND_PHP)
183
+	rm -rf $(SOURCE_EACCELERATOR)
184
+
185
+## ############################################################################

BIN
download/mod_rpaf-0.5.tar.gz View File


Loading…
Cancel
Save