On 2026/01/19 12:32, Chaz Kettleson wrote: > 5.) Like other ports, we need to ensure this can build offline. I've > created a custom "vendor" target for make that will control an OFFLINE > variable to allow downloading all the maven/node/bower dependencies. I > then package these .m2 - maven, .npm - node .cache - bower into a tgz. > I've hosted it (for now) at my domain though I would prefer not to.
What's there now isn't enough to make it work, bower still need network access: ===> Building for hmdm-server-5.37.4 cd /usr/obj/ports/hmdm-server-5.37.4/hmdm-server-5.37.4/server/webtarget && HOME=/usr/obj/ports/hmdm-server-5.37.4 npm --offline install && HOME=/usr/obj/ports/hmdm-server-5.37.4 npx --offline grunt resolve && cd /usr/obj/ports/hmdm-server-5.37.4/hmdm-server-5.37.4 && cp /usr/ports/misc/hmdm-server/files/build.properties server/build.properties && mvn --offline -Dmaven.repo.local=/usr/obj/ports/hmdm-server-5.37.4/.m2 -DskipTests package npm warn deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm warn deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/ added 273 packages, and audited 274 packages in 21s found 0 vulnerabilities Running "clean:dist" (clean) task >> 0 paths cleaned. Running "bower:install" (bower) task Fatal error: Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular.git/': Could not resolve host: github.com (to get this to fail, set PORTS_PRIVSEP=Yes in mk.conf, "sudo make fix-permissions", and make sure user _pbuild is disabled from having network access in pf.conf "block return log quick proto {tcp udp} user _pbuild") I don't suppose it's possible to extract the built web ui pieces from upstream's hmdm-5.37-install-ubuntu.zip or hmdm-5.37.4-os.war rather than building them in the port?
