Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
6.7 KiB

  1. # $OpenBSD: Makefile,v 1.27 1996/09/23 05:04:37 downsj Exp $
  2. TZDIR= /usr/share/zoneinfo
  3. LOCALTIME= US/Pacific
  4. NOOBJ= oobj
  5. .if exists(etc.${MACHINE}/Makefile.inc)
  6. .include "etc.${MACHINE}/Makefile.inc"
  7. .endif
  8. # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
  9. # -rw-r--r--
  10. BINOWN= root
  11. BINGRP= wheel
  12. BIN1= aliases bootptab changelist ccd.conf csh.cshrc csh.login csh.logout \
  13. daily dm.conf ftpusers ftpchroot gettytab group hosts hosts.equiv \
  14. hosts.lpd ifaliases inetd.conf ksh.kshrc man.conf monthly motd \
  15. myname netstart newsyslog.conf phones printcap protocols rc \
  16. rc.local remote rpc security services shells syslog.conf virc weekly \
  17. etc.${MACHINE}/disktab
  18. # -rw-rw-r--
  19. BIN2= motd
  20. NAMEDB= localhost.rev named.boot root.cache
  21. PCS= pcs750.bin
  22. WCS1= wcs fppwcs poc poc1 poc2 fppoc
  23. WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
  24. all clean cleandir depend etc install lint:
  25. .ifndef DESTDIR
  26. distribution-etc-root-var distribution distrib-dirs snapshot:
  27. @echo setenv DESTDIR before doing that!
  28. @false
  29. .else
  30. distribution-etc-root-var: distrib-dirs
  31. install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
  32. cat etc.${MACHINE}/ttys ttys.pty > ${DESTDIR}/etc/ttys && \
  33. chown ${BINOWN} ${DESTDIR}/etc/ttys && \
  34. chgrp ${BINGRP} ${DESTDIR}/etc/ttys && \
  35. chmod 644 ${DESTDIR}/etc/ttys
  36. cat fbtab.head etc.${MACHINE}/fbtab fbtab.tail > ${DESTDIR}/etc/fbtab && \
  37. chown ${BINOWN} ${DESTDIR}/etc/fbtab && \
  38. chgrp ${BINGRP} ${DESTDIR}/etc/fbtab && \
  39. chmod 644 ${DESTDIR}/etc/fbtab
  40. install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
  41. install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
  42. install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
  43. pwd_mkdb -p -d ${DESTDIR}/etc /etc/master.passwd
  44. install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
  45. MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
  46. (cd root; \
  47. install -c -o root -g wheel -m 644 dot.cshrc \
  48. ${DESTDIR}/root/.cshrc; \
  49. install -c -o root -g wheel -m 644 dot.klogin \
  50. ${DESTDIR}/root/.klogin; \
  51. install -c -o root -g wheel -m 644 dot.login \
  52. ${DESTDIR}/root/.login; \
  53. install -c -o root -g wheel -m 644 dot.profile \
  54. ${DESTDIR}/root/.profile; \
  55. rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
  56. ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
  57. ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
  58. (cd kerberosIV; \
  59. install -c -o root -g wheel -m 644 README \
  60. ${DESTDIR}/etc/kerberosIV; \
  61. install -c -o root -g wheel -m 644 krb.conf \
  62. ${DESTDIR}/etc/kerberosIV; \
  63. install -c -o root -g wheel -m 444 krb.realms \
  64. ${DESTDIR}/etc/kerberosIV)
  65. (cd amd; \
  66. install -c -o root -g wheel -m 644 master \
  67. ${DESTDIR}/etc/amd)
  68. (cd mtree; \
  69. install -c -o root -g wheel -m 600 special \
  70. ${DESTDIR}/etc/mtree; \
  71. install -c -o root -g wheel -m 444 4.4BSD.dist \
  72. ${DESTDIR}/etc/mtree)
  73. (cd ppp; \
  74. install -c -o root -g wheel -m 644 chap-secrets \
  75. ${DESTDIR}/etc/ppp; \
  76. install -c -o root -g wheel -m 644 options \
  77. ${DESTDIR}/etc/ppp; \
  78. install -c -o root -g wheel -m 644 options.leaf \
  79. ${DESTDIR}/etc/ppp; \
  80. install -c -o root -g wheel -m 644 pap-secrets \
  81. ${DESTDIR}/etc/ppp)
  82. cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
  83. ${DESTDIR}/etc/namedb
  84. /bin/rm -f ${DESTDIR}/etc/localtime
  85. ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
  86. /bin/rm -f ${DESTDIR}/etc/rmt
  87. ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
  88. install -c -o root -g wheel -m 644 minfree \
  89. ${DESTDIR}/var/crash
  90. install -c -o ${BINOWN} -g operator -m 664 /dev/null \
  91. ${DESTDIR}/etc/dumpdates
  92. install -c -o ${BINOWN} -g operator -m 644 /dev/null \
  93. ${DESTDIR}/etc/skeykeys
  94. install -c -o root -g wheel -m 600 /dev/null \
  95. ${DESTDIR}/var/cron/log
  96. install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
  97. ${DESTDIR}/var/db/locate.database
  98. install -c -o root -g wheel -m 644 /dev/null \
  99. ${DESTDIR}/etc/locate.rc
  100. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  101. ${DESTDIR}/var/log/lastlog
  102. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  103. ${DESTDIR}/var/log/lpd-errs
  104. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  105. ${DESTDIR}/var/log/maillog
  106. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  107. ${DESTDIR}/var/log/messages
  108. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  109. ${DESTDIR}/var/log/ftpd
  110. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  111. ${DESTDIR}/var/log/wtmp
  112. install -c -o daemon -g staff -m 664 /dev/null \
  113. ${DESTDIR}/var/msgs/bounds
  114. install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
  115. ${DESTDIR}/var/run/utmp
  116. (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
  117. fstab.* ${DESTDIR}/etc)
  118. (cd ${DESTDIR}/dev; ./MAKEDEV all)
  119. .if ${MACHINE} == "tahoe"
  120. (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
  121. ${DESTDIR}/)
  122. .endif
  123. .if ${MACHINE} == "vax"
  124. (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
  125. ${DESTDIR}/)
  126. .endif
  127. (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
  128. distribution: distribution-etc-root-var
  129. (cd ..; ${MAKE} install)
  130. hcx9-distribution:
  131. (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
  132. ${DESTDIR}/)
  133. distrib-dirs:
  134. install -d -o root -g wheel -m 755 ${DESTDIR}
  135. -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
  136. if [ ! -f ${DESTDIR}/usr/src ]; then \
  137. install -d -o root -g wheel -m 755 ${DESTDIR}/usr/src; \
  138. fi
  139. cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
  140. snapshot: distribution snap_pre snap_tar snap_md
  141. cd ${DESTDIR}/snapshot && cksum * > CKSUMS
  142. snap_pre:
  143. /bin/rm -rf ${DESTDIR}/snapshot
  144. install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
  145. snap_tar:
  146. cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
  147. cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
  148. cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
  149. gzip -9 > snapshot/etc.tar.gz
  150. cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
  151. cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
  152. cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
  153. snapshot/usr.games.tar.gz
  154. cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
  155. snapshot/usr.include.tar.gz
  156. cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
  157. cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
  158. snapshot/usr.libexec.tar.gz
  159. cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
  160. usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
  161. cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
  162. cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
  163. snapshot/usr.share.tar.gz
  164. cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
  165. snap_md:
  166. # nothing here -- look in the machine-dependent Makefile.inc
  167. .endif # DESTDIR check
  168. .include <bsd.prog.mk>