Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 Package/ead/install
  37. $(INSTALL_DIR) $(1)/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ead $(1)/sbin/
  39. endef
  40. $(eval $(call BuildPackage,ead))