diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-01 08:05:56 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-01 08:05:56 +0000 |
commit | 0a832c6325153c0d1d62384e85db69fcd8bf5393 (patch) | |
tree | 587c3961cccae98d28faae295965f42d7fd90436 /ftp/ftpsesame | |
parent | 293aa3155851979e19e43851fe9d549560cd1f7f (diff) | |
download | ports-0a832c6325153c0d1d62384e85db69fcd8bf5393.tar.gz ports-0a832c6325153c0d1d62384e85db69fcd8bf5393.zip |
Notes
Diffstat (limited to 'ftp/ftpsesame')
-rw-r--r-- | ftp/ftpsesame/Makefile | 9 | ||||
-rw-r--r-- | ftp/ftpsesame/files/ftpsesame.sh.in | 47 |
2 files changed, 53 insertions, 3 deletions
diff --git a/ftp/ftpsesame/Makefile b/ftp/ftpsesame/Makefile index 39d5d217adcd..85651323b836 100644 --- a/ftp/ftpsesame/Makefile +++ b/ftp/ftpsesame/Makefile @@ -8,20 +8,23 @@ 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 <bsd.port.pre.mk> .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 <bsd.port.post.mk> diff --git a/ftp/ftpsesame/files/ftpsesame.sh.in b/ftp/ftpsesame/files/ftpsesame.sh.in new file mode 100644 index 000000000000..7ada9aebe0d6 --- /dev/null +++ b/ftp/ftpsesame/files/ftpsesame.sh.in @@ -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" |