pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/pkgformat/pkg



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue May 28 13:32:06 UTC 2019

Modified Files:
        pkgsrc/mk/pkgformat/pkg: metadata.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/mk/pkgformat/pkg/metadata.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/pkgformat/pkg/metadata.mk
diff -u pkgsrc/mk/pkgformat/pkg/metadata.mk:1.15 pkgsrc/mk/pkgformat/pkg/metadata.mk:1.16
--- pkgsrc/mk/pkgformat/pkg/metadata.mk:1.15    Wed Aug 23 17:52:30 2017
+++ pkgsrc/mk/pkgformat/pkg/metadata.mk Tue May 28 13:32:06 2019
@@ -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 @@ MESSAGE_SRC_DFLT+= ${PKGDIR}/MESSAGE.${O
 .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