1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/www/caddy/Makefile
2017-10-12 08:12:13 +00:00

35 lines
820 B
Makefile

# Created by: fabian.freyer@physik.tu-berlin.de
# $FreeBSD$
PORTNAME= caddy
PORTVERSION= 0.10.10
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= fabian.freyer@physik.tu-berlin.de
COMMENT= Fast, cross-platform HTTP/2 web server with automatic HTTPS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= go
USE_GITHUB= yes
GH_ACCOUNT= mholt
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
PLIST_FILES= bin/caddy etc/rc.d/caddy
STRIP= # stripping can break go binaries
do-build:
@(cd ${GO_WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build)
do-install:
${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \
${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \
${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME}
.include <bsd.port.mk>