aboutsummaryrefslogtreecommitdiffstats
path: root/www/caddy/Makefile
blob: 968492c2f53d25b2e7fd07960de6d0deae1d8547 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: fabian.freyer@physik.tu-berlin.de
# $FreeBSD$

PORTNAME=   caddy
DISTVERSIONPREFIX=  v
DISTVERSION=    0.10.14
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}

SUB_FILES=  pkg-message
PLIST_FILES=    bin/caddy etc/rc.d/caddy

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>