View | Details | Raw Unified | Return to bug 228158
Collapse All | Expand All

(-)www/caddy/Makefile (-1 / +6 lines)
Lines 1-33 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.10.14
6
DISTVERSION=	0.11.0
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
25
26
TELEMETRY_DESC=	Enable telemetry support
27
TELEMETRY_EXTRA_PATCHES_OFF=	${PATCHDIR}/disable-telemetry.patch
28
24
do-build:
29
do-build:
25
	@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
26
31
27
do-install:
32
do-install:
28
	${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \
33
	${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \
29
		${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
34
		${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
30
	${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \
35
	${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \
31
		${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME}
36
		${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME}
32
37
33
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)www/caddy/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1524662204
1
TIMESTAMP = 1526046100
2
SHA256 (mholt-caddy-v0.10.14_GH0.tar.gz) = 13feb836e85af3525b3e95f42635566f14d171edc9776881f59fbf61fa45d345
2
SHA256 (mholt-caddy-v0.11.0_GH0.tar.gz) = 81e593d258460a9f5c6b5a5f46890a08b6b1ce15f5c0fc7bcaf09826368c3a1a
3
SIZE (mholt-caddy-v0.10.14_GH0.tar.gz) = 2910178
3
SIZE (mholt-caddy-v0.11.0_GH0.tar.gz) = 2946948
(-)www/caddy/files/disable-telemetry.patch (+8 lines)
Line 0 Link Here
1
--- caddy/caddymain/run.go.orig	2018-05-11 13:10:27 UTC
2
+++ caddy/caddymain/run.go
3
@@ -434,4 +434,4 @@ var (
4
 	gitFilesModified string // git diff-index --name-only HEAD
5
 )
6
 
7
-const enableTelemetry = true
8
+const enableTelemetry = false
(-)www/caddy/files/pkg-message.in (+17 lines)
Lines 1-34 Link Here
1
*****************************************************************
1
*****************************************************************
2
2
3
www/caddy does not ship with any in-tree documentation. Online
3
www/caddy does not ship with any in-tree documentation. Online
4
documentation can be found at https://caddyserver.com/docs.
4
documentation can be found at https://caddyserver.com/docs.
5
5
6
To use www/caddy, create a configuration file in the Caddyfile
6
To use www/caddy, create a configuration file in the Caddyfile
7
format in %%PREFIX%%/www/Caddyfile and enable caddy in your
7
format in %%PREFIX%%/www/Caddyfile and enable caddy in your
8
rc.conf:
8
rc.conf:
9
9
10
# sysrc caddy_enable="YES"
10
# sysrc caddy_enable="YES"
11
# service caddy start
11
# service caddy start
12
12
13
Example Caddyfile
13
Example Caddyfile
14
=================
14
=================
15
mysite.com {
15
mysite.com {
16
    root %%PREFIX%%/www/mysite.com
16
    root %%PREFIX%%/www/mysite.com
17
}
17
}
18
18
19
sub.mysite.com {
19
sub.mysite.com {
20
    root %%PREFIX%%/www/sub.mysite.com
20
    root %%PREFIX%%/www/sub.mysite.com
21
    gzip
21
    gzip
22
    log /var/log/sub.mysite.com/access.log
22
    log /var/log/sub.mysite.com/access.log
23
}
23
}
24
24
25
Automatic HTTPS using letsencrypt.org
25
Automatic HTTPS using letsencrypt.org
26
=====================================
26
=====================================
27
27
28
Provide an SSL certificate issuer email in your rc.conf. By
28
Provide an SSL certificate issuer email in your rc.conf. By
29
providing an email address you automatically agree to
29
providing an email address you automatically agree to
30
letsencrypt.org's general terms and conditions:
30
letsencrypt.org's general terms and conditions:
31
31
32
caddy_cert_email="your.email@example.org"
32
caddy_cert_email="your.email@example.org"
33
33
34
Telemetry
35
=========
36
37
Since version 0.11.0, caddy includes an optional telemetry
38
client, which is disabled by this port by default.
39
40
If the telemetry client is enabled, you can view global stats
41
as well as stats from your caddy instance using the instance
42
uuid (stored in ~/.caddy/uuid unless a different $CADDYPATH
43
is specified) on https://caddyserver.com/stats.
44
45
Specific metrics can be disabled at run-time using the
46
-disabled-metrics flag.
47
48
More information about the Caddy Telemetry Project can be found
49
at https://caddyserver.com/docs/telemetry.
50
34
*****************************************************************
51
*****************************************************************

Return to bug 228158