Lines 1-8
Link Here
|
1 |
PORTNAME= rslsync |
1 |
PORTNAME= rslsync |
2 |
DISTVERSION= 2.7.3 |
2 |
DISTVERSION= 2.8.1.1390 |
3 |
CATEGORIES= net-p2p |
3 |
CATEGORIES= net-p2p |
4 |
MASTER_SITES= https://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ \ |
4 |
MASTER_SITES= https://download-cdn.resilio.com/${DISTVERSION}/freebsd/${CONFIG_ARCH}/0/ |
5 |
http://download-cdn.resilio.com/${PORTVERSION}/FreeBSD-${CONFIG_ARCH}/ |
|
|
6 |
DISTNAME= resilio-sync_freebsd_${CONFIG_ARCH} |
5 |
DISTNAME= resilio-sync_freebsd_${CONFIG_ARCH} |
7 |
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} |
6 |
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} |
8 |
|
7 |
|
Lines 22-27
USE_RC_SUBR= rslsync
Link Here
|
22 |
|
21 |
|
23 |
CONFLICTS_INSTALL= rslsync-beta |
22 |
CONFLICTS_INSTALL= rslsync-beta |
24 |
|
23 |
|
|
|
24 |
NO_BUILD= yes |
25 |
SUB_FILES= pkg-message |
25 |
SUB_FILES= pkg-message |
26 |
SUB_LIST= GROUP=${GROUPS} \ |
26 |
SUB_LIST= GROUP=${GROUPS} \ |
27 |
USER=${USERS} |
27 |
USER=${USERS} |
Lines 42-58
CONFIG_ARCH= x64
Link Here
|
42 |
CONFIG_ARCH= ${ARCH} |
42 |
CONFIG_ARCH= ${ARCH} |
43 |
.endif |
43 |
.endif |
44 |
|
44 |
|
45 |
do-build: |
|
|
46 |
${WRKSRC}/rslsync --nodaemon --storage ${WRKSRC} --dump-sample-config > ${WRKSRC}/rslsync.conf.sample |
47 |
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/rslsync",;' ${WRKSRC}/rslsync.conf.sample |
48 |
${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/run/rslsync/rslsync.pid",;' ${WRKSRC}/rslsync.conf.sample |
49 |
|
50 |
do-install: |
45 |
do-install: |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/rslsync ${STAGEDIR}${PREFIX}/bin |
46 |
${INSTALL_PROGRAM} ${WRKSRC}/rslsync ${STAGEDIR}${PREFIX}/bin |
52 |
${INSTALL_DATA} ${WRKSRC}/rslsync.conf.sample ${STAGEDIR}${PREFIX}/etc |
|
|
53 |
${MKDIR} ${STAGEDIR}/var/db/rslsync |
47 |
${MKDIR} ${STAGEDIR}/var/db/rslsync |
|
|
48 |
${STAGEDIR}${PREFIX}/bin/rslsync --nodaemon \ |
49 |
--storage ${WRKSRC} --dump-sample-config \ |
50 |
> ${STAGEDIR}${PREFIX}/etc/rslsync.conf.sample |
51 |
${REINPLACE_CMD} -e \ |
52 |
's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/rslsync",;' \ |
53 |
${STAGEDIR}${PREFIX}/etc/rslsync.conf.sample |
54 |
${REINPLACE_CMD} -e \ |
55 |
's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/run/rslsync/rslsync.pid",;' \ |
56 |
${STAGEDIR}${PREFIX}/etc/rslsync.conf.sample |
54 |
|
57 |
|
|
|
58 |
|
55 |
maintainer-makesum: |
59 |
maintainer-makesum: |
56 |
for arch in ${ONLY_FOR_ARCHS}; do ${MAKE} DISTINFO_FILE=/dev/stdout ARCH=$$arch makesum; done | ${AWK} '$$1 != "TIMESTAMP" || NR == 1' > ${DISTINFO_FILE} |
60 |
for arch in ${ONLY_FOR_ARCHS}; do \ |
|
|
61 |
${MAKE} DISTINFO_FILE=/dev/stdout ARCH=$$arch makesum; \ |
62 |
done | ${AWK} 'BEGIN{TS=0}/TIMESTAMP/{if(TS==0){print;TS=1};next}/S(HA256|IZE)/{print}' \ |
63 |
> ${DISTINFO_FILE} |
57 |
|
64 |
|
58 |
.include <bsd.port.post.mk> |
65 |
.include <bsd.port.post.mk> |