1994-02-21 21:53:20 +00:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-08-04 15:54:27 +00:00
|
|
|
|
2001-03-01 03:51:18 +00:00
|
|
|
.if !defined(NO_SENDMAIL)
|
1998-08-04 15:54:27 +00:00
|
|
|
SUBDIR= sendmail
|
2001-03-01 03:51:18 +00:00
|
|
|
.endif
|
1993-06-20 13:41:45 +00:00
|
|
|
|
2002-07-05 13:39:38 +00:00
|
|
|
BIN1= amd.map apmd.conf auth.conf \
|
2003-05-06 07:25:17 +00:00
|
|
|
crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \
|
|
|
|
dhclient.conf disktab fbtab ftpusers gettytab group \
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
hosts hosts.allow hosts.equiv hosts.lpd \
|
1999-12-29 18:22:52 +00:00
|
|
|
inetd.conf login.access login.conf \
|
2003-04-18 17:51:54 +00:00
|
|
|
mac.conf motd netconfig network.subr networks newsyslog.conf \
|
2004-03-08 22:03:29 +00:00
|
|
|
pf.conf pf.os phones profile protocols \
|
2005-03-01 03:59:24 +00:00
|
|
|
rc rc.bsdextended rc.firewall rc.firewall6 rc.sendmail rc.shutdown \
|
2003-05-02 05:27:35 +00:00
|
|
|
rc.subr remote rpc services \
|
2002-06-13 22:26:15 +00:00
|
|
|
shells sysctl.conf syslog.conf usbd.conf \
|
1999-12-29 18:22:52 +00:00
|
|
|
etc.${MACHINE_ARCH}/ttys \
|
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
|
2003-11-02 22:13:36 +00:00
|
|
|
.if !defined(NO_LPR)
|
|
|
|
BIN1+= printcap
|
|
|
|
.endif
|
1993-06-20 13:41:45 +00:00
|
|
|
|
2004-12-21 10:16:04 +00:00
|
|
|
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
|
2002-06-21 08:54:03 +00:00
|
|
|
.if !defined(NO_OPENSSH)
|
2000-02-25 14:27:33 +00:00
|
|
|
SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
|
2001-03-27 03:58:12 +00:00
|
|
|
${.CURDIR}/../crypto/openssh/sshd_config \
|
2004-01-07 11:55:44 +00:00
|
|
|
${.CURDIR}/../crypto/openssh/moduli
|
2000-02-24 23:12:04 +00:00
|
|
|
.endif
|
2000-05-18 05:21:50 +00:00
|
|
|
SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
|
|
|
|
.endif
|
|
|
|
|
2001-08-29 19:59:30 +00:00
|
|
|
# -rwxr-xr-x root:wheel, for the new cron root:wheel
|
2002-12-17 21:23:36 +00:00
|
|
|
BIN2= netstart pccard_ether rc.suspend rc.resume
|
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 \
|
2000-08-28 20:22:25 +00:00
|
|
|
BSD.var.dist BSD.x11.dist BSD.x11-4.dist
|
2002-04-20 19:00:11 +00:00
|
|
|
.if !defined(NO_SENDMAIL)
|
|
|
|
MTREE+= BSD.sendmail.dist
|
|
|
|
.endif
|
2004-09-27 08:23:43 +00:00
|
|
|
.if !defined(NO_BIND)
|
|
|
|
MTREE+= BIND.chroot.dist
|
|
|
|
.if defined(WITH_BIND_LIBS)
|
|
|
|
MTREE+= BIND.include.dist
|
|
|
|
.endif
|
|
|
|
.endif
|
2002-07-05 13:39:38 +00:00
|
|
|
|
2004-09-27 08:23:43 +00:00
|
|
|
.if !defined(NO_BIND_ETC) && !defined(NO_BIND)
|
2002-07-05 13:39:38 +00:00
|
|
|
NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \
|
2002-02-06 04:57:25 +00:00
|
|
|
make-localhost
|
2004-09-27 08:23:43 +00:00
|
|
|
.endif
|
2002-07-05 13:39:38 +00:00
|
|
|
|
|
|
|
PPPCNF= ppp.conf
|
|
|
|
|
2003-07-06 19:23:31 +00:00
|
|
|
.if defined(NO_SENDMAIL)
|
|
|
|
ETCMAIL=mailer.conf aliases
|
|
|
|
.else
|
2000-08-13 09:01:12 +00:00
|
|
|
ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
|
|
|
|
mailertable.sample aliases
|
2003-07-06 19:23:31 +00:00
|
|
|
.endif
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1993-08-09 17:02:17 +00:00
|
|
|
# Special top level files for FreeBSD
|
2002-07-05 13:17:24 +00:00
|
|
|
FREEBSD=COPYRIGHT
|
1993-08-28 03:33:06 +00:00
|
|
|
|
2004-01-22 08:18:37 +00:00
|
|
|
afterinstall:
|
2004-12-21 08:47:35 +00:00
|
|
|
.if !defined(NO_MAN)
|
2004-01-22 08:18:37 +00:00
|
|
|
cd ${.CURDIR}/../share/man; ${MAKE} makedb
|
|
|
|
.endif
|
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribute:
|
2004-01-22 08:18:37 +00:00
|
|
|
cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
2002-04-23 22:16:41 +00:00
|
|
|
cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
1995-01-27 02:20:42 +00:00
|
|
|
|
2005-02-28 14:16:53 +00:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.if ${TARGET_ENDIANNESS} == "1234"
|
|
|
|
CAP_MKDB_ENDIAN= -l
|
2005-02-28 22:55:43 +00:00
|
|
|
PWD_MKDB_ENDIAN= -L
|
2005-02-28 14:16:53 +00:00
|
|
|
.elif ${TARGET_ENDIANNESS} == "4321"
|
|
|
|
CAP_MKDB_ENDIAN= -b
|
2005-02-28 22:55:43 +00:00
|
|
|
PWD_MKDB_ENDIAN= -B
|
2005-02-28 14:16:53 +00:00
|
|
|
.else
|
|
|
|
CAP_MKDB_ENDIAN=
|
|
|
|
.endif
|
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribution:
|
2002-07-05 13:17:24 +00:00
|
|
|
cd ${.CURDIR}; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${BIN1} ${DESTDIR}/etc; \
|
2005-02-28 14:16:53 +00:00
|
|
|
cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${BIN2} ${DESTDIR}/etc; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
2002-07-05 13:39:38 +00:00
|
|
|
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
|
2005-02-28 22:55:43 +00:00
|
|
|
pwd_mkdb ${PWD_MKDB_ENDIAN} -p -d ${DESTDIR}/etc \
|
|
|
|
${DESTDIR}/etc/master.passwd
|
2003-10-26 19:09:12 +00:00
|
|
|
cd ${.CURDIR}/bluetooth; ${MAKE} install
|
2003-08-24 03:24:54 +00:00
|
|
|
cd ${.CURDIR}/defaults; ${MAKE} install
|
2002-07-05 13:17:24 +00:00
|
|
|
cd ${.CURDIR}/periodic; ${MAKE} install
|
|
|
|
cd ${.CURDIR}/rc.d; ${MAKE} install
|
|
|
|
cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
|
|
|
|
cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
|
|
|
|
cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
|
|
|
|
cd ${.CURDIR}/pam.d; ${MAKE} install
|
2001-05-23 13:32:32 +00:00
|
|
|
.if !defined(NO_I4B)
|
2002-07-05 13:17:24 +00:00
|
|
|
cd ${.CURDIR}/isdn; ${MAKE} install
|
2001-05-23 13:32:32 +00:00
|
|
|
.endif
|
2001-03-01 03:51:18 +00:00
|
|
|
.if !defined(NO_SENDMAIL)
|
2002-07-05 13:17:24 +00:00
|
|
|
cd ${.CURDIR}/sendmail; ${MAKE} distribution
|
2001-03-01 03:51:18 +00:00
|
|
|
.endif
|
2003-09-18 16:35:43 +00:00
|
|
|
.if !defined(NO_OPENSSL)
|
2002-06-21 08:54:03 +00:00
|
|
|
.if !defined(NO_OPENSSH)
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${SSH} ${DESTDIR}/etc/ssh
|
2000-02-25 14:27:33 +00:00
|
|
|
.endif
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${SSL} ${DESTDIR}/etc/ssl
|
2000-02-09 04:08:18 +00:00
|
|
|
.endif
|
2003-10-03 19:38:21 +00:00
|
|
|
.if !defined(NO_KERBEROS)
|
2002-07-05 13:17:24 +00:00
|
|
|
cd ${.CURDIR}/root; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2003-10-03 19:38:21 +00:00
|
|
|
dot.k5login ${DESTDIR}/root/.k5login;
|
|
|
|
.endif
|
|
|
|
cd ${.CURDIR}/root; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2003-10-03 19:38:21 +00:00
|
|
|
dot.cshrc ${DESTDIR}/root/.cshrc; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 13:39:38 +00:00
|
|
|
dot.login ${DESTDIR}/root/.login; \
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 13:39:38 +00:00
|
|
|
dot.profile ${DESTDIR}/root/.profile; \
|
|
|
|
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
|
|
|
|
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
|
|
|
|
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1994-06-15 20:14:29 +00:00
|
|
|
${MTREE} ${DESTDIR}/etc/mtree
|
2004-10-08 00:14:28 +00:00
|
|
|
.if !defined(NO_BIND)
|
|
|
|
.if !defined(NO_BIND_ETC)
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2004-09-30 10:24:24 +00:00
|
|
|
${NAMEDB} ${DESTDIR}/var/named/etc/namedb
|
2004-10-08 00:14:28 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NO_BIND_MTREE)
|
|
|
|
@if [ ! -e ${DESTDIR}/etc/namedb ]; then \
|
|
|
|
set -x; \
|
|
|
|
ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
|
|
|
|
fi
|
|
|
|
.endif
|
2004-09-27 08:23:43 +00:00
|
|
|
.endif
|
2003-08-18 00:36:31 +00:00
|
|
|
cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
2002-01-29 00:23:35 +00:00
|
|
|
${PPPCNF} ${DESTDIR}/etc/ppp
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2000-08-13 09:01:12 +00:00
|
|
|
${ETCMAIL} ${DESTDIR}/etc/mail
|
2000-08-14 02:49:39 +00:00
|
|
|
@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
|
|
|
|
! -f ${DESTDIR}/etc/aliases ]; then \
|
|
|
|
set -x; \
|
|
|
|
ln -s mail/aliases ${DESTDIR}/etc/aliases; \
|
|
|
|
fi
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
|
1993-06-20 13:41:45 +00:00
|
|
|
${DESTDIR}/etc/dumpdates
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
|
1993-07-19 18:54:09 +00:00
|
|
|
${DESTDIR}/var/db/locate.database
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
|
1994-06-20 03:39:59 +00:00
|
|
|
${DESTDIR}/var/crash
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${FREEBSD} ${DESTDIR}/
|
2004-03-14 17:18:39 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
|
|
${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
|
|
|
|
${DESTDIR}/boot/device.hints
|
1993-06-20 13:41:45 +00:00
|
|
|
|
1993-07-19 18:54:09 +00:00
|
|
|
distrib-dirs:
|
2004-03-23 22:17:34 +00:00
|
|
|
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
|
|
|
|
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
|
|
|
|
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
|
|
|
|
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
|
1995-03-18 07:01:53 +00:00
|
|
|
-p ${DESTDIR}/usr/include
|
2004-09-28 09:46:00 +00:00
|
|
|
.if !defined(NO_BIND)
|
|
|
|
.if defined(WITH_BIND_LIBS)
|
2004-09-27 08:23:43 +00:00
|
|
|
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
|
|
|
|
-p ${DESTDIR}/usr/include
|
2004-09-28 09:46:00 +00:00
|
|
|
.endif
|
2004-10-08 00:14:28 +00:00
|
|
|
.if !defined(NO_BIND_MTREE)
|
2004-09-28 09:46:00 +00:00
|
|
|
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
|
|
|
|
-p ${DESTDIR}/var/named
|
2004-10-08 00:14:28 +00:00
|
|
|
.endif
|
2004-09-28 09:46:00 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NO_SENDMAIL)
|
|
|
|
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
|
2002-04-20 19:00:11 +00:00
|
|
|
.endif
|
1993-09-07 19:35:38 +00:00
|
|
|
cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
|
2001-06-10 16:36:09 +00:00
|
|
|
cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
|
|
|
|
cd ${DESTDIR}/usr/share/man; \
|
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
|
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
|
|
|
done
|
2003-02-11 01:08:51 +00:00
|
|
|
cd ${DESTDIR}/usr/share/openssl/man; \
|
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
|
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
|
|
|
done
|
2003-02-10 19:57:56 +00:00
|
|
|
cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
|
1995-10-22 00:38:16 +00:00
|
|
|
cd ${DESTDIR}/usr/share/nls; \
|
2001-06-10 18:44:01 +00:00
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
|
1995-10-22 00:38:16 +00:00
|
|
|
while [ $$# -gt 0 ] ; \
|
|
|
|
do \
|
|
|
|
rm -rf "$$1"; \
|
|
|
|
ln -s "$$2" "$$1"; \
|
|
|
|
shift; shift; \
|
2001-06-10 18:44:01 +00:00
|
|
|
done
|
1993-07-19 18:54:09 +00:00
|
|
|
|
1999-06-24 09:45:30 +00:00
|
|
|
etc-examples:
|
2002-07-29 09:40:17 +00:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2002-07-05 13:39:38 +00:00
|
|
|
${BIN1} ${BIN2} nsmb.conf opieaccess \
|
|
|
|
${DESTDIR}/usr/share/examples/etc
|
2003-08-24 03:24:54 +00:00
|
|
|
cd ${.CURDIR}/defaults; ${MAKE} install \
|
|
|
|
DESTDIR=${DESTDIR}/usr/share/examples
|
1999-06-24 09:45:30 +00:00
|
|
|
|
1993-06-20 13:41:45 +00:00
|
|
|
.include <bsd.prog.mk>
|