|
Lines 3-10
Link Here
|
| 3 |
PORTNAME= caddy |
3 |
PORTNAME= caddy |
| 4 |
DISTVERSIONPREFIX= v |
4 |
DISTVERSIONPREFIX= v |
| 5 |
DISTVERSION= 0.11.5 |
5 |
DISTVERSION= 1.0.4 |
| 6 |
PORTREVISION= 2 |
|
|
| 7 |
CATEGORIES= www |
6 |
CATEGORIES= www |
| 8 |
MAINTAINER= fabian.freyer@physik.tu-berlin.de |
7 |
MAINTAINER= fabian.freyer@physik.tu-berlin.de |
|
Lines 17-23
Link Here
|
| 17 |
USES= go |
16 |
USES= go |
| 18 |
USE_GITHUB= yes |
17 |
USE_GITHUB= yes |
| 19 |
GH_ACCOUNT= mholt |
18 |
GH_ACCOUNT= caddyserver |
| 20 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
19 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
| 21 |
GO_TARGET= ./caddy |
20 |
GO_TARGET= ./caddy |
|
Lines 30-35
Link Here
|
| 30 |
TELEMETRY_DESC= Enable telemetry support |
29 |
TELEMETRY_DESC= Enable telemetry support |
| 31 |
TELEMETRY_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-disable-telemetry |
30 |
TELEMETRY_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-disable-telemetry |
|
|
31 |
# It is a bit involved to get caddy --version to work correctly, so this |
| 32 |
# simple hack gets the right version number that the port has downloaded. See |
| 33 |
# https://github.com/caddyserver/caddy/issues/2875 for more details. |
| 34 |
post-patch: |
| 35 |
@${REINPLACE_CMD} -e 's|module.Version|"v${DISTVERSION}"|g' ${WRKSRC}/caddy/caddymain/run.go |
| 36 |
|
| 32 |
post-install: |
37 |
post-install: |
| 33 |
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \ |
38 |
${INSTALL_SCRIPT} ${GO_WRKSRC}/dist/init/freebsd/${PORTNAME} \ |
| 34 |
${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME} |
39 |
${STAGEDIR}/${PREFIX}/etc/rc.d/${PORTNAME} |