1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.160 1997/08/16 17:07:12 pst Exp $ 3 4# -rw-r--r-- 5BINOWN= root 6BINGRP= wheel 7BIN1= aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \ 8 ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 9 inetd.conf login.conf login.access motd modems networks \ 10 newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 11 rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \ 12 rc.shutdown etc.${MACHINE}/rc.${MACHINE} \ 13 remote security services shells \ 14 syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 15 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 16 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 17 ${.CURDIR}/../usr.bin/locate/locate/locate.rc 18 19# -rw-rw-rw- 20BIN2= motd 21 22# -rwxr-xr-x root.wheel, for the new cron root.wheel 23BIN3= netstart pccard_ether 24 25MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 26 BSD.var.dist BSD.x11.dist 27NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 28PPPCNF= ppp.conf.filter.sample ppp.conf.iij.sample ppp.conf.sample \ 29 ppp.conf.server.sample ppp.dialup.sample ppp.linkup.sample \ 30 ppp.pap.dialup.sample ppp.secret.sample ppp.deny ppp.shells.sample 31 32 33# Special top level files for FreeBSD 34COPYRIGHT= COPYRIGHT 35FREEBSD= 36FREEBSD+= ${COPYRIGHT} 37 38# Compatibility stuff, remove those links 39LATIN1LINKS = \ 40 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 41 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 42 pt_PT sv_SE 43 44all depend etc install lint: 45 46distribute: 47 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 48 49distribution: 50 (cd ${.CURDIR}; \ 51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 55 ${DESTDIR}/var/cron/log; \ 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}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \ 64 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 66 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 67 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 68 (cd ${.CURDIR}/root; \ 69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 70 ${DESTDIR}/root/.cshrc; \ 71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 72 ${DESTDIR}/root/.klogin; \ 73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 74 ${DESTDIR}/root/.login; \ 75 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 76 ${DESTDIR}/root/.profile; \ 77 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 78 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 79 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 80 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 81 ${MTREE} ${DESTDIR}/etc/mtree 82 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 83 ${NAMEDB} ${DESTDIR}/etc/namedb 84 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 85 ${PPPCNF} ${DESTDIR}/etc/ppp 86 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 87 ${DESTDIR}/etc/dumpdates 88 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 89 ${DESTDIR}/var/db/locate.database 90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 91 ${DESTDIR}/var/log/lpd-errs 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 93 ${DESTDIR}/var/log/maillog 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 95 ${DESTDIR}/var/log/lastlog 96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 97 ${DESTDIR}/var/log/messages 98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 99 ${DESTDIR}/var/log/slip.log 100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 101 ${DESTDIR}/var/log/ppp.log 102 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 103 ${DESTDIR}/var/log/wtmp 104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 105 ${DESTDIR}/var/run/utmp 106 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 107 ${DESTDIR}/var/crash 108 (cd ${.CURDIR}/..; \ 109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 110 ${DESTDIR}/) 111 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 112 113distrib-dirs: 114 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 115 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 116# Compatibility stuff, remove obsoleted links, if exists 117 if [ -d ${DESTDIR}/usr/share/locale ] ; \ 118 then \ 119 cd ${DESTDIR}/usr/share/locale; \ 120 for l in ${LATIN1LINKS} ; do \ 121 if [ -h $$l.ISO_8859-1 ]; then \ 122 rm $$l.ISO_8859-1; \ 123 fi ; \ 124 done; \ 125 fi 126 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 127 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 128 -p ${DESTDIR}/usr/include 129 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 130 cd ${DESTDIR}/usr/share/locale; \ 131 set - `cat ${.CURDIR}/locale.alias`; \ 132 while [ $$# -gt 0 ] ; \ 133 do \ 134 rm -rf "$$1"; \ 135 ln -s "$$2" "$$1"; \ 136 shift; shift; \ 137 done 138 cd ${DESTDIR}/usr/share/nls; \ 139 set - `cat ${.CURDIR}/locale.alias`; \ 140 while [ $$# -gt 0 ] ; \ 141 do \ 142 rm -rf "$$1"; \ 143 ln -s "$$2" "$$1"; \ 144 shift; shift; \ 145 done; \ 146 rm -rf POSIX; \ 147 ln -s C POSIX 148 149.include <bsd.prog.mk> 150