diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-08-11 09:32:04 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-08-11 09:32:04 +0200 |
commit | 36343c8e3395d7a845848b0f1f7ba2b1c4a839c1 (patch) | |
tree | 1f0703724e651031dd96192fbf1ef916edc21142 | |
parent | 61e4b696de080545e6ffe80d28a9c6ef8990695a (diff) | |
download | meta-openembedded-36343c8e3395d7a845848b0f1f7ba2b1c4a839c1.tar.gz |
cherokee: import from OE .dev and clean up
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
4 files changed, 98 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/cherokee/cherokee.inc b/meta-oe/recipes-connectivity/cherokee/cherokee.inc new file mode 100644 index 0000000000..114dbba282 --- /dev/null +++ b/meta-oe/recipes-connectivity/cherokee/cherokee.inc | |||
@@ -0,0 +1,50 @@ | |||
1 | DESCRIPTION = "Cherokee Web Server fast and secure" | ||
2 | DESCRIPTION_cget = "Small downloader based in the Cherokee client library" | ||
3 | HOMEPAGE = "http://www.cherokee-project.com/" | ||
4 | SECTION = "network" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | INC_PR = "r0" | ||
9 | |||
10 | DEPENDS = "libpcre openssl ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
11 | |||
12 | SRC_URI = "http://www.cherokee-project.com/download/1.2/${PV}/cherokee-${PV}.tar.gz \ | ||
13 | file://cherokee.init \ | ||
14 | file://cherokee.service" | ||
15 | |||
16 | |||
17 | inherit autotools pkgconfig binconfig update-rc.d | ||
18 | |||
19 | EXTRA_OECONF = "--disable-static \ | ||
20 | --disable-nls \ | ||
21 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \ | ||
22 | " | ||
23 | |||
24 | do_install_append () { | ||
25 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
26 | install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee | ||
27 | |||
28 | install -d ${D}${base_libdir}/systemd/system | ||
29 | install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system/ | ||
30 | |||
31 | # clean up .la files for plugins | ||
32 | rm -f ${D}${libdir}/cherokee/*.la | ||
33 | } | ||
34 | |||
35 | # Put -dev near the front so we can move the .la files into it with a wildcard | ||
36 | PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget" | ||
37 | |||
38 | FILES_${PN} += "${base_libdir}/systemd" | ||
39 | FILES_cget = "${bindir}/cget" | ||
40 | FILES_libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}" | ||
41 | FILES_libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}" | ||
42 | FILES_libcherokee-base = "${libdir}/libcherokee-base${SOLIBS}" | ||
43 | |||
44 | CONFFILES_${PN} = " \ | ||
45 | ${sysconfdir}/cherokee/cherokee.conf \ | ||
46 | ${sysconfdir}/init.d/cherokee \ | ||
47 | " | ||
48 | |||
49 | INITSCRIPT_NAME = "cherokee" | ||
50 | INITSCRIPT_PARAMS = "defaults 91 91" | ||
diff --git a/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.init b/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.init new file mode 100644 index 0000000000..93603b84db --- /dev/null +++ b/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.init | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/bin/sh | ||
2 | DAEMON=/usr/sbin/cherokee | ||
3 | CONFIG=/etc/cherokee/cherokee.conf | ||
4 | PIDFILE=/var/run/cherokee.pid | ||
5 | NAME="cherokee" | ||
6 | DESC="Cherokee http server" | ||
7 | |||
8 | test -r /etc/default/cherokee && . /etc/default/cherokee | ||
9 | test -x "$DAEMON" || exit 0 | ||
10 | test ! -r "$CONFIG" && exit 0 | ||
11 | |||
12 | case "$1" in | ||
13 | start) | ||
14 | echo "Starting $DESC: " | ||
15 | start-stop-daemon --oknodo -S -x $DAEMON -- -d -C $CONFIG | ||
16 | ;; | ||
17 | |||
18 | stop) | ||
19 | echo "Stopping $DESC:" | ||
20 | start-stop-daemon -K -p $PIDFILE | ||
21 | ;; | ||
22 | |||
23 | restart) | ||
24 | $0 stop >/dev/null 2>&1 | ||
25 | $0 start | ||
26 | ;; | ||
27 | |||
28 | *) | ||
29 | echo "Usage: $0 {start|stop|restart}" | ||
30 | exit 0 | ||
31 | ;; | ||
32 | esac | ||
diff --git a/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.service b/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.service new file mode 100644 index 0000000000..a2d703185d --- /dev/null +++ b/meta-oe/recipes-connectivity/cherokee/cherokee/cherokee.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=Cherokee web server | ||
3 | After=syslog.target | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/usr/sbin/cherokee -d -C /etc/cherokee/cherokee.conf | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-connectivity/cherokee/cherokee_1.2.98.bb b/meta-oe/recipes-connectivity/cherokee/cherokee_1.2.98.bb new file mode 100644 index 0000000000..86b3721c44 --- /dev/null +++ b/meta-oe/recipes-connectivity/cherokee/cherokee_1.2.98.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require cherokee.inc | ||
2 | |||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | SRC_URI[md5sum] = "21b01e7d45c0e82ecc0c4257a9c27feb" | ||
6 | SRC_URI[sha256sum] = "042b5687b1a3db3ca818167548ce5d32c35e227c6640732dcb622a6f4a078b7d" | ||