Makefile 4.4 KB

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