View | Details | Raw Unified | Return to bug 194950 | Differences between
and this patch

Collapse All | Expand All

(-)btsync/Makefile (-4 / +4 lines)
Lines 1-7 Link Here
1
# $FreeBSD: head/net-p2p/btsync/Makefile 372282 2014-11-07 17:03:05Z robak $
1
# $FreeBSD: head/net-p2p/btsync/Makefile 372282 2014-11-07 17:03:05Z robak $
2
2
3
PORTNAME=	btsync
3
PORTNAME=	btsync
4
PORTVERSION=	1.4.93
4
PORTVERSION=	1.4.103
5
CATEGORIES=	net-p2p
5
CATEGORIES=	net-p2p
6
MASTER_SITES=	http://syncapp.bittorrent.com/${PORTVERSION}/
6
MASTER_SITES=	http://syncapp.bittorrent.com/${PORTVERSION}/
7
DISTNAME=	${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION}
7
DISTNAME=	${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION}
Lines 42-51 Link Here
42
do-install:
42
do-install:
43
	${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin
43
	${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin
44
	${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
44
	${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
45
	${REINPLACE_CMD} -e 's;^//\( *"storage_path" *: *\)"/.*",;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
45
	${REINPLACE_CMD} -e 's;^//\([[:space:]]*"storage_path"[[:space:]]*:[[:space:]]*\)"/.*",$$;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
46
	${REINPLACE_CMD} -e 's;^//\( *"pid_file" *: *"/var/run/${PORTNAME}/${PORTNAME}.pid",\);\1;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
46
	${REINPLACE_CMD} -e 's;^//\([[:space:]]*"pid_file"[[:space:]]*:[[:space:]]*"/var/run/${PORTNAME}/${PORTNAME}.pid",\)$$;\1;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
47
47
48
post-install:
48
post-stage:
49
	${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
49
	${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
50
50
51
.include <bsd.port.post.mk>
51
.include <bsd.port.post.mk>
(-)btsync/distinfo (-4 / +4 lines)
Lines 1-4 Link Here
1
SHA256 (btsync_freebsd_i386-1.4.93.tar.gz) = 0cb5459299325285644e063d4878ad7d9ed828e9b679537e270d22ce8a58527d
1
SHA256 (btsync_freebsd_i386-1.4.93.tar.gz) = b3413bd2b93df929ecf8bd71ee88b049efa27cf6d6a47d2e683536aa850ed4b8
2
SIZE (btsync_freebsd_i386-1.4.93.tar.gz) = 3593610
2
SIZE (btsync_freebsd_i386-1.4.93.tar.gz) = 3603220
3
SHA256 (btsync_freebsd_x64-1.4.93.tar.gz) = 8e1da143c9e3849264301fab6dee1978f3b8644dff49e958a56f7d81fdaa3494
3
SHA256 (btsync_freebsd_x64-1.4.103.tar.gz) = 9991256af165f2afd09819d18a186e13c9b325df090bb562367e564633860ce7
4
SIZE (btsync_freebsd_x64-1.4.93.tar.gz) = 3737221
4
SIZE (btsync_freebsd_x64-1.4.103.tar.gz) = 3744913
(-)btsync/files/btsync.in (-1 / +1 lines)
Lines 33-39 Link Here
33
command_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf"
33
command_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf"
34
34
35
start_precmd=%%PORTNAME%%_prestart
35
start_precmd=%%PORTNAME%%_prestart
36
%%PORTNAME%%_prestart(){
36
%%PORTNAME%%_prestart() {
37
	if [ ! -d ${pidfile%/*} ]; then
37
	if [ ! -d ${pidfile%/*} ]; then
38
		install -d -o $%%PORTNAME%%_user -g $%%PORTNAME%%_group ${pidfile%/*}
38
		install -d -o $%%PORTNAME%%_user -g $%%PORTNAME%%_group ${pidfile%/*}
39
	fi
39
	fi
(-)btsync/files/pkg-message.in (-3 / +3 lines)
Lines 3-13 Link Here
3
net-p2p/%%PORTNAME%% includes an RC script:
3
net-p2p/%%PORTNAME%% includes an RC script:
4
%%PREFIX%%/etc/rc.d/%%PORTNAME%%
4
%%PREFIX%%/etc/rc.d/%%PORTNAME%%
5
5
6
TO START BTSYNC ON BOOT:
6
TO START ON BOOT:
7
echo 'btsync_enable="YES"' >> /etc/rc.conf
7
# echo '%%PORTNAME%%_enable="YES"' >> /etc/rc.conf
8
8
9
START MANUALLY:
9
START MANUALLY:
10
%%PREFIX%%/etc/rc.d/%%PORTNAME%% start
10
# service %%PORTNAME%% start
11
11
12
Once started, visit the following to configure:
12
Once started, visit the following to configure:
13
http://localhost:8888/
13
http://localhost:8888/

Return to bug 194950