freebsd-ports/www/caddy/Makefile
Fernando Apesteguía 1deaaa95a8 www/caddy: fix build when archivers/zstd is installed
www/caddy ships with an obsoleted go wrapper for zstd. We need a newer one or
the build will fail if archivers/zstd is installed.

PR:	248547
Submitted by:	riedre@ya.ru
Reviewed by:	daniel.tihanyi@tetragir.com (maintainer)
2020-08-10 16:36:26 +00:00

131 lines
7.8 KiB
Makefile

# Created by: fabian.freyer@physik.tu-berlin.de
# $FreeBSD$
PORTNAME= caddy
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.1
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= daniel.tihanyi@tetragir.com
COMMENT= Fast, cross-platform HTTP/2 web server with automatic HTTPS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= go:modules
USE_RC_SUBR= ${PORTNAME}
CADDY_CONFIG= Caddyfile
CADDY_SAMPLE= ${CADDY_CONFIG}.sample
SUB_FILES= ${PORTNAME} ${CADDY_SAMPLE} pkg-message
SUB_LIST= CADDY_CONFIG=${CADDY_CONFIG} \
CADDY_SAMPLE=${CADDY_SAMPLE}
GO_TARGET= ./cmd/caddy
USE_GITHUB= yes
GH_ACCOUNT= caddyserver
GH_TUPLE= \
AndreasBriese:bbloom:e2d15f34fcf9:andreasbriese_bbloom/vendor/github.com/AndreasBriese/bbloom \
DataDog:zstd:v1.4.5:datadog_zstd/vendor/github.com/DataDog/zstd \
Masterminds:goutils:v1.1.0:masterminds_goutils/vendor/github.com/Masterminds/goutils \
Masterminds:semver:v3.1.0:masterminds_semver_v3/vendor/github.com/Masterminds/semver/v3 \
Masterminds:sprig:v3.1.0:masterminds_sprig_v3/vendor/github.com/Masterminds/sprig/v3 \
alecthomas:chroma:500529fd43c1:alecthomas_chroma/vendor/github.com/alecthomas/chroma \
antlr:antlr4:621b933c7a7f:antlr_antlr4/vendor/github.com/antlr/antlr4 \
aryann:difflib:e206f873d14a:aryann_difflib/vendor/github.com/aryann/difflib \
caddyserver:certmagic:v0.11.2:caddyserver_certmagic/vendor/github.com/caddyserver/certmagic \
cenkalti:backoff:v4.0.0:cenkalti_backoff_v4/vendor/github.com/cenkalti/backoff/v4 \
census-instrumentation:opencensus-go:v0.22.3:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
cespare:xxhash:v1.1.0:cespare_xxhash/vendor/github.com/cespare/xxhash \
cheekybits:genny:v1.0.0:cheekybits_genny/vendor/github.com/cheekybits/genny \
chzyer:readline:2972be24d48e:chzyer_readline/vendor/github.com/chzyer/readline \
cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \
danwakefield:fnmatch:cbb64ac3d964:danwakefield_fnmatch/vendor/github.com/danwakefield/fnmatch \
dgraph-io:badger:09dd2e1a4195:dgraph_io_badger_v2/vendor/github.com/dgraph-io/badger/v2 \
dgraph-io:badger:v1.5.3:dgraph_io_badger/vendor/github.com/dgraph-io/badger \
dgraph-io:ristretto:8f368f2f2ab3:dgraph_io_ristretto/vendor/github.com/dgraph-io/ristretto \
dgryski:go-farm:6a90982ecee2:dgryski_go_farm/vendor/github.com/dgryski/go-farm \
dlclark:regexp2:v1.2.0:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \
dustin:go-humanize:afde56e7acac:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
etcd-io:bbolt:v1.3.2:etcd_io_bbolt/vendor/go.etcd.io/bbolt \
francoispqt:gojay:v1.2.13:francoispqt_gojay/vendor/github.com/francoispqt/gojay \
go-acme:lego:v3.7.0:go_acme_lego_v3/vendor/github.com/go-acme/lego/v3 \
go-chi:chi:v4.1.2:go_chi_chi/vendor/github.com/go-chi/chi \
go-sql-driver:mysql:v1.5.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:appengine:v1.6.5:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:75b288015ac9:golang_crypto/vendor/golang.org/x/crypto \
golang:groupcache:8c9f03a8e57e:golang_groupcache/vendor/github.com/golang/groupcache \
golang:net:4c5254603344:golang_net/vendor/golang.org/x/net \
golang:oauth2:bf48bf16ab8d:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.4.1:golang_protobuf/vendor/github.com/golang/protobuf \
golang:snappy:v0.0.1:golang_snappy/vendor/github.com/golang/snappy \
golang:sys:669c56c373c4:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
google:cel-go:v0.5.1:google_cel_go/vendor/github.com/google/cel-go \
google:go-cmp:v0.5.0:google_go_cmp/vendor/github.com/google/go-cmp \
google:go-genproto:cb27e3aa2013:google_go_genproto/vendor/google.golang.org/genproto \
google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \
googleapis:gax-go:v2.0.5:googleapis_gax_go_v2/vendor/github.com/googleapis/gax-go \
googleapis:google-api-go-client:v0.20.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:v0.54.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
grpc:grpc-go:v1.27.1:grpc_grpc_go/vendor/google.golang.org/grpc \
huandu:xstrings:v1.3.1:huandu_xstrings/vendor/github.com/huandu/xstrings \
imdario:mergo:v0.3.8:imdario_mergo/vendor/github.com/imdario/mergo \
jsternberg:zap-logfmt:v1.2.0:jsternberg_zap_logfmt/vendor/github.com/jsternberg/zap-logfmt \
juju:ansiterm:720a0952cc2a:juju_ansiterm/vendor/github.com/juju/ansiterm \
klauspost:compress:v1.10.10:klauspost_compress/vendor/github.com/klauspost/compress \
klauspost:cpuid:v1.3.0:klauspost_cpuid/vendor/github.com/klauspost/cpuid \
konsorten:go-windows-terminal-sequences:v1.0.2:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
libdns:libdns:186724ffc821:libdns_libdns/vendor/github.com/libdns/libdns \
lucas-clemente:quic-go:v0.17.1:lucas_clemente_quic_go/vendor/github.com/lucas-clemente/quic-go \
lunixbochs:vtclean:v1.0.0:lunixbochs_vtclean/vendor/github.com/lunixbochs/vtclean \
manifoldco:promptui:v0.3.1:manifoldco_promptui/vendor/github.com/manifoldco/promptui \
marten-seemann:qpack:v0.1.0:marten_seemann_qpack/vendor/github.com/marten-seemann/qpack \
marten-seemann:qtls:v0.9.1:marten_seemann_qtls/vendor/github.com/marten-seemann/qtls \
mattn:go-colorable:v0.1.6:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
miekg:dns:v1.1.27:miekg_dns/vendor/github.com/miekg/dns \
mitchellh:copystructure:v1.0.0:mitchellh_copystructure/vendor/github.com/mitchellh/copystructure \
mitchellh:reflectwalk:v1.0.0:mitchellh_reflectwalk/vendor/github.com/mitchellh/reflectwalk \
naoina:go-stringutil:v0.1.0:naoina_go_stringutil/vendor/github.com/naoina/go-stringutil \
naoina:toml:v0.1.1:naoina_toml/vendor/github.com/naoina/toml \
natefinch:lumberjack:v2.0.0:natefinch_lumberjack/vendor/gopkg.in/natefinch/lumberjack.v2 \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
rs:xid:v1.2.1:rs_xid/vendor/github.com/rs/xid \
russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
samfoo:ansi:b6bd2ded7189:samfoo_ansi/vendor/github.com/samfoo/ansi \
shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
smallstep:certificates:e855707dc274:smallstep_certificates/vendor/github.com/smallstep/certificates \
smallstep:cli:v0.14.4:smallstep_cli/vendor/github.com/smallstep/cli \
smallstep:nosql:v0.3.0:smallstep_nosql/vendor/github.com/smallstep/nosql \
smallstep:truststore:v0.9.5:smallstep_truststore/vendor/github.com/smallstep/truststore \
spf13:cast:v1.3.1:spf13_cast/vendor/github.com/spf13/cast \
square:go-jose:v2.4.0:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
uber-go:atomic:v1.6.0:uber_go_atomic/vendor/go.uber.org/atomic \
uber-go:multierr:v1.5.0:uber_go_multierr/vendor/go.uber.org/multierr \
uber-go:zap:v1.15.0:uber_go_zap/vendor/go.uber.org/zap \
urfave:cli:v1.22.2:urfave_cli/vendor/github.com/urfave/cli \
yuin:goldmark-highlighting:60d527fdb691:yuin_goldmark_highlighting/vendor/github.com/yuin/goldmark-highlighting \
yuin:goldmark:v1.1.32:yuin_goldmark/vendor/github.com/yuin/goldmark
GL_TUPLE= https://gitlab.howett.net:go:plist:3b63eb3a43b59c776909681ed1fcb412b47d3c9a:go_plist/vendor/howett.net/plist
PLIST_FILES= ${LOCALBASE}/bin/${PORTNAME} \
"@sample ${ETCDIR}/${CADDY_SAMPLE}"
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} \
${WRKDIR}/${CADDY_SAMPLE} \
${STAGEDIR}${ETCDIR}/${CADDY_SAMPLE}
.include <bsd.port.mk>