aboutsummaryrefslogtreecommitdiffstats
path: root/www/hiawatha/Makefile
blob: 00f1ba14fd81d52841da59b7db39db225ff25aa8 (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
# New ports collection makefile for:   hiawatha
# Date created:        24 november 2006
# Whom:                Hugo Leisink <hugo@leisink.net>
#
# $FreeBSD$
#

PORTNAME=   hiawatha
PORTVERSION=    5.9
CATEGORIES= www
MASTER_SITES=   http://hiawatha.leisink.org/files/

MAINTAINER= hugo@leisink.net
COMMENT=    An advanced and secure webserver for Unix

MAN1=       hiawatha.1 cgi-wrapper.1 php-fcgi.1 wigwam.1 newroot.1
MANCOMPRESSED=  no

USE_RC_SUBR=    hiawatha
SUB_FILES=  pkg-message

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --localstatedir=/var --mandir=${MANPREFIX}/man webrootdir=${PREFIX}/www/hiawatha

OPTIONS=    SSL "Support for Secure Sockets Layer (SSL)?" On
OPTIONS+=   CACHE "Internal file caching support?" On
OPTIONS+=   COMMAND "Enable the Hiawatha CommandChannel?" Off

CONFIG_FILES=   httpd.conf mimetype.conf throttle.conf cgi-wrapper.conf php-fcgi.conf

.include <bsd.port.pre.mk>

.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+=--disable-ssl
.endif

.if defined(WITHOUT_CACHE)
CONFIGURE_ARGS+=--disable-cache
.endif

.if defined(WITH_COMMAND)
CONFIGURE_ARGS+=--enable-command
.endif

post-install:
    @for file in ${CONFIG_FILES} ; do \
        ${CP} -f ${WRKSRC}/etc/hiawatha/$${file} ${PREFIX}/etc/hiawatha/$${file}.sample ; \
    done
    ${CP} -f ${WRKSRC}/doc/index.html ${PREFIX}/www/hiawatha/index.html.sample
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>