blob: 432c9c1c7350822aa599668be38a1865645ad67f (
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
|
# Created by: 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_DEFINE= HTPASSWD SSL CGI
OPTIONS_DEFAULT= SSL CGI
HTPASSWD_DESC= Enable htpassword support
SSL_DESC= Enable SSL support
CGI_DESC= Enable CGI support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHTPASSWD}
MAKE_ARGS+= 'COPTS+= -DDO_HTPASSWD' \
'LDFLAGS+= -lcrypt'
.else
MAKE_ARGS+= 'COPTS+= -UDO_HTPASSWD'
.endif
.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
MAKE_ARGS+= 'COPTS+= -UNO_SSL_SUPPORT'
.else
MAKE_ARGS+= 'COPTS+= -DNO_SSL_SUPPORT' \
'CRYPTOLIBS=' \
'CRYPTODEPS='
.endif
.if ${PORT_OPTIONS:MCGI}
MAKE_ARGS+= 'COPTS+= -UNO_CGIBIN_SUPPORT'
.else
MAKE_ARGS+= 'COPTS+= -DNO_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.mk>
|