Makefile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= util-linux
  5. PKG_VERSION:= 2.23.2
  6. PKG_RELEASE:= 6
  7. PKG_MD5SUM:= b39fde897334a4858bb2098edcce5b3f
  8. PKG_DESCR:= Linux utilities (meta-package)
  9. PKG_SECTION:= utils
  10. PKG_DEPENDS:= mount fdisk sfdisk swap-utils losetup mount mcookie
  11. PKG_BUILDDEP:= ncurses
  12. PKG_SITES:= http://www.kernel.org/pub/linux/utils/util-linux/v2.23/
  13. PKG_NOPARALLEL:= 1
  14. PKG_OPTS:= dev
  15. PKG_ARCH_DEPENDS:= !m68k
  16. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.xz
  17. PKG_SUBPKGS:= UTIL_LINUX FDISK SFDISK SWAP_UTILS LOSETUP MCOOKIE MOUNT
  18. PKG_SUBPKGS+= LIBUUID LIBBLKID LIBMOUNT
  19. PKGSD_LIBUUID:= UUID library
  20. PKGSC_LIBUUID:= libs
  21. PKGSD_LIBBLKID:= BLKID library
  22. PKGSC_LIBBLKID:= libs
  23. PKGSD_LIBMOUNT:= Mount library
  24. PKGSC_LIBMOUNT:= libs
  25. PKGSD_FDISK:= Partition table manipulation utility
  26. PKGSC_FDISK:= fs
  27. PKGSD_SFDISK:= Scriptable Partition table manipulation utility
  28. PKGSC_SFDISK:= fs
  29. PKGSD_SWAP_UTILS:= Swap space management utilities
  30. PKGSS_SWAP_UTILS:= libblkid
  31. PKGSC_SWAP_UTILS:= fs
  32. PKGSD_LOSETUP:= Loop devices management utilities
  33. PKGSS_LOSETUP:= kmod-blk-dev-loop
  34. PKGSD_MOUNT:= mount/umount utilities
  35. PKGSS_MOUNT:= libblkid libmount libuuid
  36. PKGSC_MOUNT:= fs
  37. PKGSD_MCOOKIE:= Generate magic cookies for xauth
  38. PKGSC_MCOOKIE:= x11/apps
  39. include ${TOPDIR}/mk/package.mk
  40. $(eval $(call PKG_template,UTIL_LINUX,util-linux,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  41. $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FDISK},${PKGSC_FDISK}))
  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},${PKG_SECTION}))
  45. $(eval $(call PKG_template,MOUNT,mount,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MOUNT},${PKGSD_MOUNT},${PKGSC_MOUNT}))
  46. $(eval $(call PKG_template,MCOOKIE,mcookie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MCOOKIE},${PKGSC_MCOOKIE}))
  47. $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUUID},${PKGSC_LIBUUID}))
  48. $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
  49. $(eval $(call PKG_template,LIBMOUNT,libmount,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMOUNT},${PKGSC_LIBMOUNT}))
  50. CONFIGURE_ENV+= have_scanf_alloc_modifier=yes \
  51. scanf_cv_alloc_modifier=ms
  52. CONFIGURE_ARGS+= --disable-use-tty-group \
  53. --disable-schedutils \
  54. --disable-cramfs \
  55. --disable-login \
  56. --disable-su \
  57. --enable-libuuid \
  58. --enable-libblkid \
  59. --enable-libmount \
  60. --enable-mount \
  61. --with-ncurses=$(STAGING_DIR)/usr/include \
  62. --libdir=/usr/lib
  63. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  64. TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK -ltinfo
  65. util-linux-install:
  66. fdisk-install:
  67. ${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
  68. ${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin
  69. sfdisk-install:
  70. ${INSTALL_DIR} ${IDIR_SFDISK}/usr/sbin
  71. ${CP} ${WRKINST}/sbin/sfdisk ${IDIR_SFDISK}/usr/sbin
  72. losetup-install:
  73. ${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
  74. ${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin
  75. swap-utils-install:
  76. ${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
  77. ${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin
  78. ${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin
  79. mount-install:
  80. ${INSTALL_DIR} ${IDIR_MOUNT}/bin
  81. ${INSTALL_BIN} ${WRKINST}/usr/bin/{u,}mount ${IDIR_MOUNT}/bin
  82. mcookie-install:
  83. ${INSTALL_DIR} ${IDIR_MCOOKIE}/usr/bin
  84. ${INSTALL_BIN} ${WRKINST}/usr/bin/mcookie ${IDIR_MCOOKIE}/usr/bin
  85. libuuid-install:
  86. ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
  87. ${CP} ${WRKINST}/usr/lib/libuuid.so* ${IDIR_LIBUUID}/usr/lib
  88. libblkid-install:
  89. ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
  90. ${CP} ${WRKINST}/usr/lib/libblkid.so* ${IDIR_LIBBLKID}/usr/lib
  91. libmount-install:
  92. ${INSTALL_DIR} ${IDIR_LIBMOUNT}/usr/lib
  93. ${CP} ${WRKINST}/usr/lib/libmount.so* ${IDIR_LIBMOUNT}/usr/lib
  94. include ${TOPDIR}/mk/pkg-bottom.mk