ebtables.mk 870 B

123456789101112131415161718192021222324252627282930
  1. #############################################################
  2. #
  3. # ebtables
  4. #
  5. #############################################################
  6. EBTABLES_VERSION = 2.0.10-1
  7. EBTABLES_SOURCE = ebtables-v$(EBTABLES_VERSION).tar.gz
  8. EBTABLES_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ebtables
  9. define EBTABLES_BUILD_CMDS
  10. $(MAKE) $(TARGET_CONFIGURE_OPTS) LIBDIR=/lib/ebtables -C $(@D)
  11. endef
  12. define EBTABLES_INSTALL_TARGET_CMDS
  13. for so in $(@D)/$(EBTABLES_SUBDIR)/*.so \
  14. $(@D)/$(EBTABLES_SUBDIR)/extensions/*.so; \
  15. do \
  16. $(INSTALL) -m 0755 -D $${so} \
  17. $(TARGET_DIR)/lib/ebtables/`basename $${so}`; \
  18. done
  19. $(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/ebtables \
  20. $(TARGET_DIR)/sbin/ebtables
  21. endef
  22. define EBTABLES_UNINSTALL_TARGET_CMDS
  23. rm -rf $(TARGET_DIR)/lib/ebtables
  24. rm -f $(TARGET_DIR)/sbin/ebtables
  25. endef
  26. $(eval $(call GENTARGETS))