Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2025 02:48:41 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 98b689134b69 - stable/13 - lib: hook libder up to the build
Message-ID:  <202501110248.50B2mfX9065961@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=98b689134b696023b35197479f1fe553e22087ff

commit 98b689134b696023b35197479f1fe553e22087ff
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-01-01 21:10:27 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-01-11 02:48:28 +0000

    lib: hook libder up to the build
    
    libder will be used in upcoming ECC support in the pkg(7) bootstrap to
    read DER-encoded keys and signatures.
    
    (cherry picked from commit f59bb61e1eb4d1e4fc3c60cc14779d0668267cb2)
---
 lib/Makefile             |  1 +
 lib/libder/Makefile      | 13 +++++++++++++
 share/mk/src.libnames.mk |  4 ++++
 3 files changed, 18 insertions(+)

diff --git a/lib/Makefile b/lib/Makefile
index 49a57d619fb9..cbc38fceb2c7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -16,6 +16,7 @@ SUBDIR_BOOTSTRAP= \
 	${_libclang_rt} \
 	${_libcplusplus} \
 	${_libcxxrt} \
+	libder \
 	libelf \
 	libssp \
 	libssp_nonshared \
diff --git a/lib/libder/Makefile b/lib/libder/Makefile
new file mode 100644
index 000000000000..bdd2225f0ff3
--- /dev/null
+++ b/lib/libder/Makefile
@@ -0,0 +1,13 @@
+
+LIB=	der
+INTERNALLIB=
+
+.PATH:	${SRCTOP}/contrib/libder/libder
+SRCS+=	libder.c \
+	libder_error.c \
+	libder_obj.c \
+	libder_read.c \
+	libder_type.c \
+	libder_write.c
+
+.include <bsd.lib.mk>
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
index 0a2dd0a758bc..c372614037c7 100644
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -42,6 +42,7 @@ _INTERNALLIBS=	\
 		bsnmptools \
 		c_nossp_pic \
 		cron \
+		der \
 		elftc \
 		fifolog \
 		ifconfig \
@@ -572,6 +573,9 @@ LIBTELNET?=	${LIBTELNETDIR}/libtelnet${PIE_SUFFIX}.a
 LIBCRONDIR=	${_LIB_OBJTOP}/usr.sbin/cron/lib
 LIBCRON?=	${LIBCRONDIR}/libcron${PIE_SUFFIX}.a
 
+LIBDERDIR=	${_LIB_OBJTOP}/lib/libder
+LIBDER?=	${LIBDERDIR}/libder${PIE_SUFFIX}.a
+
 LIBNTPDIR=	${_LIB_OBJTOP}/usr.sbin/ntp/libntp
 LIBNTP?=	${LIBNTPDIR}/libntp${PIE_SUFFIX}.a
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501110248.50B2mfX9065961>