Makefile 4.6 KB

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