Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / boa / boa_0.94.13.oe
1 DESCRIPTION = "Lightweight and High Performance WebServer"
2 SECTION = "console/network"
3 RPROVIDES = "httpd"
4 MAINTAINER = "Rene Wagner <reenoo@gmx.de>"
5 LICENSE = "GPL"
6 PR = "r1"
7
8 DEPENDS = "mime-support"
9 RDEPENDS = "mime-support"
10
11 SRC_URI = "http://www.boa.org/boa-${PV}.tar.gz \
12            file://debian-patch.diff;patch=1;pnum=2 \
13            file://boa.conf \
14            file://boa.init"
15 S = "${WORKDIR}/boa-${PV}/src"
16
17 inherit autotools update-rc.d
18
19 INITSCRIPT_NAME = "boa"
20 INITSCRIPT_PARAMS = "defaults 20"
21
22 CFLAGS_append = " -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
23 #CFLAGS_append = " -DSERVER_ROOT=..."
24
25 do_install() {
26         install -d ${D}/${sbindir}
27         install -d ${D}/${libdir}/${PN}
28         install -m 0755 boa                     ${D}/${sbindir}
29         install -m 0755 boa_indexer             ${D}/${libdir}/${PN}
30
31         install -d ${D}/${sysconfdir}/${PN}
32         install -d ${D}/${sysconfdir}/init.d
33         install -m 0640 ${WORKDIR}/boa.conf     ${D}/${sysconfdir}/${PN}
34         install -m 0755 ${WORKDIR}/boa.init     ${D}/${sysconfdir}/init.d/boa
35 }