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