aboutsummaryrefslogtreecommitdiffstats
path: root/www/mini_httpd/Makefile
blob: bdc7d1963df049fda48828fde7c70782306043b8 (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
# New ports collection makefile for:    mini_httpd
# Date created:         24 July 2002
# Whom:                 se
#
# $FreeBSD$
#

PORTNAME=   mini_httpd
PORTVERSION=    1.19
PORTREVISION=   1
CATEGORIES= www ipv6
MASTER_SITES=   http://www.acme.com/software/mini_httpd/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Small HTTP server with support for GET, HEAD, POST, CGI, SSL, IPv6

.ifndef NO_SSL
MAKE_ARGS+= -DUSE_OPENSSL
.endif

MAN1=   ${PORTNAME}-htpasswd.1
MAN8=   ${PORTNAME}.8

post-patch:
    ${REINPLACE_CMD} -e 's/htpasswd/${PORTNAME}-htpasswd/g' ${WRKSRC}/htpasswd.1
    ${REINPLACE_CMD} -e 's/\(htpasswd(1)\)/${PORTNAME}-\1/g' ${WRKSRC}/${PORTNAME}.8

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mini_httpd ${PREFIX}/sbin/
    ${INSTALL_PROGRAM} ${WRKSRC}/htpasswd ${PREFIX}/sbin/${PORTNAME}-htpasswd
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd_wrapper ${PREFIX}/sbin/
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd.sh ${PREFIX}/etc/rc.d/
    ${INSTALL_MAN} ${WRKSRC}/htpasswd ${PREFIX}/man/man1/${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${PREFIX}/man/man8
    ${INSTALL_DATA} ${WRKSRC}/mini_httpd.cnf ${PREFIX}/etc/mini_httpd.cnf.sample

.include <bsd.port.mk>