|
Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
| 2 |
|
| 3 |
PORTNAME= rslsync |
| 4 |
PORTVERSION= 2.5.6 |
| 5 |
CATEGORIES= net-p2p |
| 6 |
MASTER_SITES= https://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \ |
| 7 |
http://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ |
| 8 |
DISTNAME= resilio-sync_freebsd_${CONFIG_ARCH} |
| 9 |
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} |
| 10 |
|
| 11 |
MAINTAINER= joshruehlig@gmail.com |
| 12 |
COMMENT= Distributed peer-to-peer file syncing application |
| 13 |
|
| 14 |
LICENSE= EULA |
| 15 |
LICENSE_NAME= Resilio Sync |
| 16 |
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT |
| 17 |
LICENSE_PERMS= auto-accept |
| 18 |
|
| 19 |
NO_WRKSUBDIR= yes |
| 20 |
ONLY_FOR_ARCHS= amd64 i386 |
| 21 |
ONLY_FOR_ARCHS_REASON= It is a binary-only program. Source code not available. |
| 22 |
|
| 23 |
PLIST_SUB= USER=${USERS} GROUP=${GROUPS} |
| 24 |
SUB_LIST= USER=${USERS} GROUP=${GROUPS} |
| 25 |
SUB_FILES= pkg-message |
| 26 |
USE_RC_SUBR= rslsync |
| 27 |
|
| 28 |
USERS= rslsync |
| 29 |
GROUPS= ${USERS} |
| 30 |
|
| 31 |
.include <bsd.port.pre.mk> |
| 32 |
|
| 33 |
.if ${ARCH} == "amd64" |
| 34 |
CONFIG_ARCH= x64 |
| 35 |
.else |
| 36 |
CONFIG_ARCH= ${ARCH} |
| 37 |
.endif |
| 38 |
|
| 39 |
do-build: |
| 40 |
${WRKSRC}/rslsync --dump-sample-config > ${WRKSRC}/rslsync.conf.sample |
| 41 |
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/rslsync",;' ${WRKSRC}/rslsync.conf.sample |
| 42 |
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/run/rslsync/rslsync.pid",;' ${WRKSRC}/rslsync.conf.sample |
| 43 |
|
| 44 |
do-install: |
| 45 |
${INSTALL_PROGRAM} ${WRKSRC}/rslsync ${STAGEDIR}${PREFIX}/bin |
| 46 |
${INSTALL_DATA} ${WRKSRC}/rslsync.conf.sample ${STAGEDIR}${PREFIX}/etc |
| 47 |
${MKDIR} ${STAGEDIR}/var/db/rslsync |
| 48 |
|
| 49 |
.include <bsd.port.post.mk> |