Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2015 18:34:21 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r401292 - in head/security: . fastd fastd/files
Message-ID:  <201511111834.tABIYLHX001682@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Wed Nov 11 18:34:21 2015
New Revision: 401292
URL: https://svnweb.freebsd.org/changeset/ports/401292

Log:
  This is a fast and Secure Tunnelling Daemon.
  
  WWW: http://git.universe-factory.net/fastd
  PR:		204472
  Submitted by:	Jan Bramkamp

Added:
  head/security/fastd/
  head/security/fastd/Makefile   (contents, props changed)
  head/security/fastd/distinfo   (contents, props changed)
  head/security/fastd/files/
  head/security/fastd/files/fastd.in   (contents, props changed)
  head/security/fastd/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Wed Nov 11 18:15:56 2015	(r401291)
+++ head/security/Makefile	Wed Nov 11 18:34:21 2015	(r401292)
@@ -122,6 +122,7 @@
     SUBDIR += fakebo
     SUBDIR += fakeident
     SUBDIR += fakeroot
+    SUBDIR += fastd
     SUBDIR += fbopenssl
     SUBDIR += fcheck
     SUBDIR += fcrackzip

Added: head/security/fastd/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/fastd/Makefile	Wed Nov 11 18:34:21 2015	(r401292)
@@ -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>

Added: head/security/fastd/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/fastd/distinfo	Wed Nov 11 18:34:21 2015	(r401292)
@@ -0,0 +1,2 @@
+SHA256 (fastd-17.tar) = 20390fc2110929ebf37feebe1bcce68d7920a5efd42c369bd2d886c6781966dc
+SIZE (fastd-17.tar) = 1474560

Added: head/security/fastd/files/fastd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/fastd/files/fastd.in	Wed Nov 11 18:34:21 2015	(r401292)
@@ -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"

Added: head/security/fastd/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/fastd/pkg-descr	Wed Nov 11 18:34:21 2015	(r401292)
@@ -0,0 +1,3 @@
+This is a fast and Secure Tunnelling Daemon.
+
+WWW: http://git.universe-factory.net/fastd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511111834.tABIYLHX001682>