diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2015-11-11 18:34:21 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2015-11-11 18:34:21 +0000 |
commit | 0699735966a8bcbbb44d8de6c8fa2cfdd6a4afa0 (patch) | |
tree | 6231d538eb3a9aee7f7ab996630283856434ba25 /security | |
parent | 470d38df82edff8d9198afa0d2ca197593d063dd (diff) |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/fastd/Makefile | 28 | ||||
-rw-r--r-- | security/fastd/distinfo | 2 | ||||
-rw-r--r-- | security/fastd/files/fastd.in | 75 | ||||
-rw-r--r-- | security/fastd/pkg-descr | 3 |
5 files changed, 109 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 2038c45e1fb5..29bc2add9186 100644 --- a/security/Makefile +++ b/security/Makefile @@ -122,6 +122,7 @@ SUBDIR += fakebo SUBDIR += fakeident SUBDIR += fakeroot + SUBDIR += fastd SUBDIR += fbopenssl SUBDIR += fcheck SUBDIR += fcrackzip diff --git a/security/fastd/Makefile b/security/fastd/Makefile new file mode 100644 index 000000000000..8d37c9c2299c --- /dev/null +++ b/security/fastd/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= fastd +PORTVERSION= 17 +CATEGORIES= security net +MASTER_SITES= http://git.universe-factory.net/fastd/snapshot/ + +MAINTAINER= crest_maintainer@rlwinm.de +COMMENT= Fast and Secure Tunnelling Daemon + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +LIB_DEPENDS= libjson-c.so:${PORTSDIR}/devel/json-c \ + libsodium.so:${PORTSDIR}/security/libsodium \ + libuecc.so:${PORTSDIR}/security/libuecc + +USES= bison cmake:outsource pkgconfig tar + +USE_RC_SUBR= fastd + +PLIST_FILES= bin/fastd \ + man/man1/fastd.1.gz + +post-install: + ${INSTALL_MAN} ${WRKSRC}/doc/fastd.1 ${STAGEDIR}${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/security/fastd/distinfo b/security/fastd/distinfo new file mode 100644 index 000000000000..b7dfa0cfcb14 --- /dev/null +++ b/security/fastd/distinfo @@ -0,0 +1,2 @@ +SHA256 (fastd-17.tar) = 20390fc2110929ebf37feebe1bcce68d7920a5efd42c369bd2d886c6781966dc +SIZE (fastd-17.tar) = 1474560 diff --git a/security/fastd/files/fastd.in b/security/fastd/files/fastd.in new file mode 100644 index 000000000000..df44d10b84c1 --- /dev/null +++ b/security/fastd/files/fastd.in @@ -0,0 +1,75 @@ +#!/bin/sh +# +# $FreeBSD$ + +# PROVIDE: fastd +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# ----------------------------------------------------------------------------- +# +# This script supports running multiple instances of fastd. +# To run additional instances link this script to something like +# % ln -s fastd fastd_foo +# and define additional fastd_foo_* variables in one of +# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/fastd_foo +# +# Below NAME should be substituted with the name of this script. By default +# it is fastd, so read as fastd_enable. If you linked the script to +# fastd_foo, then read as fastd_foo_enable etc. +# +# The following variables are supported (defaults are shown). +# You can place them in any of +# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/NAME +# +# NAME_enable="NO" # set to YES to enable fastd +# +# # optional: +# NAME_configfile="%%PREFIX%%/etc/fastd/NAME.conf" # --config file +# + +. /etc/rc.subr + +case "$0" in +/etc/rc*) + # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), + # so get the name of the script from $_file + name="$_file" + ;; +*) + name="$0" + ;; +esac + +name="${name##*/}" +rcvar=${name}_enable + +clean_pidfile() +{ + rm -f "$pidfile" || warn "Could not remove $pidfile." +} + +# reload: support SIGHUP to reload peer directories +extra_commands="reload" + +# pidfile +pidfile="/var/run/${name}.pid" + +# run this last +start_precmd="clean_pidfile" +stop_postcmd="clean_pidfile" + +load_rc_config ${name} + +eval ": \${${name}_enable:=\"NO\"}" +eval ": \${${name}_configfile:=\"%%PREFIX%%/etc/fastd/${name}.conf\"}" + +configfile="$(eval echo \${${name}_configfile})" + +required_files=${configfile} + +# command and arguments +command="%%PREFIX%%/bin/fastd" +command_args="--daemon --config ${configfile} --pid-file ${pidfile}" + +run_rc_command "$1" diff --git a/security/fastd/pkg-descr b/security/fastd/pkg-descr new file mode 100644 index 000000000000..eddb9e4a0c08 --- /dev/null +++ b/security/fastd/pkg-descr @@ -0,0 +1,3 @@ +This is a fast and Secure Tunnelling Daemon. + +WWW: http://git.universe-factory.net/fastd |