ports/173927: ports/pefs no start/stop script provided with this port
FreeBSD Proponent
fartherreaches at aol.com
Mon Nov 26 06:10:00 UTC 2012
>Number: 173927
>Category: ports
>Synopsis: ports/pefs no start/stop script provided with this port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 26 06:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: FreeBSD Proponent
>Release: FreeBSD 8.3-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD 8.3-RELEASE-p4 #3: Thu Oct 25 04:07:53 CDT 2012
pefs-kmod-2012.09.30
>Description:
No /usr/local/etc/rc.d start/stop script provided with this port
>How-To-Repeat:
>Fix:
--- usr_local_etc_rc.d_pefs begins here ---
#!/bin/sh
# PROVIDE: pefs
#
# pefs_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable
# pefs_flags (string): Set to base filesystem/directory to encrypt
. /etc/rc.subr
name="pefs"
rcvar=pefs_enable
start_cmd="pefs_start"
stop_cmd="pefs_stop"
command="/usr/local/sbin/pefs"
load_rc_config ${name}
pefs_start()
{
$command mount ${pefs_flags}.enc ${pefs_flags}
$command addkey -c ${pefs_flags}
}
pefs_stop()
{
$command unmount -f -v ${pefs_flags}
}
run_rc_command "$1"
--- usr_local_etc_rc.d_pefs ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list