1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/www/bozohttpd/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

58 lines
1.1 KiB
Makefile

# Created by: Janos.Mohacsi@bsd.hu
# $FreeBSD$
PORTNAME= bozohttpd
PORTVERSION= 20130711
CATEGORIES= www ipv6
MASTER_SITES= http://www.eterna.com.au/bozohttpd/ \
NETBSD
MAINTAINER= jmohacsi@bsd.hu
COMMENT= The bozotic HTTP server
LICENSE= BSD2CLAUSE
USE_RC_SUBR= bozohttpd
#options handling
OPTIONS_DEFINE= HTPASSWD SSL CGI
OPTIONS_DEFAULT= SSL CGI
USES= cpe uidfix tar:bzip2
CPE_VENDOR= eterna
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
PLIST_FILES= libexec/bozohttpd \
man/man8/bozohttpd.8.gz
post-patch:
@${REINPLACE_CMD} -e 's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/bozohttpd.8
.include <bsd.port.mk>