mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
Merge pull request #4 from idonin/master
First version of Makefile for Openwrt
This commit is contained in:
commit
83cc78f40b
46
openwrt/Makefile
Normal file
46
openwrt/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2014 meshroom.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
|
||||
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))
|
Loading…
Reference in New Issue
Block a user