Disable all official repositories
There used to be just one named "FreeBSD", but "FreeBSD-kmods" was added
earlier this year, and in FreeBSD 15 and up these have been renamed to
"FreeBSD-ports" and "FreeBSD-ports-kmods" and there is an additional
"FreeBSD-base" repository for pkgbase. Disable them all, not just the
original "FreeBSD" repository.
Issue #1289
(cherry picked from commit fa68587c67ffb59c1c240d53fb16e73788d06cd3)
Add pkgbase shortcut for jail creation
If the method is just "pkgbase", without a repository path, default to
the official FreeBSD pkgbase server.
Issue #1289
(cherry picked from commit eaf3d650aa6932cd0cc74634c043da71469a013d)
Support pkg+https for pkgbase jail creation
* Accept URLs starting with pkg+https
* Add a mirror-type line to the pkg repo configuration. Set it to "srv"
if the repo URL begins with pkg+https, and "none" otherwise.
Fixes #1289.
(cherry picked from commit 8601c5c26fc546be357e0299730b8f0737647fd2)
Disable all official repositories
There used to be just one named "FreeBSD", but "FreeBSD-kmods" was added
earlier this year, and in FreeBSD 15 and up these have been renamed to
"FreeBSD-ports" and "FreeBSD-ports-kmods" and there is an additional
"FreeBSD-base" repository for pkgbase. Disable them all, not just the
original "FreeBSD" repository.
Support pkg+https for pkgbase jail creation
* Accept URLs starting with pkg+https
* Add a mirror-type line to the pkg repo configuration. Set it to "srv"
if the repo URL begins with pkg+https, and "none" otherwise.
Fixes #1289.
Add '--always' to git describe command line
If I fork the poudriere repo, by default there won't be any tags
created in my copy. This causes `git describe` to be unhappy and
breaks compilation:
```
% git -C . describe --tags HEAD
fatal: No names found, cannot describe anything.
```
Add the `--always` flag so `git describe` will fake a tag based on the
short hash of HEAD if no tags exist:
```
% git -C . describe --always --tags HEAD
509e6e0e
```
Don't try and set noschg on missing directories
My setup:
% pkg info -x poudriere
poudriere-devel-3.4.99.20251026
% uname -a
FreeBSD pkg.infracaninophile.co.uk 14.3-STABLE FreeBSD 14.3-STABLE stable/14-c10884484342 GENERIC amd64
% poudriere jails -l | grep stable14
stable14amd64 14.1-STABLE amd64 pkgbase 2025-10-25 10:53:58 /usr/local/poudriere/jails/stable14amd64
stable14base 14.3-STABLE 1403506c108844843 amd64 git+https 2025-10-23 13:01:10 /usr/local/poudriere/jails/stable14base
where I build base packages in the `stable14base` jail, and these are
used both on my host systems and in the make package building jail.
poudriere-devel fails like so:
[27 lines not shown]
Add '--always' to git describe command line
If I fork the poudriere repo, by default there won't be any tags
created in my copy. This causes `git describe` to be unhappy and
breaks compilation:
```
% git -C . describe --tags HEAD
fatal: No names found, cannot describe anything.
```
Add the `--always` flag so `git describe` will fake a tag based on the
short hash of HEAD if no tags exist:
```
% git -C . describe --always --tags HEAD
509e6e0e
```
Misc horizontal and vertical alignments fixes
The HTML pages have dubious `p-[0-9]` CSS classes, and some JS code
supposed to add proper padding on the top and bottom of the body
reference incorrect elements (probably from an older version of the
code). Combined, this result in unaligned items horizontally, and
unexpected spacing vertically.
Remove these extra CSS classes, and fix the items used to adjust body
padding.