Date: Sat, 4 Nov 2017 21:35:36 +0000 (UTC) From: "Danilo G. Baio" <dbaio@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453488 - in head/ftp/fastdfs: . files Message-ID: <201711042135.vA4LZaPx077798@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <daniel@blodan.se> (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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711042135.vA4LZaPx077798>