1994-02-21 21:53:20 +00:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
|
1996-08-14 14:42:05 +00:00
|
|
|
# $Id: Makefile,v 1.139 1996/07/13 04:33:23 jkh Exp $
|
1993-06-20 13:41:45 +00:00
|
|
|
|
|
|
|
# -rw-r--r--
|
1993-07-19 18:54:09 +00:00
|
|
|
BINOWN= root
|
|
|
|
BINGRP= wheel
|
1996-02-09 12:21:30 +00:00
|
|
|
BIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \
|
1994-09-23 06:15:19 +00:00
|
|
|
ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
|
1996-02-15 23:37:01 +00:00
|
|
|
inetd.conf login.access motd modems netstart networks \
|
1996-03-17 20:37:03 +00:00
|
|
|
newsyslog.conf phones pccard.conf.sample printcap profile protocols \
|
1996-04-03 17:13:59 +00:00
|
|
|
rc rc.firewall rc.local rc.pccard rc.serial \
|
|
|
|
etc.${MACHINE}/rc.${MACHINE} \
|
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
remote security services sysconfig shells \
|
1995-01-03 12:02:05 +00:00
|
|
|
syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \
|
1994-06-15 20:43:20 +00:00
|
|
|
${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
|
|
|
|
${.CURDIR}/../usr.bin/mail/misc/mail.rc
|
1993-06-20 13:41:45 +00:00
|
|
|
|
|
|
|
# -rw-rw-rw-
|
|
|
|
BIN2= motd
|
|
|
|
|
1994-06-24 22:18:46 +00:00
|
|
|
# -rwxr-xr-x root.wheel, for the new cron root.wheel
|
1996-03-17 20:37:03 +00:00
|
|
|
BIN3= daily weekly monthly pccard_ether
|
1993-07-19 18:54:09 +00:00
|
|
|
|
1993-09-21 08:14:32 +00:00
|
|
|
MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist
|
1995-03-23 08:43:07 +00:00
|
|
|
NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost
|
1995-02-04 11:16:47 +00:00
|
|
|
PPPCNF= ppp.conf.filter.sample ppp.conf.iij ppp.conf.sample \
|
|
|
|
ppp.linkup.sample ppp.secret.sample
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1993-08-09 17:02:17 +00:00
|
|
|
# Special top level files for FreeBSD
|
1994-09-15 04:44:03 +00:00
|
|
|
COPYRIGHT= COPYRIGHT
|
1995-05-30 03:57:47 +00:00
|
|
|
FREEBSD=
|
1994-01-22 08:27:56 +00:00
|
|
|
FREEBSD+= ${COPYRIGHT}
|
1993-08-28 03:33:06 +00:00
|
|
|
|
1996-07-11 21:22:50 +00:00
|
|
|
# Sendmail configuration file for release
|
|
|
|
SENDMAILCF?= freebsd.cf
|
|
|
|
|
1995-10-22 00:38:16 +00:00
|
|
|
# Compatibility stuff, remove those links
|
1995-02-26 20:29:37 +00:00
|
|
|
LATIN1LINKS = \
|
|
|
|
da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
|
|
|
|
fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
|
|
|
|
pt_PT sv_SE
|
|
|
|
|
1994-06-22 08:33:28 +00:00
|
|
|
all depend etc install lint:
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribute:
|
1995-02-25 21:01:48 +00:00
|
|
|
cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
|
1995-01-27 02:20:42 +00:00
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribution:
|
1994-06-20 03:39:59 +00:00
|
|
|
(cd ${.CURDIR}; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
|
1994-06-20 03:39:59 +00:00
|
|
|
${DESTDIR}/var/cron/log; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
|
1994-06-20 03:39:59 +00:00
|
|
|
master.passwd ${DESTDIR}/etc; \
|
|
|
|
pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
|
1994-06-20 03:39:59 +00:00
|
|
|
MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
|
|
|
|
(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
|
1994-06-15 20:14:29 +00:00
|
|
|
(cd ${.CURDIR}/root; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/root/.cshrc; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/root/.klogin; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/root/.login; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/root/.profile; \
|
|
|
|
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
|
|
|
|
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
|
|
|
|
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
|
1995-08-06 12:24:38 +00:00
|
|
|
cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1994-06-15 20:14:29 +00:00
|
|
|
${MTREE} ${DESTDIR}/etc/mtree
|
1995-08-06 12:24:38 +00:00
|
|
|
cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
1994-06-15 20:14:29 +00:00
|
|
|
${NAMEDB} ${DESTDIR}/etc/namedb
|
1995-08-06 12:24:38 +00:00
|
|
|
cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
1995-02-04 11:16:47 +00:00
|
|
|
${PPPCNF} ${DESTDIR}/etc/ppp
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/etc/dumpdates
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
|
1993-07-19 18:54:09 +00:00
|
|
|
${DESTDIR}/var/db/locate.database
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-07-19 18:54:09 +00:00
|
|
|
${DESTDIR}/var/log/lpd-errs
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/var/log/maillog
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-08-13 06:11:18 +00:00
|
|
|
${DESTDIR}/var/log/lastlog
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-07-19 18:54:09 +00:00
|
|
|
${DESTDIR}/var/log/messages
|
1996-01-10 21:22:28 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
|
|
|
|
${DESTDIR}/var/log/slip.log
|
1996-07-11 21:22:50 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
|
|
|
|
${DESTDIR}/var/log/ppp.log
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-07-19 18:54:09 +00:00
|
|
|
${DESTDIR}/var/log/wtmp
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/var/run/utmp
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
|
1994-06-20 03:39:59 +00:00
|
|
|
${DESTDIR}/var/crash
|
|
|
|
(cd ${.CURDIR}/../usr.sbin/sendmail/src; \
|
1994-11-14 20:56:17 +00:00
|
|
|
${MAKE} obj; \
|
|
|
|
${MAKE} all; \
|
1993-08-29 02:46:13 +00:00
|
|
|
${MAKE} install; \
|
1993-08-10 14:22:34 +00:00
|
|
|
cd ../cf/cf; \
|
1996-06-25 18:05:58 +00:00
|
|
|
${MAKE} objlink; \
|
1996-07-11 21:22:50 +00:00
|
|
|
${MAKE} ${SENDMAILCF}; \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 obj/${SENDMAILCF} \
|
1995-08-06 12:24:38 +00:00
|
|
|
${DESTDIR}/etc/sendmail.cf)
|
1994-06-20 03:39:59 +00:00
|
|
|
(cd ${.CURDIR}/..; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
|
|
|
|
${DESTDIR}/)
|
1994-06-20 03:39:59 +00:00
|
|
|
(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1993-07-19 18:54:09 +00:00
|
|
|
distrib-dirs:
|
1994-10-17 02:32:41 +00:00
|
|
|
mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
|
|
|
|
mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
|
1995-10-22 00:38:16 +00:00
|
|
|
# Compatibility stuff, remove obsoleted links, if exists
|
1995-10-28 02:01:34 +00:00
|
|
|
if [ -d ${DESTDIR}/usr/share/locale ] ; \
|
1995-10-22 00:38:16 +00:00
|
|
|
then \
|
|
|
|
cd ${DESTDIR}/usr/share/locale; \
|
|
|
|
for l in ${LATIN1LINKS} ; do \
|
1995-10-28 09:39:57 +00:00
|
|
|
if [ -h $$l.ISO_8859-1 ]; then \
|
|
|
|
rm $$l.ISO_8859-1; \
|
|
|
|
fi ; \
|
1995-10-22 00:38:16 +00:00
|
|
|
done; \
|
|
|
|
fi
|
1994-10-17 02:32:41 +00:00
|
|
|
mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
|
1995-03-18 07:01:53 +00:00
|
|
|
mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
|
|
|
|
-p ${DESTDIR}/usr/include
|
1994-09-23 06:21:13 +00:00
|
|
|
.if defined(MAKE_LOCAL)
|
1994-10-17 02:32:41 +00:00
|
|
|
mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local
|
1993-09-01 01:57:54 +00:00
|
|
|
.endif
|
1993-09-07 19:35:38 +00:00
|
|
|
cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
|
1995-03-18 07:01:53 +00:00
|
|
|
cd ${DESTDIR}/usr/share/locale; \
|
1995-10-22 00:38:16 +00:00
|
|
|
set - `cat ${.CURDIR}/locale.alias`; \
|
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
1995-03-18 07:01:53 +00:00
|
|
|
done
|
1995-10-22 00:38:16 +00:00
|
|
|
cd ${DESTDIR}/usr/share/nls; \
|
|
|
|
set - `cat ${.CURDIR}/locale.alias`; \
|
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
|
|
|
done; \
|
|
|
|
rm -rf POSIX; \
|
|
|
|
ln -s C POSIX
|
|
|
|
.if defined(MAKE_LOCAL)
|
|
|
|
cd ${DESTDIR}/usr/local/share/nls; \
|
|
|
|
set - `cat ${.CURDIR}/locale.alias`; \
|
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
|
|
|
done; \
|
|
|
|
rm -rf POSIX; \
|
|
|
|
ln -s C POSIX
|
|
|
|
.endif
|
1993-07-19 18:54:09 +00:00
|
|
|
|
1993-06-20 13:41:45 +00:00
|
|
|
.include <bsd.prog.mk>
|