diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2009-12-08 11:10:22 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2009-12-08 11:54:17 +0100 |
commit | cc665bd8eae066519430782f0397301fbd94b81b (patch) | |
tree | dd1d54c3d8691b8b3e4113e09d3551b59097cbf2 | |
parent | 298787c63e0c67d13d7e24de380eb6765b4f9dee (diff) |
libcli: introduce cisco ios command line like library
-rw-r--r-- | conf/checksums.ini | 4 | ||||
-rw-r--r-- | recipes/libcli/files/autotools.patch | 88 | ||||
-rw-r--r-- | recipes/libcli/libcli_1.9.4.bb | 11 |
3 files changed, 103 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini index 3c6f7126ed..3734f1a6a6 100644 --- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -14478,6 +14478,10 @@ sha256=03d751bd836174e2d6766d8036fc72e130dd090b13256d40a58ba6ab659475ef md5=866fd13611a8de946428db1df9be8468 sha256=74def55ba6a61e966e0873a4081fd3dd65089b94b837810d3bc056221d7e41c7 +[http://libcli.googlecode.com/files/libcli-1.9.4.tar.gz] +md5=b917617d21b90db214971efe64a33416 +sha256=c1e56ff2e55a879b7c89b5808aea76063512d9a24cffd601aa3d9a84cd6a7928 + [http://repository.maemo.org/pool/maemo5.0alpha/free/libc/libconbtui/libconbtui_1.4.1.tar.gz] md5=68ac3177685c577aadf8d2e9f47b1878 sha256=c3540df46bd9716c6a6f521806c70ae548822a5e62d245900cc28b5fa9fc3eb3 diff --git a/recipes/libcli/files/autotools.patch b/recipes/libcli/files/autotools.patch new file mode 100644 index 0000000000..de578a4e17 --- /dev/null +++ b/recipes/libcli/files/autotools.patch @@ -0,0 +1,88 @@ +Index: libcli-1.9.4/Makefile.am +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libcli-1.9.4/Makefile.am 2009-12-08 11:04:42.788208125 +0100 +@@ -0,0 +1,24 @@ ++ ++ACLOCAL_AMFLAGS = -I m4 --install ++ ++AM_CFLAGS = -Wall -Wformat-security -Wno-format-zero-length ++ ++lib_LTLIBRARIES = libcli.la ++ ++libcli_la_SOURCES = libcli.c ++ ++libcli_la_LIBADD = @LIBCRYPT@ ++ ++libcli_la_LDFLAGS = -version-number @LIBCLI_LIBRARY_VERSION@ ++ ++include_HEADERS = libcli.h ++ ++bin_PROGRAMS = clitest ++ ++clitest_SOURCES = clitest.c ++ ++clitest_LDADD = libcli.la ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = libcli.pc ++ +Index: libcli-1.9.4/configure.ac +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libcli-1.9.4/configure.ac 2009-12-08 11:04:04.341128615 +0100 +@@ -0,0 +1,39 @@ ++# -*- Autoconf -*- ++# Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ([2.61]) ++AC_INIT([libcli], [1.9.4], [heinold@inf.fu-berlin.de]) ++AM_INIT_AUTOMAKE([-Wall foreign]) ++AC_CONFIG_SRCDIR([clitest.c]) ++AC_CONFIG_HEADERS([config.h]) ++AC_CONFIG_MACRO_DIR([m4]) ++ ++LIBCLI_LIBRARY_VERSION=1:9:0 ++AC_SUBST([LIBCLI_LIBRARY_VERSION]) ++ ++# Checks for programs. ++AC_PROG_CC ++AC_PROG_INSTALL ++AC_PROG_LN_S ++ ++AC_PROG_LIBTOOL ++ ++# Checks for header files. ++AC_CHECK_HEADERS([arpa/inet.h malloc.h memory.h stdlib.h string.h sys/socket.h unistd.h]) ++ ++# Checks fro library ++AC_CHECK_LIB([crypt], [crypt_r],[LIBCRYPT=-lcrypt],AC_MSG_ERROR(["libcrypt not found"])) ++AC_SUBST([LIBCRYPT]) ++ ++# Checks for typedefs, structures, and compiler characteristics. ++ ++# Checks for library functions. ++AC_FUNC_FORK ++AC_FUNC_MALLOC ++AC_FUNC_REALLOC ++AC_CHECK_FUNCS([inet_ntoa memmove memset regcomp select socket strcasecmp strchr strdup strerror strncasecmp strpbrk strspn strstr]) ++ ++AC_CONFIG_FILES([Makefile ++ libcli.pc ++]) ++AC_OUTPUT +Index: libcli-1.9.4/libcli.pc.in +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libcli-1.9.4/libcli.pc.in 2009-12-08 10:35:05.115463492 +0100 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: libcli ++Description: shared library for including a Cisco-like command-line interface into other software ++Version: @VERSION@ ++Libs: -L${libdir} -lcli ++Cflags: -I${includedir} diff --git a/recipes/libcli/libcli_1.9.4.bb b/recipes/libcli/libcli_1.9.4.bb new file mode 100644 index 0000000000..e6d3d4fd45 --- /dev/null +++ b/recipes/libcli/libcli_1.9.4.bb @@ -0,0 +1,11 @@ +DESCRIPTION = "shared library for including a Cisco-like command-line interface into other software" +HOMEPAGE = "http://code.google.com/p/libcli/" +SECTION = "devel" +LICENSE = "LGPL" +PR = "r1" + +SRC_URI = "http://libcli.googlecode.com/files/${PN}-${PV}.tar.gz \ + file://autotools.patch;patch=1 \ + " + +inherit autotools lib_package |