sysutils/p5-MogileFS-Server: fix issues with with daemon startup.
Assign maintainership of this and related ports to the submitter - he can take better care of these ports than perl@. PR: 171691 Submitted by: trociny
This commit is contained in:
parent
260679cf96
commit
f5e26f5a0c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310494
6 changed files with 27 additions and 8 deletions
|
@ -1,9 +1,5 @@
|
|||
# New ports collection makefile for: p5-MogileFS-Client
|
||||
# Date created: 2007-04-22
|
||||
# Whom: Gea-Suan Lin <gslin@gslin.org>
|
||||
#
|
||||
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= MogileFS-Client
|
||||
PORTVERSION= 1.16
|
||||
|
@ -12,7 +8,7 @@ MASTER_SITES= CPAN
|
|||
MASTER_SITE_SUBDIR= CPAN:DORMANDO
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
MAINTAINER= trociny@FreeBSD.org
|
||||
COMMENT= Client library for the MogileFS distributed file system
|
||||
|
||||
BUILD_DEPENDS= p5-IO-stringy>=2.102:${PORTSDIR}/devel/p5-IO-stringy \
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
|
||||
PORTNAME= MogileFS-Server
|
||||
PORTVERSION= 2.66
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= CPAN:DORMANDO
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
MAINTAINER= trociny@FreeBSD.org
|
||||
COMMENT= MogileFS (distributed filesystem) server
|
||||
|
||||
BUILD_DEPENDS= p5-Danga-Socket>=1.56:${PORTSDIR}/devel/p5-Danga-Socket \
|
||||
|
|
|
@ -17,6 +17,7 @@ load_rc_config mogilefsd
|
|||
|
||||
required_files=%%PREFIX%%/etc/mogtracker.conf
|
||||
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
command_args="--config=%%PREFIX%%/etc/mogtracker.conf"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
|
@ -17,6 +17,7 @@ load_rc_config mogstored
|
|||
|
||||
required_files=%%PREFIX%%/etc/mogstored.conf
|
||||
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
command_args="--config=%%PREFIX%%/etc/mogstored.conf -d"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
20
sysutils/p5-MogileFS-Server/files/patch-mogstored
Normal file
20
sysutils/p5-MogileFS-Server/files/patch-mogstored
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- mogstored.ORIG 2012-09-16 12:38:08.000000000 +0300
|
||||
+++ mogstored 2012-09-16 18:48:02.000000000 +0300
|
||||
@@ -99,8 +99,6 @@ my $httpsrv = $httpsrv_class->new(
|
||||
maxconns => $max_conns,
|
||||
bin => $serverbin,
|
||||
);
|
||||
-$httpsrv->start;
|
||||
-
|
||||
if ($opt_daemonize) {
|
||||
$httpsrv->pre_daemonize;
|
||||
Perlbal::daemonize();
|
||||
@@ -108,6 +106,8 @@ if ($opt_daemonize) {
|
||||
print "Running.\n";
|
||||
}
|
||||
|
||||
+$httpsrv->start;
|
||||
+
|
||||
$httpsrv->post_daemonize;
|
||||
|
||||
# kill our children processes on exit:
|
|
@ -8,7 +8,7 @@ MASTER_SITES= CPAN
|
|||
MASTER_SITE_SUBDIR= CPAN:DORMANDO
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
MAINTAINER= trociny@FreeBSD.org
|
||||
COMMENT= MogileFS tools
|
||||
|
||||
BUILD_DEPENDS= p5-MogileFS-Client>=1.16:${PORTSDIR}/sysutils/p5-MogileFS-Client \
|
||||
|
|
Loading…
Reference in a new issue