1994-02-21 16:53:20 -05:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
|
1999-08-27 19:37:10 -04:00
|
|
|
# $FreeBSD$
|
1998-08-04 11:54:27 -04:00
|
|
|
|
2014-05-06 00:22:01 -04:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 13:54:44 -05:00
|
|
|
|
2016-02-02 12:33:37 -05:00
|
|
|
FILESGROUPS= FILES
|
|
|
|
|
|
2016-03-11 18:45:09 -05:00
|
|
|
# No need as it is empty and just causes rebuilds since this file does so much.
|
|
|
|
|
UPDATE_DEPENDFILE= no
|
2015-01-22 18:50:47 -05:00
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2015-01-22 18:50:47 -05:00
|
|
|
SUBDIR+=sendmail
|
2001-02-28 22:51:18 -05:00
|
|
|
.endif
|
1993-06-20 09:41:45 -04:00
|
|
|
|
2015-01-26 02:15:49 -05:00
|
|
|
BIN1= crontab \
|
2012-02-16 20:21:08 -05:00
|
|
|
devd.conf \
|
|
|
|
|
devfs.conf \
|
|
|
|
|
ddb.conf \
|
|
|
|
|
dhclient.conf \
|
|
|
|
|
disktab \
|
|
|
|
|
fbtab \
|
|
|
|
|
gettytab \
|
|
|
|
|
group \
|
|
|
|
|
hosts \
|
|
|
|
|
hosts.allow \
|
|
|
|
|
hosts.equiv \
|
|
|
|
|
libalias.conf \
|
2013-08-01 01:50:42 -04:00
|
|
|
libmap.conf \
|
2012-02-16 20:21:08 -05: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.shutdown \
|
|
|
|
|
rc.subr \
|
|
|
|
|
remote \
|
|
|
|
|
rpc \
|
|
|
|
|
services \
|
|
|
|
|
shells \
|
|
|
|
|
sysctl.conf \
|
|
|
|
|
syslog.conf \
|
|
|
|
|
termcap.small
|
2009-11-13 06:26:44 -05:00
|
|
|
|
|
|
|
|
.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
|
|
|
|
|
BIN1+= etc.${MACHINE}/ttys
|
2010-06-13 12:35:20 -04:00
|
|
|
.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
|
2009-11-13 06:26:44 -05:00
|
|
|
BIN1+= etc.${MACHINE_ARCH}/ttys
|
2010-06-13 12:35:20 -04:00
|
|
|
.elif exists(${.CURDIR}/etc.${MACHINE_CPUARCH}/ttys)
|
|
|
|
|
BIN1+= etc.${MACHINE_CPUARCH}/ttys
|
|
|
|
|
.else
|
|
|
|
|
.error etc.MACHINE/ttys missing
|
2009-11-13 06:26:44 -05:00
|
|
|
.endif
|
2006-02-02 05:03:43 -05:00
|
|
|
|
2017-03-12 14:58:55 -04:00
|
|
|
OPENBSMDIR= ${SRCTOP}/contrib/openbsm
|
2006-02-02 05:03:43 -05:00
|
|
|
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 18:02:26 -04:00
|
|
|
# NB: keep these sorted by MK_* knobs
|
|
|
|
|
|
|
|
|
|
.if ${MK_AMD} != "no"
|
|
|
|
|
BIN1+= amd.map
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_APM} != "no"
|
|
|
|
|
BIN1+= apmd.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2015-01-26 02:15:49 -05:00
|
|
|
.if ${MK_AUTOFS} != "no"
|
2016-04-16 23:45:45 -04:00
|
|
|
BIN1+= auto_master
|
2015-01-26 02:15:49 -05:00
|
|
|
.endif
|
|
|
|
|
|
2016-06-07 12:31:03 -04:00
|
|
|
.if ${MK_BLACKLIST} != "no"
|
2016-06-02 15:06:04 -04:00
|
|
|
BIN1+= blacklistd.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_FREEBSD_UPDATE} != "no"
|
|
|
|
|
BIN1+= freebsd-update.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2015-02-04 05:19:32 -05:00
|
|
|
.if ${MK_FTP} != "no"
|
|
|
|
|
BIN1+= ftpusers
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_INETD} != "no"
|
|
|
|
|
BIN1+= inetd.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_LOCATE} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
BIN1+= ${SRCTOP}/usr.bin/locate/locate/locate.rc
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_LPR} != "no"
|
2008-09-21 18:02:26 -04:00
|
|
|
BIN1+= hosts.lpd printcap
|
2003-11-02 17:13:36 -05:00
|
|
|
.endif
|
1993-06-20 09:41:45 -04:00
|
|
|
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_MAIL} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
BIN1+= ${SRCTOP}/usr.bin/mail/misc/mail.rc
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
2009-06-07 09:26:57 -04:00
|
|
|
.if ${MK_NTP} != "no"
|
|
|
|
|
BIN1+= ntp.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSH} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
SSH= ${SRCTOP}/crypto/openssh/ssh_config \
|
|
|
|
|
${SRCTOP}/crypto/openssh/sshd_config \
|
|
|
|
|
${SRCTOP}/crypto/openssh/moduli
|
2000-02-24 18:12:04 -05:00
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
SSL= ${SRCTOP}/crypto/openssl/apps/openssl.cnf
|
2000-05-18 01:21:50 -04:00
|
|
|
.endif
|
|
|
|
|
|
2008-09-21 18:02:26 -04: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
|
|
|
|
|
|
2015-02-05 06:42:59 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2016-04-16 23:45:45 -04:00
|
|
|
BIN1+= rc.sendmail
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
|
|
|
|
|
2008-10-27 12:13:28 -04:00
|
|
|
.if ${MK_TCSH} != "no"
|
|
|
|
|
BIN1+= csh.cshrc csh.login csh.logout
|
|
|
|
|
.endif
|
|
|
|
|
|
2008-09-22 11:37:47 -04:00
|
|
|
.if ${MK_WIRELESS} != "no"
|
|
|
|
|
BIN1+= regdomain.xml
|
|
|
|
|
.endif
|
|
|
|
|
|
2001-08-29 15:59:30 -04:00
|
|
|
# -rwxr-xr-x root:wheel, for the new cron root:wheel
|
2002-12-17 16:23:36 -05:00
|
|
|
BIN2= netstart pccard_ether rc.suspend rc.resume
|
1993-07-19 14:54:09 -04:00
|
|
|
|
2015-02-24 14:27:51 -05:00
|
|
|
MTREE= BSD.debug.dist BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
|
2015-10-20 16:35:34 -04:00
|
|
|
.if ${MK_LIB32} != "no"
|
|
|
|
|
MTREE+= BSD.lib32.dist
|
|
|
|
|
.endif
|
2016-01-02 23:32:05 -05:00
|
|
|
.if ${MK_LIBSOFT} != "no"
|
|
|
|
|
MTREE+= BSD.libsoft.dist
|
|
|
|
|
.endif
|
2013-10-25 01:25:19 -04:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
|
MTREE+= BSD.tests.dist
|
|
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2002-04-20 15:00:11 -04:00
|
|
|
MTREE+= BSD.sendmail.dist
|
|
|
|
|
.endif
|
2002-07-05 09:39:38 -04:00
|
|
|
|
|
|
|
|
PPPCNF= ppp.conf
|
|
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} == "no"
|
2003-07-06 15:23:31 -04:00
|
|
|
ETCMAIL=mailer.conf aliases
|
|
|
|
|
.else
|
2000-08-13 05:01:12 -04:00
|
|
|
ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
|
|
|
|
|
mailertable.sample aliases
|
2003-07-06 15:23:31 -04:00
|
|
|
.endif
|
1993-06-20 09:41:45 -04:00
|
|
|
|
1993-08-09 13:02:17 -04:00
|
|
|
# Special top level files for FreeBSD
|
2002-07-05 09:17:24 -04:00
|
|
|
FREEBSD=COPYRIGHT
|
1993-08-27 23:33:06 -04:00
|
|
|
|
2013-01-22 16:10:03 -05:00
|
|
|
# Sanitize DESTDIR
|
|
|
|
|
DESTDIR:= ${DESTDIR:C://*:/:g}
|
|
|
|
|
|
2004-01-22 03:18:37 -05:00
|
|
|
afterinstall:
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_MAN} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
${_+_}cd ${SRCTOP}/share/man; ${MAKE} makedb
|
2004-01-22 03:18:37 -05:00
|
|
|
.endif
|
|
|
|
|
|
1994-11-14 15:56:17 -05:00
|
|
|
distribute:
|
2014-06-10 13:04:30 -04:00
|
|
|
# Avoid installing tests here; "make distribution" will do this and
|
|
|
|
|
# correctly place them in the right location.
|
|
|
|
|
${_+_}cd ${.CURDIR} ; ${MAKE} MK_TESTS=no install \
|
|
|
|
|
DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
|
1995-01-26 21:20:42 -05:00
|
|
|
|
2005-02-28 09:16:53 -05:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
|
.if ${TARGET_ENDIANNESS} == "1234"
|
2005-11-16 02:24:31 -05:00
|
|
|
CAP_MKDB_ENDIAN?= -l
|
2005-02-28 09:16:53 -05:00
|
|
|
.elif ${TARGET_ENDIANNESS} == "4321"
|
2005-11-16 02:24:31 -05:00
|
|
|
CAP_MKDB_ENDIAN?= -b
|
2005-02-28 09:16:53 -05:00
|
|
|
.else
|
2005-08-26 14:54:06 -04:00
|
|
|
CAP_MKDB_ENDIAN?=
|
2005-02-28 09:16:53 -05:00
|
|
|
.endif
|
|
|
|
|
|
2013-01-29 17:17:58 -05:00
|
|
|
.if defined(NO_ROOT)
|
|
|
|
|
METALOG.add?= cat -l >> ${METALOG}
|
|
|
|
|
.endif
|
|
|
|
|
|
1994-11-14 15:56:17 -05:00
|
|
|
distribution:
|
2005-07-22 06:35:35 -04:00
|
|
|
.if !defined(DESTDIR)
|
|
|
|
|
@echo "set DESTDIR before running \"make ${.TARGET}\""
|
|
|
|
|
@false
|
|
|
|
|
.endif
|
2002-07-05 09:17:24 -04:00
|
|
|
cd ${.CURDIR}; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${BIN1} ${DESTDIR}/etc; \
|
2005-02-28 09:16:53 -05:00
|
|
|
cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
|
2015-06-04 11:02:05 -04:00
|
|
|
services_mkdb ${CAP_MKDB_ENDIAN} -q -o ${DESTDIR}/var/db/services.db \
|
|
|
|
|
${DESTDIR}/etc/services; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${BIN2} ${DESTDIR}/etc; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
2008-10-27 12:13:28 -04:00
|
|
|
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
|
2016-01-14 05:25:18 -05:00
|
|
|
.if ${MK_BSNMP} != "no"
|
|
|
|
|
cd ${.CURDIR}; \
|
|
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
|
|
|
|
snmpd.config ${DESTDIR}/etc;
|
|
|
|
|
.endif
|
2010-03-19 07:59:02 -04:00
|
|
|
.if ${MK_AT} == "no"
|
2010-03-19 11:53:02 -04:00
|
|
|
sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
|
2010-03-19 07:59:02 -04:00
|
|
|
.endif
|
2008-10-27 12:13:28 -04:00
|
|
|
.if ${MK_TCSH} == "no"
|
2008-10-29 14:46:47 -04:00
|
|
|
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
|
2008-10-27 12:13:28 -04:00
|
|
|
.endif
|
2015-06-04 04:05:44 -04:00
|
|
|
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
|
2013-01-29 17:17:58 -05: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
|
2015-01-26 02:15:49 -05:00
|
|
|
.if ${MK_AUTOFS} != "no"
|
2014-08-17 05:44:42 -04:00
|
|
|
${_+_}cd ${.CURDIR}/autofs; ${MAKE} install
|
2015-01-26 02:15:49 -05:00
|
|
|
.endif
|
2008-09-21 18:02:26 -04:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
|
2013-12-02 03:21:28 -05:00
|
|
|
.endif
|
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
|
|
|
${_+_}cd ${.CURDIR}/casper; ${MAKE} install
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
2017-05-19 13:04:01 -04:00
|
|
|
${_+_}cd ${.CURDIR}/cron.d; ${MAKE} install
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
|
2008-12-17 14:12:30 -05:00
|
|
|
${_+_}cd ${.CURDIR}/devd; ${MAKE} install
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
|
2017-05-19 13:04:01 -04:00
|
|
|
${_+_}cd ${.CURDIR}/newsyslog.conf.d; ${MAKE} install
|
2015-10-16 10:04:16 -04:00
|
|
|
.if ${MK_NTP} != "no"
|
|
|
|
|
${_+_}cd ${.CURDIR}/ntp; ${MAKE} install
|
|
|
|
|
.endif
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
|
2015-02-05 06:42:59 -05:00
|
|
|
.if ${MK_PKGBOOTSTRAP} != "no"
|
2013-10-25 23:31:05 -04:00
|
|
|
${_+_}cd ${.CURDIR}/pkg; ${MAKE} install
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
|
2017-03-12 14:58:55 -04:00
|
|
|
${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap
|
2017-05-19 13:04:01 -04:00
|
|
|
${_+_}cd ${.CURDIR}/syslog.d; ${MAKE} install
|
2017-03-12 14:58:55 -04:00
|
|
|
${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
|
2006-02-02 05:03:43 -05:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
|
|
|
|
|
${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
|
2006-02-12 08:01:39 -05:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
|
2006-02-02 05:03:43 -05:00
|
|
|
${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
|
|
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
|
|
|
|
|
${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
|
2013-09-24 06:04:51 -04:00
|
|
|
.if ${MK_UNBOUND} != "no"
|
|
|
|
|
if [ ! -e ${DESTDIR}/etc/unbound ]; then \
|
|
|
|
|
${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound; \
|
|
|
|
|
fi
|
|
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2007-10-29 03:37:08 -04:00
|
|
|
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
|
2001-02-28 22:51:18 -05:00
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSH} != "no"
|
2002-07-29 05:40:17 -04:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${SSH} ${DESTDIR}/etc/ssh
|
2000-02-25 09:27:33 -05:00
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2002-07-29 05:40:17 -04:00
|
|
|
cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${SSL} ${DESTDIR}/etc/ssl
|
2000-02-08 23:08:18 -05:00
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_KERBEROS} != "no"
|
2002-07-05 09:17:24 -04:00
|
|
|
cd ${.CURDIR}/root; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2003-10-03 15:38:21 -04:00
|
|
|
dot.k5login ${DESTDIR}/root/.k5login;
|
|
|
|
|
.endif
|
2008-10-27 12:13:28 -04: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 15:38:21 -04:00
|
|
|
cd ${.CURDIR}/root; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2003-10-03 15:38:21 -04:00
|
|
|
dot.cshrc ${DESTDIR}/root/.cshrc; \
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2002-07-05 09:39:38 -04:00
|
|
|
dot.login ${DESTDIR}/root/.login; \
|
2008-10-27 12:13:28 -04:00
|
|
|
rm -f ${DESTDIR}/.cshrc; \
|
|
|
|
|
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
|
|
|
|
|
.endif
|
2002-07-29 05:40:17 -04:00
|
|
|
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1994-06-15 16:14:29 -04:00
|
|
|
${MTREE} ${DESTDIR}/etc/mtree
|
2014-11-29 17:31:19 -05:00
|
|
|
.if ${MK_MAIL} != "no"
|
2002-07-29 05:40:17 -04:00
|
|
|
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
2000-08-13 05:01:12 -04:00
|
|
|
${ETCMAIL} ${DESTDIR}/etc/mail
|
2012-11-15 15:37:38 -05:00
|
|
|
if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
|
2000-08-13 22:49:39 -04:00
|
|
|
! -f ${DESTDIR}/etc/aliases ]; then \
|
|
|
|
|
ln -s mail/aliases ${DESTDIR}/etc/aliases; \
|
|
|
|
|
fi
|
2008-09-21 18:02:26 -04:00
|
|
|
.endif
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
|
1993-06-20 09:41:45 -04:00
|
|
|
${DESTDIR}/etc/dumpdates
|
2015-02-05 06:42:59 -05:00
|
|
|
.if ${MK_LOCATE} != "no"
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
|
1993-07-19 14:54:09 -04:00
|
|
|
${DESTDIR}/var/db/locate.database
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
2002-07-29 05:40:17 -04:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
|
1994-06-19 23:39:59 -04:00
|
|
|
${DESTDIR}/var/crash
|
2002-07-29 05:40:17 -04:00
|
|
|
cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${FREEBSD} ${DESTDIR}/
|
2010-06-16 03:52:44 -04:00
|
|
|
.if ${MK_BOOT} != "no"
|
2017-03-12 14:58:55 -04:00
|
|
|
.if exists(${SRCTOP}/sys/${MACHINE}/conf/GENERIC.hints)
|
2004-03-14 12:18:39 -05:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2017-03-12 14:58:55 -04:00
|
|
|
${SRCTOP}/sys/${MACHINE}/conf/GENERIC.hints \
|
2004-03-14 12:18:39 -05:00
|
|
|
${DESTDIR}/boot/device.hints
|
2007-07-13 10:28:10 -04:00
|
|
|
.endif
|
2010-06-16 03:52:44 -04:00
|
|
|
.endif
|
2011-08-10 16:52:02 -04:00
|
|
|
.if ${MK_NIS} == "no"
|
|
|
|
|
sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \
|
|
|
|
|
${DESTDIR}/etc/nsswitch.conf
|
|
|
|
|
.endif
|
1993-06-20 09:41:45 -04:00
|
|
|
|
2013-01-14 19:12:34 -05:00
|
|
|
MTREE_CMD?= mtree
|
|
|
|
|
|
2013-01-17 13:32:30 -05:00
|
|
|
MTREES= mtree/BSD.root.dist / \
|
|
|
|
|
mtree/BSD.var.dist /var \
|
|
|
|
|
mtree/BSD.usr.dist /usr \
|
2015-02-24 14:27:51 -05:00
|
|
|
mtree/BSD.include.dist /usr/include \
|
|
|
|
|
mtree/BSD.debug.dist /usr/lib
|
2015-10-20 16:35:34 -04:00
|
|
|
.if ${MK_LIB32} != "no"
|
|
|
|
|
MTREES+= mtree/BSD.lib32.dist /usr
|
|
|
|
|
MTREES+= mtree/BSD.lib32.dist /usr/lib/debug/usr
|
|
|
|
|
.endif
|
2016-01-02 23:32:05 -05:00
|
|
|
.if ${MK_LIBSOFT} != "no"
|
|
|
|
|
MTREES+= mtree/BSD.libsoft.dist /usr
|
|
|
|
|
MTREES+= mtree/BSD.libsoft.dist /usr/lib/debug/usr
|
|
|
|
|
.endif
|
2013-10-25 01:25:19 -04:00
|
|
|
.if ${MK_TESTS} != "no"
|
2014-12-18 13:16:00 -05:00
|
|
|
MTREES+= mtree/BSD.tests.dist ${TESTSBASE}
|
2015-10-14 21:46:55 -04:00
|
|
|
MTREES+= mtree/BSD.tests.dist /usr/lib/debug/${TESTSBASE}
|
2013-10-25 01:25:19 -04:00
|
|
|
.endif
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2013-01-17 13:32:30 -05:00
|
|
|
MTREES+= mtree/BSD.sendmail.dist /
|
2002-04-20 15:00:11 -04:00
|
|
|
.endif
|
2013-01-17 13:32:30 -05:00
|
|
|
.for mtree in ${LOCAL_MTREE}
|
|
|
|
|
MTREES+= ../${mtree} /
|
|
|
|
|
.endfor
|
|
|
|
|
|
2015-11-13 12:25:20 -05:00
|
|
|
# Clean up some directories that where mistakenly created as files that
|
|
|
|
|
# should not have been as part of the nvi update in r281994.
|
|
|
|
|
# This should be removed after 11.0-RELEASE.
|
|
|
|
|
DISTRIB_CLEANUP_SHARE_FILES= ${SHAREDIR}/doc/usd/10.exref ${SHAREDIR}/doc/usd/11.edit
|
|
|
|
|
DISTRIB_CLEANUP_SHARE_FILES+= ${SHAREDIR}/doc/usd/12.vi ${SHAREDIR}/doc/usd/13.viref
|
|
|
|
|
distrib-cleanup: .PHONY
|
|
|
|
|
for file in ${DISTRIB_CLEANUP_SHARE_FILES}; do \
|
|
|
|
|
if [ -f ${DESTDIR}/$${file} ]; then \
|
|
|
|
|
rm -f ${DESTDIR}/$${file}; \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
distrib-dirs: ${MTREES:N/*} distrib-cleanup .PHONY
|
2013-01-17 13:32:30 -05:00
|
|
|
@set ${MTREES}; \
|
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
|
m=${.CURDIR}/$$1; \
|
|
|
|
|
shift; \
|
|
|
|
|
d=${DESTDIR}$$1; \
|
|
|
|
|
shift; \
|
2014-12-18 13:16:00 -05:00
|
|
|
test -d $$d || mkdir -p $$d; \
|
2015-11-12 12:11:03 -05:00
|
|
|
${ECHO} ${MTREE_CMD} -deU ${MTREE_FSCHG} \
|
|
|
|
|
${MTREE_FOLLOWS_SYMLINKS} -f $$m -p $$d; \
|
2013-10-16 12:03:01 -04:00
|
|
|
${MTREE_FILTER} $$m | \
|
2015-11-12 12:11:03 -05:00
|
|
|
${MTREE_CMD} -deU ${MTREE_FSCHG} ${MTREE_FOLLOWS_SYMLINKS} \
|
|
|
|
|
-p $$d; \
|
2013-01-17 13:32:30 -05:00
|
|
|
done; true
|
2013-01-22 16:10:03 -05: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; \
|
2015-04-06 04:37:40 -04:00
|
|
|
test -d ${DESTDIR}/$$d || mkdir -p ${DESTDIR}/$$d; \
|
2013-01-30 12:39:43 -05:00
|
|
|
${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \
|
|
|
|
|
"sed s#^\.#.$$d# | ${METALOG.add}" ; \
|
2013-10-16 12:03:01 -04:00
|
|
|
${MTREE_FILTER} $$m | \
|
|
|
|
|
${MTREE_CMD:N-W} -C -K uname,gname | sed s#^\.#.$$d# | \
|
2013-01-30 12:39:43 -05:00
|
|
|
${METALOG.add} ; \
|
2013-01-22 16:10:03 -05:00
|
|
|
done; true
|
|
|
|
|
.endif
|
2015-12-01 01:22:27 -05:00
|
|
|
${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
|
2015-02-05 06:42:59 -05:00
|
|
|
.if ${MK_MAN} != "no"
|
2015-10-27 19:35:02 -04:00
|
|
|
cd ${DESTDIR}${SHAREDIR}/man; \
|
2013-01-17 15:21:30 -05:00
|
|
|
for mandir in man*; do \
|
2013-01-21 17:40:39 -05:00
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
2015-10-27 19:35:02 -04:00
|
|
|
${DESTDIR}${SHAREDIR}/man/en.ISO8859-1/; \
|
2013-01-21 17:40:39 -05:00
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
2015-10-27 19:35:02 -04:00
|
|
|
${DESTDIR}${SHAREDIR}/man/en.UTF-8/; \
|
2001-06-10 12:36:09 -04:00
|
|
|
done
|
2015-02-05 06:42:59 -05:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2015-10-27 19:35:02 -04:00
|
|
|
cd ${DESTDIR}${SHAREDIR}/openssl/man; \
|
2013-01-17 15:21:30 -05:00
|
|
|
for mandir in man*; do \
|
2013-01-21 17:40:39 -05:00
|
|
|
${INSTALL_SYMLINK} ../$$mandir \
|
2015-10-27 19:35:02 -04:00
|
|
|
${DESTDIR}${SHAREDIR}/openssl/man/en.ISO8859-1/; \
|
2013-01-17 15:21:30 -05:00
|
|
|
done
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
2003-02-10 20:08:51 -05:00
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
|
2013-01-17 15:21:30 -05:00
|
|
|
while [ $$# -gt 0 ] ; do \
|
2015-10-27 19:35:02 -04:00
|
|
|
${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/man/$$1"; \
|
2015-02-05 06:42:59 -05:00
|
|
|
if [ "${MK_OPENSSL}" != "no" ]; then \
|
|
|
|
|
${INSTALL_SYMLINK} "$$2" \
|
2015-10-27 19:35:02 -04:00
|
|
|
"${DESTDIR}${SHAREDIR}/openssl/man/$$1"; \
|
2015-02-05 06:42:59 -05:00
|
|
|
fi; \
|
2003-02-10 20:08:51 -05:00
|
|
|
shift; shift; \
|
|
|
|
|
done
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
|
|
|
|
.if ${MK_NLS} != "no"
|
2001-06-10 14:44:01 -04:00
|
|
|
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
|
2013-01-17 15:21:30 -05:00
|
|
|
while [ $$# -gt 0 ] ; do \
|
2015-10-27 19:35:02 -04:00
|
|
|
${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \
|
1995-10-21 20:38:16 -04:00
|
|
|
shift; shift; \
|
2001-06-10 14:44:01 -04:00
|
|
|
done
|
2015-02-05 06:42:59 -05:00
|
|
|
.endif
|
1993-07-19 14:54:09 -04:00
|
|
|
|
2016-03-11 18:45:28 -05:00
|
|
|
etc-examples-install: ${META_DEPS}
|
2016-10-31 17:11:46 -04:00
|
|
|
cd ${.CURDIR}; ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2002-07-05 09:39:38 -04:00
|
|
|
${BIN1} ${BIN2} nsmb.conf opieaccess \
|
2015-10-27 19:35:02 -04:00
|
|
|
${DESTDIR}${SHAREDIR}/examples/etc
|
2016-03-11 18:45:09 -05:00
|
|
|
|
|
|
|
|
etc-examples: etc-examples-install
|
|
|
|
|
${_+_}cd ${.CURDIR}/defaults; \
|
|
|
|
|
${MAKE} ${${MK_STAGING} == "yes":?all:install} \
|
2015-10-27 19:35:02 -04:00
|
|
|
DESTDIR=${DESTDIR}${SHAREDIR}/examples
|
1999-06-24 05:45:30 -04:00
|
|
|
|
1993-06-20 09:41:45 -04:00
|
|
|
.include <bsd.prog.mk>
|
2017-07-10 19:52:07 -04:00
|
|
|
|
|
|
|
|
.if ${MK_INSTALL_AS_USER} == "yes" && ${_uid} != 0
|
|
|
|
|
MTREE_FILTER= sed -e 's,\([gu]\)name=,\1id=,g' \
|
|
|
|
|
-e 's,\(uid=\)[^ ]* ,\1${_uid} ,' \
|
|
|
|
|
-e 's,\(gid=\)[^ ]* ,\1${_gid} ,' \
|
|
|
|
|
-e 's,\(uid=\)[^ ]*$$,\1${_uid},' \
|
|
|
|
|
-e 's,\(gid=\)[^ ]*$$,\1${_gid},'
|
|
|
|
|
.else
|
|
|
|
|
MTREE_FILTER= cat
|
|
|
|
|
.if !defined(NO_FSCHG)
|
|
|
|
|
MTREE_FSCHG= -i
|
|
|
|
|
.endif
|
|
|
|
|
.endif
|