summaryrefslogtreecommitdiff
path: root/package/cherokee/Makefile
blob: 571e3d81e24e8122e42933f9201a9168cb0911cc (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		cherokee
PKG_VERSION:=		1.2.101
PKG_RELEASE:=		1
PKG_HASH:=		ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8
PKG_DESCR:=		small and fast webserver
PKG_SECTION:=		net/http
PKG_URL:=		http://www.cherokee-project.com
PKG_SITES:=		http://mirror.aarnet.edu.au/pub/cherokee/1.2/1.2.101/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,CHEROKEE,cherokee,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes \
			ac_cv_func_realloc_0_nonnull=yes
CONFIGURE_ARGS+=	--enable-static-module=all \
			--without-mysql \
			--without-ldap \
			--disable-pam \
			--without-ffmpeg

cherokee-install:
	$(INSTALL_DIR) $(IDIR_CHEROKEE)/etc/cherokee
	$(INSTALL_DATA) ./files/cherokee.conf \
		$(IDIR_CHEROKEE)/etc/cherokee
	$(INSTALL_DIR) $(IDIR_CHEROKEE)/usr/lib/cherokee
	$(CP) $(WRKINST)/usr/lib/libcherokee*so* \
		$(IDIR_CHEROKEE)/usr/lib
	$(INSTALL_DIR) $(IDIR_CHEROKEE)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/cherokee{,-worker} \
		$(IDIR_CHEROKEE)/usr/sbin
	$(INSTALL_DIR) $(IDIR_CHEROKEE)/usr/share/cherokee/themes/default
	$(CP) $(WRKINST)/usr/share/cherokee/themes/default/* \
		$(IDIR_CHEROKEE)/usr/share/cherokee/themes/default

include ${ADK_TOPDIR}/mk/pkg-bottom.mk