Sitecopy is a simple tool to synchronize local and remote web site via FTP or
WebDAV.

Signed-off-by: Bernhard Walle <bernh...@bwalle.de>

diff -r 22739a15eec4 -r c6a44fc1b614 patches/sitecopy-0.16.6/series
--- /dev/null   Do Jan 01 00:00:00 1970 +0000
+++ b/patches/sitecopy-0.16.6/series    Di Jun 14 21:54:48 2011 +0200
@@ -0,0 +1,1 @@
+sitecopy-neon-openssl.diff
diff -r 22739a15eec4 -r c6a44fc1b614 
patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff
--- /dev/null   Do Jan 01 00:00:00 1970 +0000
+++ b/patches/sitecopy-0.16.6/sitecopy-neon-openssl.diff        Di Jun 14 
21:54:48 2011 +0200
@@ -0,0 +1,36 @@
+From: Bernhard Walle <bernh...@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 <bernh...@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 -r 22739a15eec4 -r c6a44fc1b614 rules/sitecopy.in
--- /dev/null   Do Jan 01 00:00:00 1970 +0000
+++ b/rules/sitecopy.in Di Jun 14 21:54:48 2011 +0200
@@ -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 -r 22739a15eec4 -r c6a44fc1b614 rules/sitecopy.make
--- /dev/null   Do Jan 01 00:00:00 1970 +0000
+++ b/rules/sitecopy.make       Di Jun 14 21:54:48 2011 +0200
@@ -0,0 +1,100 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Bernhard Walle <bernh...@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 
<bernh...@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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to