Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.16.1
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= fc57e5fd5be9e569b026b5077fafe84f
  8. PKG_DESCR:= Linux utilities
  9. PKG_SECTION:= admin
  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/v2.16/}
  13. PKG_DESCR_FDISK:= Partition table manipulation utility
  14. PKG_DESCR_SFDISK:= Scriptable Partition table manipulation utility
  15. PKG_DESCR_SWAP:= Swap space management utilities
  16. PKG_DEPENDS_SWAP:= libblkid
  17. PKG_DESCR_LOOP:= Loop devices setup and control utility
  18. PKG_DEPENDS_LOOP:= kmod-blk-dev-loop
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_FDISK},${PKG_SECTION}))
  21. $(eval $(call PKG_template,SFDISK,sfdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_SFDISK},${PKG_SECTION}))
  22. $(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_SWAP},${PKG_DESCR_SWAP},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LOOP},${PKG_DESCR_LOOP},${PKG_SECTION}))
  24. CONFIGURE_STYLE:= gnu
  25. CONFIGURE_ARGS+= --disable-use-tty-group \
  26. --disable-schedutils \
  27. --disable-cramfs \
  28. --disable-libblkid \
  29. --disable-libuuid
  30. BUILD_STYLE:= auto
  31. INSTALL_STYLE:= auto
  32. MAKE_FLAGS+= OPT="${TCFLAGS}" ARCH="${ARCH}"
  33. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  34. TCFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
  35. post-install:
  36. ${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
  37. ${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin/
  38. ${INSTALL_DIR} ${IDIR_SFDISK}/usr/sbin
  39. ${CP} ${WRKINST}/sbin/sfdisk ${IDIR_SFDISK}/usr/sbin/
  40. ${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
  41. ${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin/
  42. ${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
  43. ${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin/
  44. ${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin/
  45. include ${TOPDIR}/mk/pkg-bottom.mk