aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb5
diff options
context:
space:
mode:
authorbrd <brd@FreeBSD.org>2014-04-21 23:55:07 +0800
committerbrd <brd@FreeBSD.org>2014-04-21 23:55:07 +0800
commit3cbb2aef052728425ef020a55479e186e701735e (patch)
tree76a5ff0aa4af1f47d6e1f2cd3a695f4e197b62b6 /security/krb5
parenta18981aca333498712e7e47f02b6051133c26921 (diff)
downloadfreebsd-ports-gnome-3cbb2aef052728425ef020a55479e186e701735e.tar.gz
freebsd-ports-gnome-3cbb2aef052728425ef020a55479e186e701735e.tar.zst
freebsd-ports-gnome-3cbb2aef052728425ef020a55479e186e701735e.zip
- Add a startup script for kpropd
PR: 183502 Submitted by: brd@ Approved by: bdrewery@
Diffstat (limited to 'security/krb5')
-rw-r--r--security/krb5/Makefile3
-rw-r--r--security/krb5/files/kpropd.in28
2 files changed, 30 insertions, 1 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile
index 7de75c3d2f4b..b2cab259fa0a 100644
--- a/security/krb5/Makefile
+++ b/security/krb5/Makefile
@@ -3,7 +3,7 @@
PORTNAME= krb5
PORTVERSION= 1.12.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-signed
@@ -49,6 +49,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
USE_OPENSSL= yes
+USE_RC_SUBR= kpropd
.include <bsd.port.pre.mk>
diff --git a/security/krb5/files/kpropd.in b/security/krb5/files/kpropd.in
new file mode 100644
index 000000000000..faa27dc7dbba
--- /dev/null
+++ b/security/krb5/files/kpropd.in
@@ -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"