Index: UIDs =================================================================== --- UIDs (revision 348340) +++ UIDs (working copy) @@ -207,6 +207,7 @@ foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh +btsync:*:819:819::0:0:BitTorrent Sync:/usr/local/btsync:/sbin/nologin openacs:*:820:820::0:0:OpenACS Daemon User:/nonexistent:/usr/sbin/nologin dotlrn:*:821:821::0:0:.LRN Daemon User:/nonexistent:/usr/sbin/nologin polw:*:825:825::0:0:Policyd-weight Cache Owner:/nonexistent:/sbin/nologin Index: GIDs =================================================================== --- GIDs (revision 348340) +++ GIDs (working copy) @@ -202,6 +202,7 @@ foreman_proxy:*:812: puppet:*:814: jenkins:*:818: +btsync:*:819: openacs:*:820: dotlrn:*:821: polw:*:825: Index: net-p2p/btsync/Makefile =================================================================== --- net-p2p/btsync/Makefile (revision 0) +++ net-p2p/btsync/Makefile (working copy) @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= btsync +PORTVERSION= 1.2.91 +CATEGORIES= net-p2p +MASTER_SITES= http://syncapp.bittorrent.com/${PORTVERSION}/ +DISTNAME= ${PORTNAME}_freebsd_${CONFIG_ARCH}-${PORTVERSION} + +MAINTAINER= joshruehlig@gmail.com +COMMENT= Distributed peer-to-peer file syncing application + +LICENSE= EULA +LICENSE_NAME= BitTorrent Sync +LICENSE_FILE= ${WRKSRC}/LICENSE.TXT +LICENSE_PERMS= # Any copying or redistribution of the Software is prohibited. + +NO_WRKSUBDIR= yes +NO_BUILD= yes +ONLY_FOR_ARCHES= amd64 i386 +ONLY_FOR_ARCHES_REASON= It is a binary-only program. Source code not available. + +PLIST_SUB= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} +SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} +SUB_FILES= pkg-message +USE_RC_SUBR= ${PORTNAME} + +USERS= ${PORTNAME} +GROUPS= ${PORTNAME} +BTSYNC_HOME= /usr/local/btsync + +.include + +.if ${ARCH} == "amd64" +CONFIG_ARCH= x64 +.else +CONFIG_ARCH= ${ARCH} +.endif + +post-extract: + ${MKDIR} ${WRKSRC}/temp + ${MV} ${WRKSRC}/${PORTNAME} ${WRKSRC}/temp + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/temp/btsync ${STAGEDIR}${PREFIX}/bin + ${INSTALL} -d ${STAGEDIR}/${ETCDIR} + ${WRKSRC}/temp/btsync --dump-sample-config > ${STAGEDIR}/${ETCDIR}/config.ini.sample + @${REINPLACE_CMD} -e 's!/home/user/.sync!${BTSYNC_HOME}!' ${STAGEDIR}/${ETCDIR}/config.ini.sample + +.include Property changes on: net-p2p/btsync/Makefile ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: net-p2p/btsync/distinfo =================================================================== --- net-p2p/btsync/distinfo (revision 0) +++ net-p2p/btsync/distinfo (working copy) @@ -0,0 +1,4 @@ +SHA256 (btsync_freebsd_x64-1.2.91.tar.gz) = 03146aa9804343d0d97b3cfb5fe758b3cfd52a03101a42668aff0afcfb629202 +SIZE (btsync_freebsd_x64-1.2.91.tar.gz) = 1988531 +SHA256 (btsync_freebsd_i386-1.2.91.tar.gz) = 0e0fa948261b729b0479687ee861da4a4ecb602b14458acb9bd252cd914d4dfa +SIZE (btsync_freebsd_i386-1.2.91.tar.gz) = 1893625 Property changes on: net-p2p/btsync/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: net-p2p/btsync/files/btsync.in =================================================================== --- net-p2p/btsync/files/btsync.in (revision 0) +++ net-p2p/btsync/files/btsync.in (working copy) @@ -0,0 +1,37 @@ +#!/bin/sh +# +# PROVIDE: %%PORTNAME%% +# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# btsync_enable (bool): Set to NO by default. +# Set it to YES to enable it. +# btsync_config_dir: Directory where %%PORTNAME%% configuration +# data is stored. +# Default: %%PREFIX%%/etc/%%PORTNAME%% +# btsync_user: The user account %%PORTNAME%% daemon runs as what +# you want it to be. It uses '%%USER%%' user by +# default. Do not sets it as empty or it will run +# as root. +# btsync_group: The group account %%PORTNAME%% daemon runs as what +# you want it to be. It uses '%%GROUP%%' group by +# default. Do not sets it as empty or it will run +# as wheel. + +. /etc/rc.subr +name="%%PORTNAME%%" +rcvar="${name}_enable" +load_rc_config $name + +: ${btsync_enable:="NO"} +: ${btsync_user:="%%USER%%"} +: ${btsyncr_group:="%%GROUP%%"} +: ${btsync_config_dir:="%%PREFIX%%/etc/%%PORTNAME%%"} + +pidfile="/var/run/btsync/sync.pid" +command="%%PREFIX%%/bin/btsync" +command_args="--config $btsync_config_dir/config.ini" + +run_rc_command "$1" Property changes on: net-p2p/btsync/files/btsync.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: net-p2p/btsync/files/pkg-message.in =================================================================== --- net-p2p/btsync/files/pkg-message.in (revision 0) +++ net-p2p/btsync/files/pkg-message.in (working copy) @@ -0,0 +1,15 @@ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + +net-p2p/btsync includes an RC script: +%%PREFIX%%/etc/rc.d/%%PORTNAME%% + +TO START BTSYNC ON BOOT: +echo 'btsync_enable="YES"' >> /etc/rc.conf + +START MANUALLY: +%%PREFIX%%/etc/rc.d/%%PORTNAME%% start + +Once started, visit the following to configure: +http://localhost:8888/ + +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Property changes on: net-p2p/btsync/files/pkg-message.in ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: net-p2p/btsync/pkg-descr =================================================================== --- net-p2p/btsync/pkg-descr (revision 0) +++ net-p2p/btsync/pkg-descr (working copy) @@ -0,0 +1,6 @@ +Bittorrent Sync is a way to automatically sync files via a secure, +distributed technology. This allows users to share, sync and copy +data between computers and, optionally, share subsets of their data +with other people. + +WWW: http://www.bittorrent.com/sync Property changes on: net-p2p/btsync/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: net-p2p/btsync/pkg-plist =================================================================== --- net-p2p/btsync/pkg-plist (revision 0) +++ net-p2p/btsync/pkg-plist (working copy) @@ -0,0 +1,7 @@ +@unexec %D/etc/rc.d/%%PORTNAME%% forcestop 2>/dev/null || true +@unexec if cmp -s %D/etc/%%PORTNAME%%/config.ini.sample %D/etc/%%PORTNAME%%/config.ini; then rm -f %D/etc/%%PORTNAME%%/config.ini; fi +%%ETCDIR%%/config.ini.sample +@dirrmtry %%ETCDIR%% +@exec if [ ! -f %D/etc/%%PORTNAME%%/config.ini ] ; then cp -p %D/etc/%%PORTNAME%%/config.ini.sample %D/etc/%%PORTNAME%%/config.ini; fi +@exec chown -R %%USER%%:%%GROUP%% %D/etc/%%PORTNAME%% +bin/btsync Property changes on: net-p2p/btsync/pkg-plist ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property