mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 15:59:18 -04:00
- Fix distinfo (checksum and size were corrupted in last update) - Remove security/crytopp dependency that the port does not use - Fix typo in IGNORE message - Move pkgconf dependency to USES - Depend on python ports correctly - Remove CMAKE_BUILD_TYPE - it already is set to "Release" by the framework - Bump PORTREVISION for dependency changes PR: 230665 Submitted by: Willem Jan Withagen <wjw@digiware.nl> (maintainer)
36 lines
637 B
Bash
36 lines
637 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ceph
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: securelevel
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable `ceph':
|
|
#
|
|
# ceph_enable="YES"
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
PATH=$PATH:%%PREFIX%%/bin:%%PREFIX%%/sbin
|
|
|
|
name="ceph"
|
|
rcvar=${name}_enable
|
|
extra_commands="condrestart"
|
|
|
|
load_rc_config ${name}
|
|
|
|
# read configuration and set defaults
|
|
: ${ceph_enable="NO"}
|
|
: ${ceph_configfile:=%%PREFIX%%/etc/ceph/ceph.conf}
|
|
|
|
start_cmd="%%PREFIX%%/bin/init-ceph $*"
|
|
stop_cmd="%%PREFIX%%/bin/init-ceph $*"
|
|
restart_cmd="%%PREFIX%%/bin/init-ceph $*"
|
|
condrestart_cmd="%%PREFIX%%/bin/init-ceph $*"
|
|
|
|
run_rc_command "$1"
|
|
|