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:= 4.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d104007fdf5ea64fef774c22b1c0a97b
  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_ARCH_DEPENDS:= !arm
  13. PKG_CFLINE_IPSET:= depends on !ADK_TOOLCHAIN_ONLY
  14. PKG_SUBPKGS:= IPSET IPSET_KMOD
  15. PKGSD_IPSET_KMOD:= ipset kernel module
  16. PKGSC_IPSET_KMOD:= kernel
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,IPSET,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,IPSET_KMOD,ipset-kmod,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKGSD_IPSET_KMOD},${PKGSC_IPSET_KMOD}))
  21. CONFIG_STYLE:= manual
  22. XAKE_FLAGS+= PREFIX=/usr
  23. ALL_TARGET:= binaries
  24. INSTALL_TARGET:= binaries_install
  25. pre-build:
  26. $(MAKE) -C ${WRKBUILD} $(KERNEL_MODULE_FLAGS) 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_IPSET_KMOD}/lib/modules/${KERNEL_VERSION}/
  33. ${INSTALL_DATA} ${WRKBUILD}/kernel/*.ko \
  34. ${IDIR_IPSET_KMOD}/lib/modules/${KERNEL_VERSION}
  35. include ${TOPDIR}/mk/pkg-bottom.mk