diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/cherokee')
7 files changed, 0 insertions, 267 deletions
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-common-internal.h-Define-LLONG_MAX-if-undefined.patch b/meta-webserver/recipes-httpd/cherokee/cherokee/0001-common-internal.h-Define-LLONG_MAX-if-undefined.patch deleted file mode 100644 index 0f43842752..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-common-internal.h-Define-LLONG_MAX-if-undefined.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From c73415021f3f3b2b30062ab74b25fe49c51c2242 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 10 Nov 2019 15:59:44 -0800 | ||
4 | Subject: [PATCH] common-internal.h: Define LLONG_MAX if undefined | ||
5 | |||
6 | time_t can also be long long type, therefore check for that as fallback | ||
7 | Fixes build on 32bit hosts where time_t is fixed for Y2K38 | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | cherokee/common-internal.h | 12 ++++++++++++ | ||
13 | 1 file changed, 12 insertions(+) | ||
14 | |||
15 | diff --git a/cherokee/common-internal.h b/cherokee/common-internal.h | ||
16 | index 5c28da97..5646ec0f 100644 | ||
17 | --- a/cherokee/common-internal.h | ||
18 | +++ b/cherokee/common-internal.h | ||
19 | @@ -222,6 +222,16 @@ char *strcasestr(char *s, char *find); | ||
20 | # endif | ||
21 | #endif | ||
22 | |||
23 | +/* Long Long limit | ||
24 | + */ | ||
25 | +#ifndef LLONG_MAX | ||
26 | +# if (__SIZEOF_LONG_LONG__ == 8) | ||
27 | +# define LLONG_MAX 0x7fffffffffffffffLL | ||
28 | +# else | ||
29 | +# error "Can't define LLONG_MAX" | ||
30 | +# endif | ||
31 | +#endif | ||
32 | + | ||
33 | /* time_t limit | ||
34 | */ | ||
35 | #ifndef TIME_MAX | ||
36 | @@ -229,6 +239,8 @@ char *strcasestr(char *s, char *find); | ||
37 | # define TIME_MAX ((time_t)INT_MAX) | ||
38 | # elif (SIZEOF_TIME_T == SIZEOF_LONG) | ||
39 | # define TIME_MAX ((time_t)LONG_MAX) | ||
40 | +# elif (SIZEOF_TIME_T == __SIZEOF_LONG_LONG__) | ||
41 | +# define TIME_MAX ((time_t)LLONG_MAX) | ||
42 | # else | ||
43 | # error "Can't define TIME_MAX" | ||
44 | # endif | ||
45 | -- | ||
46 | 2.24.0 | ||
47 | |||
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-configure.ac-Add-foreign-to-AM_INIT_AUTOMAKE.patch b/meta-webserver/recipes-httpd/cherokee/cherokee/0001-configure.ac-Add-foreign-to-AM_INIT_AUTOMAKE.patch deleted file mode 100644 index b16060f2a1..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-configure.ac-Add-foreign-to-AM_INIT_AUTOMAKE.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 4591b5b40d66c19edc73b951ad091dac639454c9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 25 Jul 2017 16:00:34 -0700 | ||
4 | Subject: [PATCH] configure.ac: Add foreign to AM_INIT_AUTOMAKE | ||
5 | |||
6 | Fixes errors like | ||
7 | | Makefile.am: error: required file './README' not found | ||
8 | | Makefile.am: error: required file './ChangeLog' not found | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index d6298f27..98cab791 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -32,7 +32,7 @@ dnl Init autoconf and automake | ||
21 | AC_INIT([cherokee], [cherokee_version], [http://bugs.cherokee-project.com/], [cherokee]) | ||
22 | AC_CONFIG_SRCDIR([cherokee/server.c]) | ||
23 | AC_CONFIG_MACRO_DIR([m4]) | ||
24 | -AM_INIT_AUTOMAKE([no-define]) | ||
25 | +AM_INIT_AUTOMAKE([no-define foreign]) | ||
26 | |||
27 | dnl Define version | ||
28 | AC_DEFINE(PACKAGE_MAJOR_VERSION, "cherokee_major_version", [Version string]) | ||
29 | -- | ||
30 | 2.13.3 | ||
31 | |||
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-make-Do-not-build-po-files.patch b/meta-webserver/recipes-httpd/cherokee/cherokee/0001-make-Do-not-build-po-files.patch deleted file mode 100644 index 1d6a2182bd..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/0001-make-Do-not-build-po-files.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From e9ae3231ec188df801fe51aa95d6afec2e52db58 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 25 Jul 2017 16:14:19 -0700 | ||
4 | Subject: [PATCH] make: Do not build po files | ||
5 | |||
6 | Target fails to build | ||
7 | |||
8 | Upstream-Status: Inappropriate [Cross-compile specific] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Makefile.am | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/Makefile.am b/Makefile.am | ||
15 | index f01278c3..eb864c36 100644 | ||
16 | --- a/Makefile.am | ||
17 | +++ b/Makefile.am | ||
18 | @@ -1,6 +1,6 @@ | ||
19 | ## Cherokee: Makefile.am -*- makefile -*- | ||
20 | |||
21 | -SUBDIRS = po m4 www icons themes qa doc . admin contrib cherokee cget packages dbslayer | ||
22 | +SUBDIRS = m4 www icons themes qa doc . admin contrib cherokee cget packages dbslayer | ||
23 | SUFFIXES = .sample.pre .sample .h.pre .h .xml.pre .xml | ||
24 | ACLOCAL_AMFLAGS = -I m4 | ||
25 | |||
26 | -- | ||
27 | 2.13.3 | ||
28 | |||
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee-install-configured.py-once.patch b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee-install-configured.py-once.patch deleted file mode 100644 index 3336f7df79..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee-install-configured.py-once.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 98a0f19df0a31d5649ad89d395fd1b8de5591827 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Thu, 3 Apr 2014 21:33:25 +0800 | ||
4 | Subject: [PATCH] admin/Makefile.am: only install configured.py once | ||
5 | |||
6 | Both the two rules install-adminpyDATA and install-generatedDATA will | ||
7 | install the configured.py to the same location, they can run parallel, | ||
8 | and they use "install -m", which would might build failures: | ||
9 | |||
10 | /usr/bin/install: setting permissions for `/path/to/configured.py': No such file or directory | ||
11 | |||
12 | This is because the first install is setting the permission while the | ||
13 | second install is removing the file an re-install. | ||
14 | |||
15 | Only install the configured.py once will fix the problem, I think that | ||
16 | there is no side effect since it installed the same file to the same | ||
17 | location twice in the past. | ||
18 | |||
19 | Upstream-Status: Pending | ||
20 | |||
21 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
22 | --- | ||
23 | admin/Makefile.am | 1 - | ||
24 | 1 file changed, 1 deletion(-) | ||
25 | |||
26 | diff --git a/admin/Makefile.am b/admin/Makefile.am | ||
27 | index ce5937b..6f96934 100644 | ||
28 | --- a/admin/Makefile.am | ||
29 | +++ b/admin/Makefile.am | ||
30 | @@ -73,7 +73,6 @@ SystemStatsWidgets.py \ | ||
31 | Wizard.py \ | ||
32 | XMLServerDigest.py \ | ||
33 | config_version.py \ | ||
34 | -configured.py \ | ||
35 | consts.py \ | ||
36 | util.py \ | ||
37 | popen.py \ | ||
38 | -- | ||
39 | 1.8.2.1 | ||
40 | |||
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init deleted file mode 100644 index 93603b84db..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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-webserver/recipes-httpd/cherokee/cherokee/cherokee.service b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.service deleted file mode 100644 index a2d703185d..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
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-webserver/recipes-httpd/cherokee/cherokee_git.bb b/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb deleted file mode 100644 index 53d6a85ae7..0000000000 --- a/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | SUMMARY = "Cherokee Web Server fast and secure" | ||
2 | SUMMARY:cget = "Small downloader based in the Cherokee client library" | ||
3 | HOMEPAGE = "http://www.cherokee-project.com/" | ||
4 | SECTION = "network" | ||
5 | LICENSE = "GPL-2.0-only" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | DEPENDS = "unzip-native libpcre openssl mysql5 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
9 | |||
10 | SRCREV = "9a75e65b876bcc376cb6b379dca1f7ce4a055c59" | ||
11 | PV = "1.2.104+git" | ||
12 | SRC_URI = "git://github.com/cherokee/webserver;branch=master;protocol=https \ | ||
13 | file://cherokee.init \ | ||
14 | file://cherokee.service \ | ||
15 | file://cherokee-install-configured.py-once.patch \ | ||
16 | file://0001-configure.ac-Add-foreign-to-AM_INIT_AUTOMAKE.patch \ | ||
17 | file://0001-make-Do-not-build-po-files.patch \ | ||
18 | file://0001-common-internal.h-Define-LLONG_MAX-if-undefined.patch \ | ||
19 | " | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | inherit autotools-brokensep pkgconfig binconfig update-rc.d systemd ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "pythonnative", "", d)} | ||
24 | |||
25 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
26 | PACKAGECONFIG[ffmpeg] = "--with-ffmpeg,--without-ffmpeg,libav" | ||
27 | PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" | ||
28 | PACKAGECONFIG[geoip] = "--with-geoip,--without-geoip,geoip" | ||
29 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
30 | |||
31 | EXTRA_OECONF = "--disable-static \ | ||
32 | --disable-nls \ | ||
33 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \ | ||
34 | --with-wwwroot=${localstatedir}/www/cherokee \ | ||
35 | " | ||
36 | |||
37 | do_install:append () { | ||
38 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
39 | install -m 755 ${UNPACKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee | ||
40 | |||
41 | # clean up .la files for plugins | ||
42 | rm -f ${D}${libdir}/cherokee/*.la | ||
43 | |||
44 | install -d ${D}${systemd_unitdir}/system | ||
45 | install -m 0644 ${UNPACKDIR}/cherokee.service ${D}${systemd_unitdir}/system | ||
46 | rmdir "${D}${localstatedir}/run" | ||
47 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
48 | } | ||
49 | |||
50 | # Put -dev near the front so we can move the .la files into it with a wildcard | ||
51 | PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget" | ||
52 | |||
53 | FILES:cget = "${bindir}/cget" | ||
54 | FILES:libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}" | ||
55 | FILES:libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}" | ||
56 | FILES:libcherokee-base = "${libdir}/libcherokee-base${SOLIBS}" | ||
57 | |||
58 | # Pack the htdocs | ||
59 | FILES:${PN} += "${localstatedir}/www/cherokee" | ||
60 | |||
61 | CONFFILES:${PN} = " \ | ||
62 | ${sysconfdir}/cherokee/cherokee.conf \ | ||
63 | ${sysconfdir}/init.d/cherokee \ | ||
64 | " | ||
65 | |||
66 | INITSCRIPT_NAME = "cherokee" | ||
67 | INITSCRIPT_PARAMS = "defaults 91 91" | ||
68 | |||
69 | RPROVIDES:${PN} += "${PN}-systemd" | ||
70 | RREPLACES:${PN} += "${PN}-systemd" | ||
71 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
72 | SYSTEMD_SERVICE:${PN} = "cherokee.service" | ||
73 | |||
74 | python() { | ||
75 | if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
76 | raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') | ||
77 | } | ||
78 | |||
79 | CVE_PRODUCT += "cherokee_web_server" | ||