2006-11-24 16:33:04 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# stunnel
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
STUNNEL_VERSION:=4.16
|
|
|
|
STUNNEL_SOURCE:=stunnel-$(STUNNEL_VERSION).tar.gz
|
2006-11-24 16:33:04 +01:00
|
|
|
STUNNEL_SITE:=http://www.stunnel.org/download/stunnel/src
|
|
|
|
STUNNEL_CAT:=$(ZCAT)
|
2007-07-11 16:06:06 +02:00
|
|
|
STUNNEL_DIR:=$(BUILD_DIR)/stunnel-$(STUNNEL_VERSION)
|
2006-11-24 16:33:04 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(STUNNEL_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(STUNNEL_SITE)/$(STUNNEL_SOURCE)
|
|
|
|
|
|
|
|
stunnel-source: $(DL_DIR)/$(STUNNEL_SOURCE)
|
|
|
|
|
|
|
|
$(STUNNEL_DIR)/.unpacked: $(DL_DIR)/$(STUNNEL_SOURCE)
|
|
|
|
$(STUNNEL_CAT) $(DL_DIR)/$(STUNNEL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
$(CONFIG_UPDATE) $(STUNNEL_DIR)
|
|
|
|
toolchain/patch-kernel.sh $(STUNNEL_DIR) package/stunnel stunnel\*.patch
|
|
|
|
touch $(STUNNEL_DIR)/*
|
|
|
|
touch $(STUNNEL_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(STUNNEL_DIR)/.configured: $(STUNNEL_DIR)/.unpacked
|
|
|
|
(cd $(STUNNEL_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-11-24 16:33:04 +01:00
|
|
|
ac_cv_file___dev_ptmx_=yes \
|
|
|
|
ac_cv_file___dev_ptc_=no \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2006-11-24 16:33:04 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
--with-random=/dev/urandom \
|
|
|
|
--disable-libwrap \
|
2007-12-13 13:22:26 +01:00
|
|
|
--with-ssl=$(STAGING_DIR)/usr/ \
|
2006-11-24 16:33:04 +01:00
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2006-11-24 16:33:04 +01:00
|
|
|
touch $(STUNNEL_DIR)/.configured
|
|
|
|
|
|
|
|
$(STUNNEL_DIR)/src/stunnel: $(STUNNEL_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(STUNNEL_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/stunnel: $(STUNNEL_DIR)/src/stunnel
|
|
|
|
install -c $(STUNNEL_DIR)/src/stunnel $(TARGET_DIR)/usr/bin/stunnel
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(TARGET_DIR)/usr/bin/stunnel > /dev/null 2>&1
|
2006-11-24 16:33:04 +01:00
|
|
|
ifeq ($(strip $(BR2_CROSS_TOOLCHAIN_TARGET_UTILS)),y)
|
|
|
|
mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils
|
|
|
|
install -c $(TARGET_DIR)/usr/bin/stunnel \
|
|
|
|
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils/stunnel
|
|
|
|
endif
|
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
stunnel: uclibc $(TARGET_DIR)/usr/bin/stunnel
|
2006-11-24 16:33:04 +01:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
stunnel-clean:
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(STUNNEL_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/stunnel
|
2006-11-24 16:33:04 +01:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
stunnel-dirclean:
|
|
|
|
rm -rf $(STUNNEL_DIR)
|
2006-11-24 16:33:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_STUNNEL)),y)
|
|
|
|
TARGETS+=stunnel
|
|
|
|
endif
|