diff --git a/www/rustypaste-cli/Makefile b/www/rustypaste-cli/Makefile index 683683101658..16de753ea15d 100644 --- a/www/rustypaste-cli/Makefile +++ b/www/rustypaste-cli/Makefile @@ -1,33 +1,35 @@ PORTNAME= rustypaste-cli DISTVERSIONPREFIX= v DISTVERSION= 0.9.0 CATEGORIES= www MAINTAINER= DtxdF@disroot.org COMMENT= CLI tool for rustypaste WWW= https://github.com/orhun/rustypaste-cli LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BROKEN_i386= compilation fails: error[E0080]: evaluation of constant value failed + USES= cargo USE_GITHUB= yes GH_ACCOUNT= orhun CARGO_FEATURES= --no-default-features PLIST_DIRS= ${EXAMPLESDIR} PLIST_FILES= ${EXAMPLESDIR}/config.toml \ bin/rpaste OPTIONS_DEFINE= NATIVE_CERTS NATIVE_CERTS_DESC= Support using the OS TLS trust store NATIVE_CERTS_VARS= CARGO_FEATURES+=use-native-certs post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/config.toml ${STAGEDIR}${EXAMPLESDIR} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rpaste .include diff --git a/www/rustypaste/Makefile b/www/rustypaste/Makefile index 5e0f2c25b22a..41875b37449f 100644 --- a/www/rustypaste/Makefile +++ b/www/rustypaste/Makefile @@ -1,61 +1,63 @@ PORTNAME= rustypaste DISTVERSIONPREFIX= v DISTVERSION= 0.15.0 CATEGORIES= www MAINTAINER= DtxdF@disroot.org COMMENT= Minimal file upload/pastebin service WWW= https://blog.orhun.dev/blazingly-fast-file-sharing LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BROKEN_i386= compilation fails: error[E0080]: evaluation of constant value failed + LIB_DEPENDS= libzstd.so:archivers/zstd USES= cargo USE_GITHUB= yes GH_ACCOUNT= orhun USE_RC_SUBR= ${PORTNAME} CARGO_FEATURES= --no-default-features SUB_LIST+= USER=${RUSTYPASTE_USER} USERS= ${RUSTYPASTE_USER} GROUPS= ${RUSTYPASTE_GROUP} RUSTYPASTE_USER= ${PORTNAME} RUSTYPASTE_GROUP= ${RUSTYPASTE_USER} PLIST_SUB+= GROUP=${RUSTYPASTE_USER} \ USER=${RUSTYPASTE_GROUP} OPTIONS_DEFINE= SHUTTLE OPTIONS_DEFAULT= OPENSSL OPTIONS_RADIO= TLS OPTIONS_RADIO_TLS= OPENSSL RUSTLS OPENSSL_DESC= Use distro OpenSSL (binary size is reduced ~20%) RUSTLS_DESC= Use modern TLS library in Rust SHUTTLE_DESC= Enable an entry point for deploying on Shuttle OPENSSL_USES= ssl OPENSSL_VARS= CARGO_FEATURES+=openssl RUSTLS_VARS= CARGO_FEATURES+=rustls SHUTTLE_BUILD_DEPENDS= protoc:devel/protobuf SHUTTLE_VARS= CARGO_FEATURES+=shuttle UPLOAD_PATH= /var/db/${PORTNAME} post-patch: @${REINPLACE_CMD} -e '/^upload_path[[:space:]]*=/s#=.*#= "${UPLOAD_PATH}"#' ${WRKSRC}/config.toml post-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}/${UPLOAD_PATH} ${ECHO_CMD} 'CONFIG="${ETCDIR}/${PORTNAME}.toml"' > ${STAGEDIR}${ETCDIR}/${PORTNAME}.env.sample ${CP} ${WRKSRC}/config.toml ${STAGEDIR}${ETCDIR}/${PORTNAME}.toml.sample ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include