diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2016-07-31 14:26:30 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2016-07-31 14:26:30 +0000 |
commit | 65a88eabbad56c35d6f7418da99502bd44b6a92e (patch) | |
tree | d0804a02c7f6517936c679bccd248ff8a9c139c4 /net/cjdns/files/cjdns.in | |
parent | Update to the 20160728 snapshot of GCC 6. (diff) |
New port: net/cjdns
Cjdns implements an encrypted IPv6 network using public-key cryptography for
address allocation and a distributed hash table for routing. This provides
near-zero-configuration networking, and prevents many of the security and
scalability issues that plague existing networks.
WWW: https://github.com/cjdelisle/cjdns
PR: 210730
Submitted by: Yuri Victorovich <yuri@rawbw.com>
Notes
Notes:
svn path=/head/; revision=419383
Diffstat (limited to 'net/cjdns/files/cjdns.in')
-rw-r--r-- | net/cjdns/files/cjdns.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/cjdns/files/cjdns.in b/net/cjdns/files/cjdns.in new file mode 100644 index 000000000000..e4dc1a0ae94f --- /dev/null +++ b/net/cjdns/files/cjdns.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: cjdns +# REQUIRE: LOGIN + +. /etc/rc.subr + +name="cjdns" +rcvar=cjdns_enable +command="%%PREFIX%%/bin/cjdroute" +command_args="< %%PREFIX%%/etc/cjdroute.conf" + +if expr "$1" : ".*start" > /dev/null && ! [ -r %%PREFIX%%/etc/cjdroute.conf ]; then + %%PREFIX%%/bin/cjdroute --genconf > %%PREFIX%%/etc/cjdroute.conf && + echo "$name: (!!!) generated the initial config file %%PREFIX%%/etc/cjdroute.conf" && + echo "$name: (!!!) keep this file secret because it contains your secret key" + chmod 0600 %%PREFIX%%/etc/cjdroute.conf +fi + +load_rc_config $name +run_rc_command "$1" |