mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
Update to 1.4.103
Some rc script fixes; make rclint happy PR: ports/194950 Submitted by: joshruehlig@gmail.com (maintainer)
This commit is contained in:
parent
4c27ce9bdf
commit
cb494355fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373424
4 changed files with 14 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= btsync
|
||||
PORTVERSION= 1.4.93
|
||||
PORTVERSION= 1.4.103
|
||||
CATEGORIES= net-p2p
|
||||
MASTER_SITES= http://syncapp.bittorrent.com/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION}
|
||||
|
@ -42,10 +42,10 @@ post-extract:
|
|||
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;^//\( *"storage_path" *: *\)"/.*",;\1"/var/db/${PORTNAME}",;' ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${REINPLACE_CMD} -e 's;^//\( *"pid_file" *: *"/var/run/${PORTNAME}/${PORTNAME}.pid",\);\1;' ${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-install:
|
||||
post-stage:
|
||||
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SHA256 (btsync_freebsd_i386-1.4.93.tar.gz) = 0cb5459299325285644e063d4878ad7d9ed828e9b679537e270d22ce8a58527d
|
||||
SIZE (btsync_freebsd_i386-1.4.93.tar.gz) = 3593610
|
||||
SHA256 (btsync_freebsd_x64-1.4.93.tar.gz) = 8e1da143c9e3849264301fab6dee1978f3b8644dff49e958a56f7d81fdaa3494
|
||||
SIZE (btsync_freebsd_x64-1.4.93.tar.gz) = 3737221
|
||||
SHA256 (btsync_freebsd_i386-1.4.93.tar.gz) = b3413bd2b93df929ecf8bd71ee88b049efa27cf6d6a47d2e683536aa850ed4b8
|
||||
SIZE (btsync_freebsd_i386-1.4.93.tar.gz) = 3603220
|
||||
SHA256 (btsync_freebsd_x64-1.4.103.tar.gz) = 9991256af165f2afd09819d18a186e13c9b325df090bb562367e564633860ce7
|
||||
SIZE (btsync_freebsd_x64-1.4.103.tar.gz) = 3744913
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: %%PORTNAME%%
|
||||
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
|
@ -33,7 +34,7 @@ command="%%PREFIX%%/bin/btsync"
|
|||
command_args="--config %%PREFIX%%/etc/%%PORTNAME%%.conf"
|
||||
|
||||
start_precmd=%%PORTNAME%%_prestart
|
||||
%%PORTNAME%%_prestart(){
|
||||
%%PORTNAME%%_prestart() {
|
||||
if [ ! -d ${pidfile%/*} ]; then
|
||||
install -d -o $%%PORTNAME%%_user -g $%%PORTNAME%%_group ${pidfile%/*}
|
||||
fi
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
net-p2p/%%PORTNAME%% includes an RC script:
|
||||
%%PREFIX%%/etc/rc.d/%%PORTNAME%%
|
||||
|
||||
TO START BTSYNC ON BOOT:
|
||||
echo 'btsync_enable="YES"' >> /etc/rc.conf
|
||||
TO START ON BOOT:
|
||||
# echo '%%PORTNAME%%_enable="YES"' >> /etc/rc.conf
|
||||
|
||||
START MANUALLY:
|
||||
%%PREFIX%%/etc/rc.d/%%PORTNAME%% start
|
||||
# service %%PORTNAME%% start
|
||||
|
||||
Once started, visit the following to configure:
|
||||
http://localhost:8888/
|
||||
|
|
Loading…
Add table
Reference in a new issue