openbsd-ports/net/routinator/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

56 lines
1.8 KiB
Makefile

# ring-v0.16.20 does not support those archs
NOT_FOR_ARCHS = powerpc64 riscv64 sparc64
COMMENT = RPKI "relying party" software
GH_ACCOUNT = NLnetLabs
GH_PROJECT = routinator
GH_TAGNAME = v0.11.3
REVISION = 2
ROUTINATOR_UI_URL = https://github.com/NLnetLabs/routinator-ui/releases/download/
ROUTINATOR_UI_VERSION = 0.3.4
MASTER_SITES0 = ${ROUTINATOR_UI_URL}/v${ROUTINATOR_UI_VERSION}/
DISTFILES += routinator-ui-${ROUTINATOR_UI_VERSION}{routinator-ui-build}.tar.gz:0
# The routinator-ui crate expects its Vue.js parts to be in ../dist
EXTRACT_CASES += routinator-ui-*.tar.gz) \
mkdir -p ${MODCARGO_VENDOR_DIR}/dist; \
${GZIP_CMD} -d <${FULLDISTDIR}/$$archive | \
${TAR} -C ${MODCARGO_VENDOR_DIR}/dist -xf - -- ${EXTRACT_FILES};;
CATEGORIES = net
# code: BSD
# ARIN TAL: ridiculous license. at runtime the file is not easily available
# without agreeing to it, which seems to comply with what ARIN want, but it's
# in the clear in the distfile
PERMIT_PACKAGE = Yes
PERMIT_DISTFILES = includes bundled ARIN TAL which requires agreement with https://www.arin.net/resources/manage/rpki/rpa.pdf
WANTLIB += c c++abi m pthread
MODULES = devel/cargo
CONFIGURE_STYLE = cargo
RUN_DEPENDS = net/rsync
SEPARATE_BUILD = Yes
FIX_EXTRACT_PERMISSIONS = Yes
DISTFILES += ${DISTNAME}{${GH_TAGNAME}}${EXTRACT_SUFX}
.include "crates.inc"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/routinator
${INSTALL_DATA} ${WRKSRC}/doc/routinator.1 ${PREFIX}/man/man1/
${SUBST_DATA} ${WRKSRC}/etc/routinator.conf.system-service \
${PREFIX}/share/examples/routinator/routinator.conf.system-service
${INSTALL_DATA} ${WRKSRC}/etc/routinator.conf.example \
${PREFIX}/share/examples/routinator/routinator.conf.example
rm -rf ${PREFIX}/share/routinator/tals
.include <bsd.port.mk>