ports/www/archiva/files/archiva.in
Jochen Neumeister 10ef45242b New Port: www/archiva
Apache Archiva is an extensible repository management software that helps taking
care of your own personal or enterprise-wide build artifact repository. It is
the perfect companion for build tools such as Maven, Continuum, and ANT.

Archiva offers several capabilities, amongst which remote repository proxying,
security access management, build artifact storage, delivery, browsing, indexing
and usage reporting, extensible scanning functionality and many more!

WWW: https://archiva.apache.org

PR:	203071
Submitted by:	Dušan Vejnovič <freebsd@dussan.org>
Differential Revision:	https://reviews.freebsd.org/D15656
2018-07-07 10:37:52 +00:00

39 lines
584 B
Bash

#!/bin/sh
# PROVIDE: archiva
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Configuration settings for archiva in /etc/rc.conf:
#
# archiva_enable (bool):
# Set to "NO" by default.
# Set it to "YES" to enable archiva.
#
. /etc/rc.subr
name="archiva"
rcvar=archiva_enable
load_rc_config $name
archiva_enable="${archiva_enable:-"NO"}"
start_cmd="archiva_start"
stop_cmd="archiva_stop"
pidfile="%%PREFIX%%/archiva/logs/archiva.pid"
archiva_start()
{
%%PREFIX%%/share/archiva/bin/archiva start
}
archiva_stop()
{
%%PREFIX%%/share/archiva/bin/archiva stop
}
run_rc_command "$1"