summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libcli/Makefile33
-rw-r--r--devel/libcli/distinfo2
-rw-r--r--devel/libcli/files/patch-clitest.c10
-rw-r--r--devel/libcli/files/patch-libcli.c10
-rw-r--r--devel/libcli/pkg-descr6
6 files changed, 62 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f411af54ae46..e3fae7e53c3e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -759,6 +759,7 @@
SUBDIR += libchipcard-kde
SUBDIR += libcii
SUBDIR += libclaw
+ SUBDIR += libcli
SUBDIR += libconfig
SUBDIR += libconfuse
SUBDIR += libcoro
diff --git a/devel/libcli/Makefile b/devel/libcli/Makefile
new file mode 100644
index 000000000000..dafa6387d948
--- /dev/null
+++ b/devel/libcli/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: libcli
+# Date created: 2011-04-27
+# Whom: Baptiste Daroussin <bapt@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libcli
+PORTVERSION= 1.9.4
+CATEGORIES= devel
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= bapt@FreeBSD.org
+COMMENT= Emulates a cisco style command-line interface
+
+LICENSE= LGPL21
+
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+
+PLIST_FILES= lib/libcli.so \
+ lib/libcli.so.1.9.4 \
+ lib/libcli.so.1.9 \
+ include/libcli.h
+
+post-patch:
+ @${REINPLACE_CMD} -e "/^OPTIM/d" \
+ -e "/^DEBUG/d" \
+ -e "s/gcc/${CC}/g" \
+ -e "s/REVISION = 3/REVISION = 4/g" \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/devel/libcli/distinfo b/devel/libcli/distinfo
new file mode 100644
index 000000000000..6a03437bb236
--- /dev/null
+++ b/devel/libcli/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libcli-1.9.4.tar.gz) = c1e56ff2e55a879b7c89b5808aea76063512d9a24cffd601aa3d9a84cd6a7928
+SIZE (libcli-1.9.4.tar.gz) = 27960
diff --git a/devel/libcli/files/patch-clitest.c b/devel/libcli/files/patch-clitest.c
new file mode 100644
index 000000000000..59f6c5479ade
--- /dev/null
+++ b/devel/libcli/files/patch-clitest.c
@@ -0,0 +1,10 @@
+--- ./clitest.c.orig 2008-10-09 04:38:01.000000000 +0200
++++ ./clitest.c 2011-04-27 14:03:12.956175470 +0200
+@@ -4,6 +4,7 @@
+ #include <winsock2.h>
+ #include <windows.h>
+ #else
++#include <netinet/in.h>
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+ #endif
diff --git a/devel/libcli/files/patch-libcli.c b/devel/libcli/files/patch-libcli.c
new file mode 100644
index 000000000000..eb6b508e3ae0
--- /dev/null
+++ b/devel/libcli/files/patch-libcli.c
@@ -0,0 +1,10 @@
+--- ./libcli.c.orig 2008-10-09 04:38:01.000000000 +0200
++++ ./libcli.c 2011-04-27 14:02:40.896273703 +0200
+@@ -9,7 +9,6 @@
+ #include <stdarg.h>
+ #include <stdlib.h>
+ #include <memory.h>
+-#include <malloc.h>
+ #include <string.h>
+ #include <ctype.h>
+ #include <unistd.h>
diff --git a/devel/libcli/pkg-descr b/devel/libcli/pkg-descr
new file mode 100644
index 000000000000..9ab93213e61a
--- /dev/null
+++ b/devel/libcli/pkg-descr
@@ -0,0 +1,6 @@
+Libcli provides a shared library for including a Cisco-like command-line
+interface into other software. It's a telnet interface which supports
+command-line editing, history, authentication and callbacks for a user-definable
+function tree.
+
+WWW: http://github.com/dparrish/libcli/