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