diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-24 15:33:04 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-24 15:33:04 +0000 |
commit | 24297ee749193cbfe896279309311fffc62f2f92 (patch) | |
tree | c29c71290d2d6b6b8447fe1ef9b6133c89146067 /package/stunnel | |
parent | 35561e74c549c4b65a19fd52b8845b9427b5fc48 (diff) | |
download | buildroot-novena-24297ee749193cbfe896279309311fffc62f2f92.tar.gz buildroot-novena-24297ee749193cbfe896279309311fffc62f2f92.zip |
- add stunnel package. Thanks to Crispin Wellington
Diffstat (limited to 'package/stunnel')
-rw-r--r-- | package/stunnel/Config.in | 5 | ||||
-rw-r--r-- | package/stunnel/stunnel-have-pty.patch | 15 | ||||
-rw-r--r-- | package/stunnel/stunnel.mk | 81 |
3 files changed, 101 insertions, 0 deletions
diff --git a/package/stunnel/Config.in b/package/stunnel/Config.in new file mode 100644 index 000000000..fd9cab9fb --- /dev/null +++ b/package/stunnel/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_STUNNEL + bool "stunnel" + default n + help + Stunnel is a utility that utilised OpenSSL to wrap plaintext TCP communications with SSL. Can be used to secure a programmes insecure network communications. diff --git a/package/stunnel/stunnel-have-pty.patch b/package/stunnel/stunnel-have-pty.patch new file mode 100644 index 000000000..c5490ce51 --- /dev/null +++ b/package/stunnel/stunnel-have-pty.patch @@ -0,0 +1,15 @@ +--- stunnel-4.16/configure.ac.orig 2006-08-20 04:28:14.000000000 +0800 ++++ stunnel-4.16/configure.ac 2006-11-24 10:17:01.053905560 +0800 +@@ -45,8 +45,10 @@ + AC_DEFINE(socklen_t, int)) + + AC_MSG_NOTICE([**************************************** PTY device files]) +-AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(HAVE_DEV_PTMX)) +-AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC)) ++#AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(HAVE_DEV_PTMX)) ++#AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC)) ++AC_DEFINE(HAVE_DEV_PTMX) ++AC_DEFINE(HAVE_DEV_PTS_AND_PTC) + + AC_MSG_NOTICE([**************************************** entropy]) + diff --git a/package/stunnel/stunnel.mk b/package/stunnel/stunnel.mk new file mode 100644 index 000000000..7665e6be4 --- /dev/null +++ b/package/stunnel/stunnel.mk @@ -0,0 +1,81 @@ +############################################################# +# +# stunnel +# +############################################################# +STUNNEL_VER:=4.16 +STUNNEL_SOURCE:=stunnel-$(STUNNEL_VER).tar.gz +STUNNEL_SITE:=http://www.stunnel.org/download/stunnel/src +STUNNEL_CAT:=$(ZCAT) +STUNNEL_DIR:=$(BUILD_DIR)/stunnel-$(STUNNEL_VER) + +$(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) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS=-L$(STAGING_DIR)/lib \ + 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 \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --with-random=/dev/urandom \ + --disable-libwrap \ + --with-ssl=$(STAGING_DIR) \ + $(DISABLE_NLS) \ + $(DISABLE_LARGEFILE) \ + ); + 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 + $(STRIP) $(TARGET_DIR)/usr/bin/stunnel > /dev/null 2>&1 +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 + +stunnel: uclibc $(TARGET_DIR)/usr/bin/stunnel + +stunnel-clean: + $(MAKE) -C $(STUNNEL_DIR) clean + +stunnel-dirclean: + rm -rf $(STUNNEL_DIR) + + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_STUNNEL)),y) +TARGETS+=stunnel +endif |