diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-03-11 13:45:07 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-03-11 13:45:07 +0000 |
commit | 76ac67f79ab2db3505e1a973a83a4eaf36567eb1 (patch) | |
tree | c6486a0debd799859e125a135164078c745000b9 /mk/bsd.pkg.mk | |
parent | 7371d6e4094e1968d55a97ed12ce5142d0d6ba7e (diff) | |
download | pkgsrc-76ac67f79ab2db3505e1a973a83a4eaf36567eb1.tar.gz |
Add initial support for alternative init systems.
This commit introduces an INIT_SYSTEM variable which will determine the
type of init system to be used on the target system, supporting "rc.d"
at this time.
The pkginstall infrastructure is changed to only install RCD_SCRIPTS if
INIT_SYSTEM is set to "rc.d", and PLIST entries for rc.d scripts are
now handled automatically based on RCD_SCRIPTS.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 8a217dc1893..8cf0e2e42d9 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1995 2014/03/03 03:21:16 obache Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1996 2014/03/11 13:45:07 jperkin Exp $ # # This file is in the public domain. # @@ -315,6 +315,11 @@ OVERRIDE_DIRDEPTH?= 2 # .include "alternatives.mk" +# Support alternative init systems. +# +INIT_SYSTEM?= rc.d +_BUILD_DEFS+= INIT_SYSTEM + # Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree # of dependencies for building, and the current target. _PKGSRC_IN?= ===${SMART_MESSAGES:D> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===} |