Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.15
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 18c9f263a44db67a73c12caf49b03e22
  8. PKG_DESCR:= Linux utilities
  9. PKG_SECTION:= admin
  10. PKG_URL:= http://userweb.kernel.org/~kzak/util-linux-ng
  11. PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/util-linux-ng/v2.15/}
  12. PKG_DESCR_1:= Partition table manipulation utility
  13. PKG_DESCR_2:= Swap space management utilities
  14. PKG_DEPENDS_SWAP:= libblkid
  15. PKG_DESCR_3:= Loop devices setup and control utility
  16. PKG_DEPENDS_3:= kmod-loop
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  19. $(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_SWAP},${PKG_DESCR_2},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_3},${PKG_DESCR_3},${PKG_SECTION}))
  21. CONFIGURE_STYLE:= gnu
  22. BUILD_STYLE:= auto
  23. INSTALL_STYLE:= auto
  24. MAKE_FLAGS+= OPT="${TCFLAGS}" ARCH="${ARCH}"
  25. FAKE_FLAGS+= INSTALLSUID="install -m 4755"
  26. TCFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
  29. ${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin/
  30. ${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
  31. ${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin/
  32. ${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
  33. ${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin/
  34. ${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin/
  35. include ${TOPDIR}/mk/pkg-bottom.mk