pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/pkgformat/pkg mk: Support MESSAGE.rcd and MESSAGE.smf.
details: https://anonhg.NetBSD.org/pkgsrc/rev/a6b2b2c8c4f2
branches: trunk
changeset: 396321:a6b2b2c8c4f2
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue May 28 13:32:06 2019 +0000
description:
mk: Support MESSAGE.rcd and MESSAGE.smf.
Previously packages configured these manually based on INIT_SYSTEM, this
centralises support for them so they only need to exist to be pulled in
accordingly.
diffstat:
mk/pkgformat/pkg/metadata.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r b694188df596 -r a6b2b2c8c4f2 mk/pkgformat/pkg/metadata.mk
--- a/mk/pkgformat/pkg/metadata.mk Tue May 28 13:16:10 2019 +0000
+++ b/mk/pkgformat/pkg/metadata.mk Tue May 28 13:32:06 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: metadata.mk,v 1.15 2017/08/23 17:52:30 jlam Exp $
+# $NetBSD: metadata.mk,v 1.16 2019/05/28 13:32:06 jperkin Exp $
######################################################################
### The targets below are all PRIVATE.
@@ -225,6 +225,12 @@
.endif
MESSAGE_SRC?= ${MESSAGE_SRC_DFLT}
+.if ${INIT_SYSTEM} == "rc.d" && exists(${PKGDIR}/MESSAGE.rcd)
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.rcd
+.elif ${INIT_SYSTEM} == "smf" && exists(${PKGDIR}/MESSAGE.smf)
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.smf
+.endif
+
.if !empty(MESSAGE_SRC)
_MESSAGE_FILE= ${PKG_DB_TMPDIR}/+DISPLAY
_METADATA_TARGETS+= ${_MESSAGE_FILE}
Home |
Main Index |
Thread Index |
Old Index