You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2014 meshroom.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:=netsukuku
  9. PKG_VERSION:=0.0.9b
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=https://github.com/Netsukuku/netsukuku.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=3084295a56c4b068f2df6269da56218b4369af47
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)
  21. define Package/netsukuku
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=Netsukuku p2p protocol
  25. DEPENDS:=+libopenssl +libgmp +kmod-tun +libpthread +zlib +kmod-ipip
  26. endef
  27. define Build/Configure
  28. $(call Build/Configure/Default)
  29. endef
  30. define Package/netsukuku/install
  31. $(INSTALL_DIR) $(1)/usr/bin/
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/bin/ntk* $(1)/usr/bin
  33. $(INSTALL_DIR) $(1)/etc
  34. $(CP) -r $(PKG_BUILD_DIR)/etc/netsukuku $(1)/etc/
  35. endef
  36. $(eval $(call BuildPackage,netsukuku))