From 851b613b5b3b927708729dcbbb59f7d89b4f5c65 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Tue, 15 Apr 2008 01:02:20 +0000 Subject: [PATCH] Sharedance is a high-performance server that centralize ephemeral key/data pairs on remote hosts, without the overhead and the complexity of an SQL database. WWW: http://sharedance.pureftpd.org/project/sharedance PR: ports/122722 Submitted by: Gea-Suan Lin --- databases/Makefile | 1 + databases/sharedance/Makefile | 26 ++++++++++++++++ databases/sharedance/distinfo | 3 ++ .../sharedance/files/patch-src-sharedanced.c | 30 +++++++++++++++++++ databases/sharedance/pkg-descr | 5 ++++ databases/sharedance/pkg-plist | 7 +++++ 6 files changed, 72 insertions(+) create mode 100644 databases/sharedance/Makefile create mode 100644 databases/sharedance/distinfo create mode 100644 databases/sharedance/files/patch-src-sharedanced.c create mode 100644 databases/sharedance/pkg-descr create mode 100644 databases/sharedance/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 3fb84011549b..a9586cc59837 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -533,6 +533,7 @@ SUBDIR += rubygem-postgres SUBDIR += rubygem-rrdtool SUBDIR += rubygem-sqlite3 + SUBDIR += sharedance SUBDIR += skytools SUBDIR += slony1 SUBDIR += sqlcached diff --git a/databases/sharedance/Makefile b/databases/sharedance/Makefile new file mode 100644 index 000000000000..ff1dbcfbaff8 --- /dev/null +++ b/databases/sharedance/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: sharedance +# Date created: 2008-04-13 +# Whom: Gea-Suan Lin +# +# $FreeBSD$ +# + +PORTNAME= sharedance +PORTVERSION= 0.6 +CATEGORIES= databases +MASTER_SITES= http://download.pureftpd.org/pub/sharedance/ + +MAINTAINER= gslin@gslin.org +COMMENT= A daemon to centralize keys and associated data + +LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent + +CONFIGURE_ARGS= --with-largefile +GNU_CONFIGURE= yes +USE_BZIP2= yes + +post-install: + ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/php/*.php ${DATADIR} + +.include diff --git a/databases/sharedance/distinfo b/databases/sharedance/distinfo new file mode 100644 index 000000000000..1ac020f35f40 --- /dev/null +++ b/databases/sharedance/distinfo @@ -0,0 +1,3 @@ +MD5 (sharedance-0.6.tar.bz2) = 73e60374cc04a825090530e90ce3e2ba +SHA256 (sharedance-0.6.tar.bz2) = ed7df7c1b204027f992689cbca87420c21c3e2fc0b07169c1cb43e11ed634d05 +SIZE (sharedance-0.6.tar.bz2) = 88571 diff --git a/databases/sharedance/files/patch-src-sharedanced.c b/databases/sharedance/files/patch-src-sharedanced.c new file mode 100644 index 000000000000..69d7a6195f97 --- /dev/null +++ b/databases/sharedance/files/patch-src-sharedanced.c @@ -0,0 +1,30 @@ +--- src/sharedanced.c.orig 2008-04-15 00:45:17.000000000 +0800 ++++ src/sharedanced.c 2008-04-15 00:45:25.000000000 +0800 +@@ -99,27 +99,6 @@ + #endif + } + +-static void setprogname(const char * const title) +-{ +-#ifndef NO_PROCNAME_CHANGE +-# ifdef HAVE_SETPROCTITLE +- setproctitle("-%s", title); +-# elif defined(__linux__) +- if (argv0 != NULL) { +- memset(argv0[0], 0, argv_lth); +- strncpy(argv0[0], title, argv_lth - 2); +- argv0[1] = NULL; +- } +-# elif defined(__hpux__) +- union pstun pst; +- +- pst.pst_command = title; +- pstat(PSTAT_SETCMD, pst, strlen(title), 0, 0); +-# endif +-#endif +- (void) title; +-} +- + static void usage(void) + { + puts("\n" PACKAGE_STRING " - " __DATE__ "\n"); diff --git a/databases/sharedance/pkg-descr b/databases/sharedance/pkg-descr new file mode 100644 index 000000000000..c0cf9d83f5fc --- /dev/null +++ b/databases/sharedance/pkg-descr @@ -0,0 +1,5 @@ +Sharedance is a high-performance server that centralize ephemeral +key/data pairs on remote hosts, without the overhead and the +complexity of an SQL database. + +WWW: http://sharedance.pureftpd.org/project/sharedance diff --git a/databases/sharedance/pkg-plist b/databases/sharedance/pkg-plist new file mode 100644 index 000000000000..063973410310 --- /dev/null +++ b/databases/sharedance/pkg-plist @@ -0,0 +1,7 @@ +@comment $FreeBSD$ +%%DATADIR%%/session_handler.php +%%DATADIR%%/sharedance.php +%%DATADIR%%/test_session.php +%%DATADIR%%/test_sharedance.php +sbin/sharedanced +@dirrmtry %%DATADIR%%