packages: Replace libbz2 package with a bzip2 package

Currently libbz2 is in the libbz2 package, while bzip2 itself is in
-utilities, which is inconsistent.  Move both the library and the
utility to a new -bzip2 package, and use LIB_PACKAGE to create a
separate -bzip2-lib package for runtime dependencies.

Add the bzip2 package to the minimal set, and since newsyslogd uses
bzip2 for logfile compression, add a dependency from there.

MFC after:	1 day
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D52663
This commit is contained in:
Lexi Winter
2025-09-23 22:37:06 +01:00
parent 67c3c3a274
commit 61ca69110f
7 changed files with 33 additions and 6 deletions
+7
View File
@@ -38,6 +38,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW:
FreeBSD-pmc package. If you use these, you may want to install the
package.
The libbz2 package has been renamed to bzip2, and /usr/bin/bzip2 has
been moved to the new package. If you have set-minimal installed,
the new package will be added automatically, otherwise you may want
to manually install it.
This only affects pkgbase users.
20250918:
mandoc (including /usr/bin/man) has been moved to a new package,
FreeBSD-mandoc. If you have the minimal set installed, this package
+3 -1
View File
@@ -1,4 +1,6 @@
PACKAGE= lib${LIB}
PACKAGE= bzip2
LIB_PACKAGE=
BZ2DIR= ${SRCTOP}/contrib/bzip2
.PATH: ${BZ2DIR}
+12
View File
@@ -0,0 +1,12 @@
comment = "A block-sorting data compressor"
desc = <<EOD
bzip2 compresses data using the Burrows-Wheeler block sorting text compression
algorithm, and Huffman coding. Compression is generally considerably better
than that achieved by more conventional LZ77/LZ78-based compressors, and
approaches the performance of the PPM family of statistical compressors.
EOD
annotations {
set = "minimal,minimal-jail"
}
-5
View File
@@ -1,5 +0,0 @@
comment = "bzip2 compression library"
desc = <<EOD
libbz2 allows applications to compress and decompress data using the bzip2
compression algorithm.
EOD
+7
View File
@@ -0,0 +1,7 @@
deps {
# newsyslog uses bzip2 to compress log files.
"bzip2" {
version = "${VERSION}"
origin = "base"
}
}
+2
View File
@@ -1,3 +1,5 @@
PACKAGE= bzip2
BZ2DIR= ${SRCTOP}/contrib/bzip2
.PATH: ${BZ2DIR}
+2
View File
@@ -1,3 +1,5 @@
PACKAGE= bzip2
BZ2DIR= ${SRCTOP}/contrib/bzip2
.PATH: ${BZ2DIR}