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