From owner-svn-ports-head@freebsd.org Sat Nov 4 21:35:37 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE53DE56A1B; Sat, 4 Nov 2017 21:35:37 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8829D837DA; Sat, 4 Nov 2017 21:35:37 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA4LZaba077801; Sat, 4 Nov 2017 21:35:36 GMT (envelope-from dbaio@FreeBSD.org) Received: (from dbaio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA4LZaPx077798; Sat, 4 Nov 2017 21:35:36 GMT (envelope-from dbaio@FreeBSD.org) Message-Id: <201711042135.vA4LZaPx077798@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dbaio set sender to dbaio@FreeBSD.org using -f From: "Danilo G. Baio" Date: Sat, 4 Nov 2017 21:35:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453488 - in head/ftp/fastdfs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: dbaio X-SVN-Commit-Paths: in head/ftp/fastdfs: . files X-SVN-Commit-Revision: 453488 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Nov 2017 21:35:37 -0000 Author: dbaio Date: Sat Nov 4 21:35:36 2017 New Revision: 453488 URL: https://svnweb.freebsd.org/changeset/ports/453488 Log: ftp/fastdfs: Add status command It helps in monitoring a cluster more easily. While here, fix svn properties. PR: 223044 Submitted by: Daniel Ylitalo (maintainer) Added: head/ftp/fastdfs/files/fdfs_status.in (contents, props changed) Modified: head/ftp/fastdfs/Makefile head/ftp/fastdfs/pkg-plist (contents, props changed) Directory Properties: head/ftp/fastdfs/distinfo (props changed) head/ftp/fastdfs/files/fdfs_storaged.in (props changed) head/ftp/fastdfs/files/fdfs_trackerd.in (props changed) head/ftp/fastdfs/files/patch-client-Makefile.in (props changed) head/ftp/fastdfs/files/patch-conf-client.conf (props changed) head/ftp/fastdfs/files/patch-conf-storage.conf (props changed) head/ftp/fastdfs/files/patch-conf-tracker.conf (props changed) head/ftp/fastdfs/files/patch-make.sh (props changed) head/ftp/fastdfs/files/patch-storage-Makefile.in (props changed) head/ftp/fastdfs/files/patch-tracker-Makefile.in (props changed) head/ftp/fastdfs/pkg-descr (props changed) Modified: head/ftp/fastdfs/Makefile ============================================================================== --- head/ftp/fastdfs/Makefile Sat Nov 4 21:06:32 2017 (r453487) +++ head/ftp/fastdfs/Makefile Sat Nov 4 21:35:36 2017 (r453488) @@ -2,6 +2,7 @@ PORTNAME= fastdfs PORTVERSION= 5.0.11 +PORTREVISION= 1 CATEGORIES= ftp MAINTAINER= daniel@blodan.se @@ -23,6 +24,8 @@ USE_GITHUB= yes GH_ACCOUNT= happyfish100 GH_TAGNAME= 1e50b4f +SUB_FILES= fdfs_status + MAKE_ENV+= DESTDIR=${STAGEDIR} do-build: @@ -33,5 +36,6 @@ do-install: @${MKDIR} ${STAGEDIR}/var/db/fastdfs @${MKDIR} ${STAGEDIR}/var/db/fastdfs/tracker @${MKDIR} ${STAGEDIR}/var/db/fastdfs/storage + ${INSTALL_SCRIPT} ${WRKDIR}/fdfs_status ${STAGEDIR}${PREFIX}/bin .include Added: head/ftp/fastdfs/files/fdfs_status.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ftp/fastdfs/files/fdfs_status.in Sat Nov 4 21:35:36 2017 (r453488) @@ -0,0 +1,9 @@ +#!/bin/sh + +. /etc/rc.subr + +load_rc_config "fdfs_client" + +: ${fdfs_client_config="%%PREFIX%%/etc/fdfs/client.conf"} + +%%PREFIX%%/bin/fdfs_monitor ${fdfs_client_config}|grep -E 'Group|Storage|id|ip_addr|last_synced_timestamp'|grep -v 'trunk file' Modified: head/ftp/fastdfs/pkg-plist ============================================================================== --- head/ftp/fastdfs/pkg-plist Sat Nov 4 21:06:32 2017 (r453487) +++ head/ftp/fastdfs/pkg-plist Sat Nov 4 21:35:36 2017 (r453488) @@ -6,6 +6,7 @@ bin/fdfs_delete_file bin/fdfs_download_file bin/fdfs_file_info bin/fdfs_monitor +bin/fdfs_status bin/fdfs_storaged bin/fdfs_test bin/fdfs_test1