aboutsummaryrefslogtreecommitdiff
path: root/sysutils/p5-MogileFS-Server
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-02-14 11:06:28 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-02-14 11:06:28 +0000
commit0bc12cd0f60a1df6b4b1b29518daa76656a06967 (patch)
treea17a1a4b90210c8a55497425d650ccd30d7b623e /sysutils/p5-MogileFS-Server
parent1fd602fdace4d739eae89dfd7d362e30377b5cac (diff)
downloadports-0bc12cd0f60a1df6b4b1b29518daa76656a06967.tar.gz
ports-0bc12cd0f60a1df6b4b1b29518daa76656a06967.zip
Notes
Diffstat (limited to 'sysutils/p5-MogileFS-Server')
-rw-r--r--sysutils/p5-MogileFS-Server/Makefile2
-rw-r--r--sysutils/p5-MogileFS-Server/files/mogilefsd.in13
-rw-r--r--sysutils/p5-MogileFS-Server/files/mogstored.in13
3 files changed, 17 insertions, 11 deletions
diff --git a/sysutils/p5-MogileFS-Server/Makefile b/sysutils/p5-MogileFS-Server/Makefile
index 59073b8c9fef..59154b3ab2b4 100644
--- a/sysutils/p5-MogileFS-Server/Makefile
+++ b/sysutils/p5-MogileFS-Server/Makefile
@@ -7,7 +7,7 @@
PORTNAME= MogileFS-Server
PORTVERSION= 2.57
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:DORMANDO
diff --git a/sysutils/p5-MogileFS-Server/files/mogilefsd.in b/sysutils/p5-MogileFS-Server/files/mogilefsd.in
index 1db6fa36e7eb..bf10253e8c73 100644
--- a/sysutils/p5-MogileFS-Server/files/mogilefsd.in
+++ b/sysutils/p5-MogileFS-Server/files/mogilefsd.in
@@ -1,19 +1,22 @@
#!/bin/sh
-#
+
# $FreeBSD$
#
-
# PROVIDE: mogilefsd
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr
-name="mogilefsd"
+name=mogilefsd
rcvar=mogilefsd_enable
+
+load_rc_config mogilefsd
+
+: ${mogilefsd_enable:="NO"}
+
required_files=%%PREFIX%%/etc/mogtracker.conf
-[ -z "$mogilefsd_enable" ] && mogilefsd_enable="NO"
-[ -z "$mogilefsd_flags" ] && mogilefsd_flags="--config=%%PREFIX%%/etc/mogtracker.conf"
+command_args="--config=%%PREFIX%%/etc/mogtracker.conf"
run_rc_command "$1"
diff --git a/sysutils/p5-MogileFS-Server/files/mogstored.in b/sysutils/p5-MogileFS-Server/files/mogstored.in
index cea82c080fcb..b8002eb7e85c 100644
--- a/sysutils/p5-MogileFS-Server/files/mogstored.in
+++ b/sysutils/p5-MogileFS-Server/files/mogstored.in
@@ -1,19 +1,22 @@
#!/bin/sh
-#
+
# $FreeBSD$
#
-
# PROVIDE: mogstored
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr
-name="mogstored"
+name=mogstored
rcvar=mogstored_enable
+
+load_rc_config mogstored
+
+: ${mogstored_enable:="NO"}
+
required_files=%%PREFIX%%/etc/mogstored.conf
-[ -z "$mogstored_enable" ] && mogstored_enable="NO"
-[ -z "$mogstored_flags" ] && mogstored_flags="-d --config=/usr/local/etc/mogstored.conf"
+command_args="--config=%%PREFIX%%/etc/mogstored.conf -d"
run_rc_command "$1"