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