summaryrefslogtreecommitdiff
path: root/recipes/apache/apache_2.0.54.bb
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/apache/apache_2.0.54.bb
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/apache/apache_2.0.54.bb')
-rw-r--r--recipes/apache/apache_2.0.54.bb91
1 files changed, 91 insertions, 0 deletions
diff --git a/recipes/apache/apache_2.0.54.bb b/recipes/apache/apache_2.0.54.bb
new file mode 100644
index 0000000000..c1f1303d56
--- /dev/null
+++ b/recipes/apache/apache_2.0.54.bb
@@ -0,0 +1,91 @@
+SECTION = "net"
+DEPENDS = "openssl expat libpcre"
+
+PR = "r4"
+
+# ------------------------------------------
+# NOTE: This package is currently only meant
+# to be built nativly on the target device
+# ------------------------------------------
+
+SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.gz \
+ "
+
+S = "${WORKDIR}/httpd-${PV}"
+
+inherit autotools update-rc.d
+
+INITSCRIPT_NAME = "apache"
+INITSCRIPT_PARAMS = "defaults 91 20"
+
+CONFFILES_${PN} = "${sysconfdir}/apache/httpd.conf \
+ ${sysconfdir}/apache/ssl.conf \
+ ${sysconfdir}/apache/magic \
+ ${sysconfdir}/apache/mime.types \
+ ${datadir}/apache/htdocs/index.html \
+ ${datadir}/apache/htdocs/apache_pb.gif \
+ "
+
+PACKAGES = "${PN}-dbg libaprutil libapr apache-dev apache-doc apache"
+FILES_libapr = "${libdir}/libapr*.so.0* ${libdir}/apr.exp"
+FILES_libaprutil = "${libdir}/libaprutil*.so.0* ${libdir}/aprutil.exp"
+
+FILES_apache-dev_prepend = "${datadir}/apache/build ${bindir}/apr-config ${bindir}/apu-config "
+FILES_apache-doc_prepend = "${datadir}/apache/manual "
+
+FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \
+ ${libdir}/*/ ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+ ${datadir}/apache"
+
+CFLAGS_append = " -DPATH_MAX=4096"
+CFLAGS_prepend = "-I${STAGING_INCDIR}/openssl "
+EXTRA_OECONF = "--enable-ssl \
+ --with-ssl=${STAGING_LIBDIR}/.. \
+ --enable-dav \
+ --enable-dav-fs \
+ --with-dbm=sdbm \
+ --with-berkeley-db=no \
+ --localstatedir=${localstatedir}/log/apache \
+ --with-gdbm=no \
+ --with-ndbm=no \
+ --datadir=${datadir}/apache \
+ --sysconfdir=${sysconfdir}/apache \
+ "
+
+export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
+
+do_configure () {
+ # Looks like rebuilding configure doesn't work, so we are skipping
+ # that and are just using the shipped one
+ oe_runconf
+}
+
+do_install_append () {
+ set -x
+ rm ${D}/${datadir}/apache/htdocs/index*
+ rm ${D}/${datadir}/apache/htdocs/apache_pb2.*
+ rm ${D}/${datadir}/apache/htdocs/apache_pb.png
+ install -m 0644 ${FILESDIR}/index.html ${D}/${datadir}/apache/htdocs/
+
+ install -d ${D}/${sysconfdir}/init.d
+ cat ${FILESDIR}/init | \
+ sed -e 's,/usr/sbin/,${sbindir}/,g' \
+ -e 's,/usr/bin/,${bindir}/,g' \
+ -e 's,/usr/lib,${libdir}/,g' \
+ -e 's,/etc/,${sysconfdir}/,g' \
+ -e 's,/usr/,${prefix}/,g' > ${D}/${sysconfdir}/init.d/apache
+ chmod 755 ${D}/${sysconfdir}/init.d/apache
+
+ install -m 0644 ${FILESDIR}/httpd.conf ${D}/${sysconfdir}/apache/httpd.conf
+
+ rm ${D}/${libdir}/libexpat.*
+}
+
+python () {
+ # Don't build apache unless we are building nativly
+ target = bb.data.getVar("TARGET_ARCH", d, 1)
+ build = bb.data.getVar("BUILD_ARCH", d, 1)
+ if target != build:
+ raise bb.parse.SkipPackage("Apache will only build nativly (TARGET_ARCH == BUILD_ARCH)")
+}
+