From owner-svn-src-all@freebsd.org Sun May 15 04:19:51 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0977B3C18D; Sun, 15 May 2016 04:19:51 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C82301377; Sun, 15 May 2016 04:19:51 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4F4JoUN074623; Sun, 15 May 2016 04:19:50 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4F4Jo3Y074622; Sun, 15 May 2016 04:19:50 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201605150419.u4F4Jo3Y074622@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Sun, 15 May 2016 04:19:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299838 - head/etc/rc.d X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2016 04:19:52 -0000 Author: ngie Date: Sun May 15 04:19:50 2016 New Revision: 299838 URL: https://svnweb.freebsd.org/changeset/base/299838 Log: Reduce redundancy after release-pkg merge to head in r298107 - Use BINDIR instead of FILESDIR - Default all MODEs to BINMODE with a single for-loop at the bottom of the Makefile - Move all of the conditionals under the relevant MK_* != no build conditional blocks Sponsored by: EMC / Isilon Storage Division Modified: head/etc/rc.d/Makefile Modified: head/etc/rc.d/Makefile ============================================================================== --- head/etc/rc.d/Makefile Sun May 15 04:06:02 2016 (r299837) +++ head/etc/rc.d/Makefile Sun May 15 04:19:50 2016 (r299838) @@ -2,9 +2,8 @@ .include +BINDIR= /etc/rc.d FILESGROUPS= FILES -FILESDIR= /etc/rc.d -FILESMODE= ${BINMODE} FILES= DAEMON \ FILESYSTEMS \ @@ -134,18 +133,14 @@ FILES= DAEMON \ .if ${MK_ACCT} != "no" FILESGROUPS+= ACCT ACCT+= accounting -.endif -ACCTDIR= /etc/rc.d -ACCTMODE= ${BINMODE} ACCTPACKAGE= acct +.endif .if ${MK_ACPI} != "no" FILESGROUPS+= ACPI ACPI= power_profile -.endif -ACPIDIR= /etc/rc.d -ACPIMODE= ${BINMODE} ACPIPACKAGE= acpi +.endif .if ${MK_ACPI} != "no" || ${MK_APM} != "no" FILES+= powerd @@ -154,19 +149,15 @@ FILES+= powerd .if ${MK_AMD} != "no" FILESGROUPS+= AMD AMD+= amd -.endif -AMDDIR= /etc/rc.d -AMDMODE= ${BINMODE} AMDPACKAGE= amd +.endif .if ${MK_APM} != "no" FILESGROUPS+= APM APM+= apm APM+= apmd -.endif -APMDIR= /etc/rc.d -APMMODE= ${BINMODE} APMPACKAGE= apm +.endif .if ${MK_AUTOFS} != "no" FILES+= automount @@ -190,10 +181,8 @@ FILES+= bootparams .if ${MK_BSNMP} != "no" FILESGROUPS+= BSNMP BSNMP+= bsnmpd -.endif -BSNMPDIR= /etc/rc.d -BSNMPMODE= ${BINMODE} BSNMPPACKAGE= bsnmp +.endif .if ${MK_CCD} != "no" FILES+= ccd @@ -206,10 +195,8 @@ FILES+= ftpd .if ${MK_HAST} != "no" FILESGROUPS+= HAST HAST= hastd -.endif -HASTDIR= /etc/rc.d -HASTMODE= ${BINMODE} HASTPACKAGE= hast +.endif .if ${MK_INETD} != "no" FILES+= inetd @@ -223,10 +210,8 @@ FILES+= iscsid .if ${MK_JAIL} != "no" FILESGROUPS+= JAIL JAIL+= jail -.endif -JAILDIR= /etc/rc.d -JAILMODE= ${BINMODE} JAILPACKAGE= jail +.endif .if ${MK_LEGACY_CONSOLE} != "no" FILES+= moused @@ -269,10 +254,8 @@ FILES+= keyserv .if ${MK_OPENSSH} != "no" FILESGROUPS+= SSH SSH= sshd -.endif -SSHDIR= /etc/rc.d -SSHMODE= ${BINMODE} SSHPACKAGE= ssh +.endif .if ${MK_PF} != "no" FILES+= ftp-proxy @@ -281,10 +264,8 @@ FILES+= ftp-proxy .if ${MK_RCMDS} != "no" FILESGROUPS+= RCMDS RCMDS+= rwho -.endif -RCMDSDIR= /etc/rc.d -RCMDSMODE= ${BINMODE} RCMDSPACKAGE= rcmds +.endif .if ${MK_ROUTED} != "no" FILES+= routed @@ -293,10 +274,8 @@ FILES+= routed .if ${MK_SENDMAIL} != "no" FILESGROUPS+= SMRCD SMRCD= sendmail -.endif -SMRCDDIR= /etc/rc.d -SMRCDMODE= ${BINMODE} SMRCDPACKAGE= sendmail +.endif .if ${MK_TIMED} != "no" FILES+= timed @@ -305,10 +284,8 @@ FILES+= timed .if ${MK_UNBOUND} != "no" FILESGROUPS+= UNBOUND UNBOUND+= local_unbound -.endif -UNBOUNDDIR= /etc/rc.d -UNBOUNDMODE= ${BINMODE} UNBOUNDPACKAGE= unbound +.endif .if ${MK_UTMPX} != "no" _utx= utx @@ -317,14 +294,16 @@ _utx= utx .if ${MK_VI} != "no" FILESGROUPS+= VI VI+= virecover -.endif -VIDIR= /etc/rc.d -VIMODE= ${BINMODE} VIPACKAGE= vi +.endif .if ${MK_WIRELESS} != "no" FILES+= hostapd FILES+= wpa_supplicant .endif +.for fg in ${FILESGROUPS} +${fg}MODE?= ${BINMODE} +.endfor + .include