mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 13:20:03 +00:00
hiawatha: add CONFFILES and a php example
- add CONFFILES so that configuration files don't get overwritten during upgrade - add an example on how to launch php-cgi using php-fcgi Signed-off-by: Eric Bénard <eric@eukrea.com>
This commit is contained in:
committed by
Paul Eggleton
parent
9439d8132a
commit
e4236266b7
@@ -4,6 +4,8 @@ LICENSE = "GPLv2"
|
|||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
DEPENDS = "libxml2 libxslt"
|
DEPENDS = "libxml2 libxslt"
|
||||||
|
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
SECTION = "net"
|
SECTION = "net"
|
||||||
|
|
||||||
SRC_URI = "http://hiawatha-webserver.org/files/${PN}-${PV}.tar.gz \
|
SRC_URI = "http://hiawatha-webserver.org/files/${PN}-${PV}.tar.gz \
|
||||||
@@ -36,10 +38,20 @@ EXTRA_OECMAKE = " -DENABLE_IPV6=OFF \
|
|||||||
-DWORK_DIR=/var/lib/hiawatha "
|
-DWORK_DIR=/var/lib/hiawatha "
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
|
|
||||||
# Copy over init script and sed in the correct sbin path
|
# Copy over init script and sed in the correct sbin path
|
||||||
sed -i 's,sed_sbin_path,${sbindir},' ${WORKDIR}/hiawatha-init
|
sed -i 's,sed_sbin_path,${sbindir},' ${WORKDIR}/hiawatha-init
|
||||||
mkdir -p ${D}${sysconfdir}/init.d
|
mkdir -p ${D}${sysconfdir}/init.d
|
||||||
install -m 0755 ${WORKDIR}/hiawatha-init ${D}${sysconfdir}/init.d/hiawatha
|
install -m 0755 ${WORKDIR}/hiawatha-init ${D}${sysconfdir}/init.d/hiawatha
|
||||||
|
|
||||||
|
# configure php-fcgi to have a working configuration
|
||||||
|
# by default if php is installed
|
||||||
|
echo "Server = ${bindir}/php-cgi ; 2 ; 127.0.0.1:2005 ; nobody:nobody ; ${sysconfdir}/php/hiawatha-php5/php.ini" >> ${D}${sysconfdir}/hiawatha/php-fcgi.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CONFFILES_${PN} = " \
|
||||||
|
${sysconfdir}/hiawatha/cgi-wrapper.conf \
|
||||||
|
${sysconfdir}/hiawatha/hiawatha.conf \
|
||||||
|
${sysconfdir}/hiawatha/index.xslt \
|
||||||
|
${sysconfdir}/hiawatha/mimetype.conf \
|
||||||
|
${sysconfdir}/hiawatha/php-fcgi.conf \
|
||||||
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user