Makefile 1.5 KB

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