Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 22:06:28 +0000
From:      Chris Rees <crees@FreeBSD.org>
To:        Raphael Kubo da Costa <rakuco@freebsd.org>, sean.greven@gmail.com
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, "ports-committers@freebsd.org" <ports-committers@freebsd.org>
Subject:   Re: svn commit: r307863 - in head/security/fwknop: . files
Message-ID:  <CADLo838iKfc=VpAriPFP3hKGKmnktXka4ioX5Jwc9O%2BywU%2B%2BYg@mail.gmail.com>
In-Reply-To: <201211272141.qARLfTwt065159@svn.freebsd.org>
References:  <201211272141.qARLfTwt065159@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 November 2012 21:41, Raphael Kubo da Costa <rakuco@freebsd.org> wrote:
> XXX Ports RC script present
> Author: rakuco
> Date: Tue Nov 27 21:41:29 2012
> New Revision: 307863
> URL: http://svnweb.freebsd.org/changeset/ports/307863
>
> Log:
>   Update to 2.0.3.
>
>   This new version includes a migration from Perl to C and support for
>   ipfw and pf.
>
>   While here, trim the Makefile headers.
>
>   PR:           ports/171951  http://www.FreeBSD.org/cgi/query-pr.cgi?pr=171951
>   Submitted by: Sean Greven <sean.greven@gmail.com> (maintainer)
>   Feature safe: yes
>
> Added:
>   head/security/fwknop/files/fwknopd.in   (contents, props changed)

[snip]

> Added: head/security/fwknop/files/fwknopd.in
> ==============================================================================
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/security/fwknop/files/fwknopd.in       Tue Nov 27 21:41:29 2012        (r307863)
> @@ -0,0 +1,41 @@
> +#!/bin/sh
> +#
> +# $FreeBSD$
> +#
> +# PROVIDE: fwknopd
> +# REQUIRE: LOGIN
> +
> +#
> +# Add the following lines to /etc/rc.conf to enable fwknopd:
> +#
> +# fwknopd_enable="YES"
> +#
> +# See fwknopd(8) for flags
> +#
> +
> +. /etc/rc.subr
> +
> +name=fwknopd
> +rcvar=fwknopd_enable
> +
> +command=%%PREFIX%%/sbin/fwknopd
> +required_files=%%PREFIX%%/etc/fwknop/access.conf
> +
> +start_precmd=start_precmd
> +stop_postcmd=stop_postcmd
> +
> +extra_commands="reload"
> +
> +start_precmd()
> +{
> +}
> +
> +stop_postcmd()
> +{
> +}
> +
> +# read settings, set default values
> +load_rc_config $name
> +: ${fwknopd_enable="NO"}
> +
> +run_rc_command "$1"

Various style fixes to the rc script are at [1] (as well as not
causing an ungracious kill at shutdown :), please take a look.

Chris

[1] http://www.bayofrum.net/~crees/patches/fwknop-rc-script.diff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838iKfc=VpAriPFP3hKGKmnktXka4ioX5Jwc9O%2BywU%2B%2BYg>