]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/Makefile
This commit was generated by cvs2svn to compensate for changes in r57429,
[FreeBSD/FreeBSD.git] / etc / Makefile
1 #       from: @(#)Makefile      5.11 (Berkeley) 5/21/91
2 # $FreeBSD$
3
4 SUBDIR= sendmail
5
6 BIN1=   aliases amd.map apmd.conf auth.conf \
7         crontab csh.cshrc csh.login csh.logout \
8         dhclient.conf dm.conf fbtab ftpusers gettytab group \
9         hosts hosts.allow host.conf hosts.equiv hosts.lpd \
10         inetd.conf login.access login.conf \
11         motd modems networks newsyslog.conf \
12         pam.conf pccard.conf.sample phones printcap profile protocols \
13         rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \
14         rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.sysctl \
15         remote rpc security services shells syslog.conf usbd.conf \
16         etc.${MACHINE_ARCH}/disktab \
17         etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
18         etc.${MACHINE_ARCH}/ttys \
19         ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
20         ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
21         ${.CURDIR}/../usr.bin/locate/locate/locate.rc
22
23 # -rwxr-xr-x root.wheel, for the new cron root.wheel
24 BIN2=   netstart pccard_ether rc.suspend rc.resume
25
26 MTREE=  BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
27         BSD.var.dist BSD.x11.dist
28 NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
29 PPPCNF= ppp.deny ppp.shells.sample
30 PPPCF2= ppp.conf
31 NOSPAM= Makefile README mailer.conf
32
33
34 # Special top level files for FreeBSD
35 COPYRIGHT=      COPYRIGHT
36 FREEBSD=
37 FREEBSD+=       ${COPYRIGHT}
38
39 etc:
40
41 distribute:
42         cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
43 .if defined(OBJFORMAT)
44         echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
45 .endif
46         @echo 
47
48 distribution:
49         (cd ${.CURDIR}; \
50         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
51         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
52         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
53         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \
54         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
55             ${DESTDIR}/var/log/cron; \
56         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
57             master.passwd ${DESTDIR}/etc; \
58         ( cd ${.CURDIR}/periodic; ${MAKE} install );\
59         ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
60         ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
61         ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
62         ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
63         ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
64         ( cd ${.CURDIR}/isdn; ${MAKE} install );\
65         pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
66         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
67              MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
68 .if !defined(NO_MAKEDEV)
69         (cd ${DESTDIR}/dev; sh MAKEDEV all) ;
70 .endif
71         (cd ${.CURDIR}/root; \
72                 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
73                     ${DESTDIR}/root/.cshrc; \
74                 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
75                     ${DESTDIR}/root/.klogin; \
76                 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
77                     ${DESTDIR}/root/.login; \
78                 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
79                     ${DESTDIR}/root/.profile; \
80                 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
81                 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
82                 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
83         cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
84             ${MTREE} ${DESTDIR}/etc/mtree
85         cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
86             ${NAMEDB} ${DESTDIR}/etc/namedb
87         cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
88             ${PPPCNF} ${DESTDIR}/etc/ppp
89         cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \
90             ${PPPCF2} ${DESTDIR}/etc/ppp
91         cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
92             ${NOSPAM} ${DESTDIR}/etc/mail
93         ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
94             ${DESTDIR}/etc/dumpdates
95         ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
96             ${DESTDIR}/var/db/locate.database
97         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
98             ${DESTDIR}/var/log/lpd-errs
99         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
100             ${DESTDIR}/var/log/maillog
101         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
102             ${DESTDIR}/var/log/lastlog
103         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
104             ${DESTDIR}/var/log/messages
105         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
106             ${DESTDIR}/var/log/security
107         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
108             ${DESTDIR}/var/log/slip.log
109         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
110             ${DESTDIR}/var/log/ppp.log
111         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
112             ${DESTDIR}/var/log/wtmp
113         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
114             ${DESTDIR}/var/run/utmp
115         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
116             ${DESTDIR}/var/crash
117         (cd ${.CURDIR}/..; \
118             ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
119                 ${DESTDIR}/)
120         (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
121
122 distrib-dirs:
123         mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
124         mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
125         mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
126         mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
127                 -p ${DESTDIR}/usr/include
128         mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
129                 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach
130         cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
131         cd ${DESTDIR}/usr/share/locale; \
132         set - `cat ${.CURDIR}/locale.alias`; \
133         while [ $$# -gt 0 ] ; \
134         do \
135                 rm -rf "$$1"; \
136                 ln -s "$$2" "$$1"; \
137                 shift; shift; \
138         done
139         cd ${DESTDIR}/usr/share/nls; \
140         set - `cat ${.CURDIR}/locale.alias`; \
141         while [ $$# -gt 0 ] ; \
142         do \
143                 rm -rf "$$1"; \
144                 ln -s "$$2" "$$1"; \
145                 shift; shift; \
146         done; \
147         rm -rf POSIX; \
148         ln -s C POSIX
149
150 etc-examples:
151         (cd ${.CURDIR}; \
152         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
153             ${DESTDIR}/usr/share/examples/etc; \
154         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
155             ${DESTDIR}/usr/share/examples/etc/defaults; \
156         ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \
157             ${DESTDIR}/usr/share/examples/etc/defaults)
158
159 .include <bsd.prog.mk>