blob: e4d9603ab851328c4e8d6aba62d31335763cff7e (
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# New ports collection makefile for: hiawatha
# Date created: 24 november 2006
# Whom: Hugo Leisink <hugo@leisink.net>
#
# $FreeBSD$
#
PORTNAME= hiawatha
PORTVERSION= 7.6
CATEGORIES= www
MASTER_SITES= http://www.hiawatha-webserver.org/files/ \
http://www.c-s.li/ports/
MAINTAINER= cs@FreeBSD.org
COMMENT= An advanced and secure webserver for Unix
LICENSE= GPLv2
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL
PORTEXAMPLES= hiawatha mkcert newroot php-fcgi
CONFIG_FILES= hiawatha.conf mimetype.conf cgi-wrapper.conf php-fcgi.conf
MAN1= cgi-wrapper.1 hiawatha.1 newroot.1 php-fcgi.1 ssi-cgi.1 wigwam.1
USE_RC_SUBR= hiawatha php-fcgi
SUB_FILES= pkg-message
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var webrootdir=${WWWDIR}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
OPTIONS= COMMAND "Enable the Hiawatha CommandChannel" Off \
CACHE "Internal file caching support" On \
IPV6 "Enable IPv6 Support" On \
LARGEFILE "Support for large files" On \
MONITOR "Enable Hiawatha Monitor" On \
SSL "Support for Secure Sockets Layer (SSL)" On \
TOOLKIT "Enable URL Toolkit" On \
XSLT "XSLT support" On
PLIST_SUB+= ECHO_MSG=${ECHO_MSG}
.include <bsd.port.pre.mk>
.if defined(WITH_COMMAND)
CONFIGURE_ARGS+= --enable-command
.else
CONFIGURE_ARGS+= --disable-command
.endif
.if !defined(WITH_CACHE)
CONFIGURE_ARGS+= --disable-cache
.endif
.if !defined(WITH_IPV6)
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !defined(WITH_LARGEFILE)
CONFIGURE_ARGS+= --disable-largefile
.endif
.if !defined(WITH_SSL)
CONFIGURE_ARGS+= --disable-ssl
.endif
.if !defined(WITH_TOOLKIT)
CONFIGURE_ARGS+= --disable-toolkit
.endif
.if !defined(WITH_XSLT)
CONFIGURE_ARGS+= --disable-xslt
.else
USE_GNOME+= libxslt
CPPFLAGS+= -I${LOCALBASE}/include/libxml2
.endif
.if !defined(WITH_MONITOR)
CONFIGURE_ARGS+= --disable-monitor
.else
CONFIGURE_ARGS+= --enable-xslt
USE_GNOME+= libxslt
CPPFLAGS+= -I${LOCALBASE}/include/libxml2
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/extra/,} ${EXAMPLESDIR}/
.endif
.for FILE in ${CONFIG_FILES}
@${INSTALL_DATA} ${WRKSRC}/etc/hiawatha/${FILE} ${PREFIX}/etc/hiawatha/${FILE}.sample
@if [ ! -f ${PREFIX}/etc/hiawatha/${FILE} ]; then \
${CP} -p ${WRKSRC}/etc/hiawatha/${FILE} ${PREFIX}/etc/hiawatha/${FILE} ; \
fi
.endfor
@if [ ! -d ${WWWDIR} ]; then \
@${MKDIR} ${WWWDIR} ; \
fi
@${CP} ${WRKSRC}/doc/index.html ${WWWDIR}/index.hiawatha.html
@if [ ! -f ${WWWDIR}/index.html ] ; then \
${CP} ${WRKSRC}/doc/index.html ${WWWDIR}/ ; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|