mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# READ pkg-descr FOR INSTRUCTIONS!
|
|
# This port will NOT build in poudriere without (simple) manual
|
|
# intervention.
|
|
|
|
PORTNAME= caddy-custom
|
|
PORTVERSION= ${CADDY_VERSION}.${XCADDY_VERSION}
|
|
PORTREVISION= 10
|
|
CATEGORIES= www
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= adamw@FreeBSD.org
|
|
COMMENT= Caddy (www/caddy) with customized plugins
|
|
WWW= https://caddyserver.com
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= xcaddy:www/xcaddy
|
|
|
|
USES= go:no_targets
|
|
|
|
NO_PACKAGE= Requires network access (see pkg-descr)
|
|
|
|
CONFLICTS_INSTALL= caddy
|
|
|
|
USE_RC_SUBR= caddy
|
|
SUB_FILES= caddy
|
|
|
|
PLIST_FILES= bin/caddy
|
|
|
|
CADDY_VERSION!= ${MAKE} -C ${.CURDIR}/../caddy -V '$${DISTVERSION}.$${PORTREVISION}'
|
|
XCADDY_VERSION!=${MAKE} -C ${.CURDIR}/../xcaddy -V '$${DISTVERSION}.$${PORTREVISION}'
|
|
|
|
.for plugin in ${CADDY_CUSTOM_PLUGINS}
|
|
PLUGINS+= --with ${plugin}
|
|
.endfor
|
|
|
|
XCADDY_GO_BUILD_FLAGS?= ${GO_BUILDFLAGS}
|
|
|
|
XCADDY_ENV+= XCADDY_WHICH_GO="${GO_CMD}" \
|
|
XCADDY_GO_BUILD_FLAGS="${XCADDY_GO_BUILD_FLAGS}"
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKSRC}
|
|
cd ${WRKSRC} && ${XCADDY_ENV} ${LOCALBASE}/bin/xcaddy build ${PLUGINS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/caddy ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|