mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
cherokee: complete systemd native support
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ SECTION = "network"
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||||
|
|
||||||
PR = "r1"
|
PR = "r3"
|
||||||
|
|
||||||
DEPENDS = "libpcre openssl mysql5 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
DEPENDS = "libpcre openssl mysql5 ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ SRC_URI = "http://www.cherokee-project.com/download/1.2/${PV}/cherokee-${PV}.tar
|
|||||||
SRC_URI[md5sum] = "21b01e7d45c0e82ecc0c4257a9c27feb"
|
SRC_URI[md5sum] = "21b01e7d45c0e82ecc0c4257a9c27feb"
|
||||||
SRC_URI[sha256sum] = "042b5687b1a3db3ca818167548ce5d32c35e227c6640732dcb622a6f4a078b7d"
|
SRC_URI[sha256sum] = "042b5687b1a3db3ca818167548ce5d32c35e227c6640732dcb622a6f4a078b7d"
|
||||||
|
|
||||||
inherit autotools pkgconfig binconfig update-rc.d
|
inherit autotools pkgconfig binconfig update-rc.d systemd
|
||||||
|
|
||||||
EXTRA_OECONF = "--disable-static \
|
EXTRA_OECONF = "--disable-static \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
@@ -26,9 +26,6 @@ do_install_append () {
|
|||||||
install -m 0755 -d ${D}${sysconfdir}/init.d
|
install -m 0755 -d ${D}${sysconfdir}/init.d
|
||||||
install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee
|
install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee
|
||||||
|
|
||||||
install -d ${D}${base_libdir}/systemd/system
|
|
||||||
install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system/
|
|
||||||
|
|
||||||
# clean up .la files for plugins
|
# clean up .la files for plugins
|
||||||
rm -f ${D}${libdir}/cherokee/*.la
|
rm -f ${D}${libdir}/cherokee/*.la
|
||||||
}
|
}
|
||||||
@@ -36,7 +33,6 @@ do_install_append () {
|
|||||||
# Put -dev near the front so we can move the .la files into it with a wildcard
|
# Put -dev near the front so we can move the .la files into it with a wildcard
|
||||||
PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget"
|
PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget"
|
||||||
|
|
||||||
FILES_${PN} += "${base_libdir}/systemd"
|
|
||||||
FILES_cget = "${bindir}/cget"
|
FILES_cget = "${bindir}/cget"
|
||||||
FILES_libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}"
|
FILES_libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}"
|
||||||
FILES_libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}"
|
FILES_libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}"
|
||||||
@@ -49,3 +45,6 @@ CONFFILES_${PN} = " \
|
|||||||
|
|
||||||
INITSCRIPT_NAME = "cherokee"
|
INITSCRIPT_NAME = "cherokee"
|
||||||
INITSCRIPT_PARAMS = "defaults 91 91"
|
INITSCRIPT_PARAMS = "defaults 91 91"
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE = "cherokee.service"
|
||||||
|
|||||||
Reference in New Issue
Block a user