diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/p5-MogileFS-Server/Makefile | 2 | ||||
-rw-r--r-- | sysutils/p5-MogileFS-Server/files/mogilefsd.in | 19 | ||||
-rw-r--r-- | sysutils/p5-MogileFS-Server/files/mogstored.in | 19 |
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" |