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