aboutsummaryrefslogtreecommitdiffstats
path: root/www/mini_httpd/Makefile
blob: d37ea0f8702808bf0f3634b5e6e3664d9c201df9 (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
CATEGORIES= www
MASTER_SITES=   http://www.acme.com/software/mini_httpd/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

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

.ifndef NO_SSL
USE_OPENSSL=    YES
.endif

MAN8=       mini_httpd.8 htpasswd.8

post-build:
    -${MV} ${WRKSRC}/htpasswd.1 ${WRKSRC}/htpasswd.8

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mini_httpd ${TARGETDIR}/sbin/
    ${INSTALL_PROGRAM} ${WRKSRC}/htpasswd ${TARGETDIR}/sbin/
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd_wrapper ${TARGETDIR}/sbin/
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd.sh ${TARGETDIR}/etc/rc.d/
    @for file in ${MAN8}; \
    do \
        ${INSTALL_MAN} ${WRKSRC}/$$file ${TARGETDIR}/man/man8/; \
    done
    ${INSTALL_DATA} ${WRKSRC}/mini_httpd.cnf ${TARGETDIR}/etc/mini_httpd.cnf.sample

.include <bsd.port.mk>