summaryrefslogtreecommitdiff
path: root/www/cherokee/Makefile
blob: 0c3c4da19af3e29ef8dcfe29a51e6cb4ab0a7b92 (plain) (blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# New ports collection makefile for:	cherokee
# Date created:			01 Jun 2002
# Whom:				silence <oksala@videotron.ca>
#
# $FreeBSD$
#

PORTNAME=	Cherokee
PORTVERSION=	0.2.8
CATEGORIES=	www
MASTER_SITES=	http://www.alobbs.com/cherokee/

MAINTAINER=	oksala@videotron.ca
COMMENT=	Cherokee is an extremely fast and tiny web server

USE_AUTOCONF=	yes
USE_AUTOMAKE=	yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS+=	\
		--prefix=${PREFIX} \
		--enable-daemon\
		--enable-warnings\
		--with-htdocs=${HTDOCS}\
		--with-uid=${UID} \
		--with-gid=${GID} \
		--with-port=${PORT} \
		--with-index=${INDEX}


#
# User Configuration
# This may seem a little overloaded
# But there is not configuration files or getopt options
#

#User Configurations
#Dir for your html files
.if defined(HTDOCS)
HTDOCS=${HTDOCS}
.else
HTDOCS=${PREFIX}/www/data
.endif

#Process UID
.if defined(USER_ID)
USER_ID=${USER_ID}
.else
USER_ID=80      #www
.endif

#Process GID
.if defined(GROUP_ID)
GROUP_ID=${GROUP_ID}
.else
GROUP_ID=80     #www
.endif

#inet port
.if defined(PORT)
PORT=${PORT}
.else
PORT=80
.endif

#index files
.if defined(INDEX)
INDEX=${INDEX}
.else
INDEX=index.html
.endif

pre-configure:
	@${ECHO} ""
	@${ECHO} "=================================="
	@${ECHO} ""
	@${ECHO} "Current configuration :"
	@${ECHO} "Working directory : ${HTDOCS} (HTDOCS)"
	@${ECHO} "Process id : ${USER_ID} (USER_ID)"
	@${ECHO} "Process gid : ${GROUP_ID} (GROUP_ID)"
	@${ECHO} "Inet port : ${PORT} (PORT)"
	@${ECHO} "Index files : ${INDEX} (INDEX)"
	@${ECHO} ""
	@${ECHO} "=================================="
	@${ECHO} ""

pre-install:
	@if [ ! -f ${PREFIX}/www ]; then \
		${MKDIR} ${PREFIX}/www;\
	fi
	@if [ ! -f ${HTDOCS} ] ; then \
		${MKDIR} ${HTDOCS};\
	fi

.include <bsd.port.mk>