X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=blobdiff_plain;f=cjdns%2FMakefile;h=cd5ca905574e1780848b6ff0680efb70bd6fae2d;hp=ebdde413da484af594504270d3206c668b816d79;hb=7ae81c8311ec642843e36c642bb8e940625c086b;hpb=1689eab8501a9ec26066806c6cd6904ea09e6fd8 diff --git a/cjdns/Makefile b/cjdns/Makefile index ebdde41..cd5ca90 100644 --- a/cjdns/Makefile +++ b/cjdns/Makefile @@ -17,12 +17,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cjdns -PKG_VERSION:=0.16 -PKG_RELEASE:=13 +PKG_VERSION:=20.2 +PKG_RELEASE:=1 -PKG_SOURCE_URL:=https://github.com/hyperboria/cjdns.git +PKG_SOURCE_URL:=https://github.com/cjdelisle/cjdns.git PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=2303ce6585f62f7e8d3cdb1983c0c8e08385ea68 +PKG_SOURCE_VERSION:=77259a49e5bc7ca7bc6dca5bd423e02be563bdc5 PKG_LICENSE:=GPL-3.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION) @@ -36,9 +36,9 @@ define Package/cjdns CATEGORY:=Network SUBMENU:=Routing and Redirection TITLE:=Encrypted near-zero-conf mesh routing protocol - URL:=https://github.com/hyperboria/cjdns + URL:=https://github.com/cjdelisle/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 @@ -49,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/cjdelisle/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 @@ -63,15 +77,21 @@ PKG_DO_VARS+= UCLIBC=1 endif define Build/Compile + $(INSTALL_DIR) $(PKG_BUILD_DIR)/tmp + (cd $(PKG_BUILD_DIR) && \ CROSS="true" \ CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS)" \ + AR="$(TARGET_AR)" \ + RANLIB="$(TARGET_RANLIB)" \ + CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE" \ LDFLAGS="$(TARGET_LDFLAGS)" \ SYSTEM="linux" \ TARGET_ARCH="$(CONFIG_ARCH)" \ SSP_SUPPORT="$(CONFIG_SSP_SUPPORT)" \ + GYP_ADDITIONAL_ARGS="-f make-linux" \ + CJDNS_BUILD_TMPDIR="$(PKG_BUILD_DIR)/tmp" \ $(PKG_DO_VARS) \ - $(PKG_BUILD_DIR)/do + exec ./do) endef define Package/cjdns/install @@ -118,4 +138,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))