Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind Add plugin glue (simon@)



details:   https://anonhg.NetBSD.org/src/rev/7df1eea76f4e
branches:  trunk
changeset: 982093:7df1eea76f4e
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 31 04:37:50 2021 +0000

description:
Add plugin glue (simon@)

diffstat:

 external/mpl/bind/Makefile                     |   4 +-
 external/mpl/bind/libexec/Makefile             |   5 +++
 external/mpl/bind/libexec/filter-aaaa/Makefile |   6 ++++
 external/mpl/bind/libexec/plugin.mk            |  36 ++++++++++++++++++++++++++
 4 files changed, 49 insertions(+), 2 deletions(-)

diffs (70 lines):

diff -r d702b1c35399 -r 7df1eea76f4e external/mpl/bind/Makefile
--- a/external/mpl/bind/Makefile        Tue Mar 30 23:31:53 2021 +0000
+++ b/external/mpl/bind/Makefile        Wed Mar 31 04:37:50 2021 +0000
@@ -1,5 +1,5 @@
-#      $NetBSD: Makefile,v 1.1 2018/08/12 13:02:24 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2021/03/31 04:37:50 christos Exp $
 
-SUBDIR+= lib .WAIT bin
+SUBDIR+= lib .WAIT libexec bin
 
 .include <bsd.subdir.mk>
diff -r d702b1c35399 -r 7df1eea76f4e external/mpl/bind/libexec/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mpl/bind/libexec/Makefile        Wed Mar 31 04:37:50 2021 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.1 2021/03/31 04:37:50 christos Exp $
+
+SUBDIR+= filter-aaaa
+
+.include <bsd.subdir.mk>
diff -r d702b1c35399 -r 7df1eea76f4e external/mpl/bind/libexec/filter-aaaa/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mpl/bind/libexec/filter-aaaa/Makefile    Wed Mar 31 04:37:50 2021 +0000
@@ -0,0 +1,6 @@
+#      $NetBSD: Makefile,v 1.1 2021/03/31 04:37:50 christos Exp $
+
+LIB=   filter-aaaa
+SRCS=  filter-aaaa.c
+
+.include "${.CURDIR}/../plugin.mk"
diff -r d702b1c35399 -r 7df1eea76f4e external/mpl/bind/libexec/plugin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mpl/bind/libexec/plugin.mk       Wed Mar 31 04:37:50 2021 +0000
@@ -0,0 +1,36 @@
+#      $NetBSD: plugin.mk,v 1.1 2021/03/31 04:37:50 christos Exp $
+#
+# Based on src/lib/libpam/modules/mod.mk
+#      NetBSD: mod.mk,v 1.17 2020/05/23 00:43:33 rin Exp
+
+.include "${.CURDIR}/../../Makefile.inc"
+
+DIST=          ${IDIST}/bin/plugins
+.PATH.c:       ${DIST}
+
+LIBDIR=                /usr/libexec/named
+
+NOLINT=                # don't build a lint library
+NOPROFILE=     # don't build a profile library
+NOPICINSTALL=  # don't install _pic.a library
+
+# Define the shared library version here, we need these variables early for
+# plugin install rules.
+SHLIB_MAJOR=   0
+SHLIB_MINOR=   0
+
+.include <bsd.own.mk>
+
+.if ${MKPIC} != "no"
+.PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so
+libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so
+.else
+libinstall::
+.endif
+
+.include <bsd.lib.mk>
+
+${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION}
+       ${_MKTARGET_INSTALL}
+       ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+           ${.ALLSRC} ${.TARGET}



Home | Main Index | Thread Index | Old Index