Makefile 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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:= util-linux
  5. PKG_VERSION:= 2.25.2
  6. PKG_RELEASE:= 4
  7. PKG_HASH:= e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6
  8. PKG_DESCR:= basic utilities
  9. PKG_SECTION:= base/apps
  10. PKG_BUILDDEP:= ncurses
  11. PKG_SITES:= http://www.kernel.org/pub/linux/utils/util-linux/v2.25/
  12. PKG_OPTS:= dev
  13. PKG_SUBPKGS:= FDISK SFDISK SWAP_UTILS LOSETUP MCOOKIE MOUNT
  14. PKG_SUBPKGS+= LIBUUID LIBBLKID LIBMOUNT CFDISK MKFS
  15. PKGSD_LIBUUID:= uuid library
  16. PKGSC_LIBUUID:= libs/misc
  17. PKGSD_LIBBLKID:= blkid library
  18. PKGSC_LIBBLKID:= libs/misc
  19. PKGSD_LIBMOUNT:= mount library
  20. PKGSC_LIBMOUNT:= libs/misc
  21. PKGSD_FDISK:= partition table manipulation utility
  22. PKGSC_FDISK:= sys/fs
  23. PKGSD_SFDISK:= scriptable partition table manipulation utility
  24. PKGSC_SFDISK:= sys/fs
  25. PKGSD_CFDISK:= partition table manipulation utility
  26. PKGSC_CFDISK:= sys/fs
  27. PKGSD_SWAP_UTILS:= swap space management utilities
  28. PKGSS_SWAP_UTILS:= libblkid
  29. PKGSC_SWAP_UTILS:= sys/fs
  30. PKGSD_LOSETUP:= loop devices management utilities
  31. PKGSC_LOSETUP:= sys/fs
  32. PKGSD_MKFS:= filesystem creation frontend
  33. PKGSC_MKFS:= sys/fs
  34. PKGSD_MOUNT:= mount/umount utilities
  35. PKGSS_MOUNT:= libblkid libmount libuuid libncurses
  36. PKGSC_MOUNT:= sys/fs
  37. PKGSD_MCOOKIE:= generate magic cookies for xauth
  38. PKGSC_MCOOKIE:= x11/utils
  39. include $(ADK_TOPDIR)/mk/package.mk
  40. $(eval $(call PKG_template,FDISK,fdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_FDISK),$(PKGSC_FDISK)))
  41. $(eval $(call PKG_template,CFDISK,cfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_CFDISK),$(PKGSC_CFDISK)))
  42. $(eval $(call PKG_template,SFDISK,sfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_SFDISK),$(PKGSC_SFDISK)))
  43. $(eval $(call PKG_template,SWAP_UTILS,swap-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_SWAP_UTILS),$(PKGSD_SWAP_UTILS),$(PKGSC_SWAP_UTILS)))
  44. $(eval $(call PKG_template,LOSETUP,losetup,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_LOSETUP),$(PKGSD_LOSETUP),$(PKGSC_LOSETUP)))
  45. $(eval $(call PKG_template,MKFS,mkfs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_MKFS),$(PKGSD_MKFS),$(PKGSC_MKFS)))
  46. $(eval $(call PKG_template,MOUNT,mount,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_MOUNT),$(PKGSD_MOUNT),$(PKGSC_MOUNT)))
  47. $(eval $(call PKG_template,MCOOKIE,mcookie,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_MCOOKIE),$(PKGSC_MCOOKIE)))
  48. $(eval $(call PKG_template,LIBUUID,libuuid,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_LIBUUID),$(PKGSC_LIBUUID),$(PKG_OPTS)))
  49. $(eval $(call PKG_template,LIBBLKID,libblkid,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_LIBBLKID),$(PKGSC_LIBBLKID),$(PKG_OPTS)))
  50. $(eval $(call PKG_template,LIBMOUNT,libmount,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_LIBMOUNT),$(PKGSC_LIBMOUNT),$(PKG_OPTS)))
  51. TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
  52. TARGET_LDFLAGS+= -ltinfo
  53. AUTOTOOL_STYLE:= autoreconf
  54. CONFIGURE_ENV+= have_scanf_alloc_modifier=yes \
  55. scanf_cv_alloc_modifier=ms
  56. CONFIGURE_ARGS+= --disable-use-tty-group \
  57. --disable-chfn-chsh \
  58. --disable-su \
  59. --disable-runuser \
  60. --disable-schedutils \
  61. --disable-cramfs \
  62. --disable-login \
  63. --disable-eject \
  64. --without-python \
  65. --without-systemd \
  66. --without-user \
  67. --enable-libuuid \
  68. --enable-libblkid \
  69. --enable-libmount \
  70. --enable-mount
  71. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  72. fdisk-install:
  73. $(INSTALL_DIR) $(IDIR_FDISK)/usr/sbin
  74. $(CP) $(WRKINST)/usr/sbin/fdisk $(IDIR_FDISK)/usr/sbin
  75. cfdisk-install:
  76. $(INSTALL_DIR) $(IDIR_CFDISK)/usr/sbin
  77. $(CP) $(WRKINST)/usr/sbin/cfdisk $(IDIR_FDISK)/usr/sbin
  78. sfdisk-install:
  79. $(INSTALL_DIR) $(IDIR_SFDISK)/usr/sbin
  80. $(CP) $(WRKINST)/usr/sbin/sfdisk $(IDIR_SFDISK)/usr/sbin
  81. losetup-install:
  82. $(INSTALL_DIR) $(IDIR_LOSETUP)/usr/sbin
  83. $(CP) $(WRKINST)/usr/sbin/losetup $(IDIR_LOSETUP)/usr/sbin
  84. swap-utils-install:
  85. $(INSTALL_DIR) $(IDIR_SWAP_UTILS)/usr/sbin
  86. $(CP) $(WRKINST)/usr/sbin/mkswap $(IDIR_SWAP_UTILS)/usr/sbin
  87. $(CP) $(WRKINST)/usr/sbin/swap{on,off} $(IDIR_SWAP_UTILS)/usr/sbin
  88. mkfs-install:
  89. $(INSTALL_DIR) $(IDIR_MKFS)/usr/sbin
  90. $(INSTALL_BIN) $(WRKINST)/usr/sbin/mkfs $(IDIR_MKFS)/usr/sbin
  91. mount-install:
  92. $(INSTALL_DIR) $(IDIR_MOUNT)/bin
  93. $(INSTALL_BIN) $(WRKINST)/usr/bin/{u,}mount $(IDIR_MOUNT)/bin
  94. mcookie-install:
  95. $(INSTALL_DIR) $(IDIR_MCOOKIE)/usr/bin
  96. $(INSTALL_BIN) $(WRKINST)/usr/bin/mcookie $(IDIR_MCOOKIE)/usr/bin
  97. libuuid-install:
  98. $(INSTALL_DIR) $(IDIR_LIBUUID)/usr/lib
  99. $(CP) $(WRKINST)/usr/lib/libuuid.so* $(IDIR_LIBUUID)/usr/lib
  100. libblkid-install:
  101. $(INSTALL_DIR) $(IDIR_LIBBLKID)/usr/lib
  102. $(CP) $(WRKINST)/usr/lib/libblkid.so* $(IDIR_LIBBLKID)/usr/lib
  103. libmount-install:
  104. $(INSTALL_DIR) $(IDIR_LIBMOUNT)/usr/lib
  105. $(CP) $(WRKINST)/usr/lib/libmount.so* $(IDIR_LIBMOUNT)/usr/lib
  106. include $(ADK_TOPDIR)/mk/pkg-bottom.mk