Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2014 19:31:27 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r357197 - in head/sysutils: . clsync clsync/files
Message-ID:  <201406091931.s59JVRcF090523@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Mon Jun  9 19:31:27 2014
New Revision: 357197
URL: http://svnweb.freebsd.org/changeset/ports/357197
QAT: https://qat.redports.org/buildarchive/r357197/

Log:
  New port: sysutils/clsync
  
  clsync is a utility that initatiates automatic rsync transfers after
  detection of filesystem changes
  
  Caution: port may have rough edges. Its FreeBSD support is very new.

Added:
  head/sysutils/clsync/
  head/sysutils/clsync/Makefile   (contents, props changed)
  head/sysutils/clsync/distinfo   (contents, props changed)
  head/sysutils/clsync/files/
  head/sysutils/clsync/files/clsync.in   (contents, props changed)
  head/sysutils/clsync/files/pkg-message.in   (contents, props changed)
  head/sysutils/clsync/pkg-descr   (contents, props changed)
  head/sysutils/clsync/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Jun  9 19:30:45 2014	(r357196)
+++ head/sysutils/Makefile	Mon Jun  9 19:31:27 2014	(r357197)
@@ -119,6 +119,7 @@
     SUBDIR += clone
     SUBDIR += clonehdd
     SUBDIR += cloop-utils
+    SUBDIR += clsync
     SUBDIR += cmdwatch
     SUBDIR += cmogstored
     SUBDIR += cmospwd

Added: head/sysutils/clsync/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/Makefile	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,75 @@
+# Created by: Dmitry Yu Okunev dyokunev@ut.mephi.ru
+# $FreeBSD$
+
+PORTNAME=	clsync
+DISTVERSION=	0.4~rc2
+CATEGORIES=	sysutils
+
+MAINTAINER=	dyokunev@ut.mephi.ru
+COMMENT=	Live file sync daemon based on inotify, written in GNU C
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libinotify.so:${PORTSDIR}/devel/libinotify
+
+GNU_CONFIGURE=	yes
+USES=		gmake libtool pkgconfig
+USE_GNOME=	glib20
+
+USE_RC_SUBR=	clsync
+
+SUB_FILES=	pkg-message
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	xaionaro
+GH_PROJECT=	clsync
+GH_COMMIT=	15501e4
+GH_TAGNAME=	${GH_COMMIT}
+
+USE_AUTOTOOLS=	autoconf aclocal automake libtoolize
+
+OPTIONS_DEFINE=	PARANOID VERYPARANOID SOCKET DEBUG LIBCLSYNC
+
+PARANOID_DESC=	Enable paranoid secure routines
+VERYPARANOID_DESC=Enable extra paranoid secure routines and disable some extra features
+SOCKET_DESC=	Enable control socket support
+LIBCLSYNC_DESC=	Build libclsync.so for control socket clients
+
+OPTIONS_DEFAULT=PARANOID
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MVERYPARANOID}
+CONFIGURE_ARGS+=	--enable-paranoid=2
+.else
+.if ${PORT_OPTIONS:MPARANOID}
+CONFIGURE_ARGS+=	--enable-paranoid=1
+.else
+CONFIGURE_ARGS+=	--enable-paranoid=0
+.endif
+.endif
+
+.if ${PORT_OPTIONS:MSOCKET}
+CONFIGURE_ARGS+=	--enable-socket
+.endif
+
+.if ${PORT_OPTIONS:MDEBUG}
+CONFIGURE_ARGS+=	--enable-debug
+.endif
+
+.if ${PORT_OPTIONS:MLIBCLSYNC}
+CONFIGURE_ARGS+=	--enable-libclsync
+.endif
+
+.include <bsd.port.pre.mk>
+
+pre-configure:
+	cd "${WRKSRC}" && ${AUTORECONF} -fi
+
+do-install:
+	@${INSTALL_SCRIPT} ${WRKSRC}/clsync ${STAGEDIR}/${PREFIX}/sbin/clsync
+	${INSTALL_DATA} ${WRKSRC}/man/man1/clsync.1 ${STAGEDIR}/${PREFIX}/man/man1/clsync.1
+	${MKDIR} ${STAGEDIR}/${ETCDIR}
+	${INSTALL_DATA} ${WRKSRC}/freebsd/usr/local/etc/clsync/${PORTNAME}.conf ${STAGEDIR}/${ETCDIR}/${PORTNAME}.conf
+
+.include <bsd.port.post.mk>

Added: head/sysutils/clsync/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/distinfo	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,2 @@
+SHA256 (clsync-0.4~rc2.tar.gz) = 86adce37978d4e69525b729943b62a4a0e74196832fb812ad50cc8a58d35dccb
+SIZE (clsync-0.4~rc2.tar.gz) = 142026

Added: head/sysutils/clsync/files/clsync.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/files/clsync.in	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,56 @@
+#!/bin/sh
+# $FreeBSD:
+
+# PROVIDE: clsync
+# REQUIRE: FILESYSTEMS
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name=clsync
+
+rcvar=clsync_enable
+
+load_rc_config $name
+
+start_cmd=clsync_start
+start_precmd=clsync_prestart
+stop_cmd=clsync_stop
+restart_cmd=clsync_restart
+clsync_program="%%PREFIX%%/sbin/clsync"
+
+clsync_prestart()
+{
+	if [ "$clsync_config" = "" ]; then
+		clsync_config=/usr/local/etc/clsync/clsync.conf
+	fi
+
+	if [ "$clsync_config_groups" = "" ]; then
+		clsync_config_groups=default
+	fi
+}
+
+clsync_start()
+{
+	for config_group in $clsync_config_groups; do
+		echo "Running clsync (group ${config_group})."
+		"${clsync_program}" -f "$clsync_config" -K "$config_block" -b \
+			--pid-file=/var/run/clsync-"${config_group}".pid
+	done
+}
+
+clsync_stop()
+{
+	for config_group in $clsync_config_groups; do
+		echo "Stopping clsync (group ${config_group})."
+		pkill -F /var/run/clsync-"${config_group}".pid
+	done
+}
+
+clsync_restart()
+{
+	clsync_stop
+	clsync_start
+}
+
+run_rc_command "$1"

Added: head/sysutils/clsync/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/files/pkg-message.in	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,8 @@
+------------------------------------------------------------------------------
+Author: Dmtiry Yu Okunev; e-mail: dyokunev@ut.mephi.ru; PGP: 0x8E30679C
+What's left:
+	1. Edit %%PREFIX%%/etc/clsync/clsync.conf
+	2. Set clsync_enable="YES" in /etc/rc.conf
+Start the program:  %%PREFIX%%/etc/rc.d/clsync start
+------------------------------------------------------------------------------
+

Added: head/sysutils/clsync/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/pkg-descr	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,3 @@
+file live sync daemon based on inotify, written in GNU C
+
+WWW: https://github.com/xaionaro/clsync

Added: head/sysutils/clsync/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/clsync/pkg-plist	Mon Jun  9 19:31:27 2014	(r357197)
@@ -0,0 +1,4 @@
+sbin/clsync
+man/man1/clsync.1.gz
+@sample etc/clsync/clsync.conf
+@dirrmtry %%ETCDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406091931.s59JVRcF090523>