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
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${MK_SENDMAIL} != "no"
|
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
|
|
|
|
2012-06-12 17:02:53 +00:00
|
|
|
BIN1= crontab \
|
2012-02-17 01:21:08 +00:00
|
|
|
devd.conf \
|
|
|
|
devfs.conf \
|
|
|
|
ddb.conf \
|
|
|
|
dhclient.conf \
|
|
|
|
disktab \
|
|
|
|
fbtab \
|
|
|
|
ftpusers \
|
|
|
|
gettytab \
|
|
|
|
group \
|
|
|
|
hosts \
|
|
|
|
hosts.allow \
|
|
|
|
hosts.equiv \
|
|
|
|
inetd.conf \
|
|
|
|
libalias.conf \
|
2013-08-01 05:50:42 +00:00
|
|
|
libmap.conf \
|
2012-02-17 01:21:08 +00:00
|
|
|
login.access \
|
|
|
|
login.conf \
|
|
|
|
mac.conf \
|
|
|
|
motd \
|
|
|
|
netconfig \
|
|
|
|
network.subr \
|
|
|
|
networks \
|
|
|
|
newsyslog.conf \
|
|
|
|
nsswitch.conf \
|
|
|
|
phones \
|
|
|
|
profile \
|
|
|
|
protocols \
|
|
|
|
rc \
|
|
|
|
rc.bsdextended \
|
|
|
|
rc.firewall \
|
|
|
|
rc.initdiskless \
|
|
|
|
rc.sendmail \
|
|
|
|
rc.shutdown \
|
|
|
|
rc.subr \
|
|
|
|
remote \
|
|
|
|
rpc \
|
|
|
|
services \
|
|
|
|
shells \
|
|
|
|
sysctl.conf \
|
|
|
|
syslog.conf \
|
|
|
|
termcap.small
|
2009-11-13 11:26:44 +00:00
|
|
|
|
2013-09-08 09:46:22 +00:00
|
|
|
.if ${MACHINE} == "amd64"
|
|
|
|
BIN1+= etc.${MACHINE}/libmap32.conf
|
|
|
|
.endif
|
|
|
|
|
2009-11-13 11:26:44 +00:00
|
|
|
.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
|
|
|
|
BIN1+= etc.${MACHINE}/ttys
|
2010-06-13 16:35:20 +00:00
|
|
|
.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
|
2009-11-13 11:26:44 +00:00
|
|
|
BIN1+= etc.${MACHINE_ARCH}/ttys
|
2010-06-13 16:35:20 +00:00
|
|
|
.elif exists(${.CURDIR}/etc.${MACHINE_CPUARCH}/ttys)
|
|
|
|
BIN1+= etc.${MACHINE_CPUARCH}/ttys
|
|
|
|
.else
|
|
|
|
.error etc.MACHINE/ttys missing
|
2009-11-13 11:26:44 +00:00
|
|
|
.endif
|
2006-02-02 10:03:43 +00:00
|
|
|
|
|
|
|
OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
|
|
|
|
BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
|
|
|
|
${OPENBSMDIR}/etc/audit_event
|
|
|
|
BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
|
|
|
|
${OPENBSMDIR}/etc/audit_user
|
|
|
|
BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
|
|
|
|
BSM_ETC_DIR= ${DESTDIR}/etc/security
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
# NB: keep these sorted by MK_* knobs
|
|
|
|
|
|
|
|
.if ${MK_AMD} != "no"
|
|
|
|
BIN1+= amd.map
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_APM} != "no"
|
|
|
|
BIN1+= apmd.conf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_BSNMP} != "no"
|
|
|
|
BIN1+= snmpd.config
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_FREEBSD_UPDATE} != "no"
|
|
|
|
BIN1+= freebsd-update.conf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_LOCATE} != "no"
|
|
|
|
BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_LPR} != "no"
|
2008-09-21 22:02:26 +00:00
|
|
|
BIN1+= hosts.lpd printcap
|
2003-11-02 22:13:36 +00:00
|
|
|
.endif
|
1993-06-20 13:41:45 +00:00
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_MAIL} != "no"
|
|
|
|
BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
|
|
|
|
.endif
|
|
|
|
|
2009-06-07 13:26:57 +00:00
|
|
|
.if ${MK_NTP} != "no"
|
|
|
|
BIN1+= ntp.conf
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSH} != "no"
|
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
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2000-05-18 05:21:50 +00:00
|
|
|
SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_NS_CACHING} != "no"
|
|
|
|
BIN1+= nscd.conf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PORTSNAP} != "no"
|
|
|
|
BIN1+= portsnap.conf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PF} != "no"
|
|
|
|
BIN1+= pf.os
|
|
|
|
.endif
|
|
|
|
|
2008-10-27 16:13:28 +00:00
|
|
|
.if ${MK_TCSH} != "no"
|
|
|
|
BIN1+= csh.cshrc csh.login csh.logout
|
|
|
|
.endif
|
|
|
|
|
2008-09-22 15:37:47 +00:00
|
|
|
.if ${MK_WIRELESS} != "no"
|
|
|
|
BIN1+= regdomain.xml
|
|
|
|
.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
|
|
|
|
2009-09-02 14:54:47 +00:00
|
|
|
MTREE= BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2002-04-20 19:00:11 +00:00
|
|
|
MTREE+= BSD.sendmail.dist
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND} != "no"
|
2004-09-27 08:23:43 +00:00
|
|
|
MTREE+= BIND.chroot.dist
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND_LIBS} != "no"
|
2004-09-27 08:23:43 +00:00
|
|
|
MTREE+= BIND.include.dist
|
|
|
|
.endif
|
|
|
|
.endif
|
2013-06-07 21:40:02 +00:00
|
|
|
.if ${MK_DEBUG_FILES} != "no"
|
|
|
|
MTREE+= BSD.debug.dist
|
|
|
|
.endif
|
2002-07-05 13:39:38 +00:00
|
|
|
|
|
|
|
PPPCNF= ppp.conf
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} == "no"
|
2003-07-06 19:23:31 +00:00
|
|
|
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
|
|
|
|
2013-01-22 21:10:03 +00:00
|
|
|
# Sanitize DESTDIR
|
|
|
|
DESTDIR:= ${DESTDIR:C://*:/:g}
|
|
|
|
|
2004-01-22 08:18:37 +00:00
|
|
|
afterinstall:
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_MAN} != "no"
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
|
2004-01-22 08:18:37 +00:00
|
|
|
.endif
|
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribute:
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
|
|
|
${_+_}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"
|
2005-11-16 07:24:31 +00:00
|
|
|
CAP_MKDB_ENDIAN?= -l
|
|
|
|
PWD_MKDB_ENDIAN?= -L
|
2005-02-28 14:16:53 +00:00
|
|
|
.elif ${TARGET_ENDIANNESS} == "4321"
|
2005-11-16 07:24:31 +00:00
|
|
|
CAP_MKDB_ENDIAN?= -b
|
|
|
|
PWD_MKDB_ENDIAN?= -B
|
2005-02-28 14:16:53 +00:00
|
|
|
.else
|
2005-08-26 18:54:06 +00:00
|
|
|
CAP_MKDB_ENDIAN?=
|
|
|
|
PWD_MKDB_ENDIAN?=
|
2005-02-28 14:16:53 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-29 22:17:58 +00:00
|
|
|
.if defined(NO_ROOT)
|
|
|
|
METALOG.add?= cat -l >> ${METALOG}
|
|
|
|
.endif
|
|
|
|
|
1994-11-14 20:56:17 +00:00
|
|
|
distribution:
|
2005-07-22 10:35:35 +00:00
|
|
|
.if !defined(DESTDIR)
|
|
|
|
@echo "set DESTDIR before running \"make ${.TARGET}\""
|
|
|
|
@false
|
|
|
|
.endif
|
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 \
|
2008-10-27 16:13:28 +00:00
|
|
|
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
|
2010-03-19 11:59:02 +00:00
|
|
|
.if ${MK_AT} == "no"
|
2010-03-19 15:53:02 +00:00
|
|
|
sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
|
2010-03-19 11:59:02 +00:00
|
|
|
.endif
|
2008-10-27 16:13:28 +00:00
|
|
|
.if ${MK_TCSH} == "no"
|
2008-10-29 18:46:47 +00:00
|
|
|
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
|
2008-10-27 16:13:28 +00:00
|
|
|
.endif
|
|
|
|
pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
|
|
|
|
${DESTDIR}/etc/master.passwd
|
2013-01-29 22:17:58 +00:00
|
|
|
.if defined(NO_ROOT)
|
|
|
|
( \
|
|
|
|
echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \
|
|
|
|
echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
|
|
|
|
echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
|
|
|
|
echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
|
|
|
|
) | ${METALOG.add}
|
|
|
|
.endif
|
2012-10-22 01:18:41 +00:00
|
|
|
.if ${MK_ATF} != "no"
|
|
|
|
${_+_}cd ${.CURDIR}/atf; ${MAKE} install
|
|
|
|
.endif
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
|
2008-12-17 19:12:30 +00:00
|
|
|
${_+_}cd ${.CURDIR}/devd; ${MAKE} install
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
|
|
|
|
${_+_}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
|
2006-02-02 10:03:43 +00:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
|
|
|
|
${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
|
2006-02-12 13:01:39 +00:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
|
2006-02-02 10:03:43 +00:00
|
|
|
${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
|
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
|
|
|
|
${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
|
2007-06-18 05:44:38 +00:00
|
|
|
.if ${MK_BIND_MTREE} != "no"
|
2012-11-15 20:37:38 +00:00
|
|
|
if [ ! -e ${DESTDIR}/etc/namedb ]; then \
|
2007-06-18 05:44:38 +00:00
|
|
|
ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
.if ${MK_BIND_ETC} != "no"
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
|
2007-06-18 05:44:38 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
|
2001-03-01 03:51:18 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSH} != "no"
|
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
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
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
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_KERBEROS} != "no"
|
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
|
2008-10-27 16:13:28 +00:00
|
|
|
cd ${.CURDIR}/root; \
|
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
|
|
|
dot.profile ${DESTDIR}/root/.profile; \
|
|
|
|
rm -f ${DESTDIR}/.profile; \
|
|
|
|
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
|
|
|
.if ${MK_TCSH} != "no"
|
2003-10-03 19:38:21 +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.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; \
|
2008-10-27 16:13:28 +00:00
|
|
|
rm -f ${DESTDIR}/.cshrc; \
|
|
|
|
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
|
|
|
|
.endif
|
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
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_PPP} != "no"
|
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
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
.if ${MK_MAIL} != "no"
|
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
|
2012-11-15 20:37:38 +00:00
|
|
|
if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
|
2000-08-14 02:49:39 +00:00
|
|
|
! -f ${DESTDIR}/etc/aliases ]; then \
|
|
|
|
ln -s mail/aliases ${DESTDIR}/etc/aliases; \
|
|
|
|
fi
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
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}/
|
2010-06-16 07:52:44 +00:00
|
|
|
.if ${MK_BOOT} != "no"
|
2007-07-13 14:28:10 +00:00
|
|
|
.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
|
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
|
2007-07-13 14:28:10 +00:00
|
|
|
.endif
|
2010-06-16 07:52:44 +00:00
|
|
|
.endif
|
2011-08-10 20:52:02 +00:00
|
|
|
.if ${MK_NIS} == "no"
|
|
|
|
sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \
|
|
|
|
${DESTDIR}/etc/nsswitch.conf
|
|
|
|
.endif
|
1993-06-20 13:41:45 +00:00
|
|
|
|
2013-01-15 00:12:34 +00:00
|
|
|
MTREE_CMD?= mtree
|
|
|
|
|
2013-01-17 18:32:30 +00:00
|
|
|
MTREES= mtree/BSD.root.dist / \
|
|
|
|
mtree/BSD.var.dist /var \
|
|
|
|
mtree/BSD.usr.dist /usr \
|
|
|
|
mtree/BSD.include.dist /usr/include
|
2013-06-07 21:40:02 +00:00
|
|
|
.if ${MK_DEBUG_FILES} != "no"
|
|
|
|
MTREES+= mtree/BSD.debug.dist /usr/lib
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND_LIBS} != "no"
|
2013-01-17 18:32:30 +00:00
|
|
|
MTREES+= mtree/BIND.include.dist /usr/include
|
2004-09-28 09:46:00 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND_MTREE} != "no"
|
2013-01-17 18:32:30 +00:00
|
|
|
MTREES+= mtree/BIND.chroot.dist /var/named
|
2004-10-08 00:14:28 +00:00
|
|
|
.endif
|
2011-02-22 08:13:49 +00:00
|
|
|
.if ${MK_GROFF} != "no"
|
2013-01-17 18:32:30 +00:00
|
|
|
MTREES+= mtree/BSD.groff.dist /usr
|
2011-02-22 08:13:49 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2013-01-17 18:32:30 +00:00
|
|
|
MTREES+= mtree/BSD.sendmail.dist /
|
2002-04-20 19:00:11 +00:00
|
|
|
.endif
|
2013-01-17 18:32:30 +00:00
|
|
|
.for mtree in ${LOCAL_MTREE}
|
|
|
|
MTREES+= ../${mtree} /
|
|
|
|
.endfor
|
|
|
|
|
2013-04-30 19:26:44 +00:00
|
|
|
distrib-dirs: ${MTREES:N/*}
|
2013-01-17 18:32:30 +00:00
|
|
|
@set ${MTREES}; \
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
m=${.CURDIR}/$$1; \
|
|
|
|
shift; \
|
|
|
|
d=${DESTDIR}$$1; \
|
|
|
|
shift; \
|
|
|
|
${ECHO} ${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} \
|
|
|
|
-f $$m -p $$d; \
|
|
|
|
${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} -f $$m -p $$d; \
|
|
|
|
done; true
|
2013-01-22 21:10:03 +00:00
|
|
|
.if defined(NO_ROOT)
|
|
|
|
@set ${MTREES}; \
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
m=${.CURDIR}/$$1; \
|
|
|
|
shift; \
|
|
|
|
d=$$1; \
|
|
|
|
test "$$d" == "/" && d=""; \
|
|
|
|
d=${DISTBASE}$$d; \
|
|
|
|
shift; \
|
2013-01-30 17:39:43 +00:00
|
|
|
${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \
|
|
|
|
"sed s#^\.#.$$d# | ${METALOG.add}" ; \
|
|
|
|
${MTREE_CMD:N-W} -C -f $$m -K uname,gname | sed s#^\.#.$$d# | \
|
|
|
|
${METALOG.add} ; \
|
2013-01-22 21:10:03 +00:00
|
|
|
done; true
|
|
|
|
.endif
|
2013-02-22 19:57:18 +00:00
|
|
|
${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
|
2001-06-10 16:36:09 +00:00
|
|
|
cd ${DESTDIR}/usr/share/man; \
|
2013-01-17 20:21:30 +00:00
|
|
|
for mandir in man*; do \
|
2013-01-21 22:40:39 +00:00
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
|
|
|
${DESTDIR}/usr/share/man/en.ISO8859-1/; \
|
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
|
|
|
${DESTDIR}/usr/share/man/en.UTF-8/; \
|
2001-06-10 16:36:09 +00:00
|
|
|
done
|
2003-02-11 01:08:51 +00:00
|
|
|
cd ${DESTDIR}/usr/share/openssl/man; \
|
2013-01-17 20:21:30 +00:00
|
|
|
for mandir in man*; do \
|
2013-01-21 22:40:39 +00:00
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
2013-01-17 20:21:30 +00:00
|
|
|
${DESTDIR}/usr/share/openssl/man/en.ISO8859-1/; \
|
|
|
|
done
|
2003-02-11 01:08:51 +00:00
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
|
2013-01-17 20:21:30 +00:00
|
|
|
while [ $$# -gt 0 ] ; do \
|
2013-01-21 22:40:39 +00:00
|
|
|
${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/man/$$1"; \
|
|
|
|
${INSTALL_SYMLINK} "$$2" \
|
|
|
|
"${DESTDIR}/usr/share/openssl/man/$$1"; \
|
2003-02-11 01:08:51 +00:00
|
|
|
shift; shift; \
|
|
|
|
done
|
2001-06-10 18:44:01 +00:00
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
|
2013-01-17 20:21:30 +00:00
|
|
|
while [ $$# -gt 0 ] ; do \
|
2013-01-21 22:40:39 +00:00
|
|
|
${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/nls/$$1"; \
|
1995-10-22 00:38:16 +00:00
|
|
|
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
|
2007-10-29 07:37:08 +00:00
|
|
|
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
|
2003-08-24 03:24:54 +00:00
|
|
|
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>
|