Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright (C) 2010-2011 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:=relayd
  9. PKG_VERSION:=2016-02-07
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL=$(OPENWRT_GIT)/project/relayd.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=ad0b25ad74345d367c62311e14b279f5ccb8ef13
  16. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  17. PKG_LICENSE:=GPL-2.0
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/relayd
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Routing and Redirection
  24. TITLE:=Transparent routing / relay daemon
  25. DEPENDS:=+libubox
  26. endef
  27. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  28. define Package/relayd/install
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/relayd $(1)/usr/sbin/relayd
  31. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  32. $(INSTALL_DATA) ./files/relay.hotplug $(1)/etc/hotplug.d/iface/30-relay
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/relay.init $(1)/etc/init.d/relayd
  35. endef
  36. $(eval $(call BuildPackage,relayd))