X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=blobdiff_plain;f=cjdns%2FMakefile;h=a81b49144cfe66598ccbddcd68088c09ffa49edf;hp=ca9d7042117833b6c942630c718ca27295fac753;hb=c86ccc8abd5c36ec42311e6dc566b59f98db15f6;hpb=aedfe045dab2cf01f9399635d099ea4e91f92520 diff --git a/cjdns/Makefile b/cjdns/Makefile index ca9d704..a81b491 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -1,12 +1,28 @@ +# +# Copyright (C) 2014,2015 Hyperboria.net +# +# You may redistribute this program and/or modify it under the terms of +# the GNU General Public License as published by the Free Software Foundation, +# either version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + include $(TOPDIR)/rules.mk PKG_NAME:=cjdns -PKG_VERSION:=0.16 -PKG_RELEASE:=10 +PKG_VERSION:=0.17 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://github.com/hyperboria/cjdns.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=55803286b9de8a935dbc86111e312c747ef78318 +PKG_SOURCE_VERSION:=40e87d9419c19063e772e39c7c59a8a8771c5ee8 PKG_LICENSE:=GPL-3.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION) @@ -22,7 +38,7 @@ define Package/cjdns TITLE:=Encrypted near-zero-conf mesh routing protocol URL:=https://github.com/hyperboria/cjdns MAINTAINER:=Lars Gierth - DEPENDS:=+kmod-tun +kmod-ipv6 +libnl-tiny +libpthread +librt \ + DEPENDS:=@IPV6 +kmod-tun +libnl-tiny +libpthread +librt \ +libuci-lua +lua-bencode +dkjson +luasocket +lua-sha2 endef @@ -33,10 +49,24 @@ define Package/cjdns/description of the security and scalability issues that plague existing networks. endef +define Package/cjdns-tests + SECTION:=net + CATEGORY:=Network + SUBMENU:=Routing and Redirection + TITLE:=cjdns test cases + URL:=https://github.com/hyperboria/cjdns + MAINTAINER:=Lars Gierth + DEPENDS:=+libpthread +librt +endef + +define Package/cjdns-test/description + cjdns test cases +endef + define Build/Configure endef -PKG_DO_VARS:= +PKG_DO_VARS:=CJDNS_RELEASE_VERSION=$(PKG_SOURCE_VERSION) ifneq ($(CONFIG_KERNEL_SECCOMP_FILTER),y) PKG_DO_VARS+= Seccomp_NO=1 @@ -49,11 +79,14 @@ endif define Build/Compile CROSS="true" \ CC="$(TARGET_CC)" \ + AR="$(TARGET_AR)" \ + RANLIB="$(TARGET_RANLIB)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ SYSTEM="linux" \ TARGET_ARCH="$(CONFIG_ARCH)" \ SSP_SUPPORT="$(CONFIG_SSP_SUPPORT)" \ + GYP_ADDITIONAL_ARGS="-f make-linux" \ $(PKG_DO_VARS) \ $(PKG_BUILD_DIR)/do endef @@ -102,4 +135,12 @@ if [ -z $${IPKG_INSTROOT} ] ; then fi endef +define Package/cjdns-tests/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/build_linux/test_testcjdroute_c \ + $(1)/usr/bin +endef + $(eval $(call BuildPackage,cjdns)) +$(eval $(call BuildPackage,cjdns-tests))