summaryrefslogtreecommitdiff
path: root/package/socat
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/socat
Initial import
Diffstat (limited to 'package/socat')
-rw-r--r--package/socat/Config.in18
-rw-r--r--package/socat/Makefile32
-rw-r--r--package/socat/ipkg/socat.control11
-rw-r--r--package/socat/patches/501-honor_ldflags.patch13
4 files changed, 74 insertions, 0 deletions
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 \