diff options
Diffstat (limited to 'krb5/usr.bin')
| -rw-r--r-- | krb5/usr.bin/Makefile | 14 | ||||
| -rw-r--r-- | krb5/usr.bin/Makefile.inc | 12 | ||||
| -rw-r--r-- | krb5/usr.bin/gss-client/Makefile | 28 | ||||
| -rw-r--r-- | krb5/usr.bin/kadmin/Makefile | 41 | ||||
| -rw-r--r-- | krb5/usr.bin/kdestroy/Makefile | 33 | ||||
| -rw-r--r-- | krb5/usr.bin/kinit/Makefile | 35 | ||||
| -rw-r--r-- | krb5/usr.bin/klist/Makefile | 33 | ||||
| -rw-r--r-- | krb5/usr.bin/kpasswd/Makefile | 35 | ||||
| -rw-r--r-- | krb5/usr.bin/ksu/Makefile | 44 | ||||
| -rw-r--r-- | krb5/usr.bin/kswitch/Makefile | 33 | ||||
| -rw-r--r-- | krb5/usr.bin/ktutil/Makefile | 41 | ||||
| -rw-r--r-- | krb5/usr.bin/kvno/Makefile | 33 | ||||
| -rw-r--r-- | krb5/usr.bin/sclient/Makefile | 33 | ||||
| -rw-r--r-- | krb5/usr.bin/sim_client/Makefile | 23 |
14 files changed, 438 insertions, 0 deletions
diff --git a/krb5/usr.bin/Makefile b/krb5/usr.bin/Makefile new file mode 100644 index 000000000000..625aa2245334 --- /dev/null +++ b/krb5/usr.bin/Makefile @@ -0,0 +1,14 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +SUBDIR= kadmin kdestroy kinit klist kpasswd ksu kswitch ktutil kvno sclient gss-client + +SUBDIR_PARALLEL= + +.include <bsd.subdir.mk> diff --git a/krb5/usr.bin/Makefile.inc b/krb5/usr.bin/Makefile.inc new file mode 100644 index 000000000000..55e21f80936c --- /dev/null +++ b/krb5/usr.bin/Makefile.inc @@ -0,0 +1,12 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +.include "../Makefile.inc" + +BINDIR?= /usr/bin diff --git a/krb5/usr.bin/gss-client/Makefile b/krb5/usr.bin/gss-client/Makefile new file mode 100644 index 000000000000..e989e9bf58a8 --- /dev/null +++ b/krb5/usr.bin/gss-client/Makefile @@ -0,0 +1,28 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= gss-client + +LIBADD= gssapi_krb5 krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= gss-client.c \ + gss-misc.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include \ + -I${KRB5_OBJTOP}/lib \ + -I${KRB5_DIR}/lib/gssapi/generic \ + -I${KRB5_DIR}/lib/gssapi/krb5 \ + -I${KRB5_DIR}/lib/gssapi/mechglue + +MAN= + +.include <bsd.prog.mk> + +.PATH: ${KRB5_DIR}/appl/gss-sample diff --git a/krb5/usr.bin/kadmin/Makefile b/krb5/usr.bin/kadmin/Makefile new file mode 100644 index 000000000000..854640e2f002 --- /dev/null +++ b/krb5/usr.bin/kadmin/Makefile @@ -0,0 +1,41 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kadmin + +LIBADD= kadmin_common kadm5clnt_mit gssrpc gssapi_krb5 krb5 k5crypto \ + com_err krb5ss krb5profile krb5support sys + +SRCS= keytab.c + +SCRIPTS= k5srvutil.sh + +MAN= kadmin.1 \ + k5srvutil.1 + +MLINKS= kadmin.1 kadmin.local.8 + +CLEANFILES= kadmin.1 k5srvutil.1 + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +kadmin.1: kadmin.man + +k5srvutil.1: k5srvutil.man + +.include <bsd.prog.mk> + +.SUFFIXES: .man + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/kadmin/cli \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kdestroy/Makefile b/krb5/usr.bin/kdestroy/Makefile new file mode 100644 index 000000000000..d99b2c07d140 --- /dev/null +++ b/krb5/usr.bin/kdestroy/Makefile @@ -0,0 +1,33 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kdestroy + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= kdestroy.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= kdestroy.1 + +kdestroy.1: kdestroy.man + +CLEANFILES+= kdestroy.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/kdestroy \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kinit/Makefile b/krb5/usr.bin/kinit/Makefile new file mode 100644 index 000000000000..43e5525ffe30 --- /dev/null +++ b/krb5/usr.bin/kinit/Makefile @@ -0,0 +1,35 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kinit + +LIBADD= kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 k5crypto com_err \ + krb5profile krb5support sys + +SRCS= kinit.c \ + kinit_kdb.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= kinit.1 + +kinit.1: kinit.man + +CLEANFILES+= kinit.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/kinit \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/klist/Makefile b/krb5/usr.bin/klist/Makefile new file mode 100644 index 000000000000..539337bdd10b --- /dev/null +++ b/krb5/usr.bin/klist/Makefile @@ -0,0 +1,33 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= klist + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= klist.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= klist.1 + +klist.1: klist.man + +CLEANFILES+= klist.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/klist \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kpasswd/Makefile b/krb5/usr.bin/kpasswd/Makefile new file mode 100644 index 000000000000..262fdf3fe2e0 --- /dev/null +++ b/krb5/usr.bin/kpasswd/Makefile @@ -0,0 +1,35 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kpasswd + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= kpasswd.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= kpasswd.1 + +CLEANFILES+= kpasswd.1 + +MAN= kpasswd.1 + +kpasswd.1: kpasswd.man + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/kpasswd \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/ksu/Makefile b/krb5/usr.bin/ksu/Makefile new file mode 100644 index 000000000000..93860e38ce5c --- /dev/null +++ b/krb5/usr.bin/ksu/Makefile @@ -0,0 +1,44 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= ksu +.if defined(ENABLE_SUID_K5SU) +BINMODE=4555 +PRECIOUSPROG= +.endif + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= authorization.c \ + ccache.c \ + heuristic.c \ + krb_auth_su.c \ + main.c \ + xmalloc.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include \ + -DGET_TGT_VIA_PASSWD \ + -DPRINC_LOOK_AHEAD + +MAN= ksu.1 + +ksu.1: ksu.man + +CLEANFILES+= ksu.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/ksu \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kswitch/Makefile b/krb5/usr.bin/kswitch/Makefile new file mode 100644 index 000000000000..bae947ab6e8c --- /dev/null +++ b/krb5/usr.bin/kswitch/Makefile @@ -0,0 +1,33 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kswitch + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= kswitch.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= kswitch.1 + +kswitch.1: kswitch.man + +CLEANFILES+= kswitch.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/kswitch \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/ktutil/Makefile b/krb5/usr.bin/ktutil/Makefile new file mode 100644 index 000000000000..597de6568eaf --- /dev/null +++ b/krb5/usr.bin/ktutil/Makefile @@ -0,0 +1,41 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= ktutil + +LIBADD= krb5 k5crypto com_err krb5profile krb5support krb5ss sys + +SRCS= ktutil.c \ + ktutil_ct.c \ + ktutil_funcs.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include \ + -I${KRB5_DIR}/util \ + -I${KRB5_OBJTOP}/util + +MAN= ktutil.1 + +ktutil.1: ktutil.man + +CLEANFILES+= ktutil.1 + +ktutil_ct.c: ktutil_ct.ct ss_err.h + ${MAKE_COMMANDS} ${KRB5_DIR}/kadmin/ktutil/ktutil_ct.ct + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 .ct + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/kadmin/ktutil \ + ${KRB5_DIR}/man \ + ${KRB5_OBJTOP}/util/ss diff --git a/krb5/usr.bin/kvno/Makefile b/krb5/usr.bin/kvno/Makefile new file mode 100644 index 000000000000..166f3d4b7086 --- /dev/null +++ b/krb5/usr.bin/kvno/Makefile @@ -0,0 +1,33 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= kvno + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= kvno.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= kvno.1 + +kvno.1: kvno.man + +CLEANFILES+= kvno.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/clients/kvno \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/sclient/Makefile b/krb5/usr.bin/sclient/Makefile new file mode 100644 index 000000000000..e98352e98d67 --- /dev/null +++ b/krb5/usr.bin/sclient/Makefile @@ -0,0 +1,33 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= sclient + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= sclient.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= sclient.1 + +sclient.1: sclient.man + +CLEANFILES+= sclient.1 + +.include <bsd.prog.mk> + +.SUFFIXES: .h .c. .man .1 + +.man.1: + @cp ${.ALLSRC} ${.TARGET} + +.PATH: ${KRB5_DIR}/appl/sample/sclient \ + ${KRB5_DIR}/man diff --git a/krb5/usr.bin/sim_client/Makefile b/krb5/usr.bin/sim_client/Makefile new file mode 100644 index 000000000000..8ab198e42c44 --- /dev/null +++ b/krb5/usr.bin/sim_client/Makefile @@ -0,0 +1,23 @@ +# +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2025 FreeBSD Foundation +# +# This sofware was developed by Cy Schubert <cy@FreeBSD.org> +# under sponsorship from the FreeBSD Foundation. +# + +PROG= sim_client + +LIBADD= krb5 k5crypto com_err krb5profile krb5support sys + +SRCS= sim_client.c + +CFLAGS+=-I${KRB5_DIR}/include \ + -I${KRB5_SRCTOP}/include + +MAN= + +.include <bsd.prog.mk> + +.PATH: ${KRB5_DIR}/appl/simple |
