From owner-svn-ports-head@freebsd.org Wed Nov 11 18:34:23 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90BDAA2C33E; Wed, 11 Nov 2015 18:34:23 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A3E113E5; Wed, 11 Nov 2015 18:34:23 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tABIYME8001687; Wed, 11 Nov 2015 18:34:22 GMT (envelope-from dinoex@FreeBSD.org) Received: (from dinoex@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tABIYLHX001682; Wed, 11 Nov 2015 18:34:21 GMT (envelope-from dinoex@FreeBSD.org) Message-Id: <201511111834.tABIYLHX001682@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dinoex set sender to dinoex@FreeBSD.org using -f From: Dirk Meyer Date: Wed, 11 Nov 2015 18:34:21 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 18:34:23 -0000 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 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