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