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 exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 89 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 90 ${DESTDIR}/etc/ssh ) 91.endif 92.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 93 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 94 ${DESTDIR}/etc/ssl ) 95.endif 96.if !defined(NO_MAKEDEV_INSTALL) 97 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 98 MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 99.if !defined(NO_MAKEDEV_RUN) 100 (cd ${DESTDIR}/dev; sh MAKEDEV all) 101.endif 102.endif 103 (cd ${.CURDIR}/root; \ 104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 105 ${DESTDIR}/root/.cshrc; \ 106 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 107 ${DESTDIR}/root/.klogin; \ 108 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 109 ${DESTDIR}/root/.login; \ 110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 111 ${DESTDIR}/root/.profile; \ 112 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 113 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 114 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 115 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 116 ${MTREE} ${DESTDIR}/etc/mtree 117 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 118 ${NAMEDB} ${DESTDIR}/etc/namedb 119 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 120 ${PPPCNF} ${DESTDIR}/etc/ppp 121 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 122 ${PPPCF2} ${DESTDIR}/etc/ppp 123 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 124 ${ETCMAIL} ${DESTDIR}/etc/mail 125 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 126 ! -f ${DESTDIR}/etc/aliases ]; then \ 127 set -x; \ 128 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 129 fi 130 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 131 ${DESTDIR}/etc/dumpdates 132 ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 133 ${DESTDIR}/var/db/locate.database 134 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 135 ${DESTDIR}/var/log/lpd-errs 136 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 137 ${DESTDIR}/var/log/maillog 138 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 139 ${DESTDIR}/var/log/lastlog 140 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 141 ${DESTDIR}/var/log/messages 142 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 143 ${DESTDIR}/var/log/security 144 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 145 ${DESTDIR}/var/log/slip.log 146 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 147 ${DESTDIR}/var/log/ppp.log 148 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 149 ${DESTDIR}/var/log/wtmp 150 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 151 ${DESTDIR}/var/run/utmp 152 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 153 ${DESTDIR}/var/crash 154 (cd ${.CURDIR}/..; \ 155 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 156 ${DESTDIR}/) 157.if !defined(NOMAN) 158 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 159.endif 160 161distrib-dirs: 162 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 163 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 164 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 165 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 166 -p ${DESTDIR}/usr/include 167 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 168 -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 169 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 170 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 171 cd ${DESTDIR}/usr/share/man; \ 172 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 173 while [ $$# -gt 0 ] ; \ 174 do \ 175 rm -rf "$$1"; \ 176 ln -s "$$2" "$$1"; \ 177 shift; shift; \ 178 done 179 cd ${DESTDIR}/usr/share/locale; \ 180 set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 181 while [ $$# -gt 0 ] ; \ 182 do \ 183 rm -rf "$$1"; \ 184 ln -s "$$2" "$$1"; \ 185 shift; shift; \ 186 done 187 cd ${DESTDIR}/usr/share/nls; \ 188 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 189 while [ $$# -gt 0 ] ; \ 190 do \ 191 rm -rf "$$1"; \ 192 ln -s "$$2" "$$1"; \ 193 shift; shift; \ 194 done 195 196etc-examples: 197 (cd ${.CURDIR}; \ 198 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 199 opieaccess ${DESTDIR}/usr/share/examples/etc; \ 200 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 201 ${DESTDIR}/usr/share/examples/etc/defaults; \ 202 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 203 ${DESTDIR}/usr/share/examples/etc/defaults; \ 204 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 205 ${DESTDIR}/usr/share/examples/etc/defaults) 206 207.include <bsd.prog.mk> 208