summaryrefslogtreecommitdiff
path: root/packages/apache2/apache2-native_2.2.3.bb
diff options
context:
space:
mode:
authorAndrew Wilcox <andy@protium.com>2006-12-07 19:36:49 +0000
committerAndrew Wilcox <andy@protium.com>2006-12-07 19:36:49 +0000
commitaa5a787f25f567632f53decbaee305315e6d1c58 (patch)
tree7a92c63bd7c99d5c8957487aead9465ec0275da0 /packages/apache2/apache2-native_2.2.3.bb
parent21f0d4357067e495f29a752e529ee6f55a14f3d2 (diff)
apache2: native and cross compile patches and BB files
Diffstat (limited to 'packages/apache2/apache2-native_2.2.3.bb')
-rw-r--r--packages/apache2/apache2-native_2.2.3.bb44
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/apache2/apache2-native_2.2.3.bb b/packages/apache2/apache2-native_2.2.3.bb
new file mode 100644
index 0000000000..9e4d42e254
--- /dev/null
+++ b/packages/apache2/apache2-native_2.2.3.bb
@@ -0,0 +1,44 @@
+SECTION = "net"
+DEPENDS = "expat pcre"
+
+inherit native
+
+PR="r4"
+SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2"
+
+S = "${WORKDIR}/httpd-${PV}"
+
+do_configure () {
+ ./configure --prefix=${prefix}
+}
+
+do_populate_staging () {
+ cp srclib/pcre/dftables ../../../staging/i686-linux/bin/
+ cp server/gen_test_char ../../../staging/i686-linux/bin/
+ cp srclib/apr/apr-1-config ../../../staging/i686-linux/bin/
+ cp srclib/apr-util/apu-1-config ../../../staging/i686-linux/bin/
+ cp support/apxs ../../../staging/i686-linux/bin/
+ chmod 755 ../../../staging/i686-linux/bin/apxs
+ mkdir -p ../../../staging/build
+ cp build/*.mk ../../../staging/build
+ cat build/config_vars.mk | \
+ sed -e '/^prefix/s,staging,staging/i686-linux,' | \
+ sed -e '/^includedir/s,/include,/include/apache2,' | \
+ sed -e 's,staging/bin,staging/i686-linux/bin,' > \
+ ../../../staging/build/config_vars.mk
+ cp build/instdso.sh ../../../staging/build
+ cp .libs/httpd ../../../staging/i686-linux/bin
+
+ (cd srclib/apr/.libs; tar -cf - libapr-*.so* ) |
+ (cd ../../../staging/i686-linux/lib; tar -xf - )
+ (cd srclib/apr-util/.libs; tar -cf - libaprutil-*.so* ) |
+ (cd ../../../staging/i686-linux/lib; tar -xf - )
+
+ mkdir -p ../../../staging/i686-linux/include/apache2
+ cp include/* ../../../staging/i686-linux/include/apache2
+ cp os/unix/os.h ../../../staging/i686-linux/include/apache2
+ cp os/unix/unixd.h ../../../staging/i686-linux/include/apache2
+
+ cp support/envvars-std ../../../staging/i686-linux/bin/envvars
+ chmod 755 ../../../staging/i686-linux/bin/envvars
+}