View | Details | Raw Unified | Return to bug 172540
Collapse All | Expand All

(-)b/www/bozohttpd/Makefile (-14 / +18 lines)
Lines 20-53 USE_BZIP2= YES Link Here
20
USE_RC_SUBR=	bozohttpd
20
USE_RC_SUBR=	bozohttpd
21
21
22
#options handling
22
#options handling
23
OPTIONS=	HTPASSWD_SUPPORT	"Enable htpassord support" 	off \
23
OPTIONS_DEFINE=		HTPASSWD SSL CGI
24
		SSL			"Enable SSL support"		on \
24
OPTIONS_DEFAULT=	SSL CGI
25
		CGI			"Enable CGI support"		on
25
26
HTPASSWD_DESC=		Enable htpassword support
27
SSL_DESC=		Enable SSL support
28
CGI_DESC=		Enable CGI support
26
29
27
#make happy portlint
30
#make happy portlint
28
.if defined(WITHOUT_SSL)
31
.if empty(PORT_OPTIONS:MSSL)
29
.else
32
.else
30
USE_OPENSSL=	yes
33
USE_OPENSSL=	yes
31
.endif
34
.endif
32
35
33
.include <bsd.port.pre.mk>
36
.include <bsd.port.options.mk>
34
37
35
.if defined(WITH_HTPASSWD_SUPPORT)
38
.if ${PORT_OPTIONS:MHTPASSWD}
36
CFLAGS+=	-DDO_HTPASSWD
39
CFLAGS+=	-DDO_HTPASSWD
37
MAKE_ARGS+=	'LDFLAGS+= -lcrypt'
40
MAKE_ARGS+=	'LDFLAGS+= -lcrypt'
41
.else
42
CFLAGS+=	-UDO_HTPASSWD
38
.endif
43
.endif
39
44
40
.if defined(WITHOUT_SSL)
45
.if ${PORT_OPTIONS:MSSL}
41
CFLAGS+=	-DNO_SSL_SUPPORT
42
.else
43
#USE_OPENSSL=	yes
44
CFLAGS+=	-UNO_SSL_SUPPORT
46
CFLAGS+=	-UNO_SSL_SUPPORT
47
.else
48
CFLAGS+=	-DNO_SSL_SUPPORT
45
.endif
49
.endif
46
50
47
.if defined(WITHOUT_CGI)
51
.if ${PORT_OPTIONS:MCGI}
48
CFLAGS+=	-DNO_CGIBIN_SUPPORT
49
.else
50
CFLAGS+=	-UNO_CGIBIN_SUPPORT
52
CFLAGS+=	-UNO_CGIBIN_SUPPORT
53
.else
54
CFLAGS+=	-DNO_CGIBIN_SUPPORT
51
.endif
55
.endif
52
56
53
MAN8=		bozohttpd.8
57
MAN8=		bozohttpd.8
Lines 57-60 PLIST_FILES= libexec/bozohttpd Link Here
57
post-patch:
61
post-patch:
58
	@${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/bozohttpd.8
62
	@${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/bozohttpd.8
59
63
60
.include <bsd.port.post.mk>
64
.include <bsd.port.mk>

Return to bug 172540