Subject: Keeping /etc/defaults and /etc/rc.d in-sync
To: None <tech-userlevel@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-userlevel
Date: 12/26/2001 13:07:46
Folks...

Today I got fed up with the fact that /etc/rc.d and /etc/defaults are
not automatically kept in-sync with the rest of userland.

Since the system-provided scripts and defaults files are not meant to
be modified by the end-user, a very simple patch alleviates my suffering.

Index: Makefile
===================================================================
RCS file: /cvsroot/basesrc/etc/Makefile,v
retrieving revision 1.199
diff -c -r1.199 Makefile
*** Makefile	2001/12/12 00:07:46	1.199
--- Makefile	2001/12/26 21:05:18
***************
*** 43,48 ****
--- 43,52 ----
  
  .MAKEOVERRIDES+=	USETOOLS
  
+ # Descend into defaults and rc.d to make sure the base system startup
+ # defaults are in-sync with the rest of the userland.
+ SUBDIR+=	defaults rc.d
+ 
  TZDIR=		/usr/share/zoneinfo
  LOCALTIME?=	UTC
  PWD_MKDB?=	pwd_mkdb
***************
*** 422,424 ****
--- 426,429 ----
  .endif	# DESTDIR check
  
  .include <bsd.prog.mk>
+ .include <bsd.subdir.mk>


I will commit this patch in a couple of days unless there are any
legitimate objections (i.e. rejections of the form "I don't like this"
are invalid -- you need to provide a valid reason WHY you don't like
it :-)

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>