Code: Select all
# Copyright 2023
# Distributed under the terms of the GNU General Public License v3
EAPI=8
#inherit cmake
DESCRIPTION="Grommunio Mail Server"
HOMEPAGE="https://github.com/grommunio/grommunio-web"
SRC_URI="https://github.com/grommunio/grommunio-web/archive/refs/tags/grommunio-web-3.5.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="
dev-db/mariadb
dev-libs/openssl
dev-libs/libsodium
"
DEPEND="${RDEPEND}"
src_configure() {
npm cache clean --force
npm config set registry https://registry.npmjs.org/artifactory
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf
npm install
npm audit fix
npm install html-minifier-terser
local mycmakeargs=(
-DUSE_SYSTEMD=ON
# Add any other cmake options here
)
# cmake_src_configure
}
src_install() {
cmake_src_install
}Code: Select all
npm WARN using --force Recommended protections disabled.
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/artifactory/yargs-parser/-/yargs-parser-18.1.3.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: /var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/homedir/.npm/_logs/2023-12-19T07_12_22_035Z-debug-0.log
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/artifactory/yargs-parser/-/yargs-parser-18.1.3.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: /var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/homedir/.npm/_logs/2023-12-19T07_13_55_069Z-debug-0.log
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/artifactory/html-minifier-terser failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: /var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/homedir/.npm/_logs/2023-12-19T07_15_13_458Z-debug-0.log
Code: Select all
cat client/filepreviewer/ViewerJS/index.html > deploy/client/filepreviewer/ViewerJS/index-orig.html
node_modules/html-minifier-terser/cli.js --collapse-whitespace --remove-comments --output deploy/client/filepreviewer/ViewerJS/index.html deploy/client/filepreviewer/ViewerJS/index-orig.html
make: node_modules/html-minifier-terser/cli.js: No such file or directory
make: *** [Makefile:255: deploy/client/filepreviewer/ViewerJS/index.html] Error 127
cat client/fingerprint.js > deploy/client/fingerprint-debug.js
node_modules/terser/bin/terser deploy/client/fingerprint-debug.js --output deploy/client/fingerprint.js \
--source-map "url='fingerprint.js.map'" \
--compress ecma=2015,computed_props=false --mangle reserved=['FormData','Ext','Zarafa','container','settings','properties','languages',
'serverconfig','user','version','urlActionData','console','Tokenizr','module','define',
'global','require','proxy','_','dgettext','dngettext','dnpgettext','ngettext','pgettext',
'onResize','tinymce','resizeLoginBox','userManager','DOMPurify','PDFJS','odf','L',
'GeoSearch']
/bin/sh: line 1: node_modules/terser/bin/terser: No such file or directory
make: *** [Makefile:128: deploy/client/fingerprint.js] Error 127
npm install
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/artifactory/yargs-parser/-/yargs-parser-18.1.3.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: /var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/homedir/.npm/_logs/2023-12-19T07_16_26_084Z-debug-0.log
make: *** [Makefile:300: node_modules] Error 1
* ERROR: www-apps/grommunio-web-grommunio-web-3.5::grommunio failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=www-apps/grommunio-web-grommunio-web-3.5::grommunio'`,
* the complete build log and the output of `emerge -pqv '=www-apps/grommunio-web-grommunio-web-3.5::grommunio'`.
* The complete build log is located at '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/temp/environment'.
* Working directory: '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/work/grommunio-web-grommunio-web-3.5'
* S: '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/work/grommunio-web-grommunio-web-3.5'
>>> Failed to emerge www-apps/grommunio-web-grommunio-web-3.5, Log file:
>>> '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/temp/build.log'
* Messages for package www-apps/grommunio-web-grommunio-web-3.5:
* ERROR: www-apps/grommunio-web-grommunio-web-3.5::grommunio failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=www-apps/grommunio-web-grommunio-web-3.5::grommunio'`,
* the complete build log and the output of `emerge -pqv '=www-apps/grommunio-web-grommunio-web-3.5::grommunio'`.
* The complete build log is located at '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/temp/environment'.
* Working directory: '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/work/grommunio-web-grommunio-web-3.5'
* S: '/var/tmp/portage/www-apps/grommunio-web-grommunio-web-3.5/work/grommunio-web-grommunio-web-3.5'

