From a2db8e075ca39cbae6dc25b08f800b3f33ca4583 Mon Sep 17 00:00:00 2001 From: idonin Date: Tue, 20 May 2014 14:09:22 +0400 Subject: [PATCH 1/3] Create Makefile --- openwrt/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile new file mode 100644 index 0000000..f22c932 --- /dev/null +++ b/openwrt/Makefile @@ -0,0 +1,43 @@ +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 Build/Compile +# $(MAKE) -s -C $(PKG_BUILD_DIR) +#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)) From bdac37b6303789052910ec8124d468be2f7fd6b6 Mon Sep 17 00:00:00 2001 From: idonin Date: Tue, 20 May 2014 14:10:59 +0400 Subject: [PATCH 2/3] Update Makefile --- openwrt/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openwrt/Makefile b/openwrt/Makefile index f22c932..60f1015 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -1,3 +1,10 @@ +# +# Copyright (C) 2007-2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + include $(TOPDIR)/rules.mk PKG_NAME:=netsukuku @@ -29,10 +36,6 @@ define Build/Configure $(call Build/Configure/Default) endef -#define Build/Compile -# $(MAKE) -s -C $(PKG_BUILD_DIR) -#endef - define Package/netsukuku/install $(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/bin/ntk* $(1)/usr/bin From 1c63763518db29b496b7416034395a5d727a1cd0 Mon Sep 17 00:00:00 2001 From: idonin Date: Tue, 20 May 2014 14:12:01 +0400 Subject: [PATCH 3/3] Update Makefile --- openwrt/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/Makefile b/openwrt/Makefile index 60f1015..4be3fa4 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2010 OpenWrt.org +# Copyright (C) 2014 meshroom.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information.