Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2019 15:57:10 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r504488 - in head/sysutils: . eclat eclat/files
Message-ID:  <201906181557.x5IFvA5S028268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Jun 18 15:57:10 2019
New Revision: 504488
URL: https://svnweb.freebsd.org/changeset/ports/504488

Log:
  Add a port of Eclat (EC2 Command Line Administrator Tool).
  
  Requested by:	Zeus Panchenko (maintainer)

Added:
  head/sysutils/eclat/
  head/sysutils/eclat/Makefile   (contents, props changed)
  head/sysutils/eclat/distinfo   (contents, props changed)
  head/sysutils/eclat/files/
  head/sysutils/eclat/files/patch-lib_ldapmap.c   (contents, props changed)
  head/sysutils/eclat/pkg-descr   (contents, props changed)
  head/sysutils/eclat/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Jun 18 15:26:00 2019	(r504487)
+++ head/sysutils/Makefile	Tue Jun 18 15:57:10 2019	(r504488)
@@ -294,6 +294,7 @@
     SUBDIR += dwatch-pwsnoop
     SUBDIR += e2fsprogs
     SUBDIR += ec2-scripts
+    SUBDIR += eclat
     SUBDIR += edid-decode
     SUBDIR += eject
     SUBDIR += eksctl

Added: head/sysutils/eclat/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/eclat/Makefile	Tue Jun 18 15:57:10 2019	(r504488)
@@ -0,0 +1,37 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	eclat
+PORTVERSION=	2.0
+CATEGORIES=	sysutils
+MASTER_SITES=	http://download.gnu.org.ua/pub/release/${PORTNAME}/ \
+		http://download.gnu.org.ua/pub/alpha/${PORTNAME}/
+
+MAINTAINER=	zeus@gnu.org.ua
+COMMENT=	EC2 command line administration tool
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libcurl.so:ftp/curl \
+		libexpat.so:textproc/expat2
+
+USES=		localbase tar:xz
+GNU_CONFIGURE=	yes
+MAKE_JOBS_UNSAFE=	yes
+
+PORTDOCS=	AUTHORS ChangeLog NEWS README THANKS TODO
+
+OPTIONS_DEFINE=	DOCS GDBM LDAP
+OPTIONS_DEFAULT=	GDBM
+
+GDBM_LIB_DEPENDS=	libgdbm.so:databases/gdbm
+GDBM_CONFIGURE_WITH=	gdbm
+
+LDAP_USE=		OPENLDAP=yes
+LDAP_CONFIGURE_WITH=	ldap
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/sysutils/eclat/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/eclat/distinfo	Tue Jun 18 15:57:10 2019	(r504488)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521176820
+SHA256 (eclat-2.0.tar.xz) = 72ce20a15adc624917fa2ed989da7f60fea73bd1f46fb118c3917105b12dc8b2
+SIZE (eclat-2.0.tar.xz) = 408832

Added: head/sysutils/eclat/files/patch-lib_ldapmap.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/eclat/files/patch-lib_ldapmap.c	Tue Jun 18 15:57:10 2019	(r504488)
@@ -0,0 +1,56 @@
+--- lib/ldapmap.c.orig	2018-03-16 04:58:17 UTC
++++ lib/ldapmap.c
+@@ -201,7 +201,7 @@ ldap_map_free(int dbg, void *data)
+ }
+ 
+ 
+-static void ldap_unbind(LDAP *ld);
++static void eclat_ldap_unbind(LDAP *ld);
+ 
+ static void
+ dns2txtacc(struct grecs_txtacc *acc, LDAPURLDesc *lud)
+@@ -353,7 +353,7 @@ ldap_connect(int dbg, struct ldap_map *map)
+ 			ldap_memfree(msg);
+ 
+ 			if (map->tls == tls_only) {
+-				ldap_unbind(ld);
++				eclat_ldap_unbind(ld);
+ 				return NULL;
+ 			}
+ 			/* try to continue anyway */
+@@ -365,7 +365,7 @@ ldap_connect(int dbg, struct ldap_map *map)
+ }
+ 
+ static int
+-ldap_bind(int dbg, struct ldap_map *map)
++eclat_ldap_bind(int dbg, struct ldap_map *map)
+ {
+ 	int msgid, ec, rc;
+ 	LDAPMessage *result;
+@@ -441,7 +441,7 @@ ldap_bind(int dbg, struct ldap_map *map)
+ }
+ 
+ static void
+-ldap_unbind(LDAP *ld)
++eclat_ldap_unbind(LDAP *ld)
+ {
+ 	if (ld) {
+ 		ldap_set_option(ld, LDAP_OPT_SERVER_CONTROLS, NULL);
+@@ -515,7 +515,7 @@ ldap_map_open(int dbg, void *data)
+ 	map->ld = ldap_connect(dbg, map);
+ 	if (!map->ld)
+ 		return eclat_map_failure;
+-	if (ldap_bind(dbg, map))
++	if (eclat_ldap_bind(dbg, map))
+ 		return eclat_map_failure;
+ 	return eclat_map_ok;
+ }
+@@ -524,7 +524,7 @@ static int
+ ldap_map_close(int dbg, void *data)
+ {
+ 	struct ldap_map *map = data;
+-	ldap_unbind(map->ld);
++	eclat_ldap_unbind(map->ld);
+ 	return 0;
+ }
+ 

Added: head/sysutils/eclat/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/eclat/pkg-descr	Tue Jun 18 15:57:10 2019	(r504488)
@@ -0,0 +1,7 @@
+Eclat stands for EC2 Command Line Administrator Tool.  It allows you to
+manage Amazon EC2 services from the command line, fast and easy.  It does
+not require resource-consuming libraries.  It is written in plain C,
+depends only on libraries which are always installed on any decent system,
+and has low resource requirements.
+
+WWW: http://puszcza.gnu.org.ua/software/eclat/

Added: head/sysutils/eclat/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/eclat/pkg-plist	Tue Jun 18 15:57:10 2019	(r504488)
@@ -0,0 +1,49 @@
+bin/eclat
+bin/ispeek
+etc/eclat.conf
+man/man1/eclat-assocaddr.1.gz
+man/man1/eclat-atvol.1.gz
+man/man1/eclat-clrsattr.1.gz
+man/man1/eclat-cpimg.1.gz
+man/man1/eclat-cpsnap.1.gz
+man/man1/eclat-deimg.1.gz
+man/man1/eclat-devol.1.gz
+man/man1/eclat-disasaddr.1.gz
+man/man1/eclat-dmesg.1.gz
+man/man1/eclat-lsaattr.1.gz
+man/man1/eclat-lsaddr.1.gz
+man/man1/eclat-lsiattr.1.gz
+man/man1/eclat-lsimg.1.gz
+man/man1/eclat-lsinst.1.gz
+man/man1/eclat-lsistat.1.gz
+man/man1/eclat-lsreg.1.gz
+man/man1/eclat-lssattr.1.gz
+man/man1/eclat-lssg.1.gz
+man/man1/eclat-lssnap.1.gz
+man/man1/eclat-lstag.1.gz
+man/man1/eclat-lsvol.1.gz
+man/man1/eclat-lszon.1.gz
+man/man1/eclat-mkaddr.1.gz
+man/man1/eclat-mkimg.1.gz
+man/man1/eclat-mkinst.1.gz
+man/man1/eclat-mksg.1.gz
+man/man1/eclat-mksnap.1.gz
+man/man1/eclat-mktag.1.gz
+man/man1/eclat-mkvol.1.gz
+man/man1/eclat-mkvpc.1.gz
+man/man1/eclat-reboot.1.gz
+man/man1/eclat-rmaddr.1.gz
+man/man1/eclat-rmsg.1.gz
+man/man1/eclat-rmsnap.1.gz
+man/man1/eclat-rmtag.1.gz
+man/man1/eclat-setaattr.1.gz
+man/man1/eclat-setiattr.1.gz
+man/man1/eclat-setsattr.1.gz
+man/man1/eclat-sg.1.gz
+man/man1/eclat-start.1.gz
+man/man1/eclat-stop.1.gz
+man/man1/eclat.1.gz
+man/man1/ispeek.1.gz
+man/man5/eclat.conf.5.gz
+%%DATADIR%%/compl.sh
+%%DATADIR%%/eclat.forlan



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