Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2014 16:24:15 +0000 (UTC)
From:      Veniamin Gvozdikov <vg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360051 - in head/net-mgmt: . sx sx/files
Message-ID:  <201407011624.s61GOF5I064359@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vg
Date: Tue Jul  1 16:24:15 2014
New Revision: 360051
URL: http://svnweb.freebsd.org/changeset/ports/360051
QAT: https://qat.redports.org/buildarchive/r360051/

Log:
  add new port: net-mgmt/sx
  
  Skylable Sx is a reliable, fully distributed cluster solution for your data
  storage needs. With Sx you can aggregate the disk space available on multiple
  servers and merge it into a single storage system. The cluster makes sure that
  your data is always replicated over multiple nodes (the exact number of copies
  is defined by the sysadmin) and synchronized. Additionally Sx has built-in
  support for deduplication, client-side encryption, on-the-fly compression and
  much more.
  
  WWW: http://www.skylable.com/

Added:
  head/net-mgmt/sx/
  head/net-mgmt/sx/Makefile   (contents, props changed)
  head/net-mgmt/sx/distinfo   (contents, props changed)
  head/net-mgmt/sx/files/
  head/net-mgmt/sx/files/pkg-message.in   (contents, props changed)
  head/net-mgmt/sx/files/sxserver.in   (contents, props changed)
  head/net-mgmt/sx/pkg-descr   (contents, props changed)
  head/net-mgmt/sx/pkg-plist   (contents, props changed)
Modified:
  head/net-mgmt/Makefile

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Tue Jul  1 16:04:13 2014	(r360050)
+++ head/net-mgmt/Makefile	Tue Jul  1 16:24:15 2014	(r360051)
@@ -314,6 +314,7 @@
     SUBDIR += ssgless
     SUBDIR += statsd
     SUBDIR += subcalc
+    SUBDIR += sx
     SUBDIR += sysmon
     SUBDIR += tcpreplay
     SUBDIR += tcptrack

Added: head/net-mgmt/sx/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/Makefile	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,42 @@
+# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	sx
+PORTVERSION=	0.3
+CATEGORIES=	net-mgmt
+MASTER_SITES=	http://cdn.skylable.com/source/
+
+MAINTAINER=	vg@FreeBSD.org
+COMMENT=	Skylable Sx is a reliable, fully distributed cluster solution
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
+		libfcgi.so:${PORTSDIR}/www/fcgi
+
+HAS_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+USES=		gmake libtool pkgconfig
+CONFIGURE_ARGS=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib" --prefix="${STAGE}${PREFIX}" \
+		--sysconfdir="${ETCDIR}"
+
+OPTIONS_DEFINE=	SXSERVER
+SXSERVER_DESC=	Enable sxhttpd server
+OPTIONS_DEFAULT=SXSERVER
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSXSERVER}
+CONFIGURE_ARGS+=--localstatedir="${STAGE}${PREFIX}/sxserver"
+PLIST_SUB+=	SXSERVER=""
+PLIST_SUB+=	SXCLIENT="@comment "
+USE_RC_SUBR=	sxserver
+SUB_FILES=	pkg-message
+.else
+CONFIGURE_ARGS+=--disable-sxhttpd
+PLIST_SUB+=	SXSERVER="@comment "
+PLIST_SUB+=	SXCLIENT=""
+.endif
+
+.include <bsd.port.mk>

Added: head/net-mgmt/sx/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/distinfo	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,2 @@
+SHA256 (sx-0.3.tar.gz) = f176c629b3a8352f776d68612a178a46f5059427c6c48d7fa704e1044c44798f
+SIZE (sx-0.3.tar.gz) = 6529595

Added: head/net-mgmt/sx/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/files/pkg-message.in	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,7 @@
+#########################################################
+#
+#
+#   After install run <sxsetup> and fill required fields
+#
+#
+#########################################################

Added: head/net-mgmt/sx/files/sxserver.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/files/sxserver.in	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: sxserver
+# REQUIRE: LOGIN
+# BEFORE:  securelevel
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable `sxserver':
+#
+# sxserver_enable="YES"
+#
+
+. /etc/rc.subr
+
+name="sxserver"
+rcvar=sxserver_enable
+
+command="%%PREFIX%%/sbin/sxserver"
+start_precmd="${name}_prestart"
+stop_cmd="${name}_stop"
+restart_cmd="${name}_restart"
+status_cmd="${name}_status"
+
+load_rc_config "$name"
+: ${sxserver_enable="NO"}
+
+sxserver_prestart()
+{
+    command_args="start"
+}
+
+sxserver_stop()
+{
+    eval "${command} stop"
+}
+
+sxserver_restart()
+{
+    eval "${command} restart"
+}
+
+sxserver_status()
+{
+    eval "${command} status"
+}
+
+run_rc_command $*
+

Added: head/net-mgmt/sx/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/pkg-descr	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,9 @@
+Skylable Sx is a reliable, fully distributed cluster solution for your data
+storage needs. With Sx you can aggregate the disk space available on multiple
+servers and merge it into a single storage system. The cluster makes sure that
+your data is always replicated over multiple nodes (the exact number of copies
+is defined by the sysadmin) and synchronized. Additionally Sx has built-in
+support for deduplication, client-side encryption, on-the-fly compression and
+much more.
+
+WWW: http://www.skylable.com/

Added: head/net-mgmt/sx/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/sx/pkg-plist	Tue Jul  1 16:24:15 2014	(r360051)
@@ -0,0 +1,54 @@
+bin/randgen
+bin/sxacl
+bin/sxcat
+bin/sxcp
+bin/sxinit
+bin/sxls
+bin/sxreport-client
+bin/sxrm
+bin/sxsim
+bin/sxvol
+%%SXSERVER%%%%ETCDIR%%/sxserver/errors/414.json
+%%SXSERVER%%%%ETCDIR%%/sxserver/errors/50x.json
+%%SXSERVER%%%%ETCDIR%%/sxserver/fastcgi_params
+%%SXSERVER%%%%ETCDIR%%/sxserver/sxhttpd.conf.default
+include/sx.h
+lib/libsx.so
+lib/libsx.so.0
+lib/libsx.so.0.0.0
+lib/sxclient/libsxf_aes256-12.so
+lib/sxclient/libsxf_aes256.so
+lib/sxclient/libsxf_attribs-11.so
+lib/sxclient/libsxf_attribs.so
+lib/sxclient/libsxf_null-11.so
+lib/sxclient/libsxf_null.so
+lib/sxclient/libsxf_zcomp-10.so
+lib/sxclient/libsxf_zcomp.so
+sbin/sx.fcgi
+sbin/sxadm
+%%SXSERVER%%sbin/sxhttpd
+sbin/sxreport-server
+%%SXSERVER%%sbin/sxserver
+%%SXSERVER%%sbin/sxsetup
+%%SXSERVER%%%%PORTDOCS%%%%DOCSDIR%%/logrotate.d/sxserver
+%%SXSERVER%%%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/logrotate.d
+%%SXSERVER%%%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+%%SXSERVER%%@dirrmtry %%ETCDIR%%/sxserver/errors
+%%SXSERVER%%@dirrmtry %%ETCDIR%%/sxserver
+%%SXSERVER%%@dirrmtry %%ETCDIR%%
+@dirrm lib/sxclient
+%%SXSERVER%%@dirrmtry sxserver/lib/sxserver
+%%SXSERVER%%@dirrmtry sxserver/lib
+%%SXSERVER%%@dirrmtry sxserver/log/sxserver
+%%SXSERVER%%@dirrmtry sxserver/log
+%%SXSERVER%%@dirrmtry sxserver/run/sxserver
+%%SXSERVER%%@dirrmtry sxserver/run
+%%SXSERVER%%@dirrmtry sxserver/sxserver
+%%SXSERVER%%@dirrmtry sxserver
+%%SXCLIENT%%@dirrmtry var/lib/sxserver
+%%SXCLIENT%%@dirrmtry var/lib
+%%SXCLIENT%%@dirrmtry var/log/sxserver
+%%SXCLIENT%%@dirrmtry var/log
+%%SXCLIENT%%@dirrmtry var/run/sxserver
+%%SXCLIENT%%@dirrmtry var/run
+%%SXCLIENT%%@dirrmtry var



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