Browse Source

net-mgmt/p5-GLPI-Agent: Added rc.d script

master
Sergey Kiselev 4 weeks ago
parent
commit
4af394c19c
  1. 2
      net-mgmt/p5-GLPI-Agent/Makefile
  2. 29
      net-mgmt/p5-GLPI-Agent/files/glpiagent.in
  3. 1
      net-mgmt/p5-GLPI-Agent/pkg-plist

2
net-mgmt/p5-GLPI-Agent/Makefile

@ -40,7 +40,7 @@ TEST_DEPENDS= p5-HTTP-Proxy>0:www/p5-HTTP-Proxy \
USES= gmake localbase perl5 USES= gmake localbase perl5
USE_PERL5= configure USE_PERL5= configure
#USE_RC_SUBR= glpi-agent USE_RC_SUBR= glpiagent
USE_GITHUB= nodefault USE_GITHUB= nodefault
GH_ACCOUNT= glpi-project GH_ACCOUNT= glpi-project

29
net-mgmt/p5-GLPI-Agent/files/glpiagent.in

@ -0,0 +1,29 @@
#!/bin/sh
# PROVIDE: glpiagent
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# glpiagent_enable (bool): Set to NO by default.
# Set it to YES to enable.
#
. /etc/rc.subr
name=glpiagent
rcvar=glpiagent_enable
load_rc_config $name
: ${glpiagent_enable:="NO"}
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/glpi-agent
command_args="--daemon --pidfile=${pidfile}"
#command_interpreter=%%PREFIX%%/bin/perl
run_rc_command "$1"

1
net-mgmt/p5-GLPI-Agent/pkg-plist

@ -15,6 +15,7 @@ etc/glpi-agent/server-test-plugin.cfg.new
etc/glpi-agent/snmp-advanced-support.cfg.new etc/glpi-agent/snmp-advanced-support.cfg.new
etc/glpi-agent/ssl-server-plugin.cfg.new etc/glpi-agent/ssl-server-plugin.cfg.new
etc/glpi-agent/toolbox-plugin.cfg.new etc/glpi-agent/toolbox-plugin.cfg.new
etc/rc.d/glpiagent
%%PERL5_MAN1%%/glpi-agent.1.gz %%PERL5_MAN1%%/glpi-agent.1.gz
%%PERL5_MAN1%%/glpi-esx.1.gz %%PERL5_MAN1%%/glpi-esx.1.gz
%%PERL5_MAN1%%/glpi-injector.1.gz %%PERL5_MAN1%%/glpi-injector.1.gz

Loading…
Cancel
Save