Index: head/security/munge/Makefile =================================================================== --- head/security/munge/Makefile (revision 525975) +++ head/security/munge/Makefile (revision 525976) @@ -1,25 +1,26 @@ # Created by: Muhammad Moinur Rahman <5u623l20@gmail.com> # $FreeBSD$ PORTNAME= munge PORTVERSION= 0.5.14 DISTVERSIONPREFIX= ${PORTNAME}- +PORTREVISION= 1 CATEGORIES= security MAINTAINER= bofh@FreeBSD.org COMMENT= Authentication service for creating and validating credentials LICENSE= GPLv3 LGPL3 LICENSE_COMB= dual GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-openssl-prefix=${OPENSSLBASE} USES= autoreconf libtool pathfix perl5 ssl USE_LDCONFIG= yes USE_RC_SUBR= munged INSTALL_TARGET= install-strip USE_GITHUB= yes GH_ACCOUNT= dun .include Index: head/security/munge/files/munged.in =================================================================== --- head/security/munge/files/munged.in (revision 525975) +++ head/security/munge/files/munged.in (revision 525976) @@ -1,42 +1,40 @@ #!/bin/sh # PROVIDE: munged # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following line to /etc/rc.conf to enable munged: # munged_enable (bool): Set to "NO" by default. # Set it to "YES" to enable munged. # munged_keyfile (str): Set to "/usr/local/etc/munge/munge.key" by default. # Custom munge key. # munged_pidfile (str): Set to "/var/run/munged.pid" by default. # Custum PID file path and name. # munged_flags (str): Set to "" by default. # Extra flags passed to start command. . /etc/rc.subr name="munged" rcvar=munged_enable stop_cmd="munged_stop" load_rc_config $name : ${munged_enable="NO"} munged_user=root munged_keyfile="%%PREFIX%%/etc/munge/munge.key" pidfile="/var/run/munge/${name}.pid" command="%%PREFIX%%/sbin/${name}" command_args="--key-file=${munged_keyfile}" munged_stop() { if [ -f "${pidfile}" ]; then - kill -9 `cat ${pidfile}` - sleep 1 # wait a little bit - rm -f /var/run/munge/* + kill `cat ${pidfile}` fi } run_rc_command "$1"