pkgbase: split kerberos binaries and libs

Summary:
This allows installing packages that depend on kerberos libraries
without pulling in all the binaries. It also moves libgssapi to runtime
to allow installing kerbereos libraries without adding a dependancy on
the large utilities package. It makes sense to put libgssapi in runtime
rather than kerberos-lib since this is a plugin layer which is intended
to support any GSS-API mechanisms, not just kerberos.

A good example of a package which uses kerberos libraries without
needing the kerberos utilities is sshd. This uses the kerberos GSS-API
libraries to implement its GSSAPIAuthentication option.

MFC after: 2 weeks

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D36028
This commit is contained in:
Doug Rabson 2022-07-29 10:14:34 +01:00
parent 08bb0873ca
commit 6e4dbb7fef
21 changed files with 22 additions and 19 deletions

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= asn1 LIB= asn1
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= gssapi_krb5 LIB= gssapi_krb5
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= gssapi_ntlm LIB= gssapi_ntlm
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= gssapi_spnego LIB= gssapi_spnego
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= hdb LIB= hdb
LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS} LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS}

View File

@ -1,6 +1,6 @@
#$FreeBSD$ #$FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= heimbase LIB= heimbase
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
#$FreeBSD$ #$FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= heimipcc LIB= heimipcc
PRIVATELIB= PRIVATELIB=

View File

@ -1,6 +1,6 @@
#$FreeBSD$ #$FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= heimipcs LIB= heimipcs
PRIVATELIB= PRIVATELIB=

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= heimntlm LIB= heimntlm
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= hx509 LIB= hx509
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= kadm5clnt LIB= kadm5clnt
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= kadm5srv LIB= kadm5srv
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= kafs5 LIB= kafs5
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
#$FreeBSD$ #$FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= kdc LIB= kdc
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= krb5 LIB= krb5
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= roken LIB= roken
LIBADD= crypt LIBADD= crypt

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= sl LIB= sl
INTERNALLIB= INTERNALLIB=

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= vers LIB= vers
INTERNALLIB= INTERNALLIB=

View File

@ -1,6 +1,6 @@
#$FreeBSD$ #$FreeBSD$
PACKAGE= kerberos PACKAGE= kerberos-lib
LIB= wind LIB= wind
LDFLAGS= -Wl,--no-undefined LDFLAGS= -Wl,--no-undefined

View File

@ -1,5 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= runtime
LIB= gssapi LIB= gssapi
SHLIB_MAJOR= 10 SHLIB_MAJOR= 10
VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def

View File

@ -75,6 +75,8 @@ jail-lib32-development_DESCR=32-bit Development Files
jail-lib32-profile_DESCR=32-bit Profiling Libraries jail-lib32-profile_DESCR=32-bit Profiling Libraries
kerberos_COMMENT= Kerberos Utilities kerberos_COMMENT= Kerberos Utilities
kerberos_DESC= Kerberos Utilities kerberos_DESC= Kerberos Utilities
kerberos-lib_COMMENT= Kerberos Libraries
kerberos-lib_DESC= Kerberos Libraries
kernel_COMMENT= FreeBSD Kernel kernel_COMMENT= FreeBSD Kernel
kernel_DESC= FreeBSD Kernel kernel_DESC= FreeBSD Kernel
manuals_COMMENT= Manual Pages manuals_COMMENT= Manual Pages