Makefile revision 57948
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $FreeBSD: head/etc/Makefile 57948 2000-03-12 22:16:18Z rwatson $ 3 4SUBDIR= sendmail 5 6BIN1= aliases amd.map apmd.conf auth.conf \ 7 crontab csh.cshrc csh.login csh.logout \ 8 dhclient.conf dm.conf fbtab ftpusers gettytab group \ 9 hosts hosts.allow host.conf hosts.equiv hosts.lpd \ 10 inetd.conf login.access login.conf \ 11 motd modems networks newsyslog.conf \ 12 pam.conf pccard.conf.sample phones printcap profile protocols \ 13 rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \ 14 rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.sysctl \ 15 remote rpc security services shells syslog.conf usbd.conf \ 16 etc.${MACHINE_ARCH}/disktab \ 17 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 18 etc.${MACHINE_ARCH}/ttys \ 19 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 20 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 21 ${.CURDIR}/../usr.bin/locate/locate/locate.rc 22 23.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 24SSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 25 ${.CURDIR}/../crypto/openssh/sshd_config 26.endif 27 28# -rwxr-xr-x root.wheel, for the new cron root.wheel 29BIN2= netstart pccard_ether rc.suspend rc.resume 30 31MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 32 BSD.var.dist BSD.x11.dist 33NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 34PPPCNF= ppp.deny ppp.shells.sample 35PPPCF2= ppp.conf 36NOSPAM= Makefile README mailer.conf access.sample virtusertable.sample \ 37 mailertable.sample 38 39 40# Special top level files for FreeBSD 41COPYRIGHT= COPYRIGHT 42FREEBSD= 43FREEBSD+= ${COPYRIGHT} 44 45etc: 46 47distribute: 48 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 49.if defined(OBJFORMAT) 50 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 51.endif 52 @echo 53 54distribution: 55 (cd ${.CURDIR}; \ 56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 57 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 58 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 59 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 60 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 61 ${DESTDIR}/var/log/cron; \ 62 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 63 master.passwd ${DESTDIR}/etc; \ 64 ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 65 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 66 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 67 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 68 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 69 ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \ 70 ( cd ${.CURDIR}/isdn; ${MAKE} install ); \ 71 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 73 MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 74.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 75 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 76 ${DESTDIR}/etc/ssh ) 77.endif 78.if !defined(NO_MAKEDEV) 79 (cd ${DESTDIR}/dev; sh MAKEDEV all) 80.endif 81 (cd ${.CURDIR}/root; \ 82 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 83 ${DESTDIR}/root/.cshrc; \ 84 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 85 ${DESTDIR}/root/.klogin; \ 86 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 87 ${DESTDIR}/root/.login; \ 88 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 89 ${DESTDIR}/root/.profile; \ 90 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 91 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 92 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 93 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 94 ${MTREE} ${DESTDIR}/etc/mtree 95 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 96 ${NAMEDB} ${DESTDIR}/etc/namedb 97 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 98 ${PPPCNF} ${DESTDIR}/etc/ppp 99 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 100 ${PPPCF2} ${DESTDIR}/etc/ppp 101 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 102 ${NOSPAM} ${DESTDIR}/etc/mail 103 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 104 ${DESTDIR}/etc/dumpdates 105 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 106 ${DESTDIR}/var/db/locate.database 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 108 ${DESTDIR}/var/log/lpd-errs 109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 110 ${DESTDIR}/var/log/maillog 111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 112 ${DESTDIR}/var/log/lastlog 113 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 114 ${DESTDIR}/var/log/messages 115 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 116 ${DESTDIR}/var/log/security 117 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 118 ${DESTDIR}/var/log/slip.log 119 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 120 ${DESTDIR}/var/log/ppp.log 121 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 122 ${DESTDIR}/var/log/wtmp 123 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 124 ${DESTDIR}/var/run/utmp 125 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 126 ${DESTDIR}/var/crash 127 (cd ${.CURDIR}/..; \ 128 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 129 ${DESTDIR}/) 130 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 131 132distrib-dirs: 133 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 134 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 135 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 136 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 137 -p ${DESTDIR}/usr/include 138 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 139 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach 140 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 141 cd ${DESTDIR}/usr/share/locale; \ 142 set - `cat ${.CURDIR}/locale.alias`; \ 143 while [ $$# -gt 0 ] ; \ 144 do \ 145 rm -rf "$$1"; \ 146 ln -s "$$2" "$$1"; \ 147 shift; shift; \ 148 done 149 cd ${DESTDIR}/usr/share/nls; \ 150 set - `cat ${.CURDIR}/locale.alias`; \ 151 while [ $$# -gt 0 ] ; \ 152 do \ 153 rm -rf "$$1"; \ 154 ln -s "$$2" "$$1"; \ 155 shift; shift; \ 156 done; \ 157 rm -rf POSIX; \ 158 ln -s C POSIX 159 160etc-examples: 161 (cd ${.CURDIR}; \ 162 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 163 ${DESTDIR}/usr/share/examples/etc; \ 164 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 165 ${DESTDIR}/usr/share/examples/etc/defaults; \ 166 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 167 ${DESTDIR}/usr/share/examples/etc/defaults) 168 169.include <bsd.prog.mk> 170