pkgbase: Put zfs utilities and lib in their own package

It is useful to have zfs utilities and lib in a separate package as
it allow users to create image that can support ZFS (i.e. not with
WITHOUT_ZFS in src.conf set) without bloating the default image with
all zfs tools (for example for jails).

Differential Revision:	https://reviews.freebsd.org/D36225
This commit is contained in:
Emmanuel Vadot 2022-07-22 10:43:39 +02:00
parent 0bf688786f
commit a71ea7bea0
25 changed files with 27 additions and 16 deletions

View File

@ -2,7 +2,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/avl
PACKAGE= runtime
PACKAGE= zfs
LIB= avl
LIBADD= spl
SRCS= avl.c

View File

@ -2,7 +2,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/icp
PACKAGE= utilities
PACKAGE= zfs
LIB= icp
LIBADD=

View File

@ -7,7 +7,7 @@
LIB= nvpair
LIBADD= spl
PACKAGE= runtime
PACKAGE= zfs
# user
INCS= libnvpair.h
SRCS= libnvpair.c \

View File

@ -8,7 +8,7 @@
LIB= spl
LIBADD=
PACKAGE= runtime
PACKAGE= zfs
SRCS = \
assert.c \

View File

@ -6,7 +6,7 @@
LIB= tpool
LIBADD= spl
PACKAGE= runtime
PACKAGE= zfs
INCS= thread_pool_impl.h
SRCS= thread_pool.c

View File

@ -2,7 +2,7 @@
.PATH: ${SRCTOP}/cddl/compat/opensolaris/lib/libumem
PACKAGE= runtime
PACKAGE= zfs
LIB= umem
SRCS= umem.c
WARNS?= 3

View File

@ -2,7 +2,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libuutil
PACKAGE= runtime
PACKAGE= zfs
LIB= uutil
SRCS=\
uu_alloc.c \

View File

@ -9,7 +9,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/zstd
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/zstd/lib
PACKAGE= runtime
PACKAGE= zfs
LIB= zfs
LIBADD= \
avl \

View File

@ -8,7 +8,7 @@
LIB= zfs_core
LIBADD= nvpair spl zutil
PACKAGE= runtime
PACKAGE= zfs
INCS= libzfs_core.h
SRCS= libzfs_core.c \

View File

@ -3,7 +3,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libzfsbootenv
.PATH: ${SRCTOP}/sys/contrib/openzfs/include
PACKAGE= runtime
PACKAGE= zfs
LIB= zfsbootenv
SHLIB_MAJOR= 1

View File

@ -32,6 +32,7 @@ ATOMIC_SRCS= opensolaris_atomic.c
PICFLAG= -fPIC
.endif
PACKAGE= zfs
LIB= zpool
USER_C = \

View File

@ -6,7 +6,7 @@
LIB= zutil
LIBADD= avl geom m tpool
PACKAGE= runtime
PACKAGE= zfs
INCS = zutil_import.h

View File

@ -1,7 +1,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/contrib/pam_zfs_key
.PATH: ${SRCTOP}/sys/contrib/openzfs/include
PACKAGE= utilities
PACKAGE= zfs
LIB= pam_zfs_key
SHLIBDIR?= /usr/lib

View File

@ -7,7 +7,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/man/man8
.PATH: ${ZFSTOP}/module/os/freebsd/spl
PACKAGE= runtime
PACKAGE= zfs
PROG= zfs
MAN= \
zfs.8 \

View File

@ -10,7 +10,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd/zpool/os/freebsd
PACKAGE= runtime
PACKAGE= zfs
PROG= zpool
MAN= \
spl.4 \

View File

@ -4,6 +4,8 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd/zpool/compatibility.d
PACKAGE= zfs
FILES= \
compat-2018 \
compat-2019 \

View File

@ -5,6 +5,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd/zinject
.PATH: ${ZFSTOP}/man/man8
PACKAGE= zfs
PROG= zinject
INCS= zinject.h
SRCS= zinject.c translate.c

View File

@ -5,6 +5,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd/zstream
.PATH: ${ZFSTOP}/man/man8
PACKAGE= zfs
PROG= zstream
MAN= zstream.8
MLINKS= zstream.8 zstreamdump.8

View File

@ -7,6 +7,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd
.PATH: ${ZFSTOP}/man/man1
PACKAGE= zfs
PROG= ztest
MAN= ztest.1

View File

@ -5,6 +5,7 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/cmd/zdb
.PATH: ${ZFSTOP}/man/man8
PACKAGE= zfs
PROG= zdb
MAN= zdb.8
INCS= zdb.h

View File

@ -4,6 +4,7 @@
.include "Makefile.common"
PACKAGE= zfs
PROG_CXX= zfsd
MAN= zfsd.8

View File

@ -2,6 +2,7 @@
.PATH: ${SRCTOP}/sys/contrib/openzfs/cmd
PACKAGE= zfs
PROG= zhack
MAN=

View File

@ -4,7 +4,7 @@ SHLIBDIR?= /lib
.include <src.opts.mk>
PACKAGE= runtime
PACKAGE= zfs
LIB= be
SHLIB_MAJOR= 1
SHLIB_MINOR= 0

View File

@ -148,3 +148,5 @@ wpa_COMMENT= 802.11 Supplicant
wpa_DESC= 802.11 Supplicant
yp_COMMENT= Yellow Pages programs
yp_DESC= Yellow Pages programs
zfs_COMMENT= ZFS Libraries and Utilities
zfs_DESC= ZFS Libraries and Utilities

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
PACKAGE=runtime
PACKAGE=zfs
PROG= bectl
MAN= bectl.8