diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-11-17 02:22:07 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-11-17 02:22:07 +0000 |
commit | 30e1f81f8042fb8289b47dff61388b98cf0c5f6a (patch) | |
tree | 905c74c0fbd52f76cf8484ec2ee097a91804f6bd /packages/cherokee/cherokee_0.5.3.bb | |
parent | 31773235080d7e8430bed8849650a203cc0d1faf (diff) |
cherokee: Add an initscript for the cherokee http server so it'll start on
boot, so it'll be stopped when removing it etc.
Diffstat (limited to 'packages/cherokee/cherokee_0.5.3.bb')
-rw-r--r-- | packages/cherokee/cherokee_0.5.3.bb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/cherokee/cherokee_0.5.3.bb b/packages/cherokee/cherokee_0.5.3.bb index 596e763c9f..ad5ef94c81 100644 --- a/packages/cherokee/cherokee_0.5.3.bb +++ b/packages/cherokee/cherokee_0.5.3.bb @@ -4,15 +4,16 @@ SECTION = "network" LICENSE = "GPL" DEPENDS = "libpcre gnutls" HOMEPAGE = "http://www.cherokee-project.com/" -PR = "r2" +PR = "r3" SRC_URI = "http://www.cherokee-project.com/download/0.5/${PV}/cherokee-${PV}.tar.gz \ file://configure.patch;patch=1 \ file://Makefile.in.patch;patch=1 \ file://Makefile.cget.patch;patch=1 \ - file://util.patch;patch=1" + file://util.patch;patch=1 \ + file://cherokee.init" -inherit autotools pkgconfig binconfig +inherit autotools pkgconfig binconfig update-rc.d EXTRA_OECONF = "--enable-tls=gnutls --disable-static --disable-nls" @@ -26,9 +27,17 @@ do_install_prepend () { $BUILD_CC -DHAVE_SYS_STAT_H -o cherokee_replace cherokee_replace.c } +do_install_append () { + install -m 0755 -d ${D}${sysconfdir}/init.d + install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee +} + PACKAGES =+ "cget libcherokee-server libcherokee-client libcherokee-base" FILES_cget = "${bindir}/cget" FILES_libcherokee-server = "${libdir}/libcherokee-server*" FILES_libcherokee-client = "${libdir}/libcherokee-client*" FILES_libcherokee-base = "${libdir}/libcherokee-base*" + +INITSCRIPT_NAME = "cherokee" +INITSCRIPT_PARAMS = "defaults 91 91" |