Changeset View
Changeset View
Standalone View
Standalone View
dns/erldns/Makefile
- This file was added.
# $FreeBSD$ | |||||
PORTNAME= erldns | |||||
DISTVERSION= 1.0.0.a.20200616 | |||||
CATEGORIES= dns | |||||
MASTER_SITES+= https://repo.hex.pm/tarballs/:hex | |||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | |||||
MAINTAINER= dch@FreeBSD.org | |||||
COMMENT= Erlang-based high performance DNS server | |||||
LICENSE= MIT | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE.markdown | |||||
# LICENSE_COMB= multi | |||||
BUILD_DEPENDS= erlang-runtime22>=22.0:lang/erlang-runtime22 \ | |||||
rebar:devel/rebar3 | |||||
RUN_DEPENDS= erlang-runtime22>=22.0:lang/erlang-runtime22 | |||||
# USES= erlang:rebar3 | |||||
# USE_RC_SUBR= ${PORTNAME} | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= dnsimple | |||||
GH_TAGNAME= 624b333 | |||||
USERS= bind | |||||
GROUPS= bind | |||||
SUB_FILES= pkg-message | |||||
SUB_LIST= APPDIR=${APPDIR} \ | |||||
ERL_PATH=${LOCALBASE}/lib/erlang22/bin/erl \ | |||||
PORTNAME=${PORTNAME} \ | |||||
RELDIR=${RELDIR} | |||||
PLIST_SUB= VERSION=${DISTVERSION} | |||||
MAKE_ENV= PATH=${LOCALBASE}/lib/erlang22/bin:${PATH} \ | |||||
HEX_CDN=file:///usr/ports/distfiles | |||||
LOGDIR= /var/log/${PORTNAME} | |||||
APPDIR= ${LOCALBASE}/libexec/${PORTNAME} | |||||
RELDIR= ${APPDIR}/releases/${DISTVERSION} | |||||
# from rebar.lock | |||||
REBAR_DEPS= base32-0.1.0 \ | |||||
bear-0.8.7 \ | |||||
dns_erlang-1.0.1 \ | |||||
folsom-0.8.8 \ | |||||
goldrush-0.1.9 \ | |||||
iso8601-1.3.1 \ | |||||
jsx-2.10.0 \ | |||||
lager-3.8.0 \ | |||||
recon-2.5.0 | |||||
.for _dep in ${REBAR_DEPS} | |||||
DISTFILES+= ${_dep}.tar:hex | |||||
${_dep}.tar:hex | |||||
.endfor | |||||
post-extract: | |||||
@cd ${WRKDIR} && env \ | |||||
HOME=${WRKDIR} \ | |||||
HEX_CDN=file:///usr/ports/distfiles \ | |||||
rebar3 do get-deps | |||||
do-build: | |||||
@cd ${WRKSRC} && env \ | |||||
HOME=${WRKDIR} \ | |||||
HEX_CDN=file:///usr/ports/distfiles \ | |||||
rebar3 do deps, release | |||||
pre-install: | |||||
# relocate user-modifiable runtime configs to match hier(7) | |||||
${MKDIR} ${STAGEDIR}${ETCDIR} | |||||
${INSTALL_DATA} ${WRKSRC}/erldns.config.example \ | |||||
${STAGEDIR}${ETCDIR}/erldns.config.sample | |||||
# ${INSTALL_DATA} ${WRKSRC}/rel/erldns/etc/vm.args \ | |||||
# ${STAGEDIR}${ETCDIR}/vm.args.sample | |||||
# prune build artefacts and surplus headers | |||||
#${FIND} -E ${WRKSRC} -type f \ | |||||
# -regex '.*\.(a|buildinfo|c|cc|cmd|d|o|orig|h|cpp)' -print -delete | |||||
## remove runtime dirs and files that were moved to match hier(7) | |||||
#${RM} -rv ${WRKSRC}/rel/erldns/var \ | |||||
## ${WRKSRC}/rel/erldns/lib/couch-*/priv/couch*js | |||||
# ${WRKSRC}/rel/erldns/etc/vm.args \ | |||||
# ${WRKSRC}/rel/erldns/releases/*/vm.args | |||||
(cd ${WRKSRC}/rel/erldns && ${COPYTREE_SHARE} . ${STAGEDIR}${APPDIR}) | |||||
post-install: | |||||
@${MKDIR} ${STAGEDIR}${LOGDIR} | |||||
.include <bsd.port.mk> |