1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/mini_httpd/Makefile
Craig Leres 97c35334cc Update pkg-descr and Makefile in my ports to use https where possible.
Remove obsolete mirrors.

 - devel/arduino
 - devel/arduino-irremote
 - net/hostapd
 - security/broccoli
 - sysutils/lbl-cf
 - sysutils/lbl-hf
 - www/mini_httpd

Reviewed by:	ler (mentor), matthew (mentor)
Approved by:	ler (mentor), matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D12748
2017-10-21 00:45:50 +00:00

42 lines
1.3 KiB
Makefile

# Created by: Stefan Esser <se@FreeBSD.org>
# $FreeBSD$
PORTNAME= mini_httpd
PORTVERSION= 1.27
CATEGORIES= www ipv6
MASTER_SITES= https://www.acme.com/software/mini_httpd/
MAINTAINER= leres@FreeBSD.org
COMMENT= Small HTTP server with support for GET, HEAD, POST, CGI, SSL, IPv6
LICENSE= BSD2CLAUSE
USES= cpe ssl
CPE_VENDOR= acme
post-patch:
@${REINPLACE_CMD} -e 's/htpasswd/${PORTNAME}-htpasswd/' \
${WRKSRC}/htpasswd.1
@${REINPLACE_CMD} -e 's/\(htpasswd(1)\)/${PORTNAME}-\1/' \
${WRKSRC}/${PORTNAME}.8
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_PROGRAM} ${WRKSRC}/mini_httpd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/htpasswd \
${STAGEDIR}${PREFIX}/sbin/${PORTNAME}-htpasswd
${INSTALL_SCRIPT} ${WRKSRC}/scripts/500.mini_httpd-rotate \
${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd_wrapper \
${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/scripts/mini_httpd.sh \
${STAGEDIR}${PREFIX}/etc/rc.d/mini_httpd
${INSTALL_MAN} ${WRKSRC}/htpasswd.1 \
${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}-htpasswd.1
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 \
${STAGEDIR}${MANPREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/mini_httpd.cnf \
${STAGEDIR}${PREFIX}/etc/mini_httpd.cnf.sample
.include <bsd.port.mk>