freebsd-ports/security/fakeident/files/fakeidentd.in
Thomas Zander 9f00d22fe8 Include source file in the ports tree; use rc script
- The original distfile URL seems to be quite unreliable. The only
  distfile (a single .c file) is small and hence included in the
  ports tree.
- Use a proper rc startup script.

PR:		198263
Submitted by:	jgh
Approved by:	dean@odyssey.apana.org.au
2015-12-31 19:01:05 +00:00

31 lines
593 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: fakeidentd
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf[.local] to enable fakeident.
#
# fakeidentd_enable (bool): Set to 'YES' to enable
# Default: NO
. /etc/rc.subr
# This can be changed as desired.
# The username does not need to exist anywhere in your system.
name=fakeidentd
rcvar=fakeidentd_enable
load_rc_config $name
: ${fakeidentd_enable:="NO"}
command=%%PREFIX%%/sbin/identd
pidfile=/var/run/identd.pid
command_args="nobody && echo -n ' fakeidentd'"
run_rc_command "$1"