Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2006-2008 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ead
  9. PKG_RELEASE:=1
  10. PKG_BUILD_DEPENDS:=libpcap
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/ead
  12. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  13. PKG_LICENSE:=GPL-2.0
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/kernel.mk
  16. define Package/ead
  17. SECTION:=net
  18. CATEGORY:=Base system
  19. TITLE:=Emergency Access Daemon
  20. URL:=http://bridge.sourceforge.net/
  21. endef
  22. define Package/ead/description
  23. Provides remote access to your device even if IP and firewall
  24. configuration settings are defunct
  25. endef
  26. CONFIGURE_PATH = tinysrp
  27. TARGET_CFLAGS += \
  28. -I$(PKG_BUILD_DIR) \
  29. -I$(PKG_BUILD_DIR)/tinysrp \
  30. $(TARGET_CPPFLAGS)
  31. MAKE_FLAGS += \
  32. CONFIGURE_ARGS="$(CONFIGURE_ARGS)" \
  33. LIBS_EADCLIENT="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a" \
  34. LIBS_EAD="$(PKG_BUILD_DIR)/tinysrp/libtinysrp.a $(STAGING_DIR)/usr/lib/libpcap.a" \
  35. CFLAGS="$(TARGET_CFLAGS)"
  36. define Build/Prepare
  37. mkdir -p $(PKG_BUILD_DIR)
  38. $(CP) ./src/* $(PKG_BUILD_DIR)/
  39. endef
  40. define Package/ead/install
  41. $(INSTALL_DIR) $(1)/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ead $(1)/sbin/
  43. endef
  44. $(eval $(call BuildPackage,ead))