From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 20 23:30:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C31C1065673 for ; Tue, 20 Sep 2011 23:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E14118FC13 for ; Tue, 20 Sep 2011 23:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8KNUBow021431 for ; Tue, 20 Sep 2011 23:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8KNUBQP021427; Tue, 20 Sep 2011 23:30:11 GMT (envelope-from gnats) Resent-Date: Tue, 20 Sep 2011 23:30:11 GMT Resent-Message-Id: <201109202330.p8KNUBQP021427@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew Grant Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75E151065673 for ; Tue, 20 Sep 2011 23:20:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 651718FC08 for ; Tue, 20 Sep 2011 23:20:39 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8KNKdcu021639 for ; Tue, 20 Sep 2011 23:20:39 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p8KNKd2o021638; Tue, 20 Sep 2011 23:20:39 GMT (envelope-from nobody) Message-Id: <201109202320.p8KNKd2o021638@red.freebsd.org> Date: Tue, 20 Sep 2011 23:20:39 GMT From: Matthew Grant To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/160861: New port: security/racoon-tool Manage setkey and racoon easily X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2011 23:30:12 -0000 >Number: 160861 >Category: ports >Synopsis: New port: security/racoon-tool Manage setkey and racoon easily >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 20 23:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Matthew Grant >Release: FreeBSD 8.2 >Organization: Net24 Ltd >Environment: >Description: Racoon Tool is a perl wrapper script for managing setkey and racoon as found on FreeBSD, and Debian systems. In Debian it is shipped as part of the racoon package, and is available as a port on FreeBSD. It is licensed under the GNU GPL version 2. It makes the management of IPSEC for the common tasks of small VPN hubs and networks easier, and was originally inspired by FreeSWAN. It is fully documented in the sample racoon-tool.conf, and provided man pages and source code. WWW: http://github.com/grantma/racoon-tool >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # racoon-tool # racoon-tool/Makefile # racoon-tool/files # racoon-tool/files/racoon_tool.in # racoon-tool/distinfo # racoon-tool/pkg-plist # racoon-tool/pkg-descr # echo c - racoon-tool mkdir -p racoon-tool > /dev/null 2>&1 echo x - racoon-tool/Makefile sed 's/^X//' >racoon-tool/Makefile << '5835aca537bab4f0bafabd4813d378f1' X# New ports collection makefile for: racoon-tool X# Date created: 20 September 2011 X# Whom: Matthew Grant X# X# $FreeBSD$ X# X XPORTNAME= racoon-tool XPORTVERSION= 0.1 XCATEGORIES= security XMASTER_SITES= https://github.com/grantma/racoon-tool/tarball/ XDISTFILES= ${PORTVERSION} XDIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} X XMAINTAINER= matthew.grant@net24.co.nz XCOMMENT= Management tool for setkey and raccoon - simplifies things X XRUN_DEPENDS= ${LOCALBASE}/sbin/racoon:${PORTSDIR}/security/ipsec-tools \ X ${LOCALBASE}/sbin/setkey:${PORTSDIR}/security/ipsec-tools X XMAN8= racoon-tool.8 XMAN5= racoon-tool.conf.5 XMANCOMPRESSED=no XUSE_GMAKE= yes XALL_TARGET= manpages XUSE_PERL5= yes XUSE_RC_SUBR= racoon_tool XFETCH_ARGS= -Fpr X XGITHASH= ac8e8b6 XWRKSRC= ${WRKDIR}/grantma-${PORTNAME}-${GITHASH} X.if defined(PACKAGE_BUILDING) XALWAYS_KEEP_DISTFILES= yes X.endif X Xpost-install: X # A bit naughty, leave until next version released... X @if [ ! -f ${PREFIX}/etc/racoon/racoon-tool.conf.sample ]; then \ X ${INSTALL} $(WRKSRC)/racoon-tool.conf $(PREFIX)/etc/racoon/racoon-tool.conf.sample ; \ X fi X @if [ ! -f ${PREFIX}/etc/racoon/racoon-tool.conf ]; then \ X ${CP} -p ${PREFIX}/etc/racoon/racoon-tool.conf.sample ${PREFIX}/etc/racoon/racoon-tool.conf ; \ X fi X X.include 5835aca537bab4f0bafabd4813d378f1 echo c - racoon-tool/files mkdir -p racoon-tool/files > /dev/null 2>&1 echo x - racoon-tool/files/racoon_tool.in sed 's/^X//' >racoon-tool/files/racoon_tool.in << '7a2479cf02bf624e7b9125a47bcba08a' X#!/bin/sh X X# $FreeBSD$ X# X# PROVIDE: racoon X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# racoon_tool_enable (bool): Set to NO by default. X# Set it to YES to enable doormand. X# X X. /etc/rc.subr X Xname="racoon_tool" Xrcvar=`set_rcvar` Xstart_cmd="${name}_start" Xstop_cmd="${name}_stop" Xstart_precmd="${name}_prestart" Xstop_postcmd="${name}_cleanup" X X Xpidfile=/var/run/racoon.pid Xprocname=%%PREFIX%%/sbin/racoon Xsocketfile="/var/db/racoon/racoon.sock" Xrequired_files="%%PREFIX%%/etc/racoon/racoon-tool.conf" Xrequired_dirs="/var/db/racoon" X Xracoon_tool_start() X{ X %%PREFIX%%/sbin/racoon-tool start X} Xracoon_tool_stop() X{ X %%PREFIX%%/sbin/racoon-tool stop X} X Xracoon_tool_cleanup() X{ X /bin/rm -f ${pidfile} X /bin/rm -f ${socketfile} X} X Xracoon_tool_prestart() X{ X racoon_tool_cleanup X X if checkyesno "${name}_create_dirs"; then X /bin/mkdir -p $required_dirs X fi X} X Xload_rc_config $name X X: ${racoon_tool_enable="NO"} X: ${racoon_tool_create_dirs="NO"} X Xrun_rc_command "$1" 7a2479cf02bf624e7b9125a47bcba08a echo x - racoon-tool/distinfo sed 's/^X//' >racoon-tool/distinfo << '66d59c29e478ca9513cecfbfa800b134' XSHA256 (net24-racoon-tool/0.1) = 21ccc0aa86f38f7ff1c6a0f48432422700d357c1008e3fb39354ede9c9577317 XSIZE (net24-racoon-tool/0.1) = 28674 66d59c29e478ca9513cecfbfa800b134 echo x - racoon-tool/pkg-plist sed 's/^X//' >racoon-tool/pkg-plist << '6a117603efb527c3250966831e09aa51' X@stopdaemon racoon-tool X Xsbin/racoon-tool X X@exec mkdir -p %D/etc/racoon/racoon-tool.conf.d X@dirrmtry etc/racoon/racoon-tool.conf.d X X@unexec if cmp -s %D/etc/racoon/racoon-tool.conf.sample %D/etc/racoon/racoon-tool.conf; then rm -f %D/etc/racoon/racoon-tool.conf; fi Xetc/racoon/racoon-tool.conf.sample X@exec if [ ! -f %D/etc/racoon/racoon-tool.conf ] ; then cp -p %D/%F %B/racoon-tool.conf; fi X 6a117603efb527c3250966831e09aa51 echo x - racoon-tool/pkg-descr sed 's/^X//' >racoon-tool/pkg-descr << 'c4acb8328fd94f6d504ab893713d617c' XRacoon Tool X Xis a perl wrapper script for managing setkey and racoon as found on FreeBSD, Xand Debian systems. In Debian it is shipped as part of the racoon package, and Xis available as a port on FreeBSD. It is licensed under the GNU GPL version 2. X XIt makes the management of IPSEC for the common tasks of small VPN hubs and Xnetworks easier, and was originally inspired by FreeSWAN. X XIt is fully documented in the sample racoon-tool.conf, and provided man pages Xand source code. X XWWW: http://github.com/grantma/racoon-tool c4acb8328fd94f6d504ab893713d617c exit >Release-Note: >Audit-Trail: >Unformatted: