[Midnightbsd-cvs] src [10764] trunk/etc/Makefile: make a few things conditional.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 9 22:07:35 EDT 2018
Revision: 10764
http://svnweb.midnightbsd.org/src/?rev=10764
Author: laffer1
Date: 2018-06-09 22:07:34 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
make a few things conditional.
Modified Paths:
--------------
trunk/etc/Makefile
Modified: trunk/etc/Makefile
===================================================================
--- trunk/etc/Makefile 2018-06-10 02:02:19 UTC (rev 10763)
+++ trunk/etc/Makefile 2018-06-10 02:07:34 UTC (rev 10764)
@@ -16,13 +16,11 @@
disktab \
doas.conf \
fbtab \
- ftpusers \
gettytab \
group \
hosts \
hosts.allow \
hosts.equiv \
- inetd.conf \
libalias.conf \
libmap.conf \
login.access \
@@ -41,7 +39,6 @@
rc.bsdextended \
rc.firewall \
rc.initdiskless \
- rc.sendmail \
rc.shutdown \
rc.subr \
remote \
@@ -50,8 +47,12 @@
shells \
sysctl.conf \
syslog.conf \
- termcap.small
+ termcap.small \
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
+BIN1+= libmap32.conf
+.endif
+
.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
BIN1+= etc.${MACHINE}/ttys
.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
@@ -80,6 +81,18 @@
BIN1+= apmd.conf
.endif
+.if ${MK_AUTOFS} != "no"
+BIN1+= auto_master
+.endif
+
+.if ${MK_FTP} != "no"
+BIN1+= ftpusers
+.endif
+
+.if ${MK_INETD} != "no"
+BIN1+= inetd.conf
+.endif
+
.if ${MK_LOCATE} != "no"
BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
.endif
@@ -110,9 +123,13 @@
.endif
.if ${MK_PF} != "no"
-BIN1+= pf.conf pf.os
+BIN1+= pf.os
.endif
+.if ${MK_SENDMAIL} != "no"
+BIN1+= rc.sendmail
+.endif
+
.if ${MK_TCSH} != "no"
BIN1+= csh.cshrc csh.login csh.logout
.endif
@@ -154,7 +171,7 @@
.endif
distribute:
- ${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
+ ${_+_}cd ${.CURDIR} ; ${MAKE} -DNO_TESTS install DESTDIR=${DISTDIR}/${DISTRIBUTION}
${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
.include <bsd.endian.mk>
@@ -207,6 +224,9 @@
echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
) | ${METALOG.add}
.endif
+.if ${MK_AUTOFS} != "no"
+ ${_+_}cd ${.CURDIR}/autofs; ${MAKE} install
+.endif
.if ${MK_BLUETOOTH} != "no"
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
.endif
@@ -213,6 +233,7 @@
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
${_+_}cd ${.CURDIR}/devd; ${MAKE} install
${_+_}cd ${.CURDIR}/gss; ${MAKE} install
+ ${_+_}cd ${.CURDIR}/newsyslog.conf.d; ${MAKE} install
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
@@ -233,7 +254,7 @@
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
.endif
.if ${MK_OPENSSH} != "no"
- ${_+_}cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
+ cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${SSH} ${DESTDIR}/etc/ssh
.endif
.if ${MK_OPENSSL} != "no"
More information about the Midnightbsd-cvs
mailing list