Line 0
Link Here
|
|
|
1 |
# Created by: fabian.freyer@physik.tu-berlin.de |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= caddy |
5 |
PORTVERSION= 0.10.10 |
6 |
DISTVERSIONPREFIX= v |
7 |
CATEGORIES= www |
8 |
|
9 |
MAINTAINER= fabian.freyer@physik.tu-berlin.de |
10 |
COMMENT= Fast, cross-platform HTTP/2 web server with automatic HTTPS |
11 |
|
12 |
LICENSE= APACHE20 |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
14 |
|
15 |
USES= go |
16 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= mholt |
18 |
|
19 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
20 |
|
21 |
do-build: |
22 |
@(cd ${GO_WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build) |
23 |
|
24 |
do-install: |
25 |
${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} |
26 |
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} ${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME} |
27 |
|
28 |
.include <bsd.port.mk> |