xref: /titanic_41/usr/src/cmd/initpkg/init.d/Makefile (revision 7257d1b4d25bfac0c802847390e98a464fd787ac)
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	$($(MACH)_PROG)
54
55
56OTHERPROG=	README.rcS README.rc2 README.rc3
57
58ROOTETCINITD=		$(ROOTETC)/init.d
59ROOTETCRCSD=		$(ROOTETC)/rcS.d
60ROOTETCRC0D=		$(ROOTETC)/rc0.d
61ROOTETCRC1D=		$(ROOTETC)/rc1.d
62ROOTETCRC2D=		$(ROOTETC)/rc2.d
63ROOTETCRC3D=		$(ROOTETC)/rc3.d
64
65DIRS=	$(ROOTETCINITD) \
66	$(ROOTETCRCSD) \
67	$(ROOTETCRC0D) \
68	$(ROOTETCRC1D) \
69	$(ROOTETCRC2D) \
70	$(ROOTETCRC3D)
71
72ROOTETCINITDPROG=	$(PROG:%=$(ROOTETCINITD)/%)
73
74DIRMODE = 0755
75FILEMODE = 0744
76$(ROOTETCINITD)/README :=	FILEMODE = 0644
77$(ROOTETCRCSD)/README :=	FILEMODE = 0644
78$(ROOTETCRC2D)/README :=	FILEMODE = 0644
79$(ROOTETCRC3D)/README :=	FILEMODE = 0644
80OWNER = root
81GROUP = sys
82
83.KEEP_STATE:
84
85all:		$(PROG)
86
87# Don't re-install directories already installed by Targetdirs
88#$(DIRS):
89#		$(INS.dir)
90
91$(ROOTETCINITD)/%:	%
92		$(INS.file)
93
94$(ROOTETCRCSD)/%:	%.rcS
95		$(INS.rename)
96
97$(ROOTETCRC2D)/%:	%.rc2
98		$(INS.rename)
99
100$(ROOTETCRC3D)/%:	%.rc3
101		$(INS.rename)
102
103install:	all $(ROOTETCINITDPROG) \
104		$(ROOTETCRCSD)/README \
105		$(ROOTETCRC2D)/README \
106		$(ROOTETCRC3D)/README
107
108lint:
109
110clean:
111
112clobber:
113