summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2011-06-14 21:55:07 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-17 23:42:11 +0200
commit8653ea8084eefb657426d0bfb12ca63dc76c6ce3 (patch)
tree16d92f98a026216ba517ea22bbf2086a6405ae98
parent7710dc81ccacc1db81cd42c397fe354bb56e7a06 (diff)
downloadptxdist-8653ea8084eefb657426d0bfb12ca63dc76c6ce3.tar.gz
ptxdist-8653ea8084eefb657426d0bfb12ca63dc76c6ce3.tar.xz
Add sitecopy
Sitecopy is a simple tool to synchronize local and remote web site via FTP or WebDAV. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/sitecopy-0.16.6/series1
-rw-r--r--patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff36
-rw-r--r--rules/sitecopy.in57
-rw-r--r--rules/sitecopy.make100
4 files changed, 194 insertions, 0 deletions
diff --git a/patches/sitecopy-0.16.6/series b/patches/sitecopy-0.16.6/series
new file mode 100644
index 000000000..c295b758f
--- /dev/null
+++ b/patches/sitecopy-0.16.6/series
@@ -0,0 +1 @@
+sitecopy-neon-openssl.diff
diff --git a/patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff b/patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff
new file mode 100644
index 000000000..b4f9b49ab
--- /dev/null
+++ b/patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff
@@ -0,0 +1,36 @@
+From: Bernhard Walle <bernhard@bwalle.de>
+Subject: Fix build with OpenSSL 1.x
+
+See http://lists.manyfish.co.uk/pipermail/neon-commits/2009-September/000827.html.
+
+Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
+---
+ lib/neon/ne_openssl.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+--- a/lib/neon/ne_openssl.c
++++ b/lib/neon/ne_openssl.c
+@@ -36,6 +36,7 @@
+ #include <openssl/pkcs12.h>
+ #include <openssl/x509v3.h>
+ #include <openssl/rand.h>
++#include <openssl/opensslv.h>
+
+ #ifdef NE_HAVE_TS_SSL
+ #include <stdlib.h> /* for abort() */
+@@ -615,6 +616,15 @@ void ne_ssl_context_destroy(ne_ssl_conte
+ ne_free(ctx);
+ }
+
++/* OpenSSL 1.0 removed SSL_SESSION_cmp for no apparent reason - hoping
++ * it is reasonable to assume that comparing the session IDs is
++ * sufficient. */
++static int SSL_SESSION_cmp(SSL_SESSION *a, SSL_SESSION *b)
++{
++ return a->session_id_length == b->session_id_length
++ && memcmp(a->session_id, b->session_id, a->session_id_length) == 0;
++}
++
+ /* For internal use only. */
+ int ne__negotiate_ssl(ne_session *sess)
+ {
diff --git a/rules/sitecopy.in b/rules/sitecopy.in
new file mode 100644
index 000000000..aa912c443
--- /dev/null
+++ b/rules/sitecopy.in
@@ -0,0 +1,57 @@
+## SECTION=networking
+
+menuconfig SITECOPY
+ tristate
+ prompt "sitecopy "
+ select EXPAT if SITECOPY_XML_EXPAT
+ select LIBXML2 if SITECOPY_XML_LIBXML2
+ select OPENSSL if SITECOPY_OPENSSL
+ help
+ Synchronize local and remote web site via FTP or WebDAV
+
+if SITECOPY
+
+config SITECOPY_FTP
+ bool
+ prompt "FTP support enabled"
+ help
+ Build with FTP support. No additional dependencies.
+
+config SITECOPY_RSH
+ bool
+ prompt "rsh/rcp support enabled"
+ help
+ Build with rsh/rcp support. No additional dependencies.
+
+config SITECOPY_SFTP
+ bool
+ prompt "sftp/scp support enabled"
+ help
+ Build with sftp/scp support. No additional dependencies.
+
+config SITECOPY_WEBDAV
+ bool
+ prompt "WebDAV support enabled"
+ help
+ Build with WebDAV support. No additional dependencies.
+
+config SITECOPY_OPENSSL
+ bool
+ prompt "SSL support with OpenSSL"
+ help
+ Build with SSL support. Required OpenSSL to be built.
+
+choice
+ prompt "xml library "
+ default SITECOPY_XML_EXPAT
+
+ config SITECOPY_XML_EXPAT
+ bool
+ prompt "expat "
+
+ config SITECOPY_XML_LIBXML2
+ bool
+ prompt "libxml2"
+endchoice
+
+endif
diff --git a/rules/sitecopy.make b/rules/sitecopy.make
new file mode 100644
index 000000000..44a7b8ae9
--- /dev/null
+++ b/rules/sitecopy.make
@@ -0,0 +1,100 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Bernhard Walle <bernhard@bwalle.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SITECOPY) += sitecopy
+
+#
+# Paths and names
+#
+SITECOPY_VERSION := 0.16.6
+SITECOPY_MD5 := b3aeb5a5f00af3db90b408e8c32a6c01
+SITECOPY := sitecopy-$(SITECOPY_VERSION)
+SITECOPY_SUFFIX := tar.gz
+SITECOPY_URL := http://www.manyfish.co.uk/sitecopy/$(SITECOPY).$(SITECOPY_SUFFIX)
+SITECOPY_SOURCE := $(SRCDIR)/$(SITECOPY).$(SITECOPY_SUFFIX)
+SITECOPY_DIR := $(BUILDDIR)/$(SITECOPY)
+SITECOPY_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+SITECOPY_AUTOCONF := $(CROSS_AUTOCONF_USR) \
+ --disable-gnomefe \
+ --enable-threadsafe-ssl=posix \
+ --disable-nls \
+ --enable-threads=posix \
+ --disable-rpath \
+ --without-pakchois \
+ --without-socks \
+ --without-gssapi
+
+ifdef PTXCONF_SITECOPY_SFTP
+SITECOPY_AUTOCONF += --enable-sftp
+else
+SITECOPY_AUTOCONF += --disable-sftp
+endif
+
+ifdef PTXCONF_SITECOPY_RSH
+SITECOPY_AUTOCONF += --enable-rsh
+else
+SITECOPY_AUTOCONF += --disable-rsh
+endif
+
+ifdef PTXCONF_SITECOPY_FTP
+SITECOPY_AUTOCONF += --enable-ftp
+else
+SITECOPY_AUTOCONF += --disable-ftp
+endif
+
+ifdef PTXCONF_SITECOPY_WEBDAV
+SITECOPY_AUTOCONF += --enable-webdav
+else
+SITECOPY_AUTOCONF += --disable-webdav
+endif
+
+ifdef PTXCONF_SITECOPY_XML_EXPAT
+SITECOPY_AUTOCONF += --with-expat
+endif
+
+ifdef PTXCONF_SITECOPY_XML_LIBXML2
+SITECOPY_AUTOCONF += --with-libxml2
+endif
+
+ifdef PTXCONF_SITECOPY_OPENSSL
+SITECOPY_AUTOCONF += --with-ssl=openssl
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sitecopy.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, sitecopy)
+ @$(call install_fixup, sitecopy,PRIORITY,optional)
+ @$(call install_fixup, sitecopy,SECTION,base)
+ @$(call install_fixup, sitecopy,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>")
+ @$(call install_fixup, sitecopy,DESCRIPTION,missing)
+
+ @$(call install_copy, sitecopy, 0, 0, 0755, -, /usr/bin/sitecopy)
+
+ @$(call install_finish, sitecopy)
+
+ @$(call touch)
+
+# vim: syntax=make