freebsd-ports/www/envoy/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

105 lines
3.5 KiB
Makefile

PORTNAME= envoy
PORTVERSION= 1.10.0
DISTVERSIONPREFIX= v
PORTREVISION= 28
CATEGORIES= www
MAINTAINER= danfe@FreeBSD.org
COMMENT= Edge and service proxy for cloud-native applications
WWW= https://www.envoyproxy.io/
LICENSE= APACHE20
BROKEN_i386= makes a lot of 64-bit assumptions (patches welcome)
BROKEN_SSL= base openssl libressl libressl-devel
BROKEN_SSL_REASON= requires BoringSSL
BUILD_DEPENDS= ${LOCALBASE}/include/absl/base/thread_annotations.h:devel/abseil \
${LOCALBASE}/include/fmt/format.h:devel/libfmt \
${LOCALBASE}/include/rapidjson/document.h:devel/rapidjson \
${LOCALBASE}/include/tclap/CmdLine.h:devel/tclap
LIB_DEPENDS= libcircllhist.so:devel/libcircllhist \
libevent.so:devel/libevent \
libfmt.so:devel/libfmt \
libgpr.so:devel/grpc \
libprotobuf.so:devel/protobuf \
libxxhash.so:devel/xxhash \
libyaml-cpp.so:devel/yaml-cpp \
libcares.so:dns/c-ares \
libhttp_parser.so:www/http-parser \
libnghttp2.so:www/libnghttp2 \
libspdlog.so:devel/spdlog
USES= compiler:c++14-lang cpe gmake ssl
CPE_VENDOR= ${PORTNAME}proxy
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}proxy gogo:protobuf googleapis:gapis \
prometheus:pm grpc:grpc
GH_PROJECT= protoc-gen-validate:validate protobuf:protobuf \
googleapis:gapis client_model:pm grpc:grpc
GH_TAGNAME= v0.1.0:validate v1.1.1:protobuf b4c73fa:gapis \
fd36f42:pm v1.22.0:grpc
PLIST_FILES= bin/envoy
PORTEXAMPLES= cors/backend/front-envoy.yaml \
cors/backend/service-envoy.yaml \
cors/frontend/front-envoy.yaml \
cors/frontend/service-envoy.yaml \
front-proxy/front-envoy.yaml \
front-proxy/service-envoy.yaml \
grpc-bridge/config/s2s-grpc-envoy.yaml \
grpc-bridge/config/s2s-python-envoy.yaml \
jaeger-tracing/front-envoy-jaeger.yaml \
jaeger-tracing/service1-envoy-jaeger.yaml \
jaeger-tracing/service2-envoy-jaeger.yaml \
lua/envoy.yaml \
zipkin-tracing/front-envoy-zipkin.yaml \
zipkin-tracing/service1-envoy-zipkin.yaml \
zipkin-tracing/service2-envoy-zipkin.yaml
OPTIONS_DEFINE= EXAMPLES
post-extract:
${LN} -s ../../client_model-fd36f42/metrics.proto \
../../googleapis-b4c73fa/google \
../../grpc-1.22.0/src \
../../protobuf-1.1.1/gogoproto \
../../protoc-gen-validate-0.1.0/validate ${WRKSRC}/api
post-patch:
@${REINPLACE_CMD} -e '/<endian\.h>/d' \
${WRKSRC}/source/common/common/byte_order.h
@${REINPLACE_CMD} -e 's,__APPLE__,__${OPSYS}__,' \
${WRKSRC}/source/common/network/address_impl.cc \
${WRKSRC}/source/common/network/udp_listener_impl.cc
@${REINPLACE_CMD} -e 's,O_SYMLINK,O_NOFOLLOW,' \
${WRKSRC}/source/common/filesystem/kqueue/watcher_impl.cc
@${REINPLACE_CMD} -e '/#include/s,\.validate,,' \
${WRKSRC}/source/extensions/access_loggers/file/config.cc \
${WRKSRC}/source/server/overload_manager_impl.h
do-configure:
${ECHO_CMD} '#define BUILD_VERSION_NUMBER "${PORTVERSION}"' \
> ${WRKSRC}/source/common/common/version_number.h
${LN} -s kqueue/watcher_impl.h posix/filesystem_impl.h \
posix/directory_iterator_impl.h \
${WRKSRC}/source/common/filesystem
${LN} -s posix/platform_impl.h ${WRKSRC}/source/exe
${LN} -s posix/thread_impl.h ${WRKSRC}/source/common/common
do-build:
${MAKE_CMD} -C ${WRKSRC}/api -f ${FILESDIR}/makefile-genproto
${MAKE_CMD} ${_MAKE_JOBS} -C ${WRKSRC}/source \
-f ${FILESDIR}/makefile-main
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/source/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${TAR} -cf - -C ${WRKSRC}/examples ${PORTEXAMPLES} | \
${TAR} -xf - -C ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>