aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/p5-MogileFS-Server
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2012-02-12 06:37:24 +0800
committerpgollucci <pgollucci@FreeBSD.org>2012-02-12 06:37:24 +0800
commit2ca5013b705fe84c4303554bf882db03b146f049 (patch)
treefa5c3163ac22572fc9aad71db158ff6cf5c983e1 /sysutils/p5-MogileFS-Server
parentcae70698b375d5696a37c6702f6a6550306381c3 (diff)
downloadfreebsd-ports-gnome-2ca5013b705fe84c4303554bf882db03b146f049.tar.gz
freebsd-ports-gnome-2ca5013b705fe84c4303554bf882db03b146f049.tar.zst
freebsd-ports-gnome-2ca5013b705fe84c4303554bf882db03b146f049.zip
- Add rc.d files
- Bump PORTREVISION PR: ports/164876 Submitted by: Gea-Suan Lin <gslin@gslin.org> With Hat: perl@
Diffstat (limited to 'sysutils/p5-MogileFS-Server')
-rw-r--r--sysutils/p5-MogileFS-Server/Makefile2
-rw-r--r--sysutils/p5-MogileFS-Server/files/mogilefsd.in19
-rw-r--r--sysutils/p5-MogileFS-Server/files/mogstored.in19
3 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/p5-MogileFS-Server/Makefile b/sysutils/p5-MogileFS-Server/Makefile
index 23cce0d2a1de..59073b8c9fef 100644
--- a/sysutils/p5-MogileFS-Server/Makefile
+++ b/sysutils/p5-MogileFS-Server/Makefile
@@ -7,6 +7,7 @@
PORTNAME= MogileFS-Server
PORTVERSION= 2.57
+PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:DORMANDO
@@ -27,6 +28,7 @@ BUILD_DEPENDS= p5-Danga-Socket>=1.56:${PORTSDIR}/devel/p5-Danga-Socket \
RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
+USE_RC_SUBR= mogilefsd mogstored
MAN1= mogautomount.1 \
mogilefsd.1 \
diff --git a/sysutils/p5-MogileFS-Server/files/mogilefsd.in b/sysutils/p5-MogileFS-Server/files/mogilefsd.in
new file mode 100644
index 000000000000..1db6fa36e7eb
--- /dev/null
+++ b/sysutils/p5-MogileFS-Server/files/mogilefsd.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mogilefsd
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="mogilefsd"
+rcvar=mogilefsd_enable
+required_files=%%PREFIX%%/etc/mogtracker.conf
+
+[ -z "$mogilefsd_enable" ] && mogilefsd_enable="NO"
+[ -z "$mogilefsd_flags" ] && mogilefsd_flags="--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
new file mode 100644
index 000000000000..cea82c080fcb
--- /dev/null
+++ b/sysutils/p5-MogileFS-Server/files/mogstored.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mogstored
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="mogstored"
+rcvar=mogstored_enable
+required_files=%%PREFIX%%/etc/mogstored.conf
+
+[ -z "$mogstored_enable" ] && mogstored_enable="NO"
+[ -z "$mogstored_flags" ] && mogstored_flags="-d --config=/usr/local/etc/mogstored.conf"
+
+run_rc_command "$1"