Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= aufs2-util
  5. PKG_VERSION:= 2-100111
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1854f5ab560dd375b22f6e2b747cb412
  8. PKG_DESCR:= aufs2 utilities
  9. PKG_SECTION:= fs
  10. PKG_URL:= http://aufs.sf.net/
  11. # created from git via:
  12. # $ git archive --format tar aufs2.1 | \
  13. # gzip -9 -c >../aufs2-util-2-$(date +%d%m%g).tar.gz
  14. PKG_SITES:= http://nwl.cc/~n0-1/
  15. WRKDIST= ${WRKDIR}
  16. PKG_HOST_DEPENDS:= !cygwin !freebsd !openbsd !netbsd
  17. PKG_SUBPKGS:= AUFS2_UTIL LIBAU
  18. PKGSD_LIBAU:= aufs2 userspace library
  19. PKGSC_LIBAU:= libs
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,AUFS2_UTIL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBAU,libau,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBAU},${PKGSC_LIBAU}))
  23. CONFIG_STYLE:= manual
  24. XAKE_FLAGS+= Install=install CPPFLAGS_FOR_BUILD="-I${LINUX_HEADER_DIR}/include"
  25. post-install:
  26. $(INSTALL_DIR) $(IDIR_AUFS2_UTIL)/sbin
  27. $(INSTALL_BIN) ${WRKINST}/sbin/{{u,}mount.aufs,auplink} \
  28. $(IDIR_AUFS2_UTIL)/sbin
  29. $(INSTALL_DIR) $(IDIR_AUFS2_UTIL)/usr/bin
  30. $(INSTALL_BIN) ${WRKINST}/usr/bin/au{brsync,chk} \
  31. $(IDIR_AUFS2_UTIL)/usr/bin
  32. $(INSTALL_DIR) $(IDIR_AUFS2_UTIL)/etc/default
  33. $(INSTALL_DATA) ${WRKINST}/etc/default/aufs \
  34. $(IDIR_AUFS2_UTIL)/etc/default
  35. $(INSTALL_DIR) $(IDIR_LIBAU)/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libau* ${IDIR_LIBAU}/usr/lib
  37. include ${TOPDIR}/mk/pkg-bottom.mk