xref: /illumos-gate/usr/src/cmd/initpkg/init.d/Makefile (revision 9dd828891378a0a6a509ab601b4c5c20ca5562ec)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include		../../Makefile.cmd
30
31sparc_PROG=
32i386_PROG=
33
34PROG=		\
35	README		\
36	acctadm		\
37	boot.server	\
38	cachefs.daemon	\
39	deallocate	\
40	devlinks	\
41	dhcp		\
42	drvconfig	\
43	init.snmpdx	\
44	ldap.client	\
45	mkdtab		\
46	nfs.server	\
47	nscd		\
48	pcmcia		\
49	sendmail	\
50	slpd		\
51	sysetup		\
52	uucp		\
53	volmgt		\
54	$($(MACH)_PROG)
55
56
57OTHERPROG=	README.rcS README.rc2 README.rc3
58
59ROOTETCINITD=		$(ROOTETC)/init.d
60ROOTETCRCSD=		$(ROOTETC)/rcS.d
61ROOTETCRC0D=		$(ROOTETC)/rc0.d
62ROOTETCRC1D=		$(ROOTETC)/rc1.d
63ROOTETCRC2D=		$(ROOTETC)/rc2.d
64ROOTETCRC3D=		$(ROOTETC)/rc3.d
65
66DIRS=	$(ROOTETCINITD) \
67	$(ROOTETCRCSD) \
68	$(ROOTETCRC0D) \
69	$(ROOTETCRC1D) \
70	$(ROOTETCRC2D) \
71	$(ROOTETCRC3D)
72
73ROOTETCINITDPROG=	$(PROG:%=$(ROOTETCINITD)/%)
74
75DIRMODE = 0755
76FILEMODE = 0744
77$(ROOTETCINITD)/README :=	FILEMODE = 0644
78$(ROOTETCRCSD)/README :=	FILEMODE = 0644
79$(ROOTETCRC2D)/README :=	FILEMODE = 0644
80$(ROOTETCRC3D)/README :=	FILEMODE = 0644
81OWNER = root
82GROUP = sys
83
84.KEEP_STATE:
85
86all:		$(PROG)
87
88# Don't re-install directories already installed by Targetdirs
89#$(DIRS):
90#		$(INS.dir)
91
92$(ROOTETCINITD)/%:	%
93		$(INS.file)
94
95$(ROOTETCRCSD)/%:	%.rcS
96		$(INS.rename)
97
98$(ROOTETCRC2D)/%:	%.rc2
99		$(INS.rename)
100
101$(ROOTETCRC3D)/%:	%.rc3
102		$(INS.rename)
103
104install:	all $(ROOTETCINITDPROG) \
105		$(ROOTETCRCSD)/README \
106		$(ROOTETCRC2D)/README \
107		$(ROOTETCRC3D)/README
108
109lint:
110
111clean:
112
113clobber:
114