More section fixes
[vuplus_openembedded] / appweb / appweb_1.0.1.oe
1 DESCRIPTION = "AppWeb is an embedded HTTP Web server that has been designed with security in mind."
2 SECTION = "console/network"
3 SRC_URI = "http://www.mbedthis.com/software/appWeb-${PV}.LINUX-i386.self.tar.gz"
4 SRC_URI_EXTRA = 'file://${WORKDIR}/appWeb-src-${PV}-5.tar.gz \
5                  file://charsignedness.patch;patch=1 \
6                  file://makerules.patch;patch=1'
7 S = "${WORKDIR}/appWeb-${PV}"
8
9 python do_unpack () {
10         oe.build.exec_func('base_do_unpack', d)
11         src_uri = oe.data.getVar('SRC_URI', d)
12         oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
13         oe.build.exec_func('base_do_unpack', d)
14         oe.data.setVar('SRC_URI', src_uri, d)
15         oe.build.exec_func('do_unpack_cleanup', d)
16 }
17
18 do_unpack_cleanup () {
19         (
20                 set -e
21                 cd ${WORKDIR}
22                 rm -f README.HTML install remove
23         )
24 }
25
26 python do_patch () {
27         oe.build.exec_func('base_do_patch', d)
28         src_uri = oe.data.getVar('SRC_URI', d)
29         oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
30         oe.build.exec_func('base_do_patch', d)
31         oe.data.setVar('SRC_URI', src_uri, d)
32 }
33 #       --enable-access-log
34 #       --enable-admin
35 #       --enable-all-static
36 #       --enable-assert
37 #       --enable-c-api
38 #       --enable-dll
39 #       --enable-fast-malloc
40 #       --enable-goahead-compat
41 #       --enable-if-modified
42 #       --enable-log
43 #       --enable-rom-fs
44 #       --enable-run-as-service
45 #       --enable-safe-strings
46 #       --enable-squeeze
47 #       --enable-ssl
48 #       --enable-session
49
50 APPWEB_TARGET = "${TARGET_ARCH}"
51 APPWEB_OS = "${TARGET_OS}"
52 APPWEB_OS_linux = "LINUX"
53 EXTRA_OECONF = "--os ${APPWEB_OS} --target ${APPWEB_TARGET} \
54                 --enable-keep-alive \
55                 --enable-multi-thread \
56                 --enable-cgi \
57                 --enable-cookie \
58                 --enable-config \
59                 --enable-digest-auth \
60                 --disable-ssl"
61 EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'CPP=${CXX}' 'LD=${CC}'"
62
63 LD_LIBRARY_PATH_prepend = "${S}/lib:"
64 LD_LIBRARY_PATH[export] = "1"
65 do_configure () {
66         ./configure ${EXTRA_OECONF}
67 }
68
69 do_compile () {
70         oe_runmake build
71         oe_runmake compile
72 }
73
74 do_stage () {
75         :
76 }
77
78 do_install () {
79         install -d ${D}/${sbindir} ${D}/${sysconfdir}/appWeb/lib \
80                    ${D}/${libexecdir}/appWeb ${D}/${libdir}
81         install -m 0755 appWeb/appWeb ${D}/${sbindir}/
82         install -m 0644 appWeb/appWeb.conf ${D}/${sysconfdir}/appWeb/
83         install -m 0755 bin/${APPWEB_OS}/* ${D}/${libexecdir}/appWeb/
84         install -m 0755 lib/lib*.so* ${D}/${sysconfdir}/appWeb/lib/
85 }