1
0

Makefile 1.5 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:= ipset
  5. PKG_VERSION:= 3.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 92bb09883dd8a77ec5cfbff1c8932b15
  8. PKG_DESCR:= Netfilter ip sets administration utility
  9. PKG_SECTION:= net
  10. PKG_URL:= http://ipset.netfilter.org
  11. PKG_SITES:= http://ipset.netfilter.org/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,IPSET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,KMOD_IPSET,kmod-ipset,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  16. XAKE_FLAGS+= PREFIX=/usr
  17. BUILD_STYLE:= auto
  18. INSTALL_STYLE:= auto
  19. ALL_TARGET:= binaries
  20. INSTALL_TARGET:= binaries_install
  21. pre-build:
  22. V=1 ARCH=${ARCH} KERNEL_DIR=${LINUX_DIR} \
  23. PREFIX=/usr CROSS_COMPILE="${TARGET_CROSS}" \
  24. LD=$(TARGET_CROSS)gcc \
  25. $(MAKE) -C ${WRKBUILD} modules
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_IPSET}/usr/sbin ${IDIR_IPSET}/usr/lib/ipset
  28. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ipset ${IDIR_IPSET}/usr/sbin
  29. ${CP} ${WRKINST}/usr/lib/ipset/*.so ${IDIR_IPSET}/usr/lib/ipset/
  30. # kernel modules (no autoload at the moment)
  31. ${INSTALL_DIR} ${IDIR_KMOD_IPSET}/lib/modules/${KERNEL_VERSION}/
  32. ${INSTALL_DATA} ${WRKBUILD}/kernel/*.ko \
  33. ${IDIR_KMOD_IPSET}/lib/modules/${KERNEL_VERSION}
  34. include ${TOPDIR}/mk/pkg-bottom.mk