Lines 5-94
Link Here
|
5 |
# $FreeBSD: ports/www/cherokee/Makefile,v 1.1 2003/04/06 00:30:58 edwin Exp $ |
5 |
# $FreeBSD: ports/www/cherokee/Makefile,v 1.1 2003/04/06 00:30:58 edwin Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= Cherokee |
8 |
PORTNAME= cherokee |
9 |
PORTVERSION= 0.2.8 |
9 |
PORTVERSION= 0.4.2 |
10 |
CATEGORIES= www |
10 |
CATEGORIES= www |
11 |
MASTER_SITES= http://www.alobbs.com/cherokee/ |
11 |
MASTER_SITES= ftp://www.alobbs.com/cherokee/ |
12 |
|
12 |
|
13 |
MAINTAINER= oksala@videotron.ca |
13 |
MAINTAINER= oksala@videotron.ca |
14 |
COMMENT= Cherokee is an extremely fast and tiny web server |
14 |
COMMENT= Cherokee is an extremely fast and tiny web server |
15 |
|
15 |
|
16 |
USE_AUTOCONF= yes |
16 |
#USE_AUTOCONF= yes |
17 |
USE_AUTOMAKE= yes |
17 |
#USE_AUTOMAKE= yes |
18 |
HAS_CONFIGURE= yes |
18 |
HAS_CONFIGURE= yes |
19 |
CONFIGURE_ARGS+= \ |
19 |
CONFIGURE_ARGS= --prefix=${PREFIX} |
20 |
--prefix=${PREFIX} \ |
|
|
21 |
--enable-daemon\ |
22 |
--enable-warnings\ |
23 |
--with-htdocs=${HTDOCS}\ |
24 |
--with-uid=${UID} \ |
25 |
--with-gid=${GID} \ |
26 |
--with-port=${PORT} \ |
27 |
--with-index=${INDEX} |
28 |
|
29 |
|
30 |
# |
31 |
# User Configuration |
32 |
# This may seem a little overloaded |
33 |
# But there is not configuration files or getopt options |
34 |
# |
35 |
|
36 |
#User Configurations |
37 |
#Dir for your html files |
38 |
.if defined(HTDOCS) |
39 |
HTDOCS=${HTDOCS} |
40 |
.else |
41 |
HTDOCS=${PREFIX}/www/data |
42 |
.endif |
43 |
|
44 |
#Process UID |
45 |
.if defined(USER_ID) |
46 |
USER_ID=${USER_ID} |
47 |
.else |
48 |
USER_ID=80 #www |
49 |
.endif |
50 |
|
51 |
#Process GID |
52 |
.if defined(GROUP_ID) |
53 |
GROUP_ID=${GROUP_ID} |
54 |
.else |
55 |
GROUP_ID=80 #www |
56 |
.endif |
57 |
|
58 |
#inet port |
59 |
.if defined(PORT) |
60 |
PORT=${PORT} |
61 |
.else |
62 |
PORT=80 |
63 |
.endif |
64 |
|
20 |
|
65 |
#index files |
21 |
#This is experimental |
66 |
.if defined(INDEX) |
22 |
#do not expect it to work properly |
67 |
INDEX=${INDEX} |
23 |
.if defined(WITH_PHP) |
68 |
.else |
24 |
CONFIGURE_ARGS+=--with-php=${PREFIX}/include/php |
69 |
INDEX=index.html |
25 |
BUILD_DEPENDS=mod_php4:${PORTSDIR}/www/mod_php4: |
70 |
.endif |
26 |
.endif |
71 |
|
27 |
|
72 |
pre-configure: |
28 |
#pre-everything: |
73 |
@${ECHO} "" |
29 |
# @${ECHO_MSG} "----------------------------" |
74 |
@${ECHO} "==================================" |
30 |
# @${ECHO_MSG} " " |
75 |
@${ECHO} "" |
31 |
# @${ECHO_MSG} "You can add php support" |
76 |
@${ECHO} "Current configuration :" |
32 |
# @${ECHO_MSG} "This is experimental" |
77 |
@${ECHO} "Working directory : ${HTDOCS} (HTDOCS)" |
33 |
# @${ECHO_MSG} "builds cherokee with WITH_PHP=yes" |
78 |
@${ECHO} "Process id : ${USER_ID} (USER_ID)" |
34 |
# @${ECHO_MSG} "For example," |
79 |
@${ECHO} "Process gid : ${GROUP_ID} (GROUP_ID)" |
35 |
# @${ECHO_MSG} "make WITH_PHP=yes" |
80 |
@${ECHO} "Inet port : ${PORT} (PORT)" |
36 |
# @${ECHO_MSG} " " |
81 |
@${ECHO} "Index files : ${INDEX} (INDEX)" |
37 |
# @${ECHO_MSG} "----------------------------" |
82 |
@${ECHO} "" |
|
|
83 |
@${ECHO} "==================================" |
84 |
@${ECHO} "" |
85 |
|
38 |
|
86 |
pre-install: |
39 |
pre-install: |
87 |
@if [ ! -f ${PREFIX}/www ]; then \ |
40 |
@if [ ! -f ${PREFIX}/www ]; then \ |
88 |
${MKDIR} ${PREFIX}/www;\ |
41 |
${MKDIR} ${PREFIX}/www;\ |
89 |
fi |
42 |
fi |
90 |
@if [ ! -f ${HTDOCS} ] ; then \ |
43 |
@if [ ! -f ${PREFIX}/www/data ] ; then \ |
91 |
${MKDIR} ${HTDOCS};\ |
44 |
${MKDIR} ${PREFIX}/www/data;\ |
92 |
fi |
45 |
fi |
|
|
46 |
@${ECHO_MSG} " `pwd` " |
47 |
|
48 |
post-install: |
49 |
@${INSTALL} -m 644 ${WRKSRC}/doc/Intro.txt ${PREFIX}/share/cherokee |
50 |
@${ECHO_MSG} " " |
51 |
@${ECHO_MSG} " Dont forget to read the doc " |
52 |
@${ECHO_MSG} " ${PREFIX}/share/cherokee/Intro.txt" |
53 |
@${ECHO_MSG} " " |
93 |
|
54 |
|
94 |
.include <bsd.port.mk> |
55 |
.include <bsd.port.mk> |