Bug 294888 - devel/wiremock : packaging latest .jar and creating a working startup/config script
Summary: devel/wiremock : packaging latest .jar and creating a working startup/config ...
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-30 07:00 UTC by Dan
Modified: 2026-05-05 13:48 UTC (History)
0 users

See Also:


Attachments
devel/wiremock v.3.13.2 port against main (7.46 KB, application/mbox)
2026-04-30 07:00 UTC, Dan
no flags Details
devel/wiremock-standalone patch against main (7.53 KB, patch)
2026-04-30 13:08 UTC, Dan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2026-04-30 07:00:05 UTC
Created attachment 270259 [details]
devel/wiremock v.3.13.2 port against main

I've created a wiremock port which uses the pre-existing .jar file in much the same way as other builds like the mysql and mariadb java connectors.

it:

- packages up the jar file and delivers it into the standard system location
- creates a home directory and structure in /usr/local/wiremock
- creates a startup script with defaults that can be overridden in /etc/rc.conf
- creates a user and group with appropriate settings
Comment 1 Dan 2026-04-30 12:27:34 UTC
hold off on this one, I have some refinements I will be putting it through.
Comment 2 Dan 2026-04-30 13:08:11 UTC
Created attachment 270276 [details]
devel/wiremock-standalone patch against main

I have renamed the port 'wiremock-standalone' in the tree rather than just 'wiremock'

I have also cleaned up the logic and package a little.

the overrides for status/stop are because the standard scripts don't work if the java binary is different to the path called.

the user/group creation overrides are because of an issue with the global GID's on my system, don't know if there's a better way to fix that.
Comment 3 Dan 2026-05-05 13:37:48 UTC
The script(s) I have here call `pw` to create users and groups. I don't think this is acceptable.

As such, please can you help me get it into shape? I think there should be a suitable user/group for it to use as the app needs to read/write files but I don't think it's important enough to have its own numeric UID/GID.
Comment 4 Dan 2026-05-05 13:48:05 UTC
I'm going to withdraw this one until I've done a better job. Sorry for any issues.

I'm closing it as 'not accepted'.

I will recreate it with better care, and submit it new.