2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-11-19 00:20:10 +01:00
|
|
|
#
|
|
|
|
# socat
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-11-19 00:20:10 +01:00
|
|
|
|
2016-02-02 16:59:08 +01:00
|
|
|
SOCAT_VERSION = 2.0.0-b9
|
2011-02-07 19:32:46 +01:00
|
|
|
SOCAT_SOURCE = socat-$(SOCAT_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
SOCAT_SITE = http://www.dest-unreach.org/socat/download
|
2017-03-30 15:43:32 +02:00
|
|
|
SOCAT_LICENSE = GPL-2.0
|
2012-08-11 22:13:24 +02:00
|
|
|
SOCAT_LICENSE_FILES = COPYING
|
2017-06-07 00:04:03 +02:00
|
|
|
|
|
|
|
SOCAT_CONF_ENV = sc_cv_termios_ispeed=no
|
|
|
|
|
|
|
|
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
|
|
|
SOCAT_CONF_ENV += \
|
|
|
|
sc_cv_sys_crdly_shift=12 \
|
|
|
|
sc_cv_sys_tabdly_shift=10 \
|
|
|
|
sc_cv_sys_csize_shift=8
|
|
|
|
else
|
|
|
|
SOCAT_CONF_ENV += \
|
2015-01-15 08:21:39 +01:00
|
|
|
sc_cv_sys_crdly_shift=9 \
|
|
|
|
sc_cv_sys_tabdly_shift=11 \
|
|
|
|
sc_cv_sys_csize_shift=4
|
2017-06-07 00:04:03 +02:00
|
|
|
endif
|
2011-02-07 19:32:46 +01:00
|
|
|
|
socat: fix build failure due to ext2_fs.h header, bump version
In kernel >= 3.3, the ext2_fs.h can no longer be imported from
userspace. This has been fixed for internal toolchains by adding a
patch to kernel headers, but this doesn't work with toolchains
generated by Crosstool-NG, or potentially upcoming external
toolchains.
socat in fact has a test in its configure.in, but the configure was
generated too long ago, and the generated test relies on the
preprocessor result and not the compiler result (but warns that in the
future, the compiler result will be used instead of the preprocessor
result).
So, by running autoconf on this package, we fix the problem: it
properly checks whether ext2_fs is usable or not, and acts
accordingly. Of course, it means that with recent versions of the
kernel, ext2-specific features of socat are unavailable, and we'll
have to wait for the socat developers to adapt their code so that they
use the e2fsprogs headers.
We also bump the version, since a new minor version fixing a security
problem has been released.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-05-17 03:15:57 +02:00
|
|
|
# We need to run autoconf to regenerate the configure script, in order
|
|
|
|
# to ensure that the test checking linux/ext2_fs.h works
|
|
|
|
# properly. However, the package only uses autoconf and not automake,
|
|
|
|
# so we can't use the normal autoreconf logic.
|
|
|
|
|
|
|
|
SOCAT_DEPENDENCIES = host-autoconf
|
|
|
|
|
2014-03-10 20:34:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SOCAT_DEPENDENCIES += openssl
|
2014-03-10 20:34:06 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SOCAT_CONF_OPTS += --disable-openssl
|
2014-03-10 20:34:06 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
SOCAT_DEPENDENCIES += readline
|
2014-03-10 20:34:06 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
SOCAT_CONF_OPTS += --disable-readline
|
2014-03-10 20:34:06 +01:00
|
|
|
endif
|
|
|
|
|
socat: fix build failure due to ext2_fs.h header, bump version
In kernel >= 3.3, the ext2_fs.h can no longer be imported from
userspace. This has been fixed for internal toolchains by adding a
patch to kernel headers, but this doesn't work with toolchains
generated by Crosstool-NG, or potentially upcoming external
toolchains.
socat in fact has a test in its configure.in, but the configure was
generated too long ago, and the generated test relies on the
preprocessor result and not the compiler result (but warns that in the
future, the compiler result will be used instead of the preprocessor
result).
So, by running autoconf on this package, we fix the problem: it
properly checks whether ext2_fs is usable or not, and acts
accordingly. Of course, it means that with recent versions of the
kernel, ext2-specific features of socat are unavailable, and we'll
have to wait for the socat developers to adapt their code so that they
use the e2fsprogs headers.
We also bump the version, since a new minor version fixing a security
problem has been released.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-05-17 03:15:57 +02:00
|
|
|
define SOCAT_RUN_AUTOCONF
|
2017-07-05 13:14:19 +02:00
|
|
|
(cd $(@D); $(HOST_DIR)/bin/autoconf)
|
socat: fix build failure due to ext2_fs.h header, bump version
In kernel >= 3.3, the ext2_fs.h can no longer be imported from
userspace. This has been fixed for internal toolchains by adding a
patch to kernel headers, but this doesn't work with toolchains
generated by Crosstool-NG, or potentially upcoming external
toolchains.
socat in fact has a test in its configure.in, but the configure was
generated too long ago, and the generated test relies on the
preprocessor result and not the compiler result (but warns that in the
future, the compiler result will be used instead of the preprocessor
result).
So, by running autoconf on this package, we fix the problem: it
properly checks whether ext2_fs is usable or not, and acts
accordingly. Of course, it means that with recent versions of the
kernel, ext2-specific features of socat are unavailable, and we'll
have to wait for the socat developers to adapt their code so that they
use the e2fsprogs headers.
We also bump the version, since a new minor version fixing a security
problem has been released.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-05-17 03:15:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
SOCAT_PRE_CONFIGURE_HOOKS += SOCAT_RUN_AUTOCONF
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|