Preliminary syscall messaging work. Adjust all <syscall>_args structures
[dragonfly.git] / etc / Makefile
CommitLineData
984263bc
MD
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: src/etc/Makefile,v 1.219.2.38 2003/03/04 09:49:00 ru Exp $
bec037ae 3# $DragonFly: src/etc/Makefile,v 1.3 2003/06/17 05:14:56 dillon Exp $
984263bc
MD
4
5.if !defined(NO_SENDMAIL)
6SUBDIR= sendmail
7.endif
8
9BIN1= amd.map apmd.conf auth.conf \
10 crontab csh.cshrc csh.login csh.logout \
11 dhclient.conf dm.conf fbtab ftpusers gettytab group \
12 hosts hosts.allow host.conf hosts.equiv hosts.lpd \
13 inetd.conf login.access login.conf \
14 motd modems networks newsyslog.conf \
15 pam.conf phones printcap profile protocols \
16 rc rc.atm rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \
17 rc.network rc.network6 rc.pccard rc.sendmail rc.serial rc.shutdown \
18 rc.syscons rc.sysctl remote rpc services \
19 shells sysctl.conf syslog.conf usbd.conf \
20 etc.${MACHINE_ARCH}/disktab \
21 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
22 etc.${MACHINE_ARCH}/ttys \
23 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
24 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
25 ${.CURDIR}/../usr.bin/locate/locate/locate.rc
26
27.if !defined(NO_I4B)
28BIN1+= rc.isdn
29.endif
30
31.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
32.if !defined(NO_OPENSSH)
33SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
34 ${.CURDIR}/../crypto/openssh/sshd_config \
35 moduli
36.endif
37SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
38.endif
39
40# -rwxr-xr-x root:wheel, for the new cron root:wheel
41BIN2= netstart pccard_ether rc.suspend rc.resume
42
43DEFAULTS= rc.conf make.conf pccard.conf periodic.conf
44
45MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
46 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
47.if !defined(NO_SENDMAIL)
48MTREE+= BSD.sendmail.dist
49.endif
50
51NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
52 make-localhost
53
54PPPCNF= ppp.conf
55
56ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
57 mailertable.sample aliases
58
59# Special top level files for FreeBSD
60FREEBSD=COPYRIGHT
61
62distribute:
63 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
64.if defined(OBJFORMAT)
65 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat
66.endif
67
68distribution:
69 cd ${.CURDIR}; \
70 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
71 ${BIN1} ${DESTDIR}/etc; \
72 cap_mkdb ${DESTDIR}/etc/login.conf; \
73 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
74 ${BIN2} ${DESTDIR}/etc; \
75 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
76 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
77 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
78 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
79 ${DEFAULTS} ${DESTDIR}/etc/defaults
80 cd ${.CURDIR}/periodic; ${MAKE} install
81 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
82 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
83 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
84.if !defined(NO_I4B)
85 cd ${.CURDIR}/isdn; ${MAKE} install
86.endif
87.if !defined(NO_SENDMAIL)
88 cd ${.CURDIR}/sendmail; ${MAKE} distribution
89.endif
984263bc
MD
90.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
91.if !defined(NO_OPENSSH)
92 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
93 ${SSH} ${DESTDIR}/etc/ssh
94.endif
95 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
96 ${SSL} ${DESTDIR}/etc/ssl
97.endif
98.if !defined(NO_MAKEDEV)
99 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 555 \
100 MAKEDEV.local MAKEDEV ${DESTDIR}/dev
101.if !defined(NO_MAKEDEV_RUN)
102 cd ${DESTDIR}/dev; sh MAKEDEV all
103.endif
104.endif
105 cd ${.CURDIR}/root; \
106 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
107 dot.cshrc ${DESTDIR}/root/.cshrc; \
108 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
109 dot.klogin ${DESTDIR}/root/.klogin; \
110 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
111 dot.login ${DESTDIR}/root/.login; \
112 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
113 dot.profile ${DESTDIR}/root/.profile; \
114 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
115 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
116 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
117 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
118 ${MTREE} ${DESTDIR}/etc/mtree
119 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
120 ${NAMEDB} ${DESTDIR}/etc/namedb
121 cd ${.CURDIR}/ppp; ${INSTALL} -o root -g ${BINGRP} -m 600 \
122 ${PPPCNF} ${DESTDIR}/etc/ppp
123 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
124 ${ETCMAIL} ${DESTDIR}/etc/mail
125 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
126 ! -f ${DESTDIR}/etc/aliases ]; then \
127 set -x; \
128 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
129 fi
130 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
131 ${DESTDIR}/etc/dumpdates
132 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
133 ${DESTDIR}/var/db/locate.database
134 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
135 ${DESTDIR}/var/log/auth.log
136 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
137 ${DESTDIR}/var/log/cron
138 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
139 ${DESTDIR}/var/log/lpd-errs
140 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
141 ${DESTDIR}/var/log/maillog
142 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
143 ${DESTDIR}/var/log/lastlog
144 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
145 ${DESTDIR}/var/log/messages
146 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
147 ${DESTDIR}/var/log/security
148 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
149 ${DESTDIR}/var/log/slip.log
150 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \
151 ${DESTDIR}/var/log/ppp.log
152 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
153 ${DESTDIR}/var/log/wtmp
154 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
155 ${DESTDIR}/var/run/utmp
156 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
157 ${DESTDIR}/var/crash
158 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
159 ${FREEBSD} ${DESTDIR}/
160.if !defined(NOMAN)
161 cd ${.CURDIR}/../share/man; ${MAKE} makedb
162.endif
163
164distrib-dirs:
165 -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
166 while [ $$# -gt 0 ] ; \
167 do \
168 for dir in /usr/share/locale \
169 /usr/share/nls \
170 /usr/local/share/nls; \
171 do \
172 test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
173 test -L "$$2" && rm -rf "$$2"; \
174 test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
175 done; \
176 shift; shift; \
177 done
178 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
179 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
180 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
181 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
182 -p ${DESTDIR}/usr/include
183 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
184 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach
185.if !defined(NO_SENDMAIL)
186 mtree -deU -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
187.endif
188 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
189 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
190 cd ${DESTDIR}/usr/share/man; \
191 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
192 while [ $$# -gt 0 ] ; \
193 do \
194 rm -rf "$$1"; \
195 ln -s "$$2" "$$1"; \
196 shift; shift; \
197 done
198 cd ${DESTDIR}/usr/share/locale; \
199 set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \
200 while [ $$# -gt 0 ] ; \
201 do \
202 rm -rf "$$1"; \
203 ln -s "$$2" "$$1"; \
204 shift; shift; \
205 done
206 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
207 cd ${DESTDIR}/usr/share/nls; \
208 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
209 while [ $$# -gt 0 ] ; \
210 do \
211 rm -rf "$$1"; \
212 ln -s "$$2" "$$1"; \
213 shift; shift; \
214 done
215
216etc-examples:
217 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
218 ${BIN1} ${BIN2} nsmb.conf opieaccess \
219 ${DESTDIR}/usr/share/examples/etc
220 cd ${.CURDIR}/defaults; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
221 ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults
222
223.include <bsd.prog.mk>