Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: [NEW] misc/hmdm-server
To:
Chaz Kettleson <chaz@pyr3x.com>
Cc:
ports@openbsd.org
Date:
Mon, 19 Jan 2026 18:04:35 +0000

Download raw body.

Thread
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 ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated source-map-resolve@0.5.2: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated mkdirp@0.5.1: 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 bower@1.8.8: 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?