freebsd-ports/net-p2p/rslsync/Makefile
Jochen Neumeister 16d82c2750 Update to 2.6.1
Changelog:
- Security fix with btsync:// protocol
- Fixed crashes when reading damaged database
- Removed false positive "Cannot get list of trackers" error message
- Fixed joining multicasts on 172.16.0.0/12 networks
- Fixed showing duplicated peers and devices on OS X
- Fixed failure to save settings in WebUI sometimes
- Fixed decrypting files on encrypted peer

Changelog: https://help.resilio.com/hc/en-us/articles/206216855-Sync-2-x-change-log

PR:		232345
Reported by:	Volodymyr Kostyrko <arcade@b1t.name> (maintainer)
MFH:		2018Q4
Sponsored by:	Netzkommune GmbH
2018-11-10 19:22:59 +00:00

52 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= rslsync
PORTVERSION= 2.6.1
CATEGORIES= net-p2p
MASTER_SITES= https://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \
http://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/
DISTNAME= resilio-sync_freebsd_${CONFIG_ARCH}
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= joshruehlig@gmail.com
COMMENT= Distributed peer-to-peer file syncing application
LICENSE= EULA
LICENSE_NAME= Resilio Sync
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
LICENSE_PERMS= auto-accept
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= It is a binary-only program. Source code not available.
PLIST_SUB= USER=${USERS} GROUP=${GROUPS}
SUB_LIST= USER=${USERS} GROUP=${GROUPS}
SUB_FILES= pkg-message
USE_RC_SUBR= rslsync
USERS= rslsync
GROUPS= ${USERS}
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CONFIG_ARCH= x64
.else
CONFIG_ARCH= ${ARCH}
.endif
do-build:
${WRKSRC}/rslsync --nodaemon --storage ${WRKSRC} --dump-sample-config > ${WRKSRC}/rslsync.conf.sample
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/rslsync",;' ${WRKSRC}/rslsync.conf.sample
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/run/rslsync/rslsync.pid",;' ${WRKSRC}/rslsync.conf.sample
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rslsync ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/rslsync.conf.sample ${STAGEDIR}${PREFIX}/etc
${MKDIR} ${STAGEDIR}/var/db/rslsync
maintainer-makesum:
for arch in ${ONLY_FOR_ARCHS}; do ${MAKE} DISTINFO_FILE=/dev/stdout ARCH=$$arch makesum; done | awk '$$1 != "TIMESTAMP" || NR == 1' > ${DISTINFO_FILE}
.include <bsd.port.post.mk>