1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
:=https
://github.com
/hyperboria
/cjdns.git
9 PKG_SOURCE_VERSION
:=2303ce6585f62f7e8d3cdb1983c0c8e08385ea68
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
).
tar.bz2
12 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
)
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_SOURCE_VERSION
)
15 include $(INCLUDE_DIR
)/package.mk
21 SUBMENU
:=Routing and Redirection
22 TITLE
:=Encrypted near-zero-conf mesh routing protocol
23 URL
:=https
://github.com
/hyperboria
/cjdns
24 MAINTAINER
:=Lars Gierth
<larsg@systemli.org
>
25 DEPENDS
:=+kmod-tun
+kmod-ipv6
+libnl-tiny
+libpthread
+librt \
26 +libuci-lua
+lua-bencode
+dkjson
+luasocket
+lua-sha2
29 define Package
/cjdns
/description
30 Cjdns implements an encrypted IPv6 network using public-key cryptography \
31 for address allocation and a distributed hash table for routing. \
32 This provides near-zero-configuration networking
, and prevents many \
33 of the security and scalability issues that plague existing networks.
36 define Build
/Configure
41 ifneq ($(CONFIG_KERNEL_SECCOMP_FILTER
),y
)
42 PKG_DO_VARS
+= Seccomp_NO
=1
45 ifneq ($(CONFIG_USE_UCLIBC
),)
46 PKG_DO_VARS
+= UCLIBC
=1
52 CFLAGS
="$(TARGET_CFLAGS)" \
53 LDFLAGS
="$(TARGET_LDFLAGS)" \
55 TARGET_ARCH
="$(CONFIG_ARCH)" \
56 SSP_SUPPORT
="$(CONFIG_SSP_SUPPORT)" \
61 define Package
/cjdns
/install
67 $(1)/etc
/uci-defaults \
68 $(1)/usr
/lib
/lua
/cjdns
71 .
/files
/cjdrouteconf \
75 $(PKG_BUILD_DIR
)/cjdroute \
79 $(PKG_BUILD_DIR
)/publictoip6 \
87 .
/files
/cjdns.defaults \
88 $(1)/etc
/uci-defaults
/cjdns
92 $(1)/usr
/lib
/lua
/cjdns
95 define Package
/cjdns
/postinst
97 if
[ -z
$${IPKG_INSTROOT} ] ; then
98 ( .
/etc
/uci-defaults
/cjdns
) && rm -f
/etc
/uci-defaults
/cjdns
99 # TODO: we should have an 'Enable' button instead
100 /etc
/init.d
/cjdns enabled ||
/etc
/init.d
/cjdns enable
105 $(eval
$(call BuildPackage
,cjdns
))