diff --git a/ftp/fastdfs/Makefile b/ftp/fastdfs/Makefile index 27fad127ba6e..eb5918a71ee2 100644 --- a/ftp/fastdfs/Makefile +++ b/ftp/fastdfs/Makefile @@ -1,42 +1,43 @@ PORTNAME= fastdfs PORTVERSION= 6.0.6 +PORTREVISION= 1 CATEGORIES= ftp MAINTAINER= daniel@blodan.se COMMENT= High performance distributed file system (DFS) WWW= https://github.com/happyfish100/fastdfs LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING-3_0.txt BROKEN_mips= fails to link: tracker_service.c:270: undefined reference to '__sync_add_and_fetch_4' BROKEN_mips64= fails to link: tracker_service.c:270: undefined reference to '__sync_add_and_fetch_4' LIB_DEPENDS= libfastcommon.so:devel/libfastcommon USES= perl5 USE_LDCONFIG= yes USE_RC_SUBR= fdfs_storaged fdfs_trackerd USERS= _fastdfs GROUPS= _fastdfs USE_GITHUB= yes GH_ACCOUNT= happyfish100 GH_TAGNAME= V6.06 SUB_FILES= fdfs_status MAKE_ENV+= DESTDIR=${STAGEDIR} do-build: cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} make.sh do-install: cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} make.sh 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 diff --git a/ftp/fastdfs/files/fdfs_storaged.in b/ftp/fastdfs/files/fdfs_storaged.in index 75099f468214..8d63067969ee 100644 --- a/ftp/fastdfs/files/fdfs_storaged.in +++ b/ftp/fastdfs/files/fdfs_storaged.in @@ -1,44 +1,45 @@ #!/bin/sh # PROVIDE: fdfs_storaged # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable `fdfs_storaged': # # fdfs_storaged_enable="YES" # . /etc/rc.subr name="fdfs_storaged" rcvar=fdfs_storaged_enable command="%%PREFIX%%/bin/fdfs_storaged" pidfile="/var/run/fdfs_storaged.pid" start_postcmd="${name}_poststart" stop_postcmd="rm ${pidfile}" fdfs_storaged_poststart() { /bin/ps auxwww|/usr/bin/grep fdfs_storaged|/usr/bin/grep -v 'grep'|grep -v 'rc.d'|/usr/bin/awk '{print $2;}' > /var/run/fdfs_storaged.pid currpid=`/bin/cat /var/run/fdfs_storaged.pid` if [ "$currpid" -gt 0 ]; then echo "Started fdfs_storaged." fi } # read configuration and set defaults load_rc_config "$name" : ${fdfs_storaged_enable="NO"} +: ${fdfs_storaged_svcj_options:="net_basic"} : ${fdfs_storaged_config="%%PREFIX%%/etc/fdfs/storage.conf"} command_args="${fdfs_storaged_config}" required_files="${fdfs_storaged_config}" run_rc_command "$1" diff --git a/ftp/fastdfs/files/fdfs_trackerd.in b/ftp/fastdfs/files/fdfs_trackerd.in index 82e8973c034f..1f4dc74f23a6 100644 --- a/ftp/fastdfs/files/fdfs_trackerd.in +++ b/ftp/fastdfs/files/fdfs_trackerd.in @@ -1,44 +1,45 @@ #!/bin/sh # PROVIDE: fdfs_trackerd # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable `fdfs_trackerd': # # fdfs_trackerd_enable="YES" # . /etc/rc.subr name="fdfs_trackerd" rcvar=fdfs_trackerd_enable command="%%PREFIX%%/bin/fdfs_trackerd" pidfile="/var/run/fdfs_trackerd.pid" start_postcmd="${name}_poststart" stop_postcmd="rm ${pidfile}" fdfs_trackerd_poststart() { /bin/ps auxwww|/usr/bin/grep fdfs_trackerd|/usr/bin/grep -v 'grep'|grep -v 'rc.d'|/usr/bin/awk '{print $2;}' > /var/run/fdfs_trackerd.pid currpid=`/bin/cat /var/run/fdfs_trackerd.pid` if [ "$currpid" -gt 0 ]; then echo "Started fdfs_trackerd." fi } # read configuration and set defaults load_rc_config "$name" : ${fdfs_trackerd_enable="NO"} +: ${fdfs_trackerd_svcj_options:="net_basic"} : ${fdfs_trackerd_config="%%PREFIX%%/etc/fdfs/tracker.conf"} command_args="${fdfs_trackerd_config}" required_files="${fdfs_trackerd_config}" run_rc_command "$1"