Navigation Menu

Skip to content

Commit

Permalink
libcli-1.9.7 (rebuild on x86_64)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Dec 4, 2014
1 parent 4dcd22d commit 331326e
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 120 deletions.
39 changes: 21 additions & 18 deletions libcli/README
@@ -1,44 +1,45 @@
libcli
------------------------------------------
Libcli provides a shared library for including a Cisco-like command-line
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.

Runtime requirements:
crypt-1.2-1
cygwin-1.7.17-1
cygwin-1.7.33-1
libcli1.9.7-1.9.7-1bl2
libcrypt0-1.1-1

Build requirements:
(besides corresponding -devel packages)
autoconf-10-1
automake-7-1
binutils-2.23.51-1
cygport-0.11.3-1
gcc4-core-4.5.3-3
libtool-2.4-1
make-3.82.90-1
autoconf-13-1
automake-9-1
binutils-2.24.51-6
cygport-0.17.0-1
gcc-core-4.9.2-1
libtool-2.4.2-5
make-4.0-2

Canonical website:
http://sites.dparrish.com/libcli

Canonical download:
git://github.com/dparrish/libcli.git
https://github.com/dparrish/libcli/archive/v1.9.7.tar.gz

-------------------------------------------

Build instructions:
unpack libcli-1.9.7-X-src.tar.bz2
unpack libcli-1.9.7-X-src.tar.xz
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
unpacked under /usr/src automatically
cd /usr/src
cygport ./libcli-1.9.7-X.cygport all

This will create:
/usr/src/libcli-1.9.7-X-src.tar.bz2
/usr/src/libcli-1.9.7-X.tar.bz2
/usr/src/libcli1.9.7-1.9.7-X.tar.bz2
/usr/src/libcli-devel-1.9.7-X.tar.bz2
/usr/src/libcli-1.9.7-X-src.tar.xz
/usr/src/libcli-1.9.7-X.tar.xz
/usr/src/libcli1.9.7-1.9.7-X.tar.xz
/usr/src/libcli-devel-1.9.7-X.tar.xz

-------------------------------------------

Expand All @@ -55,12 +56,14 @@ Files included in the binary package:
(libcli-devel)
/usr/include/libcli.h
/usr/lib/libcli.dll.a
/usr/lib/libcli.la

------------------

Port Notes:

----- version 1.9.7-1bl2 -----
Rebuild on x86_64

----- version 1.9.7-1bl1 -----
Version bump.

Expand Down
26 changes: 0 additions & 26 deletions libcli/libcli-1.9.7-1bl1.cygport

This file was deleted.

53 changes: 0 additions & 53 deletions libcli/libcli-1.9.7-1bl1.src.patch

This file was deleted.

33 changes: 33 additions & 0 deletions libcli/libcli-1.9.7-1bl2.cygport
@@ -0,0 +1,33 @@
HOMEPAGE="http://sites.dparrish.com/${PN}"
SRC_URI="https://github.com/dparrish/${PN}/archive/v${PV}.tar.gz"

CATEGORY="Libs"
SUMMARY="Cisco style telnet command-line interface"
DESCRIPTION="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."

DIFF_EXCLUDES="
Makefile
"

PKG_NAMES="
${PN}
${PN}${PV}
${PN}-devel
"
libcli_CONTENTS="
usr/share
"
libcli1_9_7_CONTENTS="
usr/bin
"
libcli_devel_CONTENTS="
usr/include
usr/lib
"

libcli_SUMMARY="${SUMMARY} (licensing & readmes)"
libcli1_9_7_SUMMARY="${SUMMARY} (runtime)"
libcli_devel_SUMMARY="${SUMMARY} (development)"
51 changes: 51 additions & 0 deletions libcli/libcli-1.9.7-1bl2.src.patch
@@ -0,0 +1,51 @@
--- origsrc/libcli-1.9.7/Makefile.am 1970-01-01 09:00:00.000000000 +0900
+++ src/libcli-1.9.7/Makefile.am 2014-12-05 00:56:46.873446100 +0900
@@ -0,0 +1,12 @@
+
+check_PROGRAMS = clitest
+clitest_LDADD = libcli.la
+clitest_SOURCES = clitest.c
+
+include_HEADERS = libcli.h
+
+lib_LTLIBRARIES = libcli.la
+libcli_la_CFLAGS = -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter -O3
+libcli_la_LDFLAGS = -no-undefined -release $(VERSION)
+libcli_la_SOURCES = libcli.c
+
--- origsrc/libcli-1.9.7/configure.ac 1970-01-01 09:00:00.000000000 +0900
+++ src/libcli-1.9.7/configure.ac 2014-12-05 00:58:15.307039900 +0900
@@ -0,0 +1,33 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([libcli], [1.9.7])
+AC_CONFIG_SRCDIR([clitest.c])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_LN_S
+LT_INIT
+
+# Checks for libraries.
+AC_CHECK_LIB([crypt], [main])
+
+# Checks for header files.
+AC_CHECK_HEADERS([arpa/inet.h malloc.h memory.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_SIZE_T
+AC_TYPE_SSIZE_T
+
+# 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])
+AC_OUTPUT
8 changes: 0 additions & 8 deletions libcli/libcli-devel.hint

This file was deleted.

7 changes: 0 additions & 7 deletions libcli/libcli.hint

This file was deleted.

8 changes: 0 additions & 8 deletions libcli/libcli1.9.7.hint

This file was deleted.

0 comments on commit 331326e

Please sign in to comment.