mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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)
This commit is contained in:
parent
2ac724b87c
commit
cb1fc942f3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453488
3 changed files with 14 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
PORTNAME= fastdfs
|
PORTNAME= fastdfs
|
||||||
PORTVERSION= 5.0.11
|
PORTVERSION= 5.0.11
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= ftp
|
CATEGORIES= ftp
|
||||||
|
|
||||||
MAINTAINER= daniel@blodan.se
|
MAINTAINER= daniel@blodan.se
|
||||||
|
@ -23,6 +24,8 @@ USE_GITHUB= yes
|
||||||
GH_ACCOUNT= happyfish100
|
GH_ACCOUNT= happyfish100
|
||||||
GH_TAGNAME= 1e50b4f
|
GH_TAGNAME= 1e50b4f
|
||||||
|
|
||||||
|
SUB_FILES= fdfs_status
|
||||||
|
|
||||||
MAKE_ENV+= DESTDIR=${STAGEDIR}
|
MAKE_ENV+= DESTDIR=${STAGEDIR}
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
|
@ -33,5 +36,6 @@ do-install:
|
||||||
@${MKDIR} ${STAGEDIR}/var/db/fastdfs
|
@${MKDIR} ${STAGEDIR}/var/db/fastdfs
|
||||||
@${MKDIR} ${STAGEDIR}/var/db/fastdfs/tracker
|
@${MKDIR} ${STAGEDIR}/var/db/fastdfs/tracker
|
||||||
@${MKDIR} ${STAGEDIR}/var/db/fastdfs/storage
|
@${MKDIR} ${STAGEDIR}/var/db/fastdfs/storage
|
||||||
|
${INSTALL_SCRIPT} ${WRKDIR}/fdfs_status ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
9
ftp/fastdfs/files/fdfs_status.in
Normal file
9
ftp/fastdfs/files/fdfs_status.in
Normal file
|
@ -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'
|
|
@ -6,6 +6,7 @@ bin/fdfs_delete_file
|
||||||
bin/fdfs_download_file
|
bin/fdfs_download_file
|
||||||
bin/fdfs_file_info
|
bin/fdfs_file_info
|
||||||
bin/fdfs_monitor
|
bin/fdfs_monitor
|
||||||
|
bin/fdfs_status
|
||||||
bin/fdfs_storaged
|
bin/fdfs_storaged
|
||||||
bin/fdfs_test
|
bin/fdfs_test
|
||||||
bin/fdfs_test1
|
bin/fdfs_test1
|
||||||
|
|
Loading…
Add table
Reference in a new issue