mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
d57f3af0d8
Detaile log: - Fixed issue with all folders disconnected by devices that reconnect after 30 days being offline - Fixed Sync crashing on QNAP NAS - Fixed Sync doesn't let HDD sleep on Synology NAS - Fixed bind_interface power option not working on Mac - Fixed files moved to Archive when unplugging USB drive with synced folder - Fixed inability to share the folder as Owner after disconnection - Added parameter to get Sync version thru API - Improved Sync compatibility to FlexRaid disk pool PR: 210555 Submitted by: joshruehlig@gmail.com (maintainer)
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= btsync
|
|
PORTVERSION= 2.3.8
|
|
CATEGORIES= net-p2p
|
|
MASTER_SITES= https://download-cdn.getsync.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \
|
|
http://download-cdn.getsync.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/
|
|
DISTNAME= BitTorrent-Sync_freebsd_${CONFIG_ARCH}
|
|
|
|
MAINTAINER= joshruehlig@gmail.com
|
|
COMMENT= Distributed peer-to-peer file syncing application
|
|
|
|
LICENSE= EULA
|
|
LICENSE_NAME= BitTorrent Sync
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
LICENSE_PERMS= auto-accept
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= It is a binary-only program. Source code not available.
|
|
|
|
PLIST_SUB= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
|
|
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
|
|
SUB_FILES= pkg-message
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
USERS= ${PORTNAME}
|
|
GROUPS= ${USERS}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
CONFIG_ARCH= x64
|
|
.else
|
|
CONFIG_ARCH= ${ARCH}
|
|
.endif
|
|
|
|
post-extract:
|
|
${MKDIR} ${WRKSRC}/temp
|
|
${MV} ${WRKSRC}/${PORTNAME} ${WRKSRC}/temp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin
|
|
${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*"/var/run/${PORTNAME}/${PORTNAME}.pid",\)$$;\1;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
|
|
post-stage:
|
|
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
|
|
|
|
.include <bsd.port.post.mk>
|