* while here, adopt the port; * files/patch-Makefile; use CC=${CC} for clang and GCC compatibility; use PREFIX instead of hardcoding "/usr/local"; better use WFLAGS+= (with a plus). * also updated 'pkg-descr' with a longer description about the port. PR: 230990 Submitted by: egypcio Approved by: rene (mentor)
23 lines
342 B
Bash
23 lines
342 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: dhisd
|
|
# REQUIRE: SERVERS
|
|
|
|
. /etc/rc.subr
|
|
|
|
: ${dhisd_enable="NO"}
|
|
: ${dhisd_flags=""}
|
|
: ${dhisd_user="%%USER%%"}
|
|
: ${dhisd_group="%%GROUP%%"}
|
|
|
|
name="dhisd"
|
|
rcvar="${name}_enable"
|
|
command="%%PREFIX%%/sbin/dhisd"
|
|
command_args=""
|
|
|
|
pidfile="/var/run/dhis/${name}.pid"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|