ports/183502: Add an optional startup script for kpropd
Brad Davis
brd at FreeBSD.org
Wed Oct 30 21:30:01 UTC 2013
>Number: 183502
>Category: ports
>Synopsis: Add an optional startup script for kpropd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 30 21:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Brad Davis
>Release: FreeBSD 9.1-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
Add an optional startup script for kpropd
>How-To-Repeat:
>Fix:
--- krb5-kpropdrc.diff begins here ---
Index: security/krb5/Makefile
===================================================================
--- security/krb5/Makefile (revision 332144)
+++ security/krb5/Makefile (working copy)
@@ -46,6 +46,7 @@
LDFLAGS+= -L${LOCALBASE}/lib
USE_OPENSSL= yes
+USE_RC_SUBR= kpropd
NO_STAGE= yes
.include <bsd.port.pre.mk>
Index: security/krb5/files/kpropd.in
===================================================================
--- security/krb5/files/kpropd.in (revision 0)
+++ security/krb5/files/kpropd.in (working copy)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: kpropd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# kpropd_enable (bool): Set to NO by default.
+# Set it to YES to enable kpropd.
+# kpropd_flags (str): Set to "" by default.
+
+. /etc/rc.subr
+
+name=kpropd
+rcvar=kpropd_enable
+
+load_rc_config $name
+
+: ${kpropd_enable:="NO"}
+: ${kpropd_flags=""}
+
+command=%%PREFIX%%/sbin/${name}
+
+run_rc_command "$1"
Property changes on: security/krb5/files/kpropd.in
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+FreeBSD=%H
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- krb5-kpropdrc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list