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