|
Lines 1-38
Link Here
|
| 1 |
# Created by: fabian.freyer@physik.tu-berlin.de |
1 |
# Created by: fabian.freyer@physik.tu-berlin.de |
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= caddy |
4 |
PORTNAME= caddy |
| 5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
| 6 |
DISTVERSION= 0.11.0 |
6 |
DISTVERSION= 0.11.1 |
| 7 |
CATEGORIES= www |
7 |
CATEGORIES= www |
| 8 |
|
8 |
|
| 9 |
MAINTAINER= fabian.freyer@physik.tu-berlin.de |
9 |
MAINTAINER= fabian.freyer@physik.tu-berlin.de |
| 10 |
COMMENT= Fast, cross-platform HTTP/2 web server with automatic HTTPS |
10 |
COMMENT= Fast, cross-platform HTTP/2 web server with automatic HTTPS |
| 11 |
|
11 |
|
| 12 |
LICENSE= APACHE20 |
12 |
LICENSE= APACHE20 |
| 13 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
| 14 |
|
14 |
|
| 15 |
USES= go |
15 |
USES= go |
| 16 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
| 17 |
GH_ACCOUNT= mholt |
17 |
GH_ACCOUNT= mholt |
| 18 |
|
18 |
|
| 19 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
19 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
| 20 |
|
20 |
|
| 21 |
SUB_FILES= pkg-message |
21 |
SUB_FILES= pkg-message |
| 22 |
PLIST_FILES= bin/caddy etc/rc.d/caddy |
22 |
PLIST_FILES= bin/caddy etc/rc.d/caddy |
| 23 |
|
23 |
|
| 24 |
OPTIONS_DEFINE= TELEMETRY |
24 |
OPTIONS_DEFINE= TELEMETRY |
| 25 |
|
25 |
|
| 26 |
TELEMETRY_DESC= Enable telemetry support |
26 |
TELEMETRY_DESC= Enable telemetry support |
| 27 |
TELEMETRY_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-disable-telemetry |
27 |
TELEMETRY_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-disable-telemetry |
| 28 |
|
28 |
|
| 29 |
do-build: |
29 |
do-build: |
| 30 |
@cd ${GO_WRKSRC}/${PORTNAME} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build |
30 |
@cd ${GO_WRKSRC}/${PORTNAME} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build |
| 31 |
|
31 |
|
| 32 |
do-install: |
32 |
do-install: |
| 33 |
${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \ |
33 |
${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \ |
| 34 |
${STAGEDIR}/${PREFIX}/bin/${PORTNAME} |
34 |
${STAGEDIR}/${PREFIX}/bin/${PORTNAME} |
| 35 |
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \ |
35 |
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \ |
| 36 |
${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME} |
36 |
${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME} |
| 37 |
|
37 |
|
| 38 |
.include <bsd.port.mk> |
38 |
.include <bsd.port.mk> |