From 88fa73528524e32ad132d45b3c558b81176631eb Mon Sep 17 00:00:00 2001 From: pi Date: Tue, 6 Sep 2016 18:25:54 +0000 Subject: security/zeronet: 0.3.7 -> 0.4.0 - Merger sites - User file archiving - Allow to store custom fields in json table PR: 212422 Submitted by: Yuri Victorovich (maintainer) --- security/zeronet/Makefile | 3 +-- security/zeronet/distinfo | 6 +++--- security/zeronet/files/zeronet-service.in | 14 ++++++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) (limited to 'security') diff --git a/security/zeronet/Makefile b/security/zeronet/Makefile index ccfc2f927e50..001c0f199b5d 100644 --- a/security/zeronet/Makefile +++ b/security/zeronet/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= zeronet -PORTVERSION= 0.3.7 -#DISTVERSIONPREFIX= v +PORTVERSION= 0.4.0 CATEGORIES= security net-p2p MAINTAINER= yuri@rawbw.com diff --git a/security/zeronet/distinfo b/security/zeronet/distinfo index 8a94f8e55324..2cd469cf62d0 100644 --- a/security/zeronet/distinfo +++ b/security/zeronet/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1464561785 -SHA256 (HelloZeroNet-ZeroNet-0.3.7-523a7d4_GH0.tar.gz) = ec7004ecfbce36ad83e708161f5553b76bdb5b6fb2954aa2a04a391d6047c7cc -SIZE (HelloZeroNet-ZeroNet-0.3.7-523a7d4_GH0.tar.gz) = 2384517 +TIMESTAMP = 1473177926 +SHA256 (HelloZeroNet-ZeroNet-0.4.0-523a7d4_GH0.tar.gz) = ec7004ecfbce36ad83e708161f5553b76bdb5b6fb2954aa2a04a391d6047c7cc +SIZE (HelloZeroNet-ZeroNet-0.4.0-523a7d4_GH0.tar.gz) = 2384517 diff --git a/security/zeronet/files/zeronet-service.in b/security/zeronet/files/zeronet-service.in index 0ef586b2bf7b..00593fce5549 100644 --- a/security/zeronet/files/zeronet-service.in +++ b/security/zeronet/files/zeronet-service.in @@ -3,10 +3,10 @@ # $FreeBSD$ # -# Copyright (C) 2015 by Yuri Victorovich. All rights reserved. +# Copyright (C) 2016 by Yuri Victorovich. All rights reserved. # PROVIDE: zeronet -# REQUIRE: LOGIN +# REQUIRE: NETWORKING SERVERS tor # KEYWORD: shutdown # zeronet is disabled by default, if you have configuration file @@ -22,6 +22,7 @@ name="zeronet" rcvar=zeronet_enable start_cmd="zeronet_start" stop_cmd="zeronet_stop" +status_cmd="zeronet_status" load_rc_config ${name} @@ -74,6 +75,15 @@ zeronet_stop() { fi } +zeronet_status() { + local pidfile=/var/run/zeronet.pid + if is_process_running $pidfile; then + echo "zeronet is running, pid=$(cat $pidfile)" + else + echo "zeronet isn't running" + fi +} + command="/usr/bin/true" run_rc_command "$1" -- cgit