1994-02-21 21:53:20 +00:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
|
1998-08-07 08:24:07 +00:00
|
|
|
# $Id: Makefile,v 1.168 1998/08/04 15:54:27 peter Exp $
|
1998-08-04 15:54:27 +00:00
|
|
|
|
|
|
|
SUBDIR= sendmail
|
1993-06-20 13:41:45 +00:00
|
|
|
|
|
|
|
# -rw-r--r--
|
1993-07-19 18:54:09 +00:00
|
|
|
BINOWN= root
|
|
|
|
BINGRP= wheel
|
1997-08-14 07:00:44 +00:00
|
|
|
BIN1= aliases amd.map crontab 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 \
|
1997-04-27 03:59:19 +00:00
|
|
|
inetd.conf login.conf login.access motd modems networks \
|
1996-03-17 20:37:03 +00:00
|
|
|
newsyslog.conf phones pccard.conf.sample printcap profile protocols \
|
1997-04-27 03:59:19 +00:00
|
|
|
rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \
|
1997-08-02 00:22:52 +00:00
|
|
|
rc.shutdown etc.${MACHINE}/rc.${MACHINE} \
|
1997-04-27 03:59:19 +00:00
|
|
|
remote security services shells \
|
1998-05-16 21:28:17 +00:00
|
|
|
syslog.conf etc.${MACHINE}/ttys etc.${MACHINE}/disktab rpc make.conf \
|
1994-06-15 20:43:20 +00:00
|
|
|
${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
|
1996-08-17 22:27:08 +00:00
|
|
|
${.CURDIR}/../usr.bin/mail/misc/mail.rc \
|
|
|
|
${.CURDIR}/../usr.bin/locate/locate/locate.rc
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1994-06-24 22:18:46 +00:00
|
|
|
# -rwxr-xr-x root.wheel, for the new cron root.wheel
|
1998-06-11 20:25:56 +00:00
|
|
|
BIN2= netstart pccard_ether
|
1993-07-19 18:54:09 +00:00
|
|
|
|
1997-07-18 03:49:47 +00:00
|
|
|
MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
|
|
|
|
BSD.var.dist BSD.x11.dist
|
1998-05-07 23:42:33 +00:00
|
|
|
NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
|
1997-11-09 14:24:24 +00:00
|
|
|
PPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
|
|
|
|
ppp.secret.sample ppp.deny ppp.shells.sample
|
1997-10-20 00:35:38 +00:00
|
|
|
NOSPAM= Makefile README sendmail.cf.additions
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1996-08-17 22:27:08 +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
|
|
|
|
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
|
|
|
|
|
1998-08-04 15:54:27 +00:00
|
|
|
etc:
|
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; \
|
1998-06-11 20:25:56 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
|
1995-08-06 12:24:38 +00:00
|
|
|
${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; \
|
1997-08-16 17:07:13 +00:00
|
|
|
( cd ${.CURDIR}/periodic; ${MAKE} install );\
|
1996-08-17 22:27:08 +00:00
|
|
|
( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
|
|
|
|
( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
|
|
|
|
( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
|
1996-08-18 11:05:08 +00:00
|
|
|
( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
|
1998-08-07 08:24:07 +00:00
|
|
|
( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
|
1998-05-27 12:13:18 +00:00
|
|
|
( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
|
1994-06-20 03:39:59 +00:00
|
|
|
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
|
1997-10-20 00:35:38 +00:00
|
|
|
cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
|
|
|
${NOSPAM} ${DESTDIR}/etc/mail
|
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}/..; \
|
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
|
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
|
1993-07-19 18:54:09 +00:00
|
|
|
|
1993-06-20 13:41:45 +00:00
|
|
|
.include <bsd.prog.mk>
|