summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-05 13:17:24 +0000
committerru <ru@FreeBSD.org>2002-07-05 13:17:24 +0000
commit0bcd5c6bf33e3619a234e92511f6ec39a9b0045e (patch)
tree3a7e91e5ab9e097f363d582018c76368a5e7d3df /etc
parent96c52f00c2d11bd75e83476068886312454e4822 (diff)
downloadFreeBSD-src-0bcd5c6bf33e3619a234e92511f6ec39a9b0045e.zip
FreeBSD-src-0bcd5c6bf33e3619a234e92511f6ec39a9b0045e.tar.gz
Added DEFAULTS, to denote the contents of etc/defaults/.
Once upon a time (in rev. 1.81), COPYRIGHT and FREEBSD were multi-value. Moved installation of /var/log/cron to where it belongs (this finishes the change in rev. 1.205). Removed (with extreme prejudice) a bunch of parentheses that unnecessarily obfuscated this makefile. Run pwd_mkdb(8) right after master.passwd is installed. Install nsmb.conf to /usr/share/examples/etc/.
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile72
1 files changed, 34 insertions, 38 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 65d7ec4..69f2c66 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -39,6 +39,8 @@ SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
# -rwxr-xr-x root:wheel, for the new cron root:wheel
BIN2= netstart pccard_ether rc.suspend rc.resume
+DEFAULTS= rc.conf pccard.conf periodic.conf
+
MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
BSD.var.dist BSD.x11.dist BSD.x11-4.dist
.if !defined(NO_SENDMAIL)
@@ -52,9 +54,7 @@ ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
# Special top level files for FreeBSD
-COPYRIGHT= COPYRIGHT
-FREEBSD=
-FREEBSD+= ${COPYRIGHT}
+FREEBSD=COPYRIGHT
etc:
@@ -68,45 +68,42 @@ distribute:
${DISTDIR}/${DISTRIBUTION}/boot/device.hints
distribution:
- (cd ${.CURDIR}; \
+ cd ${.CURDIR}; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
- ${DESTDIR}/var/log/cron; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
- ( 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 ); \
- pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; )
- ( cd ${.CURDIR}/pam.d; ${MAKE} install )
+ pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
+ cd ${.CURDIR}/defaults; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
+ ${DEFAULTS} ${DESTDIR}/etc/defaults
+ 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
.if !defined(NO_I4B)
- ( cd ${.CURDIR}/isdn; ${MAKE} install )
+ cd ${.CURDIR}/isdn; ${MAKE} install
.endif
.if !defined(NO_SENDMAIL)
- ( cd ${.CURDIR}/sendmail; ${MAKE} distribution );
+ cd ${.CURDIR}/sendmail; ${MAKE} distribution
.endif
.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL)
.if !defined(NO_OPENSSH)
- (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
- ${DESTDIR}/etc/ssh )
+ cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \
+ ${DESTDIR}/etc/ssh
.endif
- (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
- ${DESTDIR}/etc/ssl )
+ cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \
+ ${DESTDIR}/etc/ssl
.endif
.if !defined(NO_MAKEDEV_INSTALL)
- ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
- MAKEDEV.local MAKEDEV ${DESTDIR}/dev )
+ cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
+ MAKEDEV.local MAKEDEV ${DESTDIR}/dev
.if !defined(NO_MAKEDEV_RUN)
- (cd ${DESTDIR}/dev; sh MAKEDEV all)
+ cd ${DESTDIR}/dev; sh MAKEDEV all
.endif
.endif
- (cd ${.CURDIR}/root; \
+ cd ${.CURDIR}/root; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
${DESTDIR}/root/.cshrc; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
@@ -117,7 +114,7 @@ distribution:
${DESTDIR}/root/.profile; \
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
- ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
+ ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${MTREE} ${DESTDIR}/etc/mtree
cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
@@ -137,6 +134,8 @@ distribution:
${DESTDIR}/var/db/locate.database
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
${DESTDIR}/var/log/auth.log
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
+ ${DESTDIR}/var/log/cron
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/lpd-errs
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
@@ -157,11 +156,11 @@ distribution:
${DESTDIR}/var/run/utmp
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
${DESTDIR}/var/crash
- (cd ${.CURDIR}/..; \
+ cd ${.CURDIR}/..; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
- ${DESTDIR}/)
+ ${DESTDIR}/
.if !defined(NOMAN)
- (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
+ cd ${.CURDIR}/../share/man; ${MAKE} makedb
.endif
distrib-dirs:
@@ -214,14 +213,11 @@ distrib-dirs:
done
etc-examples:
- (cd ${.CURDIR}; \
+ cd ${.CURDIR}; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \
- opieaccess ${DESTDIR}/usr/share/examples/etc; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \
- ${DESTDIR}/usr/share/examples/etc/defaults; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \
- ${DESTDIR}/usr/share/examples/etc/defaults; \
- ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \
- ${DESTDIR}/usr/share/examples/etc/defaults)
+ nsmb.conf opieaccess ${DESTDIR}/usr/share/examples/etc
+ cd ${.CURDIR}/defaults; \
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DEFAULTS} \
+ ${DESTDIR}/usr/share/examples/etc/defaults
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud