Index: head/ftp/ftpsesame/Makefile =================================================================== --- head/ftp/ftpsesame/Makefile (revision 161016) +++ head/ftp/ftpsesame/Makefile (revision 161017) @@ -1,27 +1,30 @@ # New ports collection makefile for: ftpsesame # Date created: 1 May 2006 # Whom: Sergey Matveychuk # # $FreeBSD$ # PORTNAME= ftpsesame PORTVERSION= 0.95 CATEGORIES= ftp -MASTER_SITES= http://www.sentia.org/downloads/ +MASTER_SITES= http://www.sentia.org/downloads/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= sem MAINTAINER= sem@FreeBSD.org -COMMENT= Helper for the FTP protocol get through your pf firewall +COMMENT= Helper for the FTP protocol to get through your pf firewall MAN8= ftpsesame.8 PLIST_FILES= bin/ftpsesame +USE_RC_SUBR= ftpsesame.sh MAKE_ARGS= PREFIX=${PREFIX} MANPREFIX=${MANPREFIX} .include .if ${OSVERSION} < 502106 -IGNORE= There is no pf(4) in the base system +IGNORE= there is no pf(4) in the base system .endif .include Property changes on: head/ftp/ftpsesame/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/ftp/ftpsesame/files/ftpsesame.sh.in =================================================================== --- head/ftp/ftpsesame/files/ftpsesame.sh.in (nonexistent) +++ head/ftp/ftpsesame/files/ftpsesame.sh.in (revision 161017) @@ -0,0 +1,47 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ftpsesame +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable ftpsesame +# +# ftpsesame_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable. +# ftpsesame_interface (str): Interface name where ftp sessions will listen. +# (Usualy an external interface) +# ftpsesame_flags (str): Additional options (See ftpsesame(8)). +# + +. %%RC_SUBR%% + +name=ftpsesame +rcvar=`set_rcvar` +command=%%PREFIX%%/bin/${name} +pidfile="/var/run/${name}.pid" + +start_postcmd=start_postcmd +stop_postcmd=stop_postcmd + +start_postcmd() +{ + ps -axo pid,comm | awk '/ftpsesame/ {print $1}' > ${pidfile} +} + +stop_postcmd() +{ + rm -f ${pidfile} +} + +# set defaults +ftpsesame_enable=${ftpsesame_enable:-"NO"} +ftpsesame_interface=${ftpsesame_interface-""} +ftpsesame_flags=${ftpsesame_flags-""} + +load_rc_config $name +command_args=${ftpsesame_interface:+"-i ${ftpsesame_interface}"} +run_rc_command "$1" Property changes on: head/ftp/ftpsesame/files/ftpsesame.sh.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property