aboutsummaryrefslogtreecommitdiffstats
path: root/www/bozohttpd/Makefile
blob: 1168c48b447dc9d6193ca888902995f6d555d463 (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
# New ports collection makefile for:    bozohttpd
# Date created:         21.03.2002
# Whom:                 Janos.Mohacsi@bsd.hu
#
# $FreeBSD$
#

PORTNAME=   bozohttpd
PORTVERSION=    20100920
CATEGORIES= www ipv6
MASTER_SITES=   http://www.eterna.com.au/bozohttpd/ \
        ${MASTER_SITE_NETBSD}

MAINTAINER= janos.mohacsi@bsd.hu
COMMENT=    The bozotic HTTP server

LICENSE=    BSD

USE_BZIP2=  YES
USE_RC_SUBR=    bozohttpd

#options handling
OPTIONS=    HTPASSWD_SUPPORT    "Enable htpassord support"  off \
        SSL         "Enable SSL support"        on \
        CGI         "Enable CGI support"        on

#make happy portlint
.if defined(WITHOUT_SSL)
.else
USE_OPENSSL=    yes
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_HTPASSWD_SUPPORT)
CFLAGS+=    -DDO_HTPASSWD
MAKE_ARGS+= 'LDFLAGS+= -lcrypt'
.endif

.if defined(WITHOUT_SSL)
CFLAGS+=    -DNO_SSL_SUPPORT
.else
#USE_OPENSSL=   yes
CFLAGS+=    -UNO_SSL_SUPPORT
.endif

.if defined(WITHOUT_CGI)
CFLAGS+=    -DNO_CGIBIN_SUPPORT
.else
CFLAGS+=    -UNO_CGIBIN_SUPPORT
.endif

MAN8=       bozohttpd.8
MANCOMPRESSED=  maybe
PLIST_FILES=    libexec/bozohttpd

post-patch:
    @${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/bozohttpd.8

.include <bsd.port.post.mk>