Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= systemd
  5. PKG_VERSION:= 233
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 8b3e99da3d4164b66581830a7f2436c0c8fe697b5fbdc3927bdb960646be0083
  8. PKG_DESCR:= system and service manager
  9. PKG_SECTION:= base/init
  10. PKG_DEPENDS:= libcap libmount libuuid libblkid libncurses libkmod
  11. PKG_BUILDDEP:= intltool-host gperf-host libcap util-linux gettext-host kmod
  12. PKG_KDEPENDS:= cgroups namespaces fhandle tmpfs-posix-acl tmpfs-xattr
  13. PKG_NEEDS:= locale intl
  14. PKG_URL:= https://wiki.freedesktop.org/www/Software/systemd/
  15. PKG_SITES:= https://github.com/systemd/systemd/archive/
  16. PKG_CFLINE_SYSTEMD:= select BUSYBOX_SULOGIN
  17. PKG_LIBC_DEPENDS:= !musl
  18. DISTFILES:= v$(PKG_VERSION).tar.gz
  19. include $(ADK_TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,SYSTEMD,systemd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  21. XAKE_FLAGS+= V=1
  22. AUTOTOOL_STYLE:= autogen
  23. CONFIGURE_ENV+= ac_cv_path_SULOGIN=/sbin/sulogin \
  24. ac_cv_path_MOUNT_PATH=/bin/mount
  25. CONFIGURE_ARGS+= --disable-static \
  26. --disable-manpages \
  27. --disable-selinux \
  28. --enable-split-usr \
  29. --disable-pam \
  30. --disable-ima \
  31. --disable-efi \
  32. --disable-gnuefi \
  33. --disable-ldconfig \
  34. --disable-tests \
  35. --disable-coverage \
  36. --with-default-dnssec=no \
  37. --without-python \
  38. --disable-acl \
  39. --disable-idn \
  40. --disable-libidn \
  41. --disable-libidn2 \
  42. --disable-libcryptsetup \
  43. --disable-seccomp \
  44. --disable-xkbcommon \
  45. --disable-localed \
  46. --disable-coredump \
  47. --disable-polkit \
  48. --disable-bzip2 \
  49. --disable-lz4 \
  50. --disable-xz \
  51. --disable-zlib \
  52. --disable-libcurl \
  53. --disable-gcrypt \
  54. --disable-microhttpd \
  55. --disable-qrencode \
  56. --disable-quotacheck \
  57. --disable-utmp \
  58. --disable-rfkill \
  59. --disable-smack \
  60. --disable-backlight \
  61. --disable-binfmt \
  62. --disable-vconsole \
  63. --disable-hibernate \
  64. --disable-audit \
  65. --disable-hwdb \
  66. --disable-machined \
  67. --disable-myhostname \
  68. --disable-resolved \
  69. --disable-importd \
  70. --disable-sysusers \
  71. --enable-randomseed \
  72. --enable-timedated \
  73. --enable-timesyncd \
  74. --enable-tmpfiles \
  75. --enable-firstboot
  76. systemd-install:
  77. $(INSTALL_DIR) $(IDIR_SYSTEMD)/etc
  78. touch $(IDIR_SYSTEMD)/etc/machine-id
  79. $(CP) $(WRKINST)/etc/* \
  80. $(IDIR_SYSTEMD)/etc
  81. $(INSTALL_DIR) $(IDIR_SYSTEMD)/usr/lib
  82. $(CP) $(WRKINST)/usr/lib/*.so* \
  83. $(IDIR_SYSTEMD)/usr/lib
  84. $(CP) $(WRKINST)/usr/lib/{systemd,kernel,udev,sysctl.d,tmpfiles.d} \
  85. $(IDIR_SYSTEMD)/usr/lib
  86. $(INSTALL_DIR) $(IDIR_SYSTEMD)/usr/bin
  87. $(CP) $(WRKINST)/usr/bin/* \
  88. $(IDIR_SYSTEMD)/usr/bin
  89. $(INSTALL_DIR) $(IDIR_SYSTEMD)/usr/share
  90. $(CP) $(WRKINST)/usr/share/* \
  91. $(IDIR_SYSTEMD)/usr/share
  92. $(CP) ./files/*.network \
  93. $(IDIR_SYSTEMD)/etc/systemd/network
  94. (cd $(IDIR_SYSTEMD)/usr/lib/systemd/system && ln -sf multi-user.target default.target)
  95. include $(ADK_TOPDIR)/mk/pkg-bottom.mk