Makefile 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ETCDIR=/etc
  2. EXTDIR=${DESTDIR}${ETCDIR}
  3. MODE=754
  4. DIRMODE=755
  5. CONFMODE=644
  6. all: install
  7. create-dirs:
  8. install -d -m ${DIRMODE} ${EXTDIR}/rc0.d
  9. install -d -m ${DIRMODE} ${EXTDIR}/rc1.d
  10. install -d -m ${DIRMODE} ${EXTDIR}/rc2.d
  11. install -d -m ${DIRMODE} ${EXTDIR}/rc3.d
  12. install -d -m ${DIRMODE} ${EXTDIR}/rc4.d
  13. install -d -m ${DIRMODE} ${EXTDIR}/rc5.d
  14. install -d -m ${DIRMODE} ${EXTDIR}/rc6.d
  15. install -d -m ${DIRMODE} ${EXTDIR}/rcS.d
  16. install -d -m ${DIRMODE} ${EXTDIR}/init.d
  17. install -d -m ${DIRMODE} ${EXTDIR}/sysconfig
  18. install -d -m ${DIRMODE} ${DESTDIR}/lib/lsb
  19. install -d -m ${DIRMODE} ${EXTDIR}/lsb/state
  20. create-service-dir:
  21. install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
  22. create-boottemp-dir:
  23. install -d -m ${DIRMODE} ${EXTDIR}/init.d/boottemp
  24. install: create-dirs create-service-dir create-boottemp-dir
  25. install -m ${MODE} init.d/checkfs ${EXTDIR}/init.d/
  26. install -m ${MODE} init.d/cleanfs ${EXTDIR}/init.d/
  27. install -m ${CONFMODE} init.d/lfs-functions ${EXTDIR}/init.d/
  28. install -m ${MODE} init.d/halt ${EXTDIR}/init.d/
  29. install -m ${MODE} init.d/console ${EXTDIR}/init.d/
  30. install -m ${MODE} init.d/localnet ${EXTDIR}/init.d/
  31. install -m ${MODE} init.d/modules ${EXTDIR}/init.d/
  32. install -m ${MODE} init.d/mountfs ${EXTDIR}/init.d/
  33. install -m ${MODE} init.d/mountkernfs ${EXTDIR}/init.d/
  34. install -m ${MODE} init.d/network ${EXTDIR}/init.d/
  35. install -m ${MODE} init.d/rc ${EXTDIR}/init.d/
  36. install -m ${MODE} init.d/reboot ${EXTDIR}/init.d/
  37. install -m ${MODE} init.d/sendsignals ${EXTDIR}/init.d/
  38. install -m ${MODE} init.d/setclock ${EXTDIR}/init.d/
  39. install -m ${MODE} init.d/sysklogd ${EXTDIR}/init.d/
  40. install -m ${MODE} init.d/swap ${EXTDIR}/init.d/
  41. install -m ${MODE} init.d/sysctl ${EXTDIR}/init.d/
  42. install -m ${MODE} init.d/template ${EXTDIR}/init.d/
  43. install -m ${MODE} init.d/udev ${EXTDIR}/init.d/
  44. install -m ${MODE} init.d/udev_retry ${EXTDIR}/init.d/
  45. install -m ${CONFMODE} lsb/init-functions ${DESTDIR}/lib/lsb/
  46. install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/
  47. install -m ${CONFMODE} etc/lsb-config ${EXTDIR}/lsb/
  48. if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
  49. if [ ! -f ${EXTDIR}/sysconfig/modules ]; then install -m ${CONFMODE} sysconfig/modules ${EXTDIR}/sysconfig/; fi
  50. if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} sysconfig/rc ${EXTDIR}/sysconfig/; fi
  51. if [ ! -f ${EXTDIR}/sysconfig/rc.site ]; then install -m ${CONFMODE} sysconfig/rc.site ${EXTDIR}/sysconfig/; fi
  52. if [ -f ${EXTDIR}/inittab ]; then install -m ${CONFMODE} ${EXTDIR}/inittab ${EXTDIR}/inittab.bak; fi
  53. install -m ${CONFMODE} etc/inittab ${EXTDIR}/
  54. install -m ${MODE} sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/
  55. install -m ${MODE} sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/
  56. install -m ${MODE} sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/
  57. install -m ${MODE} sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/
  58. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/checkfs
  59. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/cleanfs
  60. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/halt
  61. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/console
  62. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/localnet
  63. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/modules
  64. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountfs
  65. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountkernfs
  66. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/network
  67. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/reboot
  68. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/sendsignals
  69. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/setclock
  70. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/sysklogd
  71. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/swap
  72. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/sysctl
  73. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/udev
  74. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/udev_retry
  75. minimal: create-dirs create-service-dir create-boottemp-dir
  76. install -m ${MODE} init.d/checkfs ${EXTDIR}/init.d/
  77. install -m ${MODE} init.d/cleanfs ${EXTDIR}/init.d/
  78. install -m ${CONFMODE} init.d/lfs-functions ${EXTDIR}/init.d/
  79. install -m ${MODE} init.d/halt ${EXTDIR}/init.d/
  80. install -m ${MODE} init.d/localnet ${EXTDIR}/init.d/
  81. install -m ${MODE} init.d/mountfs ${EXTDIR}/init.d/
  82. install -m ${MODE} init.d/mountkernfs ${EXTDIR}/init.d/
  83. install -m ${MODE} init.d/rc ${EXTDIR}/init.d/
  84. install -m ${MODE} init.d/reboot ${EXTDIR}/init.d/
  85. install -m ${MODE} init.d/sendsignals ${EXTDIR}/init.d/
  86. install -m ${MODE} init.d/setclock ${EXTDIR}/init.d/
  87. install -m ${MODE} init.d/swap ${EXTDIR}/init.d/
  88. install -m ${MODE} init.d/udev ${EXTDIR}/init.d/
  89. install -m ${CONFMODE} lsb/init-functions ${DESTDIR}/lib/lsb/
  90. install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/
  91. install -m ${CONFMODE} etc/lsb-config ${EXTDIR}/lsb/
  92. if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} sysconfig/rc ${EXTDIR}/sysconfig/; fi
  93. if [ -f ${EXTDIR}/inittab ]; then install -m ${CONFMODE} ${EXTDIR}/inittab ${EXTDIR}/inittab.bak; fi
  94. install -m ${CONFMODE} etc/inittab ${EXTDIR}/
  95. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/checkfs
  96. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/cleanfs
  97. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/halt
  98. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/localnet
  99. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountfs
  100. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountkernfs
  101. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/reboot
  102. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/sendsignals
  103. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/setclock
  104. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/swap
  105. /usr/lib/lsb/install_initd ${EXTDIR}/init.d/udev
  106. .PHONY: all create-dirs create-service-dir create-boottemp-dir \
  107. install minimal