From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/socat/Config.in | 18 +++++++++++++++ package/socat/Makefile | 32 +++++++++++++++++++++++++++ package/socat/ipkg/socat.control | 11 +++++++++ package/socat/patches/501-honor_ldflags.patch | 13 +++++++++++ 4 files changed, 74 insertions(+) create mode 100644 package/socat/Config.in create mode 100644 package/socat/Makefile create mode 100644 package/socat/ipkg/socat.control create mode 100644 package/socat/patches/501-honor_ldflags.patch (limited to 'package/socat') diff --git a/package/socat/Config.in b/package/socat/Config.in new file mode 100644 index 000000000..072bf8190 --- /dev/null +++ b/package/socat/Config.in @@ -0,0 +1,18 @@ +config ADK_PACKAGE_SOCAT + prompt "socat............................. A multipurpose relay (SOcket CAT)" + tristate + default n + select ADK_PACKAGE_LIBOPENSSL + select ADK_PACKAGE_LIBPTHREAD + help + SoCat (for SOcket CAT) establishes two bidirectional byte streams and + transfers data between them. + Data channels may be files, pipes, devices (terminal or modem, etc.), or + sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking, + logging and tracing, different modes for interprocess communication and + many more options. + + http://www.dest-unreach.org/socat/ + + Depends: openssl + diff --git a/package/socat/Makefile b/package/socat/Makefile new file mode 100644 index 000000000..47a40755a --- /dev/null +++ b/package/socat/Makefile @@ -0,0 +1,32 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= socat +PKG_VERSION:= 1.7.0.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 82967132b5a8ca4d07e54370fdcb2662 +MASTER_SITES:= http://www.dest-unreach.org/socat/download/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,SOCAT,socat,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ENV+= sc_cv_termios_ispeed="no" \ + sc_cv_sys_crdly_shift=9 \ + sc_cv_sys_tabdly_shift=11 \ + sc_cv_sys_csize_shift=4 +CONFIGURE_ARGS+= --disable-libwrap \ + --disable-readline +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/socat/ipkg/socat.control b/package/socat/ipkg/socat.control new file mode 100644 index 000000000..7c079a920 --- /dev/null +++ b/package/socat/ipkg/socat.control @@ -0,0 +1,11 @@ +Package: socat +Priority: optional +Section: net +Depends: libpthread, libopenssl +Description: A multipurpose relay (SOcket CAT). + SoCat (for SOcket CAT) establishes two bidirectional byte streams and + transfers data between them. + Data channels may be files, pipes, devices (terminal or modem, etc.), or + sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking, + logging and tracing, different modes for interprocess communication and + many more options. diff --git a/package/socat/patches/501-honor_ldflags.patch b/package/socat/patches/501-honor_ldflags.patch new file mode 100644 index 000000000..a41a929f1 --- /dev/null +++ b/package/socat/patches/501-honor_ldflags.patch @@ -0,0 +1,13 @@ +diff -ruN socat-1.4-old/Makefile.in socat-1.4-new/Makefile.in +--- socat-1.4-old/Makefile.in 2005-09-10 22:09:11.000000000 +0200 ++++ socat-1.4-new/Makefile.in 2005-10-08 17:12:45.000000000 +0200 +@@ -36,7 +36,8 @@ + + #0 CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(INCLS) + CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(CPPFLAGS) +-CLIBS = $(LIBS) ++LDFLAGS = @LDFLAGS@ ++CLIBS = $(LDFLAGS) $(LIBS) + #CLIBS = $(LIBS) -lm -lefence + XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \ + xiosignal.c xiosigchld.c xioread.c xiowrite.c \ -- cgit v1.2.3