Makefile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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-ng
  5. PKG_VERSION:= 2.18
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= aff22adfff1bf39cd3f13371b95a3d3a
  8. PKG_DESCR:= Linux utilities
  9. PKG_SECTION:= fs
  10. PKG_BUILDDEP:= e2fsprogs ncurses
  11. PKG_URL:= http://userweb.kernel.org/~kzak/util-linux-ng
  12. PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/util-linux-ng/v$(PKG_VERSION)/}
  13. PKG_SUBPKGS:= FDISK SFDISK SWAP_UTILS LOSETUP MOUNT MCOOKIE
  14. PKGSD_FDISK:= Partition table manipulation utility
  15. PKGSD_SFDISK:= Scriptable Partition table manipulation utility
  16. PKGSD_SWAP_UTILS:= Swap space management utilities
  17. PKGSS_SWAP_UTILS:= libblkid
  18. PKGSD_LOSETUP:= Loop devices management utilities
  19. PKGSS_LOSETUP:= kmod-blk-dev-loop
  20. PKGSD_MOUNT:= mount/umount utilities
  21. PKGSS_MOUNT:= libblkid
  22. PKGSD_MCOOKIE:= Generate magic cookies for xauth
  23. PKGSC_MCOOKIE:= x11/apps
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FDISK},${PKG_SECTION}))
  26. $(eval $(call PKG_template,SFDISK,sfdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SFDISK},${PKG_SECTION}))
  27. $(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_SWAP_UTILS},${PKGSD_SWAP_UTILS},${PKG_SECTION}))
  28. $(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LOSETUP},${PKGSD_LOSETUP},${PKG_SECTION}))
  29. $(eval $(call PKG_template,MOUNT,mount,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MOUNT},${PKG_SECTION}))
  30. $(eval $(call PKG_template,MCOOKIE,mcookie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MCOOKIE},${PKGSC_MCOOKIE}))
  31. CONFIGURE_ARGS+= --disable-use-tty-group \
  32. --disable-schedutils \
  33. --disable-cramfs \
  34. --disable-libuuid \
  35. --disable-libblkid \
  36. --enable-libmount \
  37. --enable-mount
  38. MAKE_FLAGS+= OPT="${TARGET_CFLAGS}" ARCH="${ARCH}"
  39. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  40. TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
  41. fdisk-install:
  42. ${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
  43. ${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin
  44. sfdisk-install:
  45. ${INSTALL_DIR} ${IDIR_SFDISK}/usr/sbin
  46. ${CP} ${WRKINST}/sbin/sfdisk ${IDIR_SFDISK}/usr/sbin
  47. losetup-install:
  48. ${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
  49. ${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin
  50. swap-utils-install:
  51. ${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
  52. ${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin
  53. ${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin
  54. mount-install:
  55. ${INSTALL_DIR} ${IDIR_MOUNT}/usr/bin
  56. ${INSTALL_BIN} ${WRKINST}/usr/bin/{u,}mount ${IDIR_MOUNT}/usr/bin
  57. mcookie-install:
  58. ${INSTALL_DIR} ${IDIR_MCOOKIE}/usr/bin
  59. ${INSTALL_BIN} ${WRKINST}/usr/bin/mcookie ${IDIR_MCOOKIE}/usr/bin
  60. include ${TOPDIR}/mk/pkg-bottom.mk