netsukuku/openwrt/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

2014-05-20 10:10:59 +00:00
#
2014-05-20 10:12:01 +00:00
# Copyright (C) 2014 meshroom.org
2014-05-20 10:10:59 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
2014-05-20 10:09:22 +00:00
include $(TOPDIR)/rules.mk
PKG_NAME:=netsukuku
PKG_VERSION:=0.0.9b
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/Netsukuku/netsukuku.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=3084295a56c4b068f2df6269da56218b4369af47
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)
define Package/netsukuku
SECTION:=net
CATEGORY:=Network
TITLE:=Netsukuku p2p protocol
DEPENDS:=+libopenssl +libgmp +kmod-tun +libpthread +zlib +kmod-ipip
endef
define Build/Configure
$(call Build/Configure/Default)
endef
define Package/netsukuku/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/bin/ntk* $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc
$(CP) -r $(PKG_BUILD_DIR)/etc/netsukuku $(1)/etc/
endef
$(eval $(call BuildPackage,netsukuku))