summaryrefslogtreecommitdiff
path: root/packages/cherokee/cherokee_0.5.3.bb
blob: df0f2292be98565a7e7898fb4ebdb528c14a8d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DESCRIPTION = "Cherokee Web Server fast and secure"
DESCRIPTION_cget = "Small downloader based in the Cherokee client library"
SECTION = "network"
LICENSE = "GPL"
DEPENDS = "libpcre gnutls"
HOMEPAGE = "http://www.cherokee-project.com/"
PR = "r4"

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://cherokee.init"

inherit autotools pkgconfig binconfig update-rc.d

EXTRA_OECONF = "--enable-tls=gnutls --disable-static --disable-nls"

do_configure() {
	gnu-configize
	oe_runconf
	sed -i 's:-L\$:-L${STAGING_LIBDIR} -L\$:' ${S}/*libtool
}

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*"

CONFFILES_${PN} = "${sysconfdir}/cherokee/mime.types \
		   ${sysconfdir}/cherokee/mods-available/admin \
		   ${sysconfdir}/cherokee/mods-available/ssl \
		   ${sysconfdir}/cherokee/advanced.conf \
		   ${sysconfdir}/cherokee/cherokee.conf \
		   ${sysconfdir}/cherokee/mime.compression.types \
		   ${sysconfdir}/cherokee/sites-available/example.com \
		   ${sysconfdir}/cherokee/sites-available/default \
		   ${sysconfdir}/cherokee/icons.conf"

INITSCRIPT_NAME = "cherokee"
INITSCRIPT_PARAMS = "defaults 91 91"